From 199385bcca7ca4715a42642661616b1c7eb4000b Mon Sep 17 00:00:00 2001 From: siwatanejo <7511840+siwatanejo@users.noreply.github.com> Date: Fri, 15 Mar 2024 13:00:29 +0100 Subject: [PATCH 1/4] Nuget version bump --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 388358b88..ecbee91e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Continuous Integration Checks on: [push, pull_request] env: - NUGET_PACKAGE_VERSION: 0.0.0.5 + NUGET_PACKAGE_VERSION: 0.0.0.6 jobs: wasm_bindings: From 98fa9ed3176a3082da1b4600d75ca34d360f6dcb Mon Sep 17 00:00:00 2001 From: Mehrshad Date: Mon, 4 Mar 2024 12:35:38 +0330 Subject: [PATCH 2/4] [C#] Use `I` prefix for interfaces We change all interfaces to PascalCase in C# to comply with the C# coding style and the C# code conventions as outlined by Microsoft [1]: - "Interface names start with a capital I." [1] https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names --- c_sharp/test/src/tests.cs | 10 +++++----- csharp_strings.py | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/c_sharp/test/src/tests.cs b/c_sharp/test/src/tests.cs index 2e3d0d484..d75004c44 100644 --- a/c_sharp/test/src/tests.cs +++ b/c_sharp/test/src/tests.cs @@ -20,7 +20,7 @@ static void SimpleConstructionTest() { Assert(ping.get_ponglen() == 42, 0); } - class TestBroadcaster : BroadcasterInterfaceInterface { + class TestBroadcaster : IBroadcasterInterface { public bool broadcasted = false; public void broadcast_transactions(byte[][] txn) { Assert(txn.Length == 1, 1); @@ -38,7 +38,7 @@ static void SimpleTraitTest() { Assert(impl.broadcasted == true, 3); } - class TestEstimator : FeeEstimatorInterface { + class TestEstimator : IFeeEstimator { public int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target) { if (confirmation_target == ConfirmationTarget.LDKConfirmationTarget_MinAllowedNonAnchorChannelRemoteFee) { return 253; @@ -48,13 +48,13 @@ public int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target) { } } - class TestLogger : LoggerInterface { + class TestLogger : ILogger { public void log(Record record) { Console.WriteLine(record.get_module_path() + ":" + record.get_line() + " " + record.get_args()); } } - class TestPersister : PersistInterface { + class TestPersister : IPersist { public ChannelMonitorUpdateStatus persist_new_channel(OutPoint channel_id, ChannelMonitor data, MonitorUpdateId update_id) { return ChannelMonitorUpdateStatus.LDKChannelMonitorUpdateStatus_Completed; } @@ -63,7 +63,7 @@ public ChannelMonitorUpdateStatus update_persisted_channel(OutPoint channel_id, } } - class TestEventHandler : EventHandlerInterface { + class TestEventHandler : IEventHandler { public List events = new List(); public void handle_event(Event ev) { events.Add(ev); diff --git a/csharp_strings.py b/csharp_strings.py index a73ee2035..e4d950e61 100644 --- a/csharp_strings.py +++ b/csharp_strings.py @@ -736,7 +736,7 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field else: bindings_instantiator += ", " + first_to_lower(var[1]) + ".instance_idx" pointer_to_adder += "\t\timpl_holder.held.ptrs_to.AddLast(" + first_to_lower(var[1]) + ");\n" - impl_constructor_arguments += f", {var[0].replace('LDK', '')}Interface {first_to_lower(var[1])}_impl" + impl_constructor_arguments += f", I{var[0].replace('LDK', '')} {first_to_lower(var[1])}_impl" super_constructor_statements = "" trait_constructor_arguments = "" @@ -765,8 +765,8 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field java_trait_wrapper = "\tprivate class " + struct_name + "Holder { internal " + struct_name.replace("LDK", "") + " held; }\n" java_trait_wrapper += "\tprivate class " + struct_name + "Impl : bindings." + struct_name + " {\n" - java_trait_wrapper += "\t\tinternal " + struct_name + "Impl(" + struct_name.replace("LDK", "") + "Interface arg, " + struct_name + "Holder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; }\n" - java_trait_wrapper += "\t\tprivate " + struct_name.replace("LDK", "") + "Interface arg;\n" + java_trait_wrapper += "\t\tinternal " + struct_name + "Impl(I" + struct_name.replace("LDK", "") + " arg, " + struct_name + "Holder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; }\n" + java_trait_wrapper += "\t\tprivate I" + struct_name.replace("LDK", "") + " arg;\n" java_trait_wrapper += "\t\tprivate " + struct_name + "Holder impl_holder;\n" for fn_line in field_function_lines: @@ -835,7 +835,7 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field {self.hu_struct_file_prefix} /** An implementation of {struct_name.replace("LDK","")} */ -public interface {struct_name.replace("LDK", "")}Interface {{ +public interface I{struct_name.replace("LDK", "")} {{ {out_java_interface}}} /** @@ -853,7 +853,7 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field {java_trait_wrapper} /** Creates a new instance of {struct_name.replace("LDK","")} from a given implementation */ - public static {struct_name.replace("LDK", "")} new_impl({struct_name.replace("LDK", "")}Interface arg{impl_constructor_arguments}) {{ + public static {struct_name.replace("LDK", "")} new_impl(I{struct_name.replace("LDK", "")} arg{impl_constructor_arguments}) {{ {struct_name}Holder impl_holder = new {struct_name}Holder(); {struct_name}Impl impl = new {struct_name}Impl(arg, impl_holder); {super_constructor_statements} long[] ptr_idx = bindings.{struct_name}_new(impl{bindings_instantiator}); From 7dda68f43a9968f08810979fcadeb3d2dc033adf Mon Sep 17 00:00:00 2001 From: Mehrshad Date: Fri, 15 Mar 2024 13:04:10 +0100 Subject: [PATCH 3/4] [C#] Change all method names to PascalCase We change all method and class names to PascalCase in C# to comply with the C# coding style and the C# code conventions as outlined by Microsoft [1]: - "Use PascalCase for class names and method names." [1] https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names --- c_sharp/src/org/ldk/util/InternalUtils.cs | 64 ++++---- csharp_strings.py | 185 ++++++++++++---------- 2 files changed, 129 insertions(+), 120 deletions(-) diff --git a/c_sharp/src/org/ldk/util/InternalUtils.cs b/c_sharp/src/org/ldk/util/InternalUtils.cs index 9296adf0f..1912c29ff 100644 --- a/c_sharp/src/org/ldk/util/InternalUtils.cs +++ b/c_sharp/src/org/ldk/util/InternalUtils.cs @@ -4,14 +4,14 @@ using org.ldk.impl; internal class InternalUtils { - public static T[] check_arr_len(T[] arr, int length) { + public static T[] CheckArrLen(T[] arr, int length) { if (arr != null && arr.Length != length) { throw new ArgumentException("Array must be of fixed size " + length + " but was of length " + arr.Length); } return arr; } - public static byte[] convUInt5Array(UInt5[] u5s) { + public static byte[] ConvUInt5Array(UInt5[] u5s) { if (u5s == null) return null; byte[] res = new byte[u5s.Length]; for (int i = 0; i < u5s.Length; i++) { @@ -20,25 +20,25 @@ public static byte[] convUInt5Array(UInt5[] u5s) { return res; } - public static T[] mapArray(F[] arr, Func f) { + public static T[] MapArray(F[] arr, Func f) { if (arr == null) return null; T[] ret = new T[arr.Length]; for (int i = 0; i < arr.Length; i++) ret[i] = f(arr[i]); return ret; } - public static string decodeString(long strptr) { - byte[] bytes = decodeUint8Array(strptr); + public static string DecodeString(long strptr) { + byte[] bytes = DecodeUint8Array(strptr); return Encoding.UTF8.GetString(bytes); } - public static long encodeString(string s) { + public static long EncodeString(string s) { byte[] bytes = Encoding.UTF8.GetBytes(s); - return encodeUint8Array(bytes); + return EncodeUint8Array(bytes); } - public static int getArrayLength(long arrptr) { + public static int GetArrayLength(long arrptr) { long len; unsafe { long* arrlen = (long*) arrptr; @@ -51,25 +51,25 @@ public static int getArrayLength(long arrptr) { } - public static long getU64ArrayElem(long arrptr, int idx) { + public static long GetU64ArrayElem(long arrptr, int idx) { unsafe { long* arr = (long*) (arrptr + 8); return arr[idx]; } } - public static int getU32ArrayElem(long arrptr, int idx) { + public static int GetU32ArrayElem(long arrptr, int idx) { unsafe { int* arr = (int*) (arrptr + 8); return arr[idx]; } } - public static short getU16ArrayElem(long arrptr, int idx) { + public static short GetU16ArrayElem(long arrptr, int idx) { unsafe { short* arr = (short*) (arrptr + 8); return arr[idx]; } } - public static byte getU8ArrayElem(long arrptr, int idx) { + public static byte GetU8ArrayElem(long arrptr, int idx) { unsafe { byte* arr = (byte*) (arrptr + 8); return arr[idx]; @@ -77,8 +77,8 @@ public static byte getU8ArrayElem(long arrptr, int idx) { } - public static long encodeUint8Array(byte[] arr) { - long buf = bindings.allocate_buffer(arr.Length + 8); + public static long EncodeUint8Array(byte[] arr) { + long buf = Bindings.AllocateBuffer(arr.Length + 8); unsafe { *((long*)buf) = (long)arr.Length; } for (int i = 0; i < arr.Length; i++) { unsafe { @@ -87,8 +87,8 @@ public static long encodeUint8Array(byte[] arr) { } return buf; } - public static long encodeUint16Array(short[] arr) { - long buf = bindings.allocate_buffer(arr.Length * 2 + 8); + public static long EncodeUint16Array(short[] arr) { + long buf = Bindings.AllocateBuffer(arr.Length * 2 + 8); unsafe { *((long*)buf) = (long)arr.Length; } for (int i = 0; i < arr.Length; i++) { unsafe { @@ -97,8 +97,8 @@ public static long encodeUint16Array(short[] arr) { } return buf; } - public static long encodeUint32Array(int[] arr) { - long buf = bindings.allocate_buffer(arr.Length * 4 + 8); + public static long EncodeUint32Array(int[] arr) { + long buf = Bindings.AllocateBuffer(arr.Length * 4 + 8); unsafe { *((long*)buf) = (long)arr.Length; } for (int i = 0; i < arr.Length; i++) { unsafe { @@ -107,8 +107,8 @@ public static long encodeUint32Array(int[] arr) { } return buf; } - public static long encodeUint64Array(long[] arr) { - long buf = bindings.allocate_buffer(arr.Length * 8 + 8); + public static long EncodeUint64Array(long[] arr) { + long buf = Bindings.AllocateBuffer(arr.Length * 8 + 8); unsafe { *((long*)buf) = (long)arr.Length; } for (int i = 0; i < arr.Length; i++) { unsafe { @@ -119,28 +119,28 @@ public static long encodeUint64Array(long[] arr) { } - public static byte[] decodeUint8Array(long arrptr) { - int len = getArrayLength(arrptr); + public static byte[] DecodeUint8Array(long arrptr) { + int len = GetArrayLength(arrptr); byte[] res = new byte[len]; for (int i = 0; i < len; i++) - res[i] = getU8ArrayElem(arrptr, i); - bindings.free_buffer(arrptr); + res[i] = GetU8ArrayElem(arrptr, i); + Bindings.FreeBuffer(arrptr); return res; } - public static short[] decodeUint16Array(long arrptr) { - int len = getArrayLength(arrptr); + public static short[] DecodeUint16Array(long arrptr) { + int len = GetArrayLength(arrptr); short[] res = new short[len]; for (int i = 0; i < len; i++) - res[i] = getU16ArrayElem(arrptr, i); - bindings.free_buffer(arrptr); + res[i] = GetU16ArrayElem(arrptr, i); + Bindings.FreeBuffer(arrptr); return res; } - public static long[] decodeUint64Array(long arrptr) { - int len = getArrayLength(arrptr); + public static long[] DecodeUint64Array(long arrptr) { + int len = GetArrayLength(arrptr); long[] res = new long[len]; for (int i = 0; i < len; i++) - res[i] = getU64ArrayElem(arrptr, i); - bindings.free_buffer(arrptr); + res[i] = GetU64ArrayElem(arrptr, i); + Bindings.FreeBuffer(arrptr); return res; } } diff --git a/csharp_strings.py b/csharp_strings.py index e4d950e61..93efdc6fa 100644 --- a/csharp_strings.py +++ b/csharp_strings.py @@ -17,6 +17,9 @@ def safe_arg_name(arg_name): def arg_name_repl(s, arg_name): return s.replace(arg_name, "_" + arg_name) if arg_name == "lock" or arg_name == "event" or arg_name == "params" else s +def snake_to_pascal(text: str): + return ''.join(x.title() if x and not x[0].isupper() else x for x in text.split('_')) + class Consts: def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): self.outdir = outdir @@ -54,7 +57,7 @@ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): namespace org { namespace ldk { namespace impl { -internal class bindings { +internal class Bindings { static List js_objs = new List(); """ @@ -105,17 +108,17 @@ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): public readonly int previous_vout; internal TxIn(object _dummy, long ptr) : base(ptr) { - this.witness = InternalUtils.decodeUint8Array(bindings.TxIn_get_witness(ptr)); - this.script_sig = InternalUtils.decodeUint8Array(bindings.TxIn_get_script_sig(ptr)); - this.sequence = bindings.TxIn_get_sequence(ptr); - this.previous_txid = InternalUtils.decodeUint8Array(bindings.TxIn_get_previous_txid(ptr)); - this.previous_vout = bindings.TxIn_get_previous_vout(ptr); + this.witness = InternalUtils.DecodeUint8Array(Bindings.TxInGetWitness(ptr)); + this.script_sig = InternalUtils.DecodeUint8Array(Bindings.TxInGetScriptSig(ptr)); + this.sequence = Bindings.TxInGetSequence(ptr); + this.previous_txid = InternalUtils.DecodeUint8Array(Bindings.TxInGetPreviousTxid(ptr)); + this.previous_vout = Bindings.TxInGetPreviousVout(ptr); } public TxIn(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout) - : this(null, bindings.TxIn_new(InternalUtils.encodeUint8Array(witness), InternalUtils.encodeUint8Array(script_sig), sequence, InternalUtils.encodeUint8Array(previous_txid), previous_vout)) {} + : this(null, Bindings.TxInNew(InternalUtils.EncodeUint8Array(witness), InternalUtils.EncodeUint8Array(script_sig), sequence, InternalUtils.EncodeUint8Array(previous_txid), previous_vout)) {} ~TxIn() { - if (ptr != 0) { bindings.TxIn_free(ptr); } + if (ptr != 0) { Bindings.TxInFree(ptr); } } }""" @@ -126,13 +129,13 @@ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): public readonly long value; internal TxOut(object _dummy, long ptr) : base(ptr) { - this.script_pubkey = InternalUtils.decodeUint8Array(bindings.TxOut_get_script_pubkey(ptr)); - this.value = bindings.TxOut_get_value(ptr); + this.script_pubkey = InternalUtils.DecodeUint8Array(Bindings.TxOutGetScriptPubkey(ptr)); + this.value = Bindings.TxOutGetValue(ptr); } - public TxOut(long value, byte[] script_pubkey) : this(null, bindings.TxOut_new(InternalUtils.encodeUint8Array(script_pubkey), value)) {} + public TxOut(long value, byte[] script_pubkey) : this(null, Bindings.TxOutNew(InternalUtils.EncodeUint8Array(script_pubkey), value)) {} ~TxOut() { - if (ptr != 0) { bindings.TxOut_free(ptr); } + if (ptr != 0) { Bindings.TxOutFree(ptr); } } }""" @@ -141,14 +144,14 @@ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): public readonly byte[] scalar_bytes; internal BigEndianScalar(object _dummy, long ptr) : base(ptr) { - this.scalar_bytes = InternalUtils.decodeUint8Array(bindings.BigEndianScalar_get_bytes(ptr)); + this.scalar_bytes = InternalUtils.DecodeUint8Array(Bindings.BigEndianScalarGetBytes(ptr)); } - public BigEndianScalar(byte[] scalar_bytes) : base(bindings.BigEndianScalar_new(InternalUtils.encodeUint8Array(scalar_bytes))) { - this.scalar_bytes = InternalUtils.decodeUint8Array(bindings.BigEndianScalar_get_bytes(ptr)); + public BigEndianScalar(byte[] scalar_bytes) : base(Bindings.BigEndianScalarNew(InternalUtils.EncodeUint8Array(scalar_bytes))) { + this.scalar_bytes = InternalUtils.DecodeUint8Array(Bindings.BigEndianScalarGetBytes(ptr)); } ~BigEndianScalar() { - if (ptr != 0) { bindings.BigEndianScalar_free(ptr); } + if (ptr != 0) { Bindings.BigEndianScalarFree(ptr); } } }""" @@ -159,19 +162,19 @@ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs): public readonly WitnessVersion version; internal WitnessProgram(object _dummy, long ptr) : base(ptr) { - this.program = InternalUtils.decodeUint8Array(bindings.WitnessProgram_get_program(ptr)); - this.version = new WitnessVersion(bindings.WitnessProgram_get_version(ptr)); + this.program = InternalUtils.DecodeUint8Array(Bindings.WitnessProgramGetProgram(ptr)); + this.version = new WitnessVersion(Bindings.WitnessProgramGetVersion(ptr)); } static private long check_args(byte[] program, WitnessVersion version) { if (program.Length < 2 || program.Length > 40) throw new ArgumentException(); if (version.getVal() == 0 && program.Length != 20 && program.Length != 32) throw new ArgumentException(); - return InternalUtils.encodeUint8Array(program); + return InternalUtils.EncodeUint8Array(program); } public WitnessProgram(byte[] program, WitnessVersion version) : - this(null, bindings.WitnessProgram_new(version.getVal(), check_args(program, version))) {} + this(null, Bindings.WitnessProgramNew(version.getVal(), check_args(program, version))) {} ~WitnessProgram() { - if (ptr != 0) { bindings.WitnessProgram_free(ptr); } + if (ptr != 0) { Bindings.WitnessProgramFree(ptr); } } }""" @@ -492,7 +495,7 @@ def bindings_footer(self): return "" def native_meth_decl(self, meth_name, ret_ty_str): - return "\t[DllImport (\"ldkcsharp\", EntryPoint=\"CS_LDK_" + meth_name + "\")] public static extern " + ret_ty_str + " " + meth_name + return "\t[DllImport (\"ldkcsharp\", EntryPoint=\"CS_LDK_" + meth_name + "\")] public static extern " + ret_ty_str + " " + snake_to_pascal(meth_name) def c_fn_name_define_pfx(self, fn_name, have_args): return " CS_LDK_" + fn_name + "(" @@ -538,20 +541,20 @@ def cleanup_native_arr_ref_contents(self, arr_name, dest_name, arr_len, ty_info) def map_hu_array_elems(self, arr_name, conv_name, arr_ty, elem_ty, is_nullable): if elem_ty.java_hu_ty == "UInt5": - return "InternalUtils.convUInt5Array(" + arr_name + ")" + return "InternalUtils.ConvUInt5Array(" + arr_name + ")" elif elem_ty.java_hu_ty == "WitnessVersion": - return "InternalUtils.convWitnessVersionArray(" + arr_name + ")" + return "InternalUtils.ConvWitnessVersionArray(" + arr_name + ")" else: - return "InternalUtils.mapArray(" + arr_name + ", " + conv_name + " => " + elem_ty.from_hu_conv[0] + ")" + return "InternalUtils.MapArray(" + arr_name + ", " + conv_name + " => " + elem_ty.from_hu_conv[0] + ")" def str_ref_to_native_call(self, var_name, str_len): return "str_ref_to_cs(" + var_name + ", " + str_len + ")" def str_ref_to_c_call(self, var_name): return "str_ref_to_owned_c(" + var_name + ")" def str_to_hu_conv(self, var_name): - return "string " + var_name + "_conv = InternalUtils.decodeString(" + var_name + ");" + return "string " + var_name + "_conv = InternalUtils.DecodeString(" + var_name + ");" def str_from_hu_conv(self, var_name): - return ("InternalUtils.encodeString(" + var_name + ")", "") + return ("InternalUtils.EncodeString(" + var_name + ")", "") def init_str(self): ret = "" @@ -573,15 +576,15 @@ def var_decl_statement(self, ty_string, var_name, statement): return ty_string + " " + var_name + " = " + statement def get_java_arr_len(self, arr_name): - return "InternalUtils.getArrayLength(" + arr_name + ")" + return "InternalUtils.GetArrayLength(" + arr_name + ")" def get_java_arr_elem(self, elem_ty, arr_name, idx): if elem_ty.c_ty == "int64_t" or elem_ty.c_ty == "uint64_t": - return "InternalUtils.getU64ArrayElem(" + arr_name + ", " + idx + ")" + return "InternalUtils.GetU64ArrayElem(" + arr_name + ", " + idx + ")" elif elem_ty.c_ty.endswith("Array") or elem_ty.c_ty == "uintptr_t" or elem_ty.rust_obj == "LDKStr": - return "InternalUtils.getU64ArrayElem(" + arr_name + ", " + idx + ")" + return "InternalUtils.GetU64ArrayElem(" + arr_name + ", " + idx + ")" elif elem_ty.rust_obj == "LDKU5": - return "InternalUtils.getU8ArrayElem(" + arr_name + ", " + idx + ")" + return "InternalUtils.GetU8ArrayElem(" + arr_name + ", " + idx + ")" else: assert False @@ -593,25 +596,25 @@ def constr_hu_array(self, ty_info, arr_len): conv += "[" + ty_info.subty.java_hu_ty.split("<")[0].split("[")[1] return conv def cleanup_converted_native_array(self, ty_info, arr_name): - return "bindings.free_buffer(" + arr_name + ");" + return "Bindings.FreeBuffer(" + arr_name + ");" def primitive_arr_from_hu(self, arr_ty, fixed_len, arr_name): mapped_ty = arr_ty.subty inner = arr_name if arr_ty.rust_obj == "LDKU128": - return ("InternalUtils.encodeUint8Array(" + arr_name + ".getLEBytes())", "") + return ("InternalUtils.EncodeUint8Array(" + arr_name + ".getLEBytes())", "") if fixed_len is not None: - inner = "InternalUtils.check_arr_len(" + arr_name + ", " + fixed_len + ")" + inner = "InternalUtils.CheckArrLen(" + arr_name + ", " + fixed_len + ")" if mapped_ty.c_ty.endswith("Array"): - return ("InternalUtils.encodeUint64Array(" + inner + ")", "") + return ("InternalUtils.EncodeUint64Array(" + inner + ")", "") elif mapped_ty.c_ty == "uint8_t" or mapped_ty.c_ty == "int8_t": - return ("InternalUtils.encodeUint8Array(" + inner + ")", "") + return ("InternalUtils.EncodeUint8Array(" + inner + ")", "") elif mapped_ty.c_ty == "uint16_t" or mapped_ty.c_ty == "int16_t": - return ("InternalUtils.encodeUint16Array(" + inner + ")", "") + return ("InternalUtils.EncodeUint16Array(" + inner + ")", "") elif mapped_ty.c_ty == "uint32_t": - return ("InternalUtils.encodeUint32Array(" + inner + ")", "") + return ("InternalUtils.EncodeUint32Array(" + inner + ")", "") elif mapped_ty.c_ty == "int64_t" or mapped_ty.c_ty == "uint64_t" or mapped_ty.rust_obj == "LDKStr": - return ("InternalUtils.encodeUint64Array(" + inner + ")", "") + return ("InternalUtils.EncodeUint64Array(" + inner + ")", "") else: print(mapped_ty.c_ty) assert False @@ -621,11 +624,11 @@ def primitive_arr_to_hu(self, arr_ty, fixed_len, arr_name, conv_name): if arr_ty.rust_obj == "LDKU128": return "org.ldk.util.UInt128 " + conv_name + " = new org.ldk.util.UInt128(" + arr_name + ");" elif mapped_ty.c_ty == "uint8_t" or mapped_ty.c_ty == "int8_t": - return "byte[] " + conv_name + " = InternalUtils.decodeUint8Array(" + arr_name + ");" + return "byte[] " + conv_name + " = InternalUtils.DecodeUint8Array(" + arr_name + ");" elif mapped_ty.c_ty == "uint16_t" or mapped_ty.c_ty == "int16_t": - return "short[] " + conv_name + " = InternalUtils.decodeUint16Array(" + arr_name + ");" + return "short[] " + conv_name + " = InternalUtils.DecodeUint16Array(" + arr_name + ");" elif mapped_ty.c_ty == "uint64_t" or mapped_ty.c_ty == "int64_t": - return "long[] " + conv_name + " = InternalUtils.decodeUint64Array(" + arr_name + ");" + return "long[] " + conv_name + " = InternalUtils.DecodeUint64Array(" + arr_name + ");" else: assert False @@ -763,18 +766,20 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field # BUILD INTERFACE METHODS - java_trait_wrapper = "\tprivate class " + struct_name + "Holder { internal " + struct_name.replace("LDK", "") + " held; }\n" - java_trait_wrapper += "\tprivate class " + struct_name + "Impl : bindings." + struct_name + " {\n" - java_trait_wrapper += "\t\tinternal " + struct_name + "Impl(I" + struct_name.replace("LDK", "") + " arg, " + struct_name + "Holder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; }\n" - java_trait_wrapper += "\t\tprivate I" + struct_name.replace("LDK", "") + " arg;\n" - java_trait_wrapper += "\t\tprivate " + struct_name + "Holder impl_holder;\n" + struct_name_pascal = snake_to_pascal(struct_name) + + java_trait_wrapper = "\tprivate class " + struct_name_pascal + "Holder { internal " + struct_name_pascal.replace("LDK", "") + " held; }\n" + java_trait_wrapper += "\tprivate class " + struct_name_pascal + "Impl : Bindings." + struct_name_pascal + " {\n" + java_trait_wrapper += "\t\tinternal " + struct_name_pascal + "Impl(I" + struct_name_pascal.replace("LDK", "") + " arg, " + struct_name_pascal + "Holder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; }\n" + java_trait_wrapper += "\t\tprivate I" + struct_name_pascal.replace("LDK", "") + " arg;\n" + java_trait_wrapper += "\t\tprivate " + struct_name_pascal + "Holder impl_holder;\n" for fn_line in field_function_lines: if fn_line.fn_name != "free" and fn_line.fn_name != "cloned": fn_name = fn_line.fn_name if fn_name == "lock": # reserved symbol fn_name = "do_lock" - java_trait_wrapper += "\t\tpublic " + fn_line.ret_ty_info.java_ty + " " + fn_name + "(" + java_trait_wrapper += "\t\tpublic " + fn_line.ret_ty_info.java_ty + " " + snake_to_pascal(fn_name) + "(" for idx, arg_conv_info in enumerate(fn_line.args_ty): if idx >= 1: @@ -834,31 +839,31 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field out_typescript_human = f""" {self.hu_struct_file_prefix} -/** An implementation of {struct_name.replace("LDK","")} */ -public interface I{struct_name.replace("LDK", "")} {{ +/** An implementation of {struct_name_pascal.replace("LDK","")} */ +public interface I{struct_name_pascal.replace("LDK", "")} {{ {out_java_interface}}} /** * {formatted_trait_docs} */ -public class {struct_name.replace("LDK","")} : CommonBase {{ - internal bindings.{struct_name} bindings_instance; +public class {struct_name_pascal.replace("LDK","")} : CommonBase {{ + internal Bindings.{snake_to_pascal(struct_name_pascal)} bindings_instance; internal long instance_idx; - internal {struct_name.replace("LDK","")}(object _dummy, long ptr) : base(ptr) {{ bindings_instance = null; }} - ~{struct_name.replace("LDK","")}() {{ - if (ptr != 0) {{ bindings.{struct_name.replace("LDK","")}_free(ptr); }} + internal {struct_name_pascal.replace("LDK","")}(object _dummy, long ptr) : base(ptr) {{ bindings_instance = null; }} + ~{struct_name_pascal.replace("LDK","")}() {{ + if (ptr != 0) {{ Bindings.{snake_to_pascal(f'{struct_name_pascal.replace("LDK","")}_free')}(ptr); }} }} {java_trait_wrapper} - /** Creates a new instance of {struct_name.replace("LDK","")} from a given implementation */ - public static {struct_name.replace("LDK", "")} new_impl(I{struct_name.replace("LDK", "")} arg{impl_constructor_arguments}) {{ - {struct_name}Holder impl_holder = new {struct_name}Holder(); - {struct_name}Impl impl = new {struct_name}Impl(arg, impl_holder); -{super_constructor_statements} long[] ptr_idx = bindings.{struct_name}_new(impl{bindings_instantiator}); + /** Creates a new instance of {struct_name_pascal.replace("LDK","")} from a given implementation */ + public static {struct_name_pascal.replace("LDK", "")} new_impl(I{struct_name_pascal.replace("LDK", "")} arg{impl_constructor_arguments}) {{ + {struct_name_pascal}Holder impl_holder = new {struct_name_pascal}Holder(); + {struct_name_pascal}Impl impl = new {struct_name_pascal}Impl(arg, impl_holder); +{super_constructor_statements} long[] ptr_idx = Bindings.{snake_to_pascal(f'{struct_name_pascal}_new')}(impl{bindings_instantiator}); - impl_holder.held = new {struct_name.replace("LDK", "")}(null, ptr_idx[0]); + impl_holder.held = new {struct_name_pascal.replace("LDK", "")}(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; impl_holder.held.bindings_instance = impl; {pointer_to_adder} return impl_holder.held; @@ -866,11 +871,11 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field """ - out_typescript_bindings += "\tpublic interface " + struct_name + " {\n" + out_typescript_bindings += "\tpublic interface " + struct_name_pascal + " {\n" java_meths = [] for fn_line in field_function_lines: if fn_line.fn_name != "free" and fn_line.fn_name != "cloned": - out_typescript_bindings += f"\t\t{fn_line.ret_ty_info.java_ty} {fn_line.fn_name}(" + out_typescript_bindings += f"\t\t{fn_line.ret_ty_info.java_ty} {snake_to_pascal(fn_line.fn_name)}(" for idx, arg_conv_info in enumerate(fn_line.args_ty): if idx >= 1: @@ -888,8 +893,8 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field native_fn_args += ", " + var.java_ty + " " + var.arg_name else: native_fn_args += ", long " + var[1] - out_typescript_bindings += self.native_meth_decl(struct_name + "_new", "long") + "_native(" + native_fn_args + ");\n" - out_typescript_bindings += f"\tpublic static long[] {struct_name}_new({struct_name} impl" + out_typescript_bindings += self.native_meth_decl(struct_name + "_new", "long") + "Native(" + native_fn_args + ");\n" + out_typescript_bindings += f"\tpublic static long[] {snake_to_pascal(f'{struct_name}_new')}({struct_name_pascal} impl" for var in flattened_field_var_conversions: if isinstance(var, ConvInfo): out_typescript_bindings += f", {var.java_ty} {var.arg_name}" @@ -911,7 +916,7 @@ def native_c_map_trait(self, struct_name, field_var_conversions, flattened_field js_objs[i] = new WeakReference(impl); }} long[] ret = new long[2]; - ret[0] = {struct_name}_new_native(i{c_call_extra_args}); + ret[0] = {snake_to_pascal(f'{struct_name_pascal}_new_native')}(i{c_call_extra_args}); ret[1] = i; return ret; }} @@ -1113,10 +1118,10 @@ def map_complex_enum(self, struct_name, variant_list, camel_to_snake, enum_doc_c java_hu_class += "public class " + java_hu_type + " : CommonBase {\n" java_hu_class += f"\tprotected {java_hu_type}(object _dummy, long ptr) : base(ptr)" + " { }\n" java_hu_class += "\t~" + java_hu_type + "() {\n" - java_hu_class += "\t\tif (ptr != 0) { bindings." + bindings_type + "_free(ptr); }\n" + java_hu_class += "\t\tif (ptr != 0) { Bindings." + snake_to_pascal(bindings_type + "_free") + "(ptr); }\n" java_hu_class += "\t}\n\n" java_hu_class += f"\tinternal static {java_hu_type} constr_from_ptr(long ptr) {{\n" - java_hu_class += f"\t\tlong raw_ty = bindings." + struct_name + "_ty_from_ptr(ptr);\n" + java_hu_class += f"\t\tlong raw_ty = Bindings." + snake_to_pascal(struct_name + "_ty_from_ptr") + "(ptr);\n" out_c += self.c_fn_ty_pfx + "uint32_t" + self.c_fn_name_define_pfx(struct_name + "_ty_from_ptr", True) + self.ptr_c_ty + " ptr) {\n" out_c += "\t" + struct_name + " *obj = (" + struct_name + "*)untag_ptr(ptr);\n" out_c += "\tswitch(obj->tag) {\n" @@ -1136,11 +1141,13 @@ def map_complex_enum(self, struct_name, variant_list, camel_to_snake, enum_doc_c java_hu_subclasses += "\t\t/**\n\t\t * " + field_docs.replace("\n", "\n\t\t * ") + "\n\t\t */\n" java_hu_subclasses += f"\t\tpublic {field_ty.java_hu_ty} {field_ty.arg_name};\n" if field_ty.to_hu_conv is not None: - hu_conv_body += f"\t\t\t{field_ty.java_ty} {field_ty.arg_name} = bindings.{struct_name}_{var.var_name}_get_{field_ty.arg_name}(ptr);\n" + conv_pascal = snake_to_pascal(f"{struct_name}_{var.var_name}_get_{field_ty.arg_name}") + hu_conv_body += f"\t\t\t{field_ty.java_ty} {field_ty.arg_name} = Bindings.{conv_pascal}(ptr);\n" hu_conv_body += f"\t\t\t" + field_ty.to_hu_conv.replace("\n", "\n\t\t\t") + "\n" hu_conv_body += f"\t\t\tthis." + field_ty.arg_name + " = " + field_ty.to_hu_conv_name + ";\n" else: - hu_conv_body += f"\t\t\tthis.{field_ty.arg_name} = bindings.{struct_name}_{var.var_name}_get_{field_ty.arg_name}(ptr);\n" + conv_pascal = snake_to_pascal(f"{struct_name}_{var.var_name}_get_{field_ty.arg_name}") + hu_conv_body += f"\t\t\tthis.{field_ty.arg_name} = Bindings.{conv_pascal}(ptr);\n" java_hu_subclasses += "\t\tinternal " + java_hu_type + "_" + var.var_name + "(long ptr) : base(null, ptr) {\n" java_hu_subclasses += hu_conv_body java_hu_subclasses += "\t\t}\n\t}\n" @@ -1189,7 +1196,7 @@ def map_opaque_struct(self, struct_name, struct_doc_comment): out_opaque_struct_human += ("\tpublic void Dispose() {\n") else: out_opaque_struct_human += ("\t~" + hu_name + "() {\n") - out_opaque_struct_human += ("\t\tif (ptr != 0) { bindings." + struct_name.replace("LDK","") + "_free(ptr); }\n") + out_opaque_struct_human += ("\t\tif (ptr != 0) { Bindings." + snake_to_pascal(struct_name.replace("LDK","") + "_free") + "(ptr); }\n") out_opaque_struct_human += ("\t}\n\n") return out_opaque_struct_human @@ -1203,10 +1210,10 @@ def map_result(self, struct_name, res_map, err_map): java_hu_struct += "public class " + human_ty + " : CommonBase {\n" java_hu_struct += "\t" + human_ty + "(object _dummy, long ptr) : base(ptr) { }\n" java_hu_struct += "\t~" + human_ty + "() {\n" - java_hu_struct += "\t\tif (ptr != 0) { bindings." + struct_name.replace("LDK","") + "_free(ptr); }\n" + java_hu_struct += "\t\tif (ptr != 0) { Bindings." + snake_to_pascal(struct_name.replace("LDK","") + "_free") + "(ptr); }\n" java_hu_struct += "\t}\n\n" java_hu_struct += "\tinternal static " + human_ty + " constr_from_ptr(long ptr) {\n" - java_hu_struct += "\t\tif (bindings." + struct_name.replace("LDK", "") + "_is_ok(ptr)) {\n" + java_hu_struct += "\t\tif (Bindings." + snake_to_pascal(struct_name.replace("LDK", "") + "_is_ok") + "(ptr)) {\n" java_hu_struct += "\t\t\treturn new " + human_ty + "_OK(null, ptr);\n" java_hu_struct += "\t\t} else {\n" java_hu_struct += "\t\t\treturn new " + human_ty + "_Err(null, ptr);\n" @@ -1221,11 +1228,11 @@ def map_result(self, struct_name, res_map, err_map): if res_map.java_hu_ty == "void": pass elif res_map.to_hu_conv is not None: - java_hu_struct += "\t\t\t" + res_map.java_ty + " res = bindings." + struct_name.replace("LDK", "") + "_get_ok(ptr);\n" + java_hu_struct += "\t\t\t" + res_map.java_ty + " res = Bindings." + snake_to_pascal(struct_name.replace("LDK", "") + "_get_ok") + "(ptr);\n" java_hu_struct += "\t\t\t" + res_map.to_hu_conv.replace("\n", "\n\t\t\t") java_hu_struct += "\n\t\t\tthis.res = " + res_map.to_hu_conv_name + ";\n" else: - java_hu_struct += "\t\t\tthis.res = bindings." + struct_name.replace("LDK", "") + "_get_ok(ptr);\n" + java_hu_struct += "\t\t\tthis.res = Bindings." + snake_to_pascal(struct_name.replace("LDK", "") + "_get_ok") + "(ptr);\n" java_hu_struct += "\t\t}\n" java_hu_struct += "\t}\n\n" @@ -1236,11 +1243,11 @@ def map_result(self, struct_name, res_map, err_map): if err_map.java_hu_ty == "void": pass elif err_map.to_hu_conv is not None: - java_hu_struct += "\t\t\t" + err_map.java_ty + " err = bindings." + struct_name.replace("LDK", "") + "_get_err(ptr);\n" + java_hu_struct += "\t\t\t" + err_map.java_ty + " err = Bindings." + snake_to_pascal(struct_name.replace("LDK", "") + "_get_err") + "(ptr);\n" java_hu_struct += "\t\t\t" + err_map.to_hu_conv.replace("\n", "\n\t\t\t") java_hu_struct += "\n\t\t\tthis.err = " + err_map.to_hu_conv_name + ";\n" else: - java_hu_struct += "\t\t\tthis.err = bindings." + struct_name.replace("LDK", "") + "_get_err(ptr);\n" + java_hu_struct += "\t\t\tthis.err = Bindings." + snake_to_pascal(struct_name.replace("LDK", "") + "_get_err") + "(ptr);\n" java_hu_struct += "\t\t}\n" java_hu_struct += "\t}\n\n" @@ -1363,14 +1370,14 @@ def map_function(self, argument_types, c_call_string, method_name, meth_n, retur out_java_struct += ("\t\t") if return_type_info.java_ty != "void": out_java_struct += (return_type_info.java_ty + " ret = ") - out_java_struct += ("bindings." + method_name + "(") + out_java_struct += ("Bindings." + snake_to_pascal(method_name) + "(") for idx, info in enumerate(argument_types): if idx != 0: out_java_struct += (", ") if idx == 0 and takes_self: out_java_struct += ("this.ptr") elif info.arg_name in default_constructor_args: - out_java_struct += ("bindings." + info.java_hu_ty + "_new(") + out_java_struct += ("Bindings." + snake_to_pascal(info.java_hu_ty + "_new(")) for explode_idx, explode_arg in enumerate(default_constructor_args[info.arg_name]): if explode_idx != 0: out_java_struct += (", ") @@ -1446,16 +1453,18 @@ def cleanup(self): jret = self.function_ptrs[fn_suffix]["ret"][0] jargs = self.function_ptrs[fn_suffix]["args"][0] + fn_suffix_pascal = snake_to_pascal(fn_suffix) + bindings.write(f""" - static {jret} c_callback_{fn_suffix}(int obj_ptr, int fn_id{jargs}) {{ + static {jret} CCallback{fn_suffix_pascal}(int obj_ptr, int fn_id{jargs}) {{ if (obj_ptr >= js_objs.Count) {{ - Console.Error.WriteLine("Got function call on unknown/free'd JS object in {fn_suffix}"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in {fn_suffix_pascal}"); Console.Error.Flush(); Environment.Exit(42); }} object obj = js_objs[obj_ptr].Target; if (obj == null) {{ - Console.Error.WriteLine("Got function call on GC'd JS object in {fn_suffix}"); + Console.Error.WriteLine("Got function call on GC'd JS object in {fn_suffix_pascal}"); Console.Error.Flush(); Environment.Exit(43); }} @@ -1469,7 +1478,7 @@ def cleanup(self): Console.Error.Flush(); Environment.Exit(44); }}\n""") - call = f"(({self.function_ptrs[fn_suffix][f][0]})obj).{self.function_ptrs[fn_suffix][f][1]}({self.function_ptrs[fn_suffix][f][2]});" + call = f"(({self.function_ptrs[fn_suffix][f][0]})obj).{snake_to_pascal(self.function_ptrs[fn_suffix][f][1])}({self.function_ptrs[fn_suffix][f][2]});" if jret != "void": bindings.write("\t\t\t\treturn " + call) else: @@ -1477,18 +1486,18 @@ def cleanup(self): bindings.write("\n") bindings.write(f"""\t\t\tdefault: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in {fn_suffix}"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in {fn_suffix_pascal}"); Console.Error.Flush(); Environment.Exit(45); return{" false" if jret == "bool" else " 0" if jret != "void" else ""}; }} }} - public delegate {jret} {fn_suffix}_callback(int obj_ptr, int fn_id{jargs}); - static {fn_suffix}_callback {fn_suffix}_callback_inst = c_callback_{fn_suffix}; + public delegate {jret} {fn_suffix_pascal}Callback(int obj_ptr, int fn_id{jargs}); + static {fn_suffix_pascal}Callback {fn_suffix_pascal}CallbackInst = CCallback{fn_suffix_pascal}; """) - bindings.write(self.native_meth_decl(f"register_{fn_suffix}_invoker", "int") + f"({fn_suffix}_callback callee);\n") + bindings.write(self.native_meth_decl(f"register_{fn_suffix}_invoker", "int") + f"({fn_suffix_pascal}Callback callee);\n") # Easiest way to get a static run is just define a variable, even if we dont care - bindings.write(f"\tstatic int _run_{fn_suffix}_registration = register_{fn_suffix}_invoker({fn_suffix}_callback_inst);") + bindings.write(f"\tstatic int _run_{fn_suffix}_registration = Register{fn_suffix_pascal}Invoker({fn_suffix_pascal}CallbackInst);") bindings.write(""" } From f0625cd38f804b9f2db0d957fa680195fee6bcb3 Mon Sep 17 00:00:00 2001 From: webwarrior Date: Tue, 19 Mar 2024 12:30:46 +0100 Subject: [PATCH 4/4] Re-generate C# bindings using updated script --- c_sharp/src/org/ldk/impl/bindings.cs | 14226 ++++++++-------- c_sharp/src/org/ldk/structs/APIError.cs | 46 +- c_sharp/src/org/ldk/structs/AcceptChannel.cs | 96 +- .../src/org/ldk/structs/AcceptChannelV2.cs | 106 +- c_sharp/src/org/ldk/structs/Amount.cs | 6 +- .../src/org/ldk/structs/AnchorDescriptor.cs | 32 +- .../org/ldk/structs/AnnouncementSignatures.cs | 40 +- .../org/ldk/structs/BackgroundProcessor.cs | 8 +- c_sharp/src/org/ldk/structs/Balance.cs | 60 +- c_sharp/src/org/ldk/structs/Bech32Error.cs | 12 +- c_sharp/src/org/ldk/structs/BestBlock.cs | 18 +- .../src/org/ldk/structs/BigEndianScalar.cs | 8 +- c_sharp/src/org/ldk/structs/BigSize.cs | 22 +- c_sharp/src/org/ldk/structs/BlindedForward.cs | 28 +- c_sharp/src/org/ldk/structs/BlindedHop.cs | 30 +- .../src/org/ldk/structs/BlindedHopFeatures.cs | 30 +- c_sharp/src/org/ldk/structs/BlindedPath.cs | 44 +- .../org/ldk/structs/BlindedPathCandidate.cs | 6 +- c_sharp/src/org/ldk/structs/BlindedPayInfo.cs | 42 +- c_sharp/src/org/ldk/structs/BlindedTail.cs | 42 +- c_sharp/src/org/ldk/structs/Bolt11Invoice.cs | 94 +- .../org/ldk/structs/Bolt11InvoiceFeatures.cs | 62 +- .../org/ldk/structs/Bolt11InvoiceSignature.cs | 10 +- .../src/org/ldk/structs/Bolt11ParseError.cs | 62 +- c_sharp/src/org/ldk/structs/Bolt12Invoice.cs | 80 +- .../org/ldk/structs/Bolt12InvoiceFeatures.cs | 38 +- .../src/org/ldk/structs/Bolt12ParseError.cs | 6 +- .../org/ldk/structs/BroadcasterInterface.cs | 28 +- .../ldk/structs/BuiltCommitmentTransaction.cs | 38 +- .../org/ldk/structs/BumpTransactionEvent.cs | 52 +- .../structs/BumpTransactionEventHandler.cs | 6 +- .../src/org/ldk/structs/CandidateRouteHop.cs | 40 +- c_sharp/src/org/ldk/structs/ChainMonitor.cs | 44 +- .../src/org/ldk/structs/ChainParameters.cs | 16 +- .../org/ldk/structs/ChannelAnnouncement.cs | 46 +- c_sharp/src/org/ldk/structs/ChannelConfig.cs | 44 +- .../org/ldk/structs/ChannelConfigUpdate.cs | 26 +- .../org/ldk/structs/ChannelCounterparty.cs | 40 +- .../structs/ChannelDerivationParameters.cs | 30 +- c_sharp/src/org/ldk/structs/ChannelDetails.cs | 128 +- .../src/org/ldk/structs/ChannelFeatures.cs | 30 +- .../org/ldk/structs/ChannelHandshakeConfig.cs | 50 +- .../org/ldk/structs/ChannelHandshakeLimits.cs | 50 +- c_sharp/src/org/ldk/structs/ChannelInfo.cs | 44 +- c_sharp/src/org/ldk/structs/ChannelManager.cs | 148 +- .../org/ldk/structs/ChannelManagerReadArgs.cs | 40 +- .../org/ldk/structs/ChannelMessageHandler.cs | 240 +- c_sharp/src/org/ldk/structs/ChannelMonitor.cs | 118 +- .../org/ldk/structs/ChannelMonitorUpdate.cs | 18 +- .../src/org/ldk/structs/ChannelPublicKeys.cs | 42 +- c_sharp/src/org/ldk/structs/ChannelReady.cs | 34 +- .../src/org/ldk/structs/ChannelReestablish.cs | 48 +- c_sharp/src/org/ldk/structs/ChannelSigner.cs | 64 +- .../structs/ChannelTransactionParameters.cs | 48 +- .../org/ldk/structs/ChannelTypeFeatures.cs | 78 +- c_sharp/src/org/ldk/structs/ChannelUpdate.cs | 28 +- .../src/org/ldk/structs/ChannelUpdateInfo.cs | 44 +- c_sharp/src/org/ldk/structs/ChannelUsage.cs | 20 +- c_sharp/src/org/ldk/structs/ClaimedHTLC.cs | 38 +- c_sharp/src/org/ldk/structs/ClosingSigned.cs | 38 +- .../org/ldk/structs/ClosingSignedFeeRange.cs | 26 +- .../src/org/ldk/structs/ClosingTransaction.cs | 28 +- c_sharp/src/org/ldk/structs/ClosureReason.cs | 40 +- c_sharp/src/org/ldk/structs/CoinSelection.cs | 22 +- .../org/ldk/structs/CoinSelectionSource.cs | 40 +- .../src/org/ldk/structs/CommitmentSigned.cs | 42 +- .../org/ldk/structs/CommitmentTransaction.cs | 28 +- .../src/org/ldk/structs/CommitmentUpdate.cs | 60 +- c_sharp/src/org/ldk/structs/Confirm.cs | 52 +- ...ounterpartyChannelTransactionParameters.cs | 26 +- .../structs/CounterpartyCommitmentSecrets.cs | 22 +- .../ldk/structs/CounterpartyForwardingInfo.cs | 26 +- .../org/ldk/structs/CustomMessageHandler.cs | 44 +- .../org/ldk/structs/CustomMessageReader.cs | 22 +- .../ldk/structs/CustomOnionMessageHandler.cs | 38 +- c_sharp/src/org/ldk/structs/DecodeError.cs | 28 +- .../org/ldk/structs/DefaultMessageRouter.cs | 6 +- c_sharp/src/org/ldk/structs/DefaultRouter.cs | 8 +- .../ldk/structs/DelayedPaymentBasepoint.cs | 28 +- .../src/org/ldk/structs/DelayedPaymentKey.cs | 30 +- .../structs/DelayedPaymentOutputDescriptor.cs | 50 +- c_sharp/src/org/ldk/structs/Description.cs | 18 +- c_sharp/src/org/ldk/structs/Destination.cs | 18 +- .../org/ldk/structs/DirectedChannelInfo.cs | 10 +- .../DirectedChannelTransactionParameters.cs | 14 +- .../src/org/ldk/structs/EcdsaChannelSigner.cs | 84 +- .../src/org/ldk/structs/EffectiveCapacity.cs | 32 +- c_sharp/src/org/ldk/structs/EntropySource.cs | 24 +- c_sharp/src/org/ldk/structs/ErroneousField.cs | 16 +- c_sharp/src/org/ldk/structs/ErrorAction.cs | 36 +- c_sharp/src/org/ldk/structs/ErrorMessage.cs | 30 +- .../org/ldk/structs/ErroringMessageHandler.cs | 8 +- c_sharp/src/org/ldk/structs/Event.cs | 308 +- c_sharp/src/org/ldk/structs/EventHandler.cs | 20 +- c_sharp/src/org/ldk/structs/EventsProvider.cs | 20 +- c_sharp/src/org/ldk/structs/ExpandedKey.cs | 4 +- c_sharp/src/org/ldk/structs/ExpiryTime.cs | 18 +- c_sharp/src/org/ldk/structs/FailureCode.cs | 18 +- c_sharp/src/org/ldk/structs/Fallback.cs | 32 +- c_sharp/src/org/ldk/structs/FeeEstimator.cs | 20 +- .../src/org/ldk/structs/FilesystemStore.cs | 10 +- c_sharp/src/org/ldk/structs/Filter.cs | 28 +- .../src/org/ldk/structs/FinalOnionHopData.cs | 24 +- .../src/org/ldk/structs/FirstHopCandidate.cs | 6 +- .../src/org/ldk/structs/FixedPenaltyScorer.cs | 18 +- c_sharp/src/org/ldk/structs/ForwardNode.cs | 22 +- c_sharp/src/org/ldk/structs/ForwardTlvs.cs | 28 +- c_sharp/src/org/ldk/structs/FundingCreated.cs | 40 +- c_sharp/src/org/ldk/structs/FundingSigned.cs | 30 +- c_sharp/src/org/ldk/structs/Future.cs | 12 +- c_sharp/src/org/ldk/structs/FutureCallback.cs | 20 +- c_sharp/src/org/ldk/structs/GossipSync.cs | 14 +- .../org/ldk/structs/GossipTimestampFilter.cs | 32 +- c_sharp/src/org/ldk/structs/GraphSyncError.cs | 16 +- c_sharp/src/org/ldk/structs/HTLCDescriptor.cs | 64 +- .../src/org/ldk/structs/HTLCDestination.cs | 38 +- .../org/ldk/structs/HTLCOutputInCommitment.cs | 38 +- c_sharp/src/org/ldk/structs/HTLCUpdate.cs | 14 +- .../structs/HolderCommitmentTransaction.cs | 32 +- c_sharp/src/org/ldk/structs/Hostname.cs | 18 +- c_sharp/src/org/ldk/structs/HtlcBasepoint.cs | 28 +- c_sharp/src/org/ldk/structs/HtlcKey.cs | 30 +- .../org/ldk/structs/IgnoringMessageHandler.cs | 20 +- c_sharp/src/org/ldk/structs/InFlightHtlcs.cs | 20 +- c_sharp/src/org/ldk/structs/InMemorySigner.cs | 76 +- c_sharp/src/org/ldk/structs/InboundHTLCErr.cs | 20 +- c_sharp/src/org/ldk/structs/Init.cs | 30 +- c_sharp/src/org/ldk/structs/InitFeatures.cs | 172 +- c_sharp/src/org/ldk/structs/Input.cs | 24 +- .../org/ldk/structs/InvalidShutdownScript.cs | 14 +- c_sharp/src/org/ldk/structs/InvoiceError.cs | 24 +- c_sharp/src/org/ldk/structs/InvoiceRequest.cs | 72 +- .../org/ldk/structs/InvoiceRequestFeatures.cs | 24 +- c_sharp/src/org/ldk/structs/KVStore.cs | 56 +- c_sharp/src/org/ldk/structs/KeysManager.cs | 20 +- c_sharp/src/org/ldk/structs/LightningError.cs | 18 +- c_sharp/src/org/ldk/structs/Listen.cs | 40 +- c_sharp/src/org/ldk/structs/LockableScore.cs | 24 +- .../org/ldk/structs/LockedChannelMonitor.cs | 2 +- c_sharp/src/org/ldk/structs/Logger.cs | 18 +- .../org/ldk/structs/MaxDustHTLCExposure.cs | 24 +- c_sharp/src/org/ldk/structs/MessageHandler.cs | 20 +- c_sharp/src/org/ldk/structs/MessageRouter.cs | 44 +- .../src/org/ldk/structs/MessageSendEvent.cs | 288 +- .../ldk/structs/MessageSendEventsProvider.cs | 28 +- .../ldk/structs/MinFinalCltvExpiryDelta.cs | 16 +- c_sharp/src/org/ldk/structs/MonitorEvent.cs | 28 +- .../src/org/ldk/structs/MonitorUpdateId.cs | 10 +- .../ldk/structs/MonitorUpdatingPersister.cs | 12 +- .../ldk/structs/MultiThreadedLockableScore.cs | 12 +- .../ldk/structs/MultiThreadedScoreLockRead.cs | 4 +- .../structs/MultiThreadedScoreLockWrite.cs | 8 +- c_sharp/src/org/ldk/structs/NetworkGraph.cs | 48 +- c_sharp/src/org/ldk/structs/NetworkUpdate.cs | 32 +- c_sharp/src/org/ldk/structs/NodeAlias.cs | 24 +- .../src/org/ldk/structs/NodeAnnouncement.cs | 28 +- .../org/ldk/structs/NodeAnnouncementInfo.cs | 46 +- c_sharp/src/org/ldk/structs/NodeFeatures.cs | 174 +- c_sharp/src/org/ldk/structs/NodeId.cs | 26 +- c_sharp/src/org/ldk/structs/NodeInfo.cs | 26 +- c_sharp/src/org/ldk/structs/NodeSigner.cs | 58 +- c_sharp/src/org/ldk/structs/Offer.cs | 58 +- c_sharp/src/org/ldk/structs/OfferFeatures.cs | 24 +- c_sharp/src/org/ldk/structs/OffersMessage.cs | 28 +- .../org/ldk/structs/OffersMessageHandler.cs | 32 +- .../ldk/structs/OneHopBlindedPathCandidate.cs | 6 +- c_sharp/src/org/ldk/structs/OnionMessage.cs | 28 +- .../org/ldk/structs/OnionMessageContents.cs | 40 +- .../org/ldk/structs/OnionMessageHandler.cs | 66 +- .../src/org/ldk/structs/OnionMessagePath.cs | 32 +- c_sharp/src/org/ldk/structs/OnionMessenger.cs | 8 +- c_sharp/src/org/ldk/structs/OnionPacket.cs | 30 +- c_sharp/src/org/ldk/structs/OpenChannel.cs | 114 +- c_sharp/src/org/ldk/structs/OpenChannelV2.cs | 124 +- .../src/org/ldk/structs/Option_APIErrorZ.cs | 14 +- .../ldk/structs/Option_BigEndianScalarZ.cs | 14 +- ...on_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.cs | 10 +- .../ldk/structs/Option_C2Tuple_u64u16ZZ.cs | 14 +- .../ldk/structs/Option_C2Tuple_u64u64ZZ.cs | 14 +- ...nnouncementChannelUpdateChannelUpdateZZ.cs | 14 +- .../structs/Option_CVec_SocketAddressZZ.cs | 20 +- .../structs/Option_CVec_ThirtyTwoBytesZZ.cs | 22 +- .../src/org/ldk/structs/Option_CVec_u8ZZ.cs | 16 +- .../structs/Option_ChannelShutdownStateZ.cs | 14 +- .../org/ldk/structs/Option_ClosureReasonZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_EventZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_FilterZ.cs | 10 +- .../src/org/ldk/structs/Option_HTLCClaimZ.cs | 10 +- .../ldk/structs/Option_HTLCDestinationZ.cs | 14 +- .../structs/Option_MaxDustHTLCExposureZ.cs | 14 +- .../org/ldk/structs/Option_MonitorEventZ.cs | 14 +- .../org/ldk/structs/Option_NetworkUpdateZ.cs | 14 +- .../org/ldk/structs/Option_OffersMessageZ.cs | 14 +- .../structs/Option_OnionMessageContentsZ.cs | 14 +- .../org/ldk/structs/Option_PathFailureZ.cs | 14 +- .../structs/Option_PaymentFailureReasonZ.cs | 14 +- .../src/org/ldk/structs/Option_SecretKeyZ.cs | 16 +- .../org/ldk/structs/Option_SocketAddressZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_StrZ.cs | 16 +- .../org/ldk/structs/Option_ThirtyTwoBytesZ.cs | 16 +- c_sharp/src/org/ldk/structs/Option_TxOutZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_TypeZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_U128Z.cs | 14 +- .../src/org/ldk/structs/Option_UtxoLookupZ.cs | 10 +- .../org/ldk/structs/Option_WriteableScoreZ.cs | 10 +- c_sharp/src/org/ldk/structs/Option_boolZ.cs | 14 +- c_sharp/src/org/ldk/structs/Option_f64Z.cs | 14 +- c_sharp/src/org/ldk/structs/Option_i64Z.cs | 14 +- c_sharp/src/org/ldk/structs/Option_u16Z.cs | 14 +- c_sharp/src/org/ldk/structs/Option_u32Z.cs | 14 +- c_sharp/src/org/ldk/structs/Option_u64Z.cs | 14 +- c_sharp/src/org/ldk/structs/Option_usizeZ.cs | 14 +- c_sharp/src/org/ldk/structs/OutPoint.cs | 32 +- c_sharp/src/org/ldk/structs/P2PGossipSync.cs | 10 +- c_sharp/src/org/ldk/structs/Packet.cs | 38 +- .../org/ldk/structs/ParseOrSemanticError.cs | 22 +- .../ldk/structs/ParsedOnionMessageContents.cs | 22 +- c_sharp/src/org/ldk/structs/Path.cs | 32 +- c_sharp/src/org/ldk/structs/PathFailure.cs | 22 +- c_sharp/src/org/ldk/structs/Payee.cs | 42 +- c_sharp/src/org/ldk/structs/PayeePubKey.cs | 18 +- .../src/org/ldk/structs/PaymentConstraints.cs | 22 +- .../src/org/ldk/structs/PaymentParameters.cs | 58 +- c_sharp/src/org/ldk/structs/PaymentPurpose.cs | 32 +- c_sharp/src/org/ldk/structs/PaymentRelay.cs | 26 +- .../src/org/ldk/structs/PaymentSendFailure.cs | 52 +- c_sharp/src/org/ldk/structs/PeeledOnion.cs | 26 +- .../src/org/ldk/structs/PeerHandleError.cs | 8 +- c_sharp/src/org/ldk/structs/PeerManager.cs | 32 +- .../src/org/ldk/structs/PendingHTLCInfo.cs | 46 +- .../src/org/ldk/structs/PendingHTLCRouting.cs | 64 +- c_sharp/src/org/ldk/structs/Persist.cs | 24 +- c_sharp/src/org/ldk/structs/Persister.cs | 28 +- .../src/org/ldk/structs/PhantomKeysManager.cs | 22 +- .../src/org/ldk/structs/PhantomRouteHints.cs | 34 +- c_sharp/src/org/ldk/structs/Ping.cs | 26 +- c_sharp/src/org/ldk/structs/Pong.cs | 22 +- .../src/org/ldk/structs/PositiveTimestamp.cs | 22 +- .../src/org/ldk/structs/PrintableString.cs | 10 +- .../org/ldk/structs/PrivateHopCandidate.cs | 6 +- c_sharp/src/org/ldk/structs/PrivateRoute.cs | 14 +- .../org/ldk/structs/ProbabilisticScorer.cs | 24 +- .../ProbabilisticScoringDecayParameters.cs | 18 +- .../ProbabilisticScoringFeeParameters.cs | 56 +- .../src/org/ldk/structs/ProbeSendFailure.cs | 16 +- .../src/org/ldk/structs/PublicHopCandidate.cs | 10 +- c_sharp/src/org/ldk/structs/Quantity.cs | 6 +- .../src/org/ldk/structs/QueryChannelRange.cs | 34 +- .../org/ldk/structs/QueryShortChannelIds.cs | 30 +- .../src/org/ldk/structs/RapidGossipSync.cs | 12 +- .../src/org/ldk/structs/RawBolt11Invoice.cs | 48 +- c_sharp/src/org/ldk/structs/RawDataPart.cs | 14 +- .../org/ldk/structs/ReadOnlyNetworkGraph.cs | 20 +- c_sharp/src/org/ldk/structs/ReceiveTlvs.cs | 22 +- .../org/ldk/structs/RecentPaymentDetails.cs | 44 +- .../org/ldk/structs/RecipientOnionFields.cs | 36 +- c_sharp/src/org/ldk/structs/Record.cs | 44 +- c_sharp/src/org/ldk/structs/Refund.cs | 50 +- .../src/org/ldk/structs/ReplyChannelRange.cs | 42 +- .../ldk/structs/ReplyShortChannelIdsEnd.cs | 28 +- .../Result_AcceptChannelDecodeErrorZ.cs | 18 +- .../Result_AcceptChannelV2DecodeErrorZ.cs | 18 +- ...sult_AnnouncementSignaturesDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_BigSizeDecodeErrorZ.cs | 18 +- .../Result_BlindedFailureDecodeErrorZ.cs | 18 +- .../Result_BlindedForwardDecodeErrorZ.cs | 18 +- .../structs/Result_BlindedHopDecodeErrorZ.cs | 18 +- .../Result_BlindedHopFeaturesDecodeErrorZ.cs | 18 +- .../structs/Result_BlindedPathDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_BlindedPathNoneZ.cs | 16 +- .../Result_BlindedPayInfoDecodeErrorZ.cs | 18 +- .../structs/Result_BlindedTailDecodeErrorZ.cs | 18 +- ...esult_Bolt11InvoiceBolt11SemanticErrorZ.cs | 18 +- ...esult_Bolt11InvoiceFeaturesDecodeErrorZ.cs | 18 +- ...sult_Bolt11InvoiceParseOrSemanticErrorZ.cs | 18 +- ...esult_Bolt11InvoiceSignOrCreationErrorZ.cs | 18 +- ...esult_Bolt12InvoiceFeaturesDecodeErrorZ.cs | 18 +- ..._BuiltCommitmentTransactionDecodeErrorZ.cs | 18 +- ...C2Tuple_BlindedPayInfoBlindedPathZNoneZ.cs | 16 +- .../Result_C2Tuple_CVec_u8Zu64ZNoneZ.cs | 16 +- ...CDSASignatureCVec_ECDSASignatureZZNoneZ.cs | 16 +- ...irtyTwoBytesChannelManagerZDecodeErrorZ.cs | 14 +- ...irtyTwoBytesChannelMonitorZDecodeErrorZ.cs | 18 +- ...e_ThirtyTwoBytesChannelMonitorZIOErrorZ.cs | 18 +- ...uple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.cs | 16 +- ...BytesThirtyTwoBytesZPaymentSendFailureZ.cs | 18 +- ...COption_CVec_SocketAddressZZZSendErrorZ.cs | 14 +- ...cipientOnionFieldsRouteParametersZNoneZ.cs | 16 +- .../Result_COption_APIErrorZDecodeErrorZ.cs | 18 +- ...sult_COption_ClosureReasonZDecodeErrorZ.cs | 18 +- .../Result_COption_EventZDecodeErrorZ.cs | 18 +- ...lt_COption_HTLCDestinationZDecodeErrorZ.cs | 18 +- ...esult_COption_MonitorEventZDecodeErrorZ.cs | 18 +- ...sult_COption_NetworkUpdateZDecodeErrorZ.cs | 18 +- ...ption_OnionMessageContentsZDecodeErrorZ.cs | 18 +- ...Result_COption_PathFailureZDecodeErrorZ.cs | 18 +- .../Result_COption_TypeZDecodeErrorZ.cs | 18 +- .../structs/Result_CVec_BlindedPathZNoneZ.cs | 22 +- ...2Tuple_BlindedPayInfoBlindedPathZZNoneZ.cs | 22 +- ..._ThirtyTwoBytesChannelMonitorZZIOErrorZ.cs | 24 +- ...oBytesThirtyTwoBytesZZProbeSendFailureZ.cs | 24 +- .../Result_CVec_ECDSASignatureZNoneZ.cs | 24 +- .../ldk/structs/Result_CVec_StrZIOErrorZ.cs | 26 +- .../org/ldk/structs/Result_CVec_UtxoZNoneZ.cs | 22 +- .../ldk/structs/Result_CVec_u8ZIOErrorZ.cs | 20 +- .../org/ldk/structs/Result_CVec_u8ZNoneZ.cs | 18 +- .../Result_CVec_u8ZPeerHandleErrorZ.cs | 20 +- .../Result_ChannelAnnouncementDecodeErrorZ.cs | 18 +- .../Result_ChannelConfigDecodeErrorZ.cs | 18 +- .../Result_ChannelCounterpartyDecodeErrorZ.cs | 18 +- ...ChannelDerivationParametersDecodeErrorZ.cs | 18 +- .../Result_ChannelDetailsDecodeErrorZ.cs | 18 +- .../Result_ChannelFeaturesDecodeErrorZ.cs | 18 +- .../structs/Result_ChannelInfoDecodeErrorZ.cs | 18 +- ...Result_ChannelMonitorUpdateDecodeErrorZ.cs | 18 +- .../Result_ChannelMonitorUpdateStatusNoneZ.cs | 16 +- .../Result_ChannelPublicKeysDecodeErrorZ.cs | 18 +- .../Result_ChannelReadyDecodeErrorZ.cs | 18 +- .../Result_ChannelReestablishDecodeErrorZ.cs | 18 +- ...Result_ChannelShutdownStateDecodeErrorZ.cs | 18 +- ...hannelTransactionParametersDecodeErrorZ.cs | 18 +- .../Result_ChannelTypeFeaturesDecodeErrorZ.cs | 18 +- .../Result_ChannelUpdateDecodeErrorZ.cs | 18 +- .../Result_ChannelUpdateInfoDecodeErrorZ.cs | 18 +- .../structs/Result_ClaimedHTLCDecodeErrorZ.cs | 18 +- .../Result_ClosingSignedDecodeErrorZ.cs | 18 +- ...esult_ClosingSignedFeeRangeDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_CoinSelectionNoneZ.cs | 16 +- .../Result_CommitmentSignedDecodeErrorZ.cs | 18 +- ...esult_CommitmentTransactionDecodeErrorZ.cs | 18 +- ...hannelTransactionParametersDecodeErrorZ.cs | 18 +- ...unterpartyCommitmentSecretsDecodeErrorZ.cs | 18 +- ..._CounterpartyForwardingInfoDecodeErrorZ.cs | 18 +- ...ult_DelayedPaymentBasepointDecodeErrorZ.cs | 18 +- .../Result_DelayedPaymentKeyDecodeErrorZ.cs | 18 +- ...ayedPaymentOutputDescriptorDecodeErrorZ.cs | 18 +- .../Result_DescriptionCreationErrorZ.cs | 18 +- .../ldk/structs/Result_ECDSASignatureNoneZ.cs | 18 +- .../Result_ErrorMessageDecodeErrorZ.cs | 18 +- .../Result_FinalOnionHopDataDecodeErrorZ.cs | 18 +- .../Result_FixedPenaltyScorerDecodeErrorZ.cs | 18 +- .../Result_FundingCreatedDecodeErrorZ.cs | 18 +- .../Result_FundingSignedDecodeErrorZ.cs | 18 +- ...esult_GossipTimestampFilterDecodeErrorZ.cs | 18 +- .../Result_HTLCDescriptorDecodeErrorZ.cs | 18 +- ...sult_HTLCOutputInCommitmentDecodeErrorZ.cs | 18 +- .../structs/Result_HTLCUpdateDecodeErrorZ.cs | 18 +- ...HolderCommitmentTransactionDecodeErrorZ.cs | 18 +- .../structs/Result_HostnameDecodeErrorZ.cs | 18 +- .../Result_HtlcBasepointDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_HtlcKeyDecodeErrorZ.cs | 18 +- .../Result_InFlightHtlcsDecodeErrorZ.cs | 18 +- .../Result_InMemorySignerDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_InitDecodeErrorZ.cs | 18 +- .../Result_InitFeaturesDecodeErrorZ.cs | 18 +- .../Result_InvoiceErrorDecodeErrorZ.cs | 18 +- .../Result_LockedChannelMonitorNoneZ.cs | 12 +- .../Result_MaxDustHTLCExposureDecodeErrorZ.cs | 18 +- .../Result_NetworkGraphDecodeErrorZ.cs | 14 +- .../structs/Result_NodeAliasDecodeErrorZ.cs | 18 +- .../Result_NodeAnnouncementDecodeErrorZ.cs | 18 +- ...Result_NodeAnnouncementInfoDecodeErrorZ.cs | 18 +- .../Result_NodeFeaturesDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_NodeIdDecodeErrorZ.cs | 18 +- .../structs/Result_NodeInfoDecodeErrorZ.cs | 18 +- .../org/ldk/structs/Result_NoneAPIErrorZ.cs | 16 +- .../Result_NoneBolt11SemanticErrorZ.cs | 16 +- .../Result_NoneBolt12SemanticErrorZ.cs | 16 +- .../org/ldk/structs/Result_NoneIOErrorZ.cs | 16 +- .../ldk/structs/Result_NoneLightningErrorZ.cs | 16 +- .../src/org/ldk/structs/Result_NoneNoneZ.cs | 14 +- .../structs/Result_NonePaymentSendFailureZ.cs | 16 +- .../structs/Result_NonePeerHandleErrorZ.cs | 16 +- .../Result_NoneRetryableSendFailureZ.cs | 16 +- .../structs/Result_OfferBolt12ParseErrorZ.cs | 18 +- .../Result_OffersMessageDecodeErrorZ.cs | 18 +- .../Result_OnionMessageDecodeErrorZ.cs | 18 +- .../structs/Result_OnionMessagePathNoneZ.cs | 16 +- .../structs/Result_OnionPacketDecodeErrorZ.cs | 18 +- .../structs/Result_OpenChannelDecodeErrorZ.cs | 18 +- .../Result_OpenChannelV2DecodeErrorZ.cs | 18 +- .../structs/Result_OutPointDecodeErrorZ.cs | 18 +- .../Result_PayeePubKeySecp256k1ErrorZ.cs | 18 +- .../Result_PaymentConstraintsDecodeErrorZ.cs | 18 +- ...Result_PaymentFailureReasonDecodeErrorZ.cs | 18 +- .../Result_PaymentParametersDecodeErrorZ.cs | 18 +- .../Result_PaymentPurposeDecodeErrorZ.cs | 18 +- .../Result_PaymentRelayDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_PeeledOnionNoneZ.cs | 12 +- .../Result_PendingHTLCInfoDecodeErrorZ.cs | 18 +- .../Result_PendingHTLCInfoInboundHTLCErrZ.cs | 14 +- .../Result_PendingHTLCRoutingDecodeErrorZ.cs | 18 +- .../Result_PhantomRouteHintsDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_PingDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_PongDecodeErrorZ.cs | 18 +- .../Result_PositiveTimestampCreationErrorZ.cs | 18 +- .../Result_PrivateRouteCreationErrorZ.cs | 18 +- .../Result_ProbabilisticScorerDecodeErrorZ.cs | 14 +- .../org/ldk/structs/Result_PublicKeyNoneZ.cs | 18 +- .../Result_PublicKeySecp256k1ErrorZ.cs | 20 +- .../Result_QueryChannelRangeDecodeErrorZ.cs | 18 +- ...Result_QueryShortChannelIdsDecodeErrorZ.cs | 18 +- ...Result_RecipientOnionFieldsDecodeErrorZ.cs | 18 +- .../Result_RecipientOnionFieldsNoneZ.cs | 16 +- .../Result_RecoverableSignatureNoneZ.cs | 18 +- .../structs/Result_RefundBolt12ParseErrorZ.cs | 18 +- .../Result_ReplyChannelRangeDecodeErrorZ.cs | 18 +- ...ult_ReplyShortChannelIdsEndDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_RetryDecodeErrorZ.cs | 18 +- .../Result_RevocationBasepointDecodeErrorZ.cs | 18 +- .../Result_RevocationKeyDecodeErrorZ.cs | 18 +- .../Result_RevokeAndACKDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_RouteDecodeErrorZ.cs | 18 +- .../structs/Result_RouteHintDecodeErrorZ.cs | 18 +- .../Result_RouteHintHopDecodeErrorZ.cs | 18 +- .../structs/Result_RouteHopDecodeErrorZ.cs | 18 +- .../structs/Result_RouteLightningErrorZ.cs | 18 +- .../Result_RouteParametersDecodeErrorZ.cs | 18 +- .../structs/Result_RoutingFeesDecodeErrorZ.cs | 18 +- .../structs/Result_SchnorrSignatureNoneZ.cs | 18 +- .../structs/Result_SendSuccessSendErrorZ.cs | 14 +- .../structs/Result_ShutdownDecodeErrorZ.cs | 18 +- .../Result_ShutdownScriptDecodeErrorZ.cs | 18 +- ...lt_ShutdownScriptInvalidShutdownScriptZ.cs | 18 +- .../ldk/structs/Result_ShutdownScriptNoneZ.cs | 16 +- .../Result_SiPrefixBolt11ParseErrorZ.cs | 18 +- ...SignedRawBolt11InvoiceBolt11ParseErrorZ.cs | 18 +- .../Result_SocketAddressDecodeErrorZ.cs | 18 +- ...t_SocketAddressSocketAddressParseErrorZ.cs | 18 +- ...t_SpendableOutputDescriptorDecodeErrorZ.cs | 18 +- .../structs/Result_SpliceAckDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_SpliceDecodeErrorZ.cs | 18 +- .../Result_SpliceLockedDecodeErrorZ.cs | 18 +- ...aticPaymentOutputDescriptorDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_StfuDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_StrSecp256k1ErrorZ.cs | 20 +- .../structs/Result_ThirtyTwoBytesAPIErrorZ.cs | 20 +- .../ldk/structs/Result_ThirtyTwoBytesNoneZ.cs | 18 +- ...esult_ThirtyTwoBytesPaymentSendFailureZ.cs | 20 +- ...ult_ThirtyTwoBytesRetryableSendFailureZ.cs | 20 +- .../ldk/structs/Result_TransactionNoneZ.cs | 18 +- ...lt_TransactionU16LenLimitedDecodeErrorZ.cs | 18 +- .../Result_TransactionU16LenLimitedNoneZ.cs | 16 +- .../Result_TrustedClosingTransactionNoneZ.cs | 12 +- ...esult_TrustedCommitmentTransactionNoneZ.cs | 12 +- .../ldk/structs/Result_TxAbortDecodeErrorZ.cs | 18 +- .../structs/Result_TxAckRbfDecodeErrorZ.cs | 18 +- .../structs/Result_TxAddInputDecodeErrorZ.cs | 18 +- .../structs/Result_TxAddOutputDecodeErrorZ.cs | 18 +- .../structs/Result_TxCompleteDecodeErrorZ.cs | 18 +- .../Result_TxCreationKeysDecodeErrorZ.cs | 18 +- .../structs/Result_TxInitRbfDecodeErrorZ.cs | 18 +- .../structs/Result_TxOutUtxoLookupErrorZ.cs | 18 +- .../Result_TxRemoveInputDecodeErrorZ.cs | 18 +- .../Result_TxRemoveOutputDecodeErrorZ.cs | 18 +- .../Result_TxSignaturesDecodeErrorZ.cs | 18 +- ...UnsignedChannelAnnouncementDecodeErrorZ.cs | 18 +- ...esult_UnsignedChannelUpdateDecodeErrorZ.cs | 18 +- ...lt_UnsignedNodeAnnouncementDecodeErrorZ.cs | 18 +- .../Result_UntrustedStringDecodeErrorZ.cs | 18 +- .../Result_UpdateAddHTLCDecodeErrorZ.cs | 18 +- .../Result_UpdateFailHTLCDecodeErrorZ.cs | 18 +- ...ult_UpdateFailMalformedHTLCDecodeErrorZ.cs | 18 +- .../structs/Result_UpdateFeeDecodeErrorZ.cs | 18 +- .../Result_UpdateFulfillHTLCDecodeErrorZ.cs | 18 +- .../Result_VerifiedInvoiceRequestNoneZ.cs | 16 +- .../Result_WarningMessageDecodeErrorZ.cs | 18 +- .../org/ldk/structs/Result_WitnessNoneZ.cs | 18 +- ...WriteableEcdsaChannelSignerDecodeErrorZ.cs | 18 +- .../ldk/structs/Result_boolLightningErrorZ.cs | 18 +- .../structs/Result_boolPeerHandleErrorZ.cs | 18 +- .../ldk/structs/Result_u32GraphSyncErrorZ.cs | 14 +- c_sharp/src/org/ldk/structs/Retry.cs | 26 +- .../org/ldk/structs/RevocationBasepoint.cs | 28 +- c_sharp/src/org/ldk/structs/RevocationKey.cs | 30 +- c_sharp/src/org/ldk/structs/RevokeAndACK.cs | 36 +- c_sharp/src/org/ldk/structs/Route.cs | 36 +- c_sharp/src/org/ldk/structs/RouteHint.cs | 28 +- c_sharp/src/org/ldk/structs/RouteHintHop.cs | 44 +- c_sharp/src/org/ldk/structs/RouteHop.cs | 48 +- .../src/org/ldk/structs/RouteParameters.cs | 32 +- c_sharp/src/org/ldk/structs/Router.cs | 56 +- c_sharp/src/org/ldk/structs/RoutingFees.cs | 26 +- .../org/ldk/structs/RoutingMessageHandler.cs | 80 +- c_sharp/src/org/ldk/structs/Score.cs | 24 +- c_sharp/src/org/ldk/structs/ScoreLookUp.cs | 20 +- c_sharp/src/org/ldk/structs/ScoreUpdate.cs | 36 +- .../ScorerAccountingForInFlightHtlcs.cs | 6 +- c_sharp/src/org/ldk/structs/SendError.cs | 34 +- c_sharp/src/org/ldk/structs/SendSuccess.cs | 18 +- c_sharp/src/org/ldk/structs/Sha256.cs | 12 +- c_sharp/src/org/ldk/structs/Shutdown.cs | 30 +- c_sharp/src/org/ldk/structs/ShutdownScript.cs | 30 +- .../org/ldk/structs/SignOrCreationError.cs | 20 +- .../org/ldk/structs/SignedRawBolt11Invoice.cs | 30 +- c_sharp/src/org/ldk/structs/SignerProvider.cs | 46 +- c_sharp/src/org/ldk/structs/Sleeper.cs | 12 +- c_sharp/src/org/ldk/structs/SocketAddress.cs | 64 +- .../src/org/ldk/structs/SocketDescriptor.cs | 36 +- .../ldk/structs/SpendableOutputDescriptor.cs | 36 +- c_sharp/src/org/ldk/structs/Splice.cs | 46 +- c_sharp/src/org/ldk/structs/SpliceAck.cs | 38 +- c_sharp/src/org/ldk/structs/SpliceLocked.cs | 22 +- .../structs/StaticPaymentOutputDescriptor.cs | 44 +- c_sharp/src/org/ldk/structs/Stfu.cs | 26 +- c_sharp/src/org/ldk/structs/TaggedHash.cs | 18 +- ...AnnouncementChannelUpdateChannelUpdateZ.cs | 14 +- ...le_OffersMessageDestinationBlindedPathZ.cs | 14 +- ...nMessageContentsDestinationBlindedPathZ.cs | 14 +- ...le_OutPointCVec_MonitorEventZPublicKeyZ.cs | 22 +- ...ionMessageCOption_CVec_SocketAddressZZZ.cs | 16 +- ...lt11Invoice_u832Bolt11InvoiceSignatureZ.cs | 16 +- ...tesRecipientOnionFieldsRouteParametersZ.cs | 16 +- ...irtyTwoBytesu32COption_ThirtyTwoBytesZZ.cs | 16 +- .../ldk/structs/TransactionU16LenLimited.cs | 22 +- .../ldk/structs/TrustedClosingTransaction.cs | 14 +- .../structs/TrustedCommitmentTransaction.cs | 18 +- .../TwoTuple_BlindedPayInfoBlindedPathZ.cs | 12 +- .../org/ldk/structs/TwoTuple_CVec_u8Zu64Z.cs | 14 +- ...ple_ECDSASignatureCVec_ECDSASignatureZZ.cs | 22 +- ...TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs | 18 +- .../ldk/structs/TwoTuple_OutPointCVec_u8ZZ.cs | 14 +- ...oTuple_PublicKeyCOption_SocketAddressZZ.cs | 14 +- .../TwoTuple_PublicKeyCVec_SocketAddressZZ.cs | 20 +- .../ldk/structs/TwoTuple_PublicKeyTypeZ.cs | 14 +- ...irtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.cs | 20 +- ..._ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.cs | 20 +- .../TwoTuple_ThirtyTwoBytesChannelManagerZ.cs | 10 +- .../TwoTuple_ThirtyTwoBytesChannelMonitorZ.cs | 14 +- .../TwoTuple_ThirtyTwoBytesPublicKeyZ.cs | 16 +- .../TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.cs | 16 +- c_sharp/src/org/ldk/structs/TwoTuple_Z.cs | 12 +- .../org/ldk/structs/TwoTuple__u1632_u1632Z.cs | 12 +- .../src/org/ldk/structs/TwoTuple__u832u16Z.cs | 14 +- .../org/ldk/structs/TwoTuple_u32CVec_u8ZZ.cs | 14 +- .../src/org/ldk/structs/TwoTuple_u32TxOutZ.cs | 12 +- .../org/ldk/structs/TwoTuple_u64CVec_u8ZZ.cs | 14 +- .../src/org/ldk/structs/TwoTuple_u64u16Z.cs | 12 +- .../src/org/ldk/structs/TwoTuple_u64u64Z.cs | 12 +- .../ldk/structs/TwoTuple_usizeTransactionZ.cs | 14 +- c_sharp/src/org/ldk/structs/TxAbort.cs | 30 +- c_sharp/src/org/ldk/structs/TxAckRbf.cs | 28 +- c_sharp/src/org/ldk/structs/TxAddInput.cs | 40 +- c_sharp/src/org/ldk/structs/TxAddOutput.cs | 38 +- c_sharp/src/org/ldk/structs/TxComplete.cs | 24 +- c_sharp/src/org/ldk/structs/TxCreationKeys.cs | 42 +- c_sharp/src/org/ldk/structs/TxIn.cs | 14 +- c_sharp/src/org/ldk/structs/TxInitRbf.cs | 36 +- c_sharp/src/org/ldk/structs/TxOut.cs | 8 +- c_sharp/src/org/ldk/structs/TxRemoveInput.cs | 28 +- c_sharp/src/org/ldk/structs/TxRemoveOutput.cs | 28 +- c_sharp/src/org/ldk/structs/TxSignatures.cs | 42 +- c_sharp/src/org/ldk/structs/Type.cs | 40 +- .../org/ldk/structs/UnsignedBolt12Invoice.cs | 68 +- .../structs/UnsignedChannelAnnouncement.cs | 54 +- .../org/ldk/structs/UnsignedChannelUpdate.cs | 62 +- .../org/ldk/structs/UnsignedGossipMessage.cs | 24 +- .../org/ldk/structs/UnsignedInvoiceRequest.cs | 64 +- .../ldk/structs/UnsignedNodeAnnouncement.cs | 48 +- .../src/org/ldk/structs/UntrustedString.cs | 24 +- c_sharp/src/org/ldk/structs/UpdateAddHTLC.cs | 56 +- c_sharp/src/org/ldk/structs/UpdateFailHTLC.cs | 26 +- .../ldk/structs/UpdateFailMalformedHTLC.cs | 30 +- c_sharp/src/org/ldk/structs/UpdateFee.cs | 28 +- .../src/org/ldk/structs/UpdateFulfillHTLC.cs | 34 +- c_sharp/src/org/ldk/structs/UserConfig.cs | 42 +- c_sharp/src/org/ldk/structs/UtilMethods.cs | 148 +- c_sharp/src/org/ldk/structs/Utxo.cs | 26 +- c_sharp/src/org/ldk/structs/UtxoFuture.cs | 12 +- c_sharp/src/org/ldk/structs/UtxoLookup.cs | 22 +- c_sharp/src/org/ldk/structs/UtxoResult.cs | 16 +- .../org/ldk/structs/VerifiedInvoiceRequest.cs | 66 +- c_sharp/src/org/ldk/structs/Wallet.cs | 6 +- c_sharp/src/org/ldk/structs/WalletSource.cs | 30 +- c_sharp/src/org/ldk/structs/WarningMessage.cs | 30 +- c_sharp/src/org/ldk/structs/Watch.cs | 36 +- c_sharp/src/org/ldk/structs/WatchedOutput.cs | 26 +- c_sharp/src/org/ldk/structs/WitnessProgram.cs | 10 +- .../structs/WriteableEcdsaChannelSigner.cs | 28 +- c_sharp/src/org/ldk/structs/WriteableScore.cs | 24 +- 580 files changed, 14969 insertions(+), 14969 deletions(-) diff --git a/c_sharp/src/org/ldk/impl/bindings.cs b/c_sharp/src/org/ldk/impl/bindings.cs index e3c3a6e40..aa57274e7 100644 --- a/c_sharp/src/org/ldk/impl/bindings.cs +++ b/c_sharp/src/org/ldk/impl/bindings.cs @@ -7,152 +7,152 @@ namespace org { namespace ldk { namespace impl { -internal class bindings { +internal class Bindings { static List js_objs = new List(); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_lib_version_string")] public static extern string get_lib_version_string(); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_ldk_c_bindings_version")] public static extern string get_ldk_c_bindings_version(); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_ldk_version")] public static extern string get_ldk_version(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_lib_version_string")] public static extern string GetLibVersionString(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_ldk_c_bindings_version")] public static extern string GetLdkCBindingsVersion(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_ldk_version")] public static extern string GetLdkVersion(); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_allocate_buffer")] public static extern long allocate_buffer(long buflen); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_allocate_buffer")] public static extern long AllocateBuffer(long buflen); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_free_buffer")] public static extern void free_buffer(long buf); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_free_buffer")] public static extern void FreeBuffer(long buf); // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing) - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_get_bytes")] public static extern long BigEndianScalar_get_bytes(long _thing); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_get_bytes")] public static extern long BigEndianScalarGetBytes(long _thing); // static void BigEndianScalar_free (struct LDKBigEndianScalar thing) - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_free")] public static extern void BigEndianScalar_free(long _thing); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_ty_from_ptr")] public static extern long LDKBech32Error_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_InvalidChar_get_invalid_char")] public static extern int LDKBech32Error_InvalidChar_get_invalid_char(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_InvalidData_get_invalid_data")] public static extern byte LDKBech32Error_InvalidData_get_invalid_data(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u64Z_ty_from_ptr")] public static extern long LDKCOption_u64Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u64Z_Some_get_some")] public static extern long LDKCOption_u64Z_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_free")] public static extern void BigEndianScalarFree(long _thing); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_ty_from_ptr")] public static extern long LDKBech32ErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_InvalidChar_get_invalid_char")] public static extern int LDKBech32ErrorInvalidCharGetInvalidChar(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBech32Error_InvalidData_get_invalid_data")] public static extern byte LDKBech32ErrorInvalidDataGetInvalidData(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u64Z_ty_from_ptr")] public static extern long LDKCOptionU64ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u64Z_Some_get_some")] public static extern long LDKCOptionU64ZSomeGetSome(long ptr); // struct LDKRefund CResult_RefundBolt12ParseErrorZ_get_ok(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_get_ok")] public static extern long CResult_RefundBolt12ParseErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_get_ok")] public static extern long CResultRefundBolt12ParseErrorZGetOk(long _owner); // struct LDKBolt12ParseError CResult_RefundBolt12ParseErrorZ_get_err(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_get_err")] public static extern long CResult_RefundBolt12ParseErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_ty_from_ptr")] public static extern long LDKRetry_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_Attempts_get_attempts")] public static extern int LDKRetry_Attempts_get_attempts(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_Timeout_get_timeout")] public static extern long LDKRetry_Timeout_get_timeout(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDecodeError_ty_from_ptr")] public static extern long LDKDecodeError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDecodeError_Io_get_io")] public static extern IOError LDKDecodeError_Io_get_io(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_get_err")] public static extern long CResultRefundBolt12ParseErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_ty_from_ptr")] public static extern long LDKRetryTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_Attempts_get_attempts")] public static extern int LDKRetryAttemptsGetAttempts(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRetry_Timeout_get_timeout")] public static extern long LDKRetryTimeoutGetTimeout(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDecodeError_ty_from_ptr")] public static extern long LDKDecodeErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDecodeError_Io_get_io")] public static extern IOError LDKDecodeErrorIoGetIo(long ptr); // struct LDKRetry CResult_RetryDecodeErrorZ_get_ok(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_get_ok")] public static extern long CResult_RetryDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_get_ok")] public static extern long CResultRetryDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RetryDecodeErrorZ_get_err(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_get_err")] public static extern long CResult_RetryDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_ty_from_ptr")] public static extern long LDKAPIError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_APIMisuseError_get_err")] public static extern long LDKAPIError_APIMisuseError_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_FeeRateTooHigh_get_err")] public static extern long LDKAPIError_FeeRateTooHigh_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_FeeRateTooHigh_get_feerate")] public static extern int LDKAPIError_FeeRateTooHigh_get_feerate(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_InvalidRoute_get_err")] public static extern long LDKAPIError_InvalidRoute_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_ChannelUnavailable_get_err")] public static extern long LDKAPIError_ChannelUnavailable_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_IncompatibleShutdownScript_get_script")] public static extern long LDKAPIError_IncompatibleShutdownScript_get_script(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_get_err")] public static extern long CResultRetryDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_ty_from_ptr")] public static extern long LDKAPIErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_APIMisuseError_get_err")] public static extern long LDKAPIErrorAPIMisuseErrorGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_FeeRateTooHigh_get_err")] public static extern long LDKAPIErrorFeeRateTooHighGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_FeeRateTooHigh_get_feerate")] public static extern int LDKAPIErrorFeeRateTooHighGetFeerate(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_InvalidRoute_get_err")] public static extern long LDKAPIErrorInvalidRouteGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_ChannelUnavailable_get_err")] public static extern long LDKAPIErrorChannelUnavailableGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKAPIError_IncompatibleShutdownScript_get_script")] public static extern long LDKAPIErrorIncompatibleShutdownScriptGetScript(long ptr); // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_get_ok")] public static extern void CResult_NoneAPIErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_get_ok")] public static extern void CResultNoneAPIErrorZGetOk(long _owner); // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_get_err")] public static extern long CResult_NoneAPIErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ThirtyTwoBytesZ_ty_from_ptr")] public static extern long LDKCOption_ThirtyTwoBytesZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ThirtyTwoBytesZ_Some_get_some")] public static extern long LDKCOption_ThirtyTwoBytesZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_u8ZZ_ty_from_ptr")] public static extern long LDKCOption_CVec_u8ZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_u8ZZ_Some_get_some")] public static extern long LDKCOption_CVec_u8ZZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_get_err")] public static extern long CResultNoneAPIErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ThirtyTwoBytesZ_ty_from_ptr")] public static extern long LDKCOptionThirtyTwoBytesZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ThirtyTwoBytesZ_Some_get_some")] public static extern long LDKCOptionThirtyTwoBytesZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_u8ZZ_ty_from_ptr")] public static extern long LDKCOptionCVecU8ZzTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_u8ZZ_Some_get_some")] public static extern long LDKCOptionCVecU8ZzSomeGetSome(long ptr); // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_get_ok")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_get_ok")] public static extern long CResultRecipientOnionFieldsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_get_err")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_get_err")] public static extern long CResultRecipientOnionFieldsDecodeErrorZGetErr(long _owner); // uint64_t C2Tuple_u64CVec_u8ZZ_get_a(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_get_a")] public static extern long C2Tuple_u64CVec_u8ZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_get_a")] public static extern long C2TupleU64CvecU8ZzGetA(long _owner); // struct LDKCVec_u8Z C2Tuple_u64CVec_u8ZZ_get_b(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_get_b")] public static extern long C2Tuple_u64CVec_u8ZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_get_b")] public static extern long C2TupleU64CvecU8ZzGetB(long _owner); // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsNoneZ_get_ok(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_get_ok")] public static extern long CResult_RecipientOnionFieldsNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_get_ok")] public static extern long CResultRecipientOnionFieldsNoneZGetOk(long _owner); // void CResult_RecipientOnionFieldsNoneZ_get_err(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_get_err")] public static extern void CResult_RecipientOnionFieldsNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_ThirtyTwoBytesZZ_ty_from_ptr")] public static extern long LDKCOption_CVec_ThirtyTwoBytesZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some")] public static extern long LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_get_err")] public static extern void CResultRecipientOnionFieldsNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_ThirtyTwoBytesZZ_ty_from_ptr")] public static extern long LDKCOptionCVecThirtyTwoBytesZZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some")] public static extern long LDKCOptionCVecThirtyTwoBytesZZSomeGetSome(long ptr); // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesNoneZ_get_ok(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_get_ok")] public static extern long CResult_ThirtyTwoBytesNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_get_ok")] public static extern long CResultThirtyTwoBytesNoneZGetOk(long _owner); // void CResult_ThirtyTwoBytesNoneZ_get_err(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_get_err")] public static extern void CResult_ThirtyTwoBytesNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_get_err")] public static extern void CResultThirtyTwoBytesNoneZGetErr(long _owner); // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_get_ok")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_get_ok")] public static extern long CResultBlindedPayInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_get_err")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_get_err")] public static extern long CResultBlindedPayInfoDecodeErrorZGetErr(long _owner); // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZGetErr(long _owner); // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_ty_from_ptr")] public static extern long LDKSpendableOutputDescriptor_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint")] public static extern long LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_output")] public static extern long LDKSpendableOutputDescriptor_StaticOutput_get_output(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_channel_keys_id")] public static extern long LDKSpendableOutputDescriptor_StaticOutput_get_channel_keys_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output")] public static extern long LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output")] public static extern long LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_ty_from_ptr")] public static extern long LDKSpendableOutputDescriptorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint")] public static extern long LDKSpendableOutputDescriptorStaticOutputGetOutpoint(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_output")] public static extern long LDKSpendableOutputDescriptorStaticOutputGetOutput(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticOutput_get_channel_keys_id")] public static extern long LDKSpendableOutputDescriptorStaticOutputGetChannelKeysId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output")] public static extern long LDKSpendableOutputDescriptorDelayedPaymentOutputGetDelayedPaymentOutput(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output")] public static extern long LDKSpendableOutputDescriptorStaticPaymentOutputGetStaticPaymentOutput(long ptr); // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u32Z_ty_from_ptr")] public static extern long LDKCOption_u32Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u32Z_Some_get_some")] public static extern int LDKCOption_u32Z_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u32Z_ty_from_ptr")] public static extern long LDKCOptionU32ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u32Z_Some_get_some")] public static extern int LDKCOptionU32ZSomeGetSome(long ptr); // struct LDKCVec_u8Z C2Tuple_CVec_u8Zu64Z_get_a(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_get_a")] public static extern long C2Tuple_CVec_u8Zu64Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_get_a")] public static extern long C2TupleCVecU8Zu64ZGetA(long _owner); // uint64_t C2Tuple_CVec_u8Zu64Z_get_b(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_get_b")] public static extern long C2Tuple_CVec_u8Zu64Z_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_get_b")] public static extern long C2TupleCVecU8Zu64ZGetB(long _owner); // struct LDKC2Tuple_CVec_u8Zu64Z CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok")] public static extern long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok")] public static extern long CResultC2TupleCVecU8Zu64ZnonezGetOk(long _owner); // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err")] public static extern void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err")] public static extern void CResultC2TupleCVecU8Zu64ZnonezGetErr(long _owner); // struct LDKChannelDerivationParameters CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_get_ok")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_get_ok")] public static extern long CResultChannelDerivationParametersDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelDerivationParametersDecodeErrorZ_get_err(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_get_err")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_get_err")] public static extern long CResultChannelDerivationParametersDecodeErrorZGetErr(long _owner); // struct LDKHTLCDescriptor CResult_HTLCDescriptorDecodeErrorZ_get_ok(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_get_ok")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_get_ok")] public static extern long CResultHTLCDescriptorDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HTLCDescriptorDecodeErrorZ_get_err(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_get_err")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_get_err")] public static extern long CResultHTLCDescriptorDecodeErrorZGetErr(long _owner); // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_get_ok")] public static extern void CResult_NoneNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_get_ok")] public static extern void CResultNoneNoneZGetOk(long _owner); // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_get_err")] public static extern void CResult_NoneNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_get_err")] public static extern void CResultNoneNoneZGetErr(long _owner); // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_get_ok")] public static extern long CResult_PublicKeyNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_get_ok")] public static extern long CResultPublicKeyNoneZGetOk(long _owner); // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_get_err")] public static extern void CResult_PublicKeyNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_BigEndianScalarZ_ty_from_ptr")] public static extern long LDKCOption_BigEndianScalarZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_BigEndianScalarZ_Some_get_some")] public static extern long LDKCOption_BigEndianScalarZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_get_err")] public static extern void CResultPublicKeyNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_BigEndianScalarZ_ty_from_ptr")] public static extern long LDKCOptionBigEndianScalarZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_BigEndianScalarZ_Some_get_some")] public static extern long LDKCOptionBigEndianScalarZSomeGetSome(long ptr); // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_get_ok")] public static extern long CResult_RecoverableSignatureNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_get_ok")] public static extern long CResultRecoverableSignatureNoneZGetOk(long _owner); // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_get_err")] public static extern void CResult_RecoverableSignatureNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_get_err")] public static extern void CResultRecoverableSignatureNoneZGetErr(long _owner); // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_get_ok")] public static extern long CResult_SchnorrSignatureNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_get_ok")] public static extern long CResultSchnorrSignatureNoneZGetOk(long _owner); // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_get_err")] public static extern void CResult_SchnorrSignatureNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_get_err")] public static extern void CResultSchnorrSignatureNoneZGetErr(long _owner); // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_get_ok")] public static extern long CResult_ECDSASignatureNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_get_ok")] public static extern long CResultECDSASignatureNoneZGetOk(long _owner); // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_get_err")] public static extern void CResult_ECDSASignatureNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_get_err")] public static extern void CResultECDSASignatureNoneZGetErr(long _owner); // struct LDKECDSASignature C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a")] public static extern long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a")] public static extern long C2TupleECDSASignatureCVecECDSASignatureZZGetA(long _owner); // struct LDKCVec_ECDSASignatureZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b")] public static extern long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b")] public static extern long C2TupleECDSASignatureCVecECDSASignatureZZGetB(long _owner); // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok")] public static extern long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok")] public static extern long CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZGetOk(long _owner); // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err")] public static extern void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err")] public static extern void CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZGetErr(long _owner); public interface LDKChannelSigner { - long get_per_commitment_point(long idx); - long release_commitment_secret(long idx); - long validate_holder_commitment(long holder_tx, long outbound_htlc_preimages); - long validate_counterparty_revocation(long idx, long secret); - long channel_keys_id(); - void provide_channel_parameters(long channel_parameters); + long GetPerCommitmentPoint(long idx); + long ReleaseCommitmentSecret(long idx); + long ValidateHolderCommitment(long holder_tx, long outbound_htlc_preimages); + long ValidateCounterpartyRevocation(long idx, long secret); + long ChannelKeysId(); + void ProvideChannelParameters(long channel_parameters); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKChannelSigner_new")] public static extern long LDKChannelSigner_new_native(long impl_idx, long pubkeys); - public static long[] LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKChannelSigner_new")] public static extern long LDKChannelSignerNewNative(long impl_idx, long pubkeys); + public static long[] LDKChannelSignerNew(LDKChannelSigner impl, long pubkeys) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -164,37 +164,37 @@ public static long[] LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKChannelSigner_new_native(i, pubkeys); + ret[0] = LDKChannelSignerNewNative(i, pubkeys); ret[1] = i; return ret; } // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_get_per_commitment_point")] public static extern long ChannelSigner_get_per_commitment_point(long _this_arg, long _idx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_get_per_commitment_point")] public static extern long ChannelSignerGetPerCommitmentPoint(long _this_arg, long _idx); // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_release_commitment_secret")] public static extern long ChannelSigner_release_commitment_secret(long _this_arg, long _idx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_release_commitment_secret")] public static extern long ChannelSignerReleaseCommitmentSecret(long _this_arg, long _idx); // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ outbound_htlc_preimages - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_validate_holder_commitment")] public static extern long ChannelSigner_validate_holder_commitment(long _this_arg, long _holder_tx, long _outbound_htlc_preimages); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_validate_holder_commitment")] public static extern long ChannelSignerValidateHolderCommitment(long _this_arg, long _holder_tx, long _outbound_htlc_preimages); // LDKCResult_NoneNoneZ ChannelSigner_validate_counterparty_revocation LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32] - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_validate_counterparty_revocation")] public static extern long ChannelSigner_validate_counterparty_revocation(long _this_arg, long _idx, long _secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_validate_counterparty_revocation")] public static extern long ChannelSignerValidateCounterpartyRevocation(long _this_arg, long _idx, long _secret); // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_channel_keys_id")] public static extern long ChannelSigner_channel_keys_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_channel_keys_id")] public static extern long ChannelSignerChannelKeysId(long _this_arg); // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_provide_channel_parameters")] public static extern void ChannelSigner_provide_channel_parameters(long _this_arg, long _channel_parameters); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_provide_channel_parameters")] public static extern void ChannelSignerProvideChannelParameters(long _this_arg, long _channel_parameters); // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_get_pubkeys")] public static extern long ChannelSigner_get_pubkeys(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_get_pubkeys")] public static extern long ChannelSignerGetPubkeys(long _this_arg); public interface LDKEcdsaChannelSigner { - long sign_counterparty_commitment(long commitment_tx, long inbound_htlc_preimages, long outbound_htlc_preimages); - long sign_holder_commitment(long commitment_tx); - long sign_justice_revoked_output(long justice_tx, long input, long amount, long per_commitment_key); - long sign_justice_revoked_htlc(long justice_tx, long input, long amount, long per_commitment_key, long htlc); - long sign_holder_htlc_transaction(long htlc_tx, long input, long htlc_descriptor); - long sign_counterparty_htlc_transaction(long htlc_tx, long input, long amount, long per_commitment_point, long htlc); - long sign_closing_transaction(long closing_tx); - long sign_holder_anchor_input(long anchor_tx, long input); - long sign_channel_announcement_with_funding_key(long msg); + long SignCounterpartyCommitment(long commitment_tx, long inbound_htlc_preimages, long outbound_htlc_preimages); + long SignHolderCommitment(long commitment_tx); + long SignJusticeRevokedOutput(long justice_tx, long input, long amount, long per_commitment_key); + long SignJusticeRevokedHtlc(long justice_tx, long input, long amount, long per_commitment_key, long htlc); + long SignHolderHtlcTransaction(long htlc_tx, long input, long htlc_descriptor); + long SignCounterpartyHtlcTransaction(long htlc_tx, long input, long amount, long per_commitment_point, long htlc); + long SignClosingTransaction(long closing_tx); + long SignHolderAnchorInput(long anchor_tx, long input); + long SignChannelAnnouncementWithFundingKey(long msg); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEcdsaChannelSigner_new")] public static extern long LDKEcdsaChannelSigner_new_native(long impl_idx, long ChannelSigner, long pubkeys); - public static long[] LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, long ChannelSigner, long pubkeys) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEcdsaChannelSigner_new")] public static extern long LDKEcdsaChannelSignerNewNative(long impl_idx, long ChannelSigner, long pubkeys); + public static long[] LDKEcdsaChannelSignerNew(LDKEcdsaChannelSigner impl, long ChannelSigner, long pubkeys) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -206,33 +206,33 @@ public static long[] LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, long js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKEcdsaChannelSigner_new_native(i, ChannelSigner, pubkeys); + ret[0] = LDKEcdsaChannelSignerNewNative(i, ChannelSigner, pubkeys); ret[1] = i; return ret; } // LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_ThirtyTwoBytesZ inbound_htlc_preimages, struct LDKCVec_ThirtyTwoBytesZ outbound_htlc_preimages - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_counterparty_commitment")] public static extern long EcdsaChannelSigner_sign_counterparty_commitment(long _this_arg, long _commitment_tx, long _inbound_htlc_preimages, long _outbound_htlc_preimages); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_counterparty_commitment")] public static extern long EcdsaChannelSignerSignCounterpartyCommitment(long _this_arg, long _commitment_tx, long _inbound_htlc_preimages, long _outbound_htlc_preimages); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_commitment")] public static extern long EcdsaChannelSigner_sign_holder_commitment(long _this_arg, long _commitment_tx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_commitment")] public static extern long EcdsaChannelSignerSignHolderCommitment(long _this_arg, long _commitment_tx); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_output LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32] - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_justice_revoked_output")] public static extern long EcdsaChannelSigner_sign_justice_revoked_output(long _this_arg, long _justice_tx, long _input, long _amount, long _per_commitment_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_justice_revoked_output")] public static extern long EcdsaChannelSignerSignJusticeRevokedOutput(long _this_arg, long _justice_tx, long _input, long _amount, long _per_commitment_key); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_htlc LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_justice_revoked_htlc")] public static extern long EcdsaChannelSigner_sign_justice_revoked_htlc(long _this_arg, long _justice_tx, long _input, long _amount, long _per_commitment_key, long _htlc); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_justice_revoked_htlc")] public static extern long EcdsaChannelSignerSignJusticeRevokedHtlc(long _this_arg, long _justice_tx, long _input, long _amount, long _per_commitment_key, long _htlc); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_htlc_transaction")] public static extern long EcdsaChannelSigner_sign_holder_htlc_transaction(long _this_arg, long _htlc_tx, long _input, long _htlc_descriptor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_htlc_transaction")] public static extern long EcdsaChannelSignerSignHolderHtlcTransaction(long _this_arg, long _htlc_tx, long _input, long _htlc_descriptor); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_counterparty_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_counterparty_htlc_transaction")] public static extern long EcdsaChannelSigner_sign_counterparty_htlc_transaction(long _this_arg, long _htlc_tx, long _input, long _amount, long _per_commitment_point, long _htlc); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_counterparty_htlc_transaction")] public static extern long EcdsaChannelSignerSignCounterpartyHtlcTransaction(long _this_arg, long _htlc_tx, long _input, long _amount, long _per_commitment_point, long _htlc); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_closing_transaction")] public static extern long EcdsaChannelSigner_sign_closing_transaction(long _this_arg, long _closing_tx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_closing_transaction")] public static extern long EcdsaChannelSignerSignClosingTransaction(long _this_arg, long _closing_tx); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_anchor_input")] public static extern long EcdsaChannelSigner_sign_holder_anchor_input(long _this_arg, long _anchor_tx, long _input); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_holder_anchor_input")] public static extern long EcdsaChannelSignerSignHolderAnchorInput(long _this_arg, long _anchor_tx, long _input); // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_channel_announcement_with_funding_key")] public static extern long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_sign_channel_announcement_with_funding_key")] public static extern long EcdsaChannelSignerSignChannelAnnouncementWithFundingKey(long _this_arg, long _msg); public interface LDKWriteableEcdsaChannelSigner { - long write(); + long Write(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWriteableEcdsaChannelSigner_new")] public static extern long LDKWriteableEcdsaChannelSigner_new_native(long impl_idx, long EcdsaChannelSigner, long ChannelSigner, long pubkeys); - public static long[] LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, long EcdsaChannelSigner, long ChannelSigner, long pubkeys) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWriteableEcdsaChannelSigner_new")] public static extern long LDKWriteableEcdsaChannelSignerNewNative(long impl_idx, long EcdsaChannelSigner, long ChannelSigner, long pubkeys); + public static long[] LDKWriteableEcdsaChannelSignerNew(LDKWriteableEcdsaChannelSigner impl, long EcdsaChannelSigner, long ChannelSigner, long pubkeys) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -244,51 +244,51 @@ public static long[] LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannel js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKWriteableEcdsaChannelSigner_new_native(i, EcdsaChannelSigner, ChannelSigner, pubkeys); + ret[0] = LDKWriteableEcdsaChannelSignerNewNative(i, EcdsaChannelSigner, ChannelSigner, pubkeys); ret[1] = i; return ret; } // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_write")] public static extern long WriteableEcdsaChannelSigner_write(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_write")] public static extern long WriteableEcdsaChannelSignerWrite(long _this_arg); // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZGetErr(long _owner); // struct LDKCVec_u8Z CResult_CVec_u8ZNoneZ_get_ok(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_get_ok")] public static extern long CResult_CVec_u8ZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_get_ok")] public static extern long CResultCVecU8ZnonezGetOk(long _owner); // void CResult_CVec_u8ZNoneZ_get_err(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_get_err")] public static extern void CResult_CVec_u8ZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_get_err")] public static extern void CResultCVecU8ZnonezGetErr(long _owner); // struct LDKShutdownScript CResult_ShutdownScriptNoneZ_get_ok(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_get_ok")] public static extern long CResult_ShutdownScriptNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_get_ok")] public static extern long CResultShutdownScriptNoneZGetOk(long _owner); // void CResult_ShutdownScriptNoneZ_get_err(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_get_err")] public static extern void CResult_ShutdownScriptNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u16Z_ty_from_ptr")] public static extern long LDKCOption_u16Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u16Z_Some_get_some")] public static extern short LDKCOption_u16Z_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_boolZ_ty_from_ptr")] public static extern long LDKCOption_boolZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_boolZ_Some_get_some")] public static extern bool LDKCOption_boolZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_get_err")] public static extern void CResultShutdownScriptNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u16Z_ty_from_ptr")] public static extern long LDKCOptionU16ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_u16Z_Some_get_some")] public static extern short LDKCOptionU16ZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_boolZ_ty_from_ptr")] public static extern long LDKCOptionBoolzTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_boolZ_Some_get_some")] public static extern bool LDKCOptionBoolzSomeGetSome(long ptr); // struct LDKWitness CResult_WitnessNoneZ_get_ok(LDKCResult_WitnessNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_get_ok")] public static extern long CResult_WitnessNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_get_ok")] public static extern long CResultWitnessNoneZGetOk(long _owner); // void CResult_WitnessNoneZ_get_err(LDKCResult_WitnessNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_get_err")] public static extern void CResult_WitnessNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_get_err")] public static extern void CResultWitnessNoneZGetErr(long _owner); // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_get_ok")] public static extern long CResult_InMemorySignerDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_get_ok")] public static extern long CResultInMemorySignerDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_get_err")] public static extern long CResult_InMemorySignerDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_get_err")] public static extern long CResultInMemorySignerDecodeErrorZGetErr(long _owner); // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_get_ok")] public static extern long CResult_TransactionNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_get_ok")] public static extern long CResultTransactionNoneZGetOk(long _owner); // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_get_err")] public static extern void CResult_TransactionNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_ty_from_ptr")] public static extern long LDKCandidateRouteHop_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_FirstHop_get_first_hop")] public static extern long LDKCandidateRouteHop_FirstHop_get_first_hop(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_PublicHop_get_public_hop")] public static extern long LDKCandidateRouteHop_PublicHop_get_public_hop(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_PrivateHop_get_private_hop")] public static extern long LDKCandidateRouteHop_PrivateHop_get_private_hop(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_Blinded_get_blinded")] public static extern long LDKCandidateRouteHop_Blinded_get_blinded(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_OneHopBlinded_get_one_hop_blinded")] public static extern long LDKCandidateRouteHop_OneHopBlinded_get_one_hop_blinded(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_get_err")] public static extern void CResultTransactionNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_ty_from_ptr")] public static extern long LDKCandidateRouteHopTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_FirstHop_get_first_hop")] public static extern long LDKCandidateRouteHopFirstHopGetFirstHop(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_PublicHop_get_public_hop")] public static extern long LDKCandidateRouteHopPublicHopGetPublicHop(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_PrivateHop_get_private_hop")] public static extern long LDKCandidateRouteHopPrivateHopGetPrivateHop(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_Blinded_get_blinded")] public static extern long LDKCandidateRouteHopBlindedGetBlinded(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCandidateRouteHop_OneHopBlinded_get_one_hop_blinded")] public static extern long LDKCandidateRouteHopOneHopBlindedGetOneHopBlinded(long ptr); public interface LDKScoreLookUp { - long channel_penalty_msat(long candidate, long usage, long score_params); + long ChannelPenaltyMsat(long candidate, long usage, long score_params); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScoreLookUp_new")] public static extern long LDKScoreLookUp_new_native(long impl_idx); - public static long[] LDKScoreLookUp_new(LDKScoreLookUp impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScoreLookUp_new")] public static extern long LDKScoreLookUpNewNative(long impl_idx); + public static long[] LDKScoreLookUpNew(LDKScoreLookUp impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -300,21 +300,21 @@ public static long[] LDKScoreLookUp_new(LDKScoreLookUp impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKScoreLookUp_new_native(i); + ret[0] = LDKScoreLookUpNewNative(i); ret[1] = i; return ret; } // uint64_t ScoreLookUp_channel_penalty_msat LDKScoreLookUp *NONNULL_PTR this_arg, const struct LDKCandidateRouteHop *NONNULL_PTR candidate, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreLookUp_channel_penalty_msat")] public static extern long ScoreLookUp_channel_penalty_msat(long _this_arg, long _candidate, long _usage, long _score_params); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreLookUp_channel_penalty_msat")] public static extern long ScoreLookUpChannelPenaltyMsat(long _this_arg, long _candidate, long _usage, long _score_params); public interface LDKScoreUpdate { - void payment_path_failed(long path, long short_channel_id, long duration_since_epoch); - void payment_path_successful(long path, long duration_since_epoch); - void probe_failed(long path, long short_channel_id, long duration_since_epoch); - void probe_successful(long path, long duration_since_epoch); - void time_passed(long duration_since_epoch); + void PaymentPathFailed(long path, long short_channel_id, long duration_since_epoch); + void PaymentPathSuccessful(long path, long duration_since_epoch); + void ProbeFailed(long path, long short_channel_id, long duration_since_epoch); + void ProbeSuccessful(long path, long duration_since_epoch); + void TimePassed(long duration_since_epoch); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScoreUpdate_new")] public static extern long LDKScoreUpdate_new_native(long impl_idx); - public static long[] LDKScoreUpdate_new(LDKScoreUpdate impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScoreUpdate_new")] public static extern long LDKScoreUpdateNewNative(long impl_idx); + public static long[] LDKScoreUpdateNew(LDKScoreUpdate impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -326,26 +326,26 @@ public static long[] LDKScoreUpdate_new(LDKScoreUpdate impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKScoreUpdate_new_native(i); + ret[0] = LDKScoreUpdateNewNative(i); ret[1] = i; return ret; } // void ScoreUpdate_payment_path_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id, uint64_t duration_since_epoch - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_payment_path_failed")] public static extern void ScoreUpdate_payment_path_failed(long _this_arg, long _path, long _short_channel_id, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_payment_path_failed")] public static extern void ScoreUpdatePaymentPathFailed(long _this_arg, long _path, long _short_channel_id, long _duration_since_epoch); // void ScoreUpdate_payment_path_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_payment_path_successful")] public static extern void ScoreUpdate_payment_path_successful(long _this_arg, long _path, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_payment_path_successful")] public static extern void ScoreUpdatePaymentPathSuccessful(long _this_arg, long _path, long _duration_since_epoch); // void ScoreUpdate_probe_failed LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id, uint64_t duration_since_epoch - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_probe_failed")] public static extern void ScoreUpdate_probe_failed(long _this_arg, long _path, long _short_channel_id, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_probe_failed")] public static extern void ScoreUpdateProbeFailed(long _this_arg, long _path, long _short_channel_id, long _duration_since_epoch); // void ScoreUpdate_probe_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_probe_successful")] public static extern void ScoreUpdate_probe_successful(long _this_arg, long _path, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_probe_successful")] public static extern void ScoreUpdateProbeSuccessful(long _this_arg, long _path, long _duration_since_epoch); // void ScoreUpdate_time_passed LDKScoreUpdate *NONNULL_PTR this_arg, uint64_t duration_since_epoch - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_time_passed")] public static extern void ScoreUpdate_time_passed(long _this_arg, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_time_passed")] public static extern void ScoreUpdateTimePassed(long _this_arg, long _duration_since_epoch); public interface LDKLockableScore { - long read_lock(); - long write_lock(); + long ReadLock(); + long WriteLock(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKLockableScore_new")] public static extern long LDKLockableScore_new_native(long impl_idx); - public static long[] LDKLockableScore_new(LDKLockableScore impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKLockableScore_new")] public static extern long LDKLockableScoreNewNative(long impl_idx); + public static long[] LDKLockableScoreNew(LDKLockableScore impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -357,19 +357,19 @@ public static long[] LDKLockableScore_new(LDKLockableScore impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKLockableScore_new_native(i); + ret[0] = LDKLockableScoreNewNative(i); ret[1] = i; return ret; } // LDKScoreLookUp LockableScore_read_lock LDKLockableScore *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_read_lock")] public static extern long LockableScore_read_lock(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_read_lock")] public static extern long LockableScoreReadLock(long _this_arg); // LDKScoreUpdate LockableScore_write_lock LDKLockableScore *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_write_lock")] public static extern long LockableScore_write_lock(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_write_lock")] public static extern long LockableScoreWriteLock(long _this_arg); public interface LDKWriteableScore { - long write(); + long Write(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWriteableScore_new")] public static extern long LDKWriteableScore_new_native(long impl_idx, long LockableScore); - public static long[] LDKWriteableScore_new(LDKWriteableScore impl, long LockableScore) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWriteableScore_new")] public static extern long LDKWriteableScoreNewNative(long impl_idx, long LockableScore); + public static long[] LDKWriteableScoreNew(LDKWriteableScore impl, long LockableScore) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -381,97 +381,97 @@ public static long[] LDKWriteableScore_new(LDKWriteableScore impl, long Lockable js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKWriteableScore_new_native(i, LockableScore); + ret[0] = LDKWriteableScoreNewNative(i, LockableScore); ret[1] = i; return ret; } // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableScore_write")] public static extern long WriteableScore_write(long _this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_WriteableScoreZ_ty_from_ptr")] public static extern long LDKCOption_WriteableScoreZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_WriteableScoreZ_Some_get_some")] public static extern long LDKCOption_WriteableScoreZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableScore_write")] public static extern long WriteableScoreWrite(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_WriteableScoreZ_ty_from_ptr")] public static extern long LDKCOptionWriteableScoreZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_WriteableScoreZ_Some_get_some")] public static extern long LDKCOptionWriteableScoreZSomeGetSome(long ptr); // void CResult_NoneIOErrorZ_get_ok(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_get_ok")] public static extern void CResult_NoneIOErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_get_ok")] public static extern void CResultNoneIOErrorZGetOk(long _owner); // enum LDKIOError CResult_NoneIOErrorZ_get_err(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_get_err")] public static extern IOError CResult_NoneIOErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_get_err")] public static extern IOError CResultNoneIOErrorZGetErr(long _owner); // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_get_ok")] public static extern long CResult_RouteLightningErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_get_ok")] public static extern long CResultRouteLightningErrorZGetOk(long _owner); // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_get_err")] public static extern long CResult_RouteLightningErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_get_err")] public static extern long CResultRouteLightningErrorZGetErr(long _owner); // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_get_a")] public static extern long C2Tuple_BlindedPayInfoBlindedPathZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_get_a")] public static extern long C2TupleBlindedPayInfoBlindedPathZGetA(long _owner); // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_get_b")] public static extern long C2Tuple_BlindedPayInfoBlindedPathZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_get_b")] public static extern long C2TupleBlindedPayInfoBlindedPathZGetB(long _owner); // struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok")] public static extern long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok")] public static extern long CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZGetOk(long _owner); // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err")] public static extern void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err")] public static extern void CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZGetErr(long _owner); // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_get_ok")] public static extern long CResult_OnionMessagePathNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_get_ok")] public static extern long CResultOnionMessagePathNoneZGetOk(long _owner); // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_get_err")] public static extern void CResult_OnionMessagePathNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_get_err")] public static extern void CResultOnionMessagePathNoneZGetErr(long _owner); // struct LDKCVec_BlindedPathZ CResult_CVec_BlindedPathZNoneZ_get_ok(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_get_ok")] public static extern long CResult_CVec_BlindedPathZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_get_ok")] public static extern long CResultCVecBlindedPathZNoneZGetOk(long _owner); // void CResult_CVec_BlindedPathZNoneZ_get_err(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_get_err")] public static extern void CResult_CVec_BlindedPathZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_get_err")] public static extern void CResultCVecBlindedPathZNoneZGetErr(long _owner); // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_get_ok")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_get_ok")] public static extern long CResultInFlightHtlcsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_get_err")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_get_err")] public static extern long CResultInFlightHtlcsDecodeErrorZGetErr(long _owner); // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_get_ok")] public static extern long CResult_RouteHopDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_get_ok")] public static extern long CResultRouteHopDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_get_err")] public static extern long CResult_RouteHopDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_get_err")] public static extern long CResultRouteHopDecodeErrorZGetErr(long _owner); // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_get_ok")] public static extern long CResult_BlindedTailDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_get_ok")] public static extern long CResultBlindedTailDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_get_err")] public static extern long CResult_BlindedTailDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_get_err")] public static extern long CResultBlindedTailDecodeErrorZGetErr(long _owner); // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_get_ok")] public static extern long CResult_RouteDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_get_ok")] public static extern long CResultRouteDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_get_err")] public static extern long CResult_RouteDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_get_err")] public static extern long CResultRouteDecodeErrorZGetErr(long _owner); // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_get_ok")] public static extern long CResult_RouteParametersDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_get_ok")] public static extern long CResultRouteParametersDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_get_err")] public static extern long CResult_RouteParametersDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_get_err")] public static extern long CResultRouteParametersDecodeErrorZGetErr(long _owner); // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_get_ok")] public static extern long CResult_PaymentParametersDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_get_ok")] public static extern long CResultPaymentParametersDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_get_err")] public static extern long CResult_PaymentParametersDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_get_err")] public static extern long CResultPaymentParametersDecodeErrorZGetErr(long _owner); // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_get_ok")] public static extern long CResult_RouteHintDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_get_ok")] public static extern long CResultRouteHintDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_get_err")] public static extern long CResult_RouteHintDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_get_err")] public static extern long CResultRouteHintDecodeErrorZGetErr(long _owner); // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_get_ok")] public static extern long CResult_RouteHintHopDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_get_ok")] public static extern long CResultRouteHintHopDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_get_err")] public static extern long CResult_RouteHintHopDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_get_err")] public static extern long CResultRouteHintHopDecodeErrorZGetErr(long _owner); // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok")] public static extern long CResultFixedPenaltyScorerDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_get_err")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_get_err")] public static extern long CResultFixedPenaltyScorerDecodeErrorZGetErr(long _owner); // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_get_a")] public static extern long C2Tuple_u64u64Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_get_a")] public static extern long C2TupleU64U64ZGetA(long _owner); // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_get_b")] public static extern long C2Tuple_u64u64Z_get_b(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr")] public static extern long LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some")] public static extern long LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_get_b")] public static extern long C2TupleU64U64ZGetB(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr")] public static extern long LDKCOptionC2TupleU64U64ZzTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some")] public static extern long LDKCOptionC2TupleU64U64ZzSomeGetSome(long ptr); // struct LDKThirtyTwoU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_get_a")] public static extern long C2Tuple_Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_get_a")] public static extern long C2TupleZGetA(long _owner); // struct LDKThirtyTwoU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_get_b")] public static extern long C2Tuple_Z_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_get_b")] public static extern long C2TupleZGetB(long _owner); // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_a(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_get_a")] public static extern long C2Tuple__u1632_u1632Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_get_a")] public static extern long C2TupleU1632U1632ZGetA(long _owner); // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_b(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_get_b")] public static extern long C2Tuple__u1632_u1632Z_get_b(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ty_from_ptr")] public static extern long LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some_get_some")] public static extern long LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_f64Z_ty_from_ptr")] public static extern long LDKCOption_f64Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_f64Z_Some_get_some")] public static extern double LDKCOption_f64Z_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_get_b")] public static extern long C2TupleU1632U1632ZGetB(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ty_from_ptr")] public static extern long LDKCOptionC2TupleThirtyTwoU16sThirtyTwoU16sZZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some_get_some")] public static extern long LDKCOptionC2TupleThirtyTwoU16sThirtyTwoU16sZZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_f64Z_ty_from_ptr")] public static extern long LDKCOptionF64ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_f64Z_Some_get_some")] public static extern double LDKCOptionF64ZSomeGetSome(long ptr); public interface LDKLogger { - void log(long record); + void Log(long record); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKLogger_new")] public static extern long LDKLogger_new_native(long impl_idx); - public static long[] LDKLogger_new(LDKLogger impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKLogger_new")] public static extern long LDKLoggerNewNative(long impl_idx); + public static long[] LDKLoggerNew(LDKLogger impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -483,103 +483,103 @@ public static long[] LDKLogger_new(LDKLogger impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKLogger_new_native(i); + ret[0] = LDKLoggerNewNative(i); ret[1] = i; return ret; } // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_get_ok")] public static extern long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_get_ok")] public static extern long CResultProbabilisticScorerDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_get_err")] public static extern long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_get_err")] public static extern long CResultProbabilisticScorerDecodeErrorZGetErr(long _owner); // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_get_a")] public static extern long C2Tuple_usizeTransactionZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_get_a")] public static extern long C2TupleUsizetransactionzGetA(long _owner); // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_get_b")] public static extern long C2Tuple_usizeTransactionZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_get_b")] public static extern long C2TupleUsizetransactionzGetB(long _owner); // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a")] public static extern long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a")] public static extern long C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetA(long _owner); // uint32_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b")] public static extern int C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b")] public static extern int C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetB(long _owner); // struct LDKCOption_ThirtyTwoBytesZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c")] public static extern long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c")] public static extern long C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetC(long _owner); // enum LDKChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_get_ok")] public static extern ChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_get_ok")] public static extern ChannelMonitorUpdateStatus CResultChannelMonitorUpdateStatusNoneZGetOk(long _owner); // void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_get_err")] public static extern void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_ty_from_ptr")] public static extern long LDKMonitorEvent_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_HTLCEvent_get_htlc_event")] public static extern long LDKMonitorEvent_HTLCEvent_get_htlc_event(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_HolderForceClosed_get_holder_force_closed")] public static extern long LDKMonitorEvent_HolderForceClosed_get_holder_force_closed(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_Completed_get_funding_txo")] public static extern long LDKMonitorEvent_Completed_get_funding_txo(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_Completed_get_monitor_update_id")] public static extern long LDKMonitorEvent_Completed_get_monitor_update_id(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_get_err")] public static extern void CResultChannelMonitorUpdateStatusNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_ty_from_ptr")] public static extern long LDKMonitorEventTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_HTLCEvent_get_htlc_event")] public static extern long LDKMonitorEventHTLCEventGetHtlcEvent(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_HolderForceClosed_get_holder_force_closed")] public static extern long LDKMonitorEventHolderForceClosedGetHolderForceClosed(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_Completed_get_funding_txo")] public static extern long LDKMonitorEventCompletedGetFundingTxo(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMonitorEvent_Completed_get_monitor_update_id")] public static extern long LDKMonitorEventCompletedGetMonitorUpdateId(long ptr); // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZGetA(long _owner); // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZGetB(long _owner); // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZGetC(long _owner); // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_InitFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_get_ok")] public static extern long CResultInitFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_get_err")] public static extern long CResult_InitFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_get_err")] public static extern long CResultInitFeaturesDecodeErrorZGetErr(long _owner); // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_get_ok")] public static extern long CResultChannelFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_get_err")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_get_err")] public static extern long CResultChannelFeaturesDecodeErrorZGetErr(long _owner); // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_NodeFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_get_ok")] public static extern long CResultNodeFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_get_err")] public static extern long CResult_NodeFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_get_err")] public static extern long CResultNodeFeaturesDecodeErrorZGetErr(long _owner); // struct LDKBolt11InvoiceFeatures CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZGetErr(long _owner); // struct LDKBolt12InvoiceFeatures CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZGetErr(long _owner); // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_get_ok")] public static extern long CResultBlindedHopFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_get_err")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_get_err")] public static extern long CResultBlindedHopFeaturesDecodeErrorZGetErr(long _owner); // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok")] public static extern long CResultChannelTypeFeaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err")] public static extern long CResultChannelTypeFeaturesDecodeErrorZGetErr(long _owner); // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_get_ok")] public static extern long CResult_OfferBolt12ParseErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_get_ok")] public static extern long CResultOfferBolt12ParseErrorZGetOk(long _owner); // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_get_err")] public static extern long CResult_OfferBolt12ParseErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_get_err")] public static extern long CResultOfferBolt12ParseErrorZGetErr(long _owner); // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_get_ok")] public static extern long CResult_PublicKeySecp256k1ErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_get_ok")] public static extern long CResultPublicKeySecp256k1ErrorZGetOk(long _owner); // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResultPublicKeySecp256k1ErrorZGetErr(long _owner); // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_get_ok")] public static extern long CResult_NodeIdDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_get_ok")] public static extern long CResultNodeIdDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_get_err")] public static extern long CResult_NodeIdDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ty_from_ptr")] public static extern long LDKNetworkUpdate_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelUpdateMessage_get_msg")] public static extern long LDKNetworkUpdate_ChannelUpdateMessage_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelFailure_get_short_channel_id")] public static extern long LDKNetworkUpdate_ChannelFailure_get_short_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelFailure_get_is_permanent")] public static extern bool LDKNetworkUpdate_ChannelFailure_get_is_permanent(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_NodeFailure_get_node_id")] public static extern long LDKNetworkUpdate_NodeFailure_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_NodeFailure_get_is_permanent")] public static extern bool LDKNetworkUpdate_NodeFailure_get_is_permanent(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_NetworkUpdateZ_ty_from_ptr")] public static extern long LDKCOption_NetworkUpdateZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_NetworkUpdateZ_Some_get_some")] public static extern long LDKCOption_NetworkUpdateZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_get_err")] public static extern long CResultNodeIdDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ty_from_ptr")] public static extern long LDKNetworkUpdateTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelUpdateMessage_get_msg")] public static extern long LDKNetworkUpdateChannelUpdateMessageGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelFailure_get_short_channel_id")] public static extern long LDKNetworkUpdateChannelFailureGetShortChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_ChannelFailure_get_is_permanent")] public static extern bool LDKNetworkUpdateChannelFailureGetIsPermanent(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_NodeFailure_get_node_id")] public static extern long LDKNetworkUpdateNodeFailureGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNetworkUpdate_NodeFailure_get_is_permanent")] public static extern bool LDKNetworkUpdateNodeFailureGetIsPermanent(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_NetworkUpdateZ_ty_from_ptr")] public static extern long LDKCOptionNetworkUpdateZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_NetworkUpdateZ_Some_get_some")] public static extern long LDKCOptionNetworkUpdateZSomeGetSome(long ptr); // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZGetErr(long _owner); // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_get_ok")] public static extern long CResult_TxOutUtxoLookupErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_get_ok")] public static extern long CResultTxOutUtxoLookupErrorZGetOk(long _owner); // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_get_err")] public static extern UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_ty_from_ptr")] public static extern long LDKUtxoResult_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_Sync_get_sync")] public static extern long LDKUtxoResult_Sync_get_sync(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_Async_get_async")] public static extern long LDKUtxoResult_Async_get_async(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_get_err")] public static extern UtxoLookupError CResultTxOutUtxoLookupErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_ty_from_ptr")] public static extern long LDKUtxoResultTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_Sync_get_sync")] public static extern long LDKUtxoResultSyncGetSync(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoResult_Async_get_async")] public static extern long LDKUtxoResultAsyncGetAsync(long ptr); public interface LDKUtxoLookup { - long get_utxo(long chain_hash, long short_channel_id); + long GetUtxo(long chain_hash, long short_channel_id); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoLookup_new")] public static extern long LDKUtxoLookup_new_native(long impl_idx); - public static long[] LDKUtxoLookup_new(LDKUtxoLookup impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUtxoLookup_new")] public static extern long LDKUtxoLookupNewNative(long impl_idx); + public static long[] LDKUtxoLookupNew(LDKUtxoLookup impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -591,310 +591,310 @@ public static long[] LDKUtxoLookup_new(LDKUtxoLookup impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKUtxoLookup_new_native(i); + ret[0] = LDKUtxoLookupNewNative(i); ret[1] = i; return ret; } // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*chain_hash)[32], uint64_t short_channel_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookup_get_utxo")] public static extern long UtxoLookup_get_utxo(long _this_arg, long _chain_hash, long _short_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_UtxoLookupZ_ty_from_ptr")] public static extern long LDKCOption_UtxoLookupZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_UtxoLookupZ_Some_get_some")] public static extern long LDKCOption_UtxoLookupZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookup_get_utxo")] public static extern long UtxoLookupGetUtxo(long _this_arg, long _chain_hash, long _short_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_UtxoLookupZ_ty_from_ptr")] public static extern long LDKCOptionUtxoLookupZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_UtxoLookupZ_Some_get_some")] public static extern long LDKCOptionUtxoLookupZSomeGetSome(long ptr); // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_get_ok")] public static extern void CResult_NoneLightningErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_get_ok")] public static extern void CResultNoneLightningErrorZGetOk(long _owner); // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_get_err")] public static extern long CResult_NoneLightningErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_get_err")] public static extern long CResultNoneLightningErrorZGetErr(long _owner); // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_get_ok")] public static extern bool CResult_boolLightningErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_get_ok")] public static extern bool CResultBoollightningerrorzGetOk(long _owner); // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_get_err")] public static extern long CResult_boolLightningErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_get_err")] public static extern long CResultBoollightningerrorzGetErr(long _owner); // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetA(long _owner); // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetB(long _owner); // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr")] public static extern long LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some")] public static extern long LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_ty_from_ptr")] public static extern long LDKErrorAction_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_DisconnectPeer_get_msg")] public static extern long LDKErrorAction_DisconnectPeer_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_DisconnectPeerWithWarning_get_msg")] public static extern long LDKErrorAction_DisconnectPeerWithWarning_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_IgnoreAndLog_get_ignore_and_log")] public static extern Level LDKErrorAction_IgnoreAndLog_get_ignore_and_log(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendErrorMessage_get_msg")] public static extern long LDKErrorAction_SendErrorMessage_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendWarningMessage_get_msg")] public static extern long LDKErrorAction_SendWarningMessage_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendWarningMessage_get_log_level")] public static extern Level LDKErrorAction_SendWarningMessage_get_log_level(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_ty_from_ptr")] public static extern long LDKMessageSendEvent_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannel_get_node_id")] public static extern long LDKMessageSendEvent_SendAcceptChannel_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannel_get_msg")] public static extern long LDKMessageSendEvent_SendAcceptChannel_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannelV2_get_node_id")] public static extern long LDKMessageSendEvent_SendAcceptChannelV2_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannelV2_get_msg")] public static extern long LDKMessageSendEvent_SendAcceptChannelV2_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannel_get_node_id")] public static extern long LDKMessageSendEvent_SendOpenChannel_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannel_get_msg")] public static extern long LDKMessageSendEvent_SendOpenChannel_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannelV2_get_node_id")] public static extern long LDKMessageSendEvent_SendOpenChannelV2_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannelV2_get_msg")] public static extern long LDKMessageSendEvent_SendOpenChannelV2_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingCreated_get_node_id")] public static extern long LDKMessageSendEvent_SendFundingCreated_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingCreated_get_msg")] public static extern long LDKMessageSendEvent_SendFundingCreated_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingSigned_get_node_id")] public static extern long LDKMessageSendEvent_SendFundingSigned_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingSigned_get_msg")] public static extern long LDKMessageSendEvent_SendFundingSigned_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendStfu_get_node_id")] public static extern long LDKMessageSendEvent_SendStfu_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendStfu_get_msg")] public static extern long LDKMessageSendEvent_SendStfu_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSplice_get_node_id")] public static extern long LDKMessageSendEvent_SendSplice_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSplice_get_msg")] public static extern long LDKMessageSendEvent_SendSplice_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceAck_get_node_id")] public static extern long LDKMessageSendEvent_SendSpliceAck_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceAck_get_msg")] public static extern long LDKMessageSendEvent_SendSpliceAck_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceLocked_get_node_id")] public static extern long LDKMessageSendEvent_SendSpliceLocked_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceLocked_get_msg")] public static extern long LDKMessageSendEvent_SendSpliceLocked_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddInput_get_node_id")] public static extern long LDKMessageSendEvent_SendTxAddInput_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddInput_get_msg")] public static extern long LDKMessageSendEvent_SendTxAddInput_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddOutput_get_node_id")] public static extern long LDKMessageSendEvent_SendTxAddOutput_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddOutput_get_msg")] public static extern long LDKMessageSendEvent_SendTxAddOutput_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveInput_get_node_id")] public static extern long LDKMessageSendEvent_SendTxRemoveInput_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveInput_get_msg")] public static extern long LDKMessageSendEvent_SendTxRemoveInput_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveOutput_get_node_id")] public static extern long LDKMessageSendEvent_SendTxRemoveOutput_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveOutput_get_msg")] public static extern long LDKMessageSendEvent_SendTxRemoveOutput_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxComplete_get_node_id")] public static extern long LDKMessageSendEvent_SendTxComplete_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxComplete_get_msg")] public static extern long LDKMessageSendEvent_SendTxComplete_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxSignatures_get_node_id")] public static extern long LDKMessageSendEvent_SendTxSignatures_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxSignatures_get_msg")] public static extern long LDKMessageSendEvent_SendTxSignatures_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxInitRbf_get_node_id")] public static extern long LDKMessageSendEvent_SendTxInitRbf_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxInitRbf_get_msg")] public static extern long LDKMessageSendEvent_SendTxInitRbf_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAckRbf_get_node_id")] public static extern long LDKMessageSendEvent_SendTxAckRbf_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAckRbf_get_msg")] public static extern long LDKMessageSendEvent_SendTxAckRbf_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAbort_get_node_id")] public static extern long LDKMessageSendEvent_SendTxAbort_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAbort_get_msg")] public static extern long LDKMessageSendEvent_SendTxAbort_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReady_get_node_id")] public static extern long LDKMessageSendEvent_SendChannelReady_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReady_get_msg")] public static extern long LDKMessageSendEvent_SendChannelReady_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id")] public static extern long LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg")] public static extern long LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_UpdateHTLCs_get_node_id")] public static extern long LDKMessageSendEvent_UpdateHTLCs_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_UpdateHTLCs_get_updates")] public static extern long LDKMessageSendEvent_UpdateHTLCs_get_updates(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendRevokeAndACK_get_node_id")] public static extern long LDKMessageSendEvent_SendRevokeAndACK_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendRevokeAndACK_get_msg")] public static extern long LDKMessageSendEvent_SendRevokeAndACK_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendClosingSigned_get_node_id")] public static extern long LDKMessageSendEvent_SendClosingSigned_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendClosingSigned_get_msg")] public static extern long LDKMessageSendEvent_SendClosingSigned_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShutdown_get_node_id")] public static extern long LDKMessageSendEvent_SendShutdown_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShutdown_get_msg")] public static extern long LDKMessageSendEvent_SendShutdown_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReestablish_get_node_id")] public static extern long LDKMessageSendEvent_SendChannelReestablish_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReestablish_get_msg")] public static extern long LDKMessageSendEvent_SendChannelReestablish_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_node_id")] public static extern long LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_msg")] public static extern long LDKMessageSendEvent_SendChannelAnnouncement_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg")] public static extern long LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg")] public static extern long LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg")] public static extern long LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg")] public static extern long LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg")] public static extern long LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelUpdate_get_node_id")] public static extern long LDKMessageSendEvent_SendChannelUpdate_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelUpdate_get_msg")] public static extern long LDKMessageSendEvent_SendChannelUpdate_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_HandleError_get_node_id")] public static extern long LDKMessageSendEvent_HandleError_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_HandleError_get_action")] public static extern long LDKMessageSendEvent_HandleError_get_action(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id")] public static extern long LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelRangeQuery_get_msg")] public static extern long LDKMessageSendEvent_SendChannelRangeQuery_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShortIdsQuery_get_node_id")] public static extern long LDKMessageSendEvent_SendShortIdsQuery_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShortIdsQuery_get_msg")] public static extern long LDKMessageSendEvent_SendShortIdsQuery_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendReplyChannelRange_get_node_id")] public static extern long LDKMessageSendEvent_SendReplyChannelRange_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendReplyChannelRange_get_msg")] public static extern long LDKMessageSendEvent_SendReplyChannelRange_get_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id")] public static extern long LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg")] public static extern long LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetC(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr")] public static extern long LDKCOptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some")] public static extern long LDKCOptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_ty_from_ptr")] public static extern long LDKErrorActionTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_DisconnectPeer_get_msg")] public static extern long LDKErrorActionDisconnectPeerGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_DisconnectPeerWithWarning_get_msg")] public static extern long LDKErrorActionDisconnectPeerWithWarningGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_IgnoreAndLog_get_ignore_and_log")] public static extern Level LDKErrorActionIgnoreAndLogGetIgnoreAndLog(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendErrorMessage_get_msg")] public static extern long LDKErrorActionSendErrorMessageGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendWarningMessage_get_msg")] public static extern long LDKErrorActionSendWarningMessageGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKErrorAction_SendWarningMessage_get_log_level")] public static extern Level LDKErrorActionSendWarningMessageGetLogLevel(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_ty_from_ptr")] public static extern long LDKMessageSendEventTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannel_get_node_id")] public static extern long LDKMessageSendEventSendAcceptChannelGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannel_get_msg")] public static extern long LDKMessageSendEventSendAcceptChannelGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannelV2_get_node_id")] public static extern long LDKMessageSendEventSendAcceptChannelV2GetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAcceptChannelV2_get_msg")] public static extern long LDKMessageSendEventSendAcceptChannelV2GetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannel_get_node_id")] public static extern long LDKMessageSendEventSendOpenChannelGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannel_get_msg")] public static extern long LDKMessageSendEventSendOpenChannelGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannelV2_get_node_id")] public static extern long LDKMessageSendEventSendOpenChannelV2GetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendOpenChannelV2_get_msg")] public static extern long LDKMessageSendEventSendOpenChannelV2GetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingCreated_get_node_id")] public static extern long LDKMessageSendEventSendFundingCreatedGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingCreated_get_msg")] public static extern long LDKMessageSendEventSendFundingCreatedGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingSigned_get_node_id")] public static extern long LDKMessageSendEventSendFundingSignedGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendFundingSigned_get_msg")] public static extern long LDKMessageSendEventSendFundingSignedGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendStfu_get_node_id")] public static extern long LDKMessageSendEventSendStfuGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendStfu_get_msg")] public static extern long LDKMessageSendEventSendStfuGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSplice_get_node_id")] public static extern long LDKMessageSendEventSendSpliceGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSplice_get_msg")] public static extern long LDKMessageSendEventSendSpliceGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceAck_get_node_id")] public static extern long LDKMessageSendEventSendSpliceAckGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceAck_get_msg")] public static extern long LDKMessageSendEventSendSpliceAckGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceLocked_get_node_id")] public static extern long LDKMessageSendEventSendSpliceLockedGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendSpliceLocked_get_msg")] public static extern long LDKMessageSendEventSendSpliceLockedGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddInput_get_node_id")] public static extern long LDKMessageSendEventSendTxAddInputGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddInput_get_msg")] public static extern long LDKMessageSendEventSendTxAddInputGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddOutput_get_node_id")] public static extern long LDKMessageSendEventSendTxAddOutputGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAddOutput_get_msg")] public static extern long LDKMessageSendEventSendTxAddOutputGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveInput_get_node_id")] public static extern long LDKMessageSendEventSendTxRemoveInputGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveInput_get_msg")] public static extern long LDKMessageSendEventSendTxRemoveInputGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveOutput_get_node_id")] public static extern long LDKMessageSendEventSendTxRemoveOutputGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxRemoveOutput_get_msg")] public static extern long LDKMessageSendEventSendTxRemoveOutputGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxComplete_get_node_id")] public static extern long LDKMessageSendEventSendTxCompleteGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxComplete_get_msg")] public static extern long LDKMessageSendEventSendTxCompleteGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxSignatures_get_node_id")] public static extern long LDKMessageSendEventSendTxSignaturesGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxSignatures_get_msg")] public static extern long LDKMessageSendEventSendTxSignaturesGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxInitRbf_get_node_id")] public static extern long LDKMessageSendEventSendTxInitRbfGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxInitRbf_get_msg")] public static extern long LDKMessageSendEventSendTxInitRbfGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAckRbf_get_node_id")] public static extern long LDKMessageSendEventSendTxAckRbfGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAckRbf_get_msg")] public static extern long LDKMessageSendEventSendTxAckRbfGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAbort_get_node_id")] public static extern long LDKMessageSendEventSendTxAbortGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendTxAbort_get_msg")] public static extern long LDKMessageSendEventSendTxAbortGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReady_get_node_id")] public static extern long LDKMessageSendEventSendChannelReadyGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReady_get_msg")] public static extern long LDKMessageSendEventSendChannelReadyGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id")] public static extern long LDKMessageSendEventSendAnnouncementSignaturesGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg")] public static extern long LDKMessageSendEventSendAnnouncementSignaturesGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_UpdateHTLCs_get_node_id")] public static extern long LDKMessageSendEventUpdateHTLCsGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_UpdateHTLCs_get_updates")] public static extern long LDKMessageSendEventUpdateHTLCsGetUpdates(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendRevokeAndACK_get_node_id")] public static extern long LDKMessageSendEventSendRevokeAndACKGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendRevokeAndACK_get_msg")] public static extern long LDKMessageSendEventSendRevokeAndACKGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendClosingSigned_get_node_id")] public static extern long LDKMessageSendEventSendClosingSignedGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendClosingSigned_get_msg")] public static extern long LDKMessageSendEventSendClosingSignedGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShutdown_get_node_id")] public static extern long LDKMessageSendEventSendShutdownGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShutdown_get_msg")] public static extern long LDKMessageSendEventSendShutdownGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReestablish_get_node_id")] public static extern long LDKMessageSendEventSendChannelReestablishGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelReestablish_get_msg")] public static extern long LDKMessageSendEventSendChannelReestablishGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_node_id")] public static extern long LDKMessageSendEventSendChannelAnnouncementGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_msg")] public static extern long LDKMessageSendEventSendChannelAnnouncementGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg")] public static extern long LDKMessageSendEventSendChannelAnnouncementGetUpdateMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg")] public static extern long LDKMessageSendEventBroadcastChannelAnnouncementGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg")] public static extern long LDKMessageSendEventBroadcastChannelAnnouncementGetUpdateMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg")] public static extern long LDKMessageSendEventBroadcastChannelUpdateGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg")] public static extern long LDKMessageSendEventBroadcastNodeAnnouncementGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelUpdate_get_node_id")] public static extern long LDKMessageSendEventSendChannelUpdateGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelUpdate_get_msg")] public static extern long LDKMessageSendEventSendChannelUpdateGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_HandleError_get_node_id")] public static extern long LDKMessageSendEventHandleErrorGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_HandleError_get_action")] public static extern long LDKMessageSendEventHandleErrorGetAction(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id")] public static extern long LDKMessageSendEventSendChannelRangeQueryGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendChannelRangeQuery_get_msg")] public static extern long LDKMessageSendEventSendChannelRangeQueryGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShortIdsQuery_get_node_id")] public static extern long LDKMessageSendEventSendShortIdsQueryGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendShortIdsQuery_get_msg")] public static extern long LDKMessageSendEventSendShortIdsQueryGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendReplyChannelRange_get_node_id")] public static extern long LDKMessageSendEventSendReplyChannelRangeGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendReplyChannelRange_get_msg")] public static extern long LDKMessageSendEventSendReplyChannelRangeGetMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id")] public static extern long LDKMessageSendEventSendGossipTimestampFilterGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg")] public static extern long LDKMessageSendEventSendGossipTimestampFilterGetMsg(long ptr); // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok")] public static extern long CResultChannelUpdateInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_get_err")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_get_err")] public static extern long CResultChannelUpdateInfoDecodeErrorZGetErr(long _owner); // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_get_ok")] public static extern long CResult_ChannelInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_get_ok")] public static extern long CResultChannelInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_get_err")] public static extern long CResult_ChannelInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_get_err")] public static extern long CResultChannelInfoDecodeErrorZGetErr(long _owner); // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_get_ok")] public static extern long CResult_RoutingFeesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_get_ok")] public static extern long CResultRoutingFeesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_get_err")] public static extern long CResult_RoutingFeesDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_ty_from_ptr")] public static extern long LDKSocketAddress_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV4_get_addr")] public static extern long LDKSocketAddress_TcpIpV4_get_addr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV4_get_port")] public static extern short LDKSocketAddress_TcpIpV4_get_port(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV6_get_addr")] public static extern long LDKSocketAddress_TcpIpV6_get_addr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV6_get_port")] public static extern short LDKSocketAddress_TcpIpV6_get_port(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV2_get_onion_v2")] public static extern long LDKSocketAddress_OnionV2_get_onion_v2(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_ed25519_pubkey")] public static extern long LDKSocketAddress_OnionV3_get_ed25519_pubkey(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_checksum")] public static extern short LDKSocketAddress_OnionV3_get_checksum(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_version")] public static extern byte LDKSocketAddress_OnionV3_get_version(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_port")] public static extern short LDKSocketAddress_OnionV3_get_port(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_Hostname_get_hostname")] public static extern long LDKSocketAddress_Hostname_get_hostname(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_Hostname_get_port")] public static extern short LDKSocketAddress_Hostname_get_port(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_get_err")] public static extern long CResultRoutingFeesDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_ty_from_ptr")] public static extern long LDKSocketAddressTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV4_get_addr")] public static extern long LDKSocketAddressTcpIpV4GetAddr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV4_get_port")] public static extern short LDKSocketAddressTcpIpV4GetPort(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV6_get_addr")] public static extern long LDKSocketAddressTcpIpV6GetAddr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_TcpIpV6_get_port")] public static extern short LDKSocketAddressTcpIpV6GetPort(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV2_get_onion_v2")] public static extern long LDKSocketAddressOnionV2GetOnionV2(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_ed25519_pubkey")] public static extern long LDKSocketAddressOnionV3GetEd25519Pubkey(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_checksum")] public static extern short LDKSocketAddressOnionV3GetChecksum(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_version")] public static extern byte LDKSocketAddressOnionV3GetVersion(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_OnionV3_get_port")] public static extern short LDKSocketAddressOnionV3GetPort(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_Hostname_get_hostname")] public static extern long LDKSocketAddressHostnameGetHostname(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketAddress_Hostname_get_port")] public static extern short LDKSocketAddressHostnameGetPort(long ptr); // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZGetErr(long _owner); // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_get_ok")] public static extern long CResult_NodeAliasDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_get_ok")] public static extern long CResultNodeAliasDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_get_err")] public static extern long CResult_NodeAliasDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_get_err")] public static extern long CResultNodeAliasDecodeErrorZGetErr(long _owner); // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_get_ok")] public static extern long CResult_NodeInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_get_ok")] public static extern long CResultNodeInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_get_err")] public static extern long CResult_NodeInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_get_err")] public static extern long CResultNodeInfoDecodeErrorZGetErr(long _owner); // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_get_ok")] public static extern long CResult_NetworkGraphDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_get_ok")] public static extern long CResultNetworkGraphDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_get_err")] public static extern long CResult_NetworkGraphDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_SocketAddressZZ_ty_from_ptr")] public static extern long LDKCOption_CVec_SocketAddressZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_SocketAddressZZ_Some_get_some")] public static extern long LDKCOption_CVec_SocketAddressZZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_get_err")] public static extern long CResultNetworkGraphDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_SocketAddressZZ_ty_from_ptr")] public static extern long LDKCOptionCVecSocketAddressZZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_CVec_SocketAddressZZ_Some_get_some")] public static extern long LDKCOptionCVecSocketAddressZZSomeGetSome(long ptr); // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok")] public static extern long CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok")] public static extern long CResultPendingHTLCInfoInboundHTLCErrZGetOk(long _owner); // struct LDKInboundHTLCErr CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_get_err")] public static extern long CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TxOutZ_ty_from_ptr")] public static extern long LDKCOption_TxOutZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TxOutZ_Some_get_some")] public static extern long LDKCOption_TxOutZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_get_err")] public static extern long CResultPendingHTLCInfoInboundHTLCErrZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TxOutZ_ty_from_ptr")] public static extern long LDKCOptionTxOutZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TxOutZ_Some_get_some")] public static extern long LDKCOptionTxOutZSomeGetSome(long ptr); // struct LDKCoinSelection CResult_CoinSelectionNoneZ_get_ok(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_get_ok")] public static extern long CResult_CoinSelectionNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_get_ok")] public static extern long CResultCoinSelectionNoneZGetOk(long _owner); // void CResult_CoinSelectionNoneZ_get_err(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_get_err")] public static extern void CResult_CoinSelectionNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_get_err")] public static extern void CResultCoinSelectionNoneZGetErr(long _owner); // struct LDKCVec_UtxoZ CResult_CVec_UtxoZNoneZ_get_ok(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_get_ok")] public static extern long CResult_CVec_UtxoZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_get_ok")] public static extern long CResultCVecUtxoZNoneZGetOk(long _owner); // void CResult_CVec_UtxoZNoneZ_get_err(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_get_err")] public static extern void CResult_CVec_UtxoZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_get_err")] public static extern void CResultCVecUtxoZNoneZGetErr(long _owner); // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_get_a")] public static extern long C2Tuple_u64u16Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_get_a")] public static extern long C2TupleU64U16ZGetA(long _owner); // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_get_b")] public static extern short C2Tuple_u64u16Z_get_b(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr")] public static extern long LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u16ZZ_Some_get_some")] public static extern long LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ChannelShutdownStateZ_ty_from_ptr")] public static extern long LDKCOption_ChannelShutdownStateZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ChannelShutdownStateZ_Some_get_some")] public static extern ChannelShutdownState LDKCOption_ChannelShutdownStateZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_get_b")] public static extern short C2TupleU64U16ZGetB(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr")] public static extern long LDKCOptionC2TupleU64U16ZzTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_C2Tuple_u64u16ZZ_Some_get_some")] public static extern long LDKCOptionC2TupleU64U16ZzSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ChannelShutdownStateZ_ty_from_ptr")] public static extern long LDKCOptionChannelShutdownStateZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ChannelShutdownStateZ_Some_get_some")] public static extern ChannelShutdownState LDKCOptionChannelShutdownStateZSomeGetSome(long ptr); // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_get_ok")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_get_ok")] public static extern long CResultThirtyTwoBytesAPIErrorZGetOk(long _owner); // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_get_err")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_ty_from_ptr")] public static extern long LDKRecentPaymentDetails_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_AwaitingInvoice_get_payment_id")] public static extern long LDKRecentPaymentDetails_AwaitingInvoice_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_payment_id")] public static extern long LDKRecentPaymentDetails_Pending_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_payment_hash")] public static extern long LDKRecentPaymentDetails_Pending_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_total_msat")] public static extern long LDKRecentPaymentDetails_Pending_get_total_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Fulfilled_get_payment_id")] public static extern long LDKRecentPaymentDetails_Fulfilled_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Fulfilled_get_payment_hash")] public static extern long LDKRecentPaymentDetails_Fulfilled_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Abandoned_get_payment_id")] public static extern long LDKRecentPaymentDetails_Abandoned_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Abandoned_get_payment_hash")] public static extern long LDKRecentPaymentDetails_Abandoned_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_ty_from_ptr")] public static extern long LDKPaymentSendFailure_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_ParameterError_get_parameter_error")] public static extern long LDKPaymentSendFailure_ParameterError_get_parameter_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error")] public static extern long LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe")] public static extern long LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_results")] public static extern long LDKPaymentSendFailure_PartialFailure_get_results(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry")] public static extern long LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_payment_id")] public static extern long LDKPaymentSendFailure_PartialFailure_get_payment_id(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_get_err")] public static extern long CResultThirtyTwoBytesAPIErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_ty_from_ptr")] public static extern long LDKRecentPaymentDetailsTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_AwaitingInvoice_get_payment_id")] public static extern long LDKRecentPaymentDetailsAwaitingInvoiceGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_payment_id")] public static extern long LDKRecentPaymentDetailsPendingGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_payment_hash")] public static extern long LDKRecentPaymentDetailsPendingGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Pending_get_total_msat")] public static extern long LDKRecentPaymentDetailsPendingGetTotalMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Fulfilled_get_payment_id")] public static extern long LDKRecentPaymentDetailsFulfilledGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Fulfilled_get_payment_hash")] public static extern long LDKRecentPaymentDetailsFulfilledGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Abandoned_get_payment_id")] public static extern long LDKRecentPaymentDetailsAbandonedGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRecentPaymentDetails_Abandoned_get_payment_hash")] public static extern long LDKRecentPaymentDetailsAbandonedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_ty_from_ptr")] public static extern long LDKPaymentSendFailureTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_ParameterError_get_parameter_error")] public static extern long LDKPaymentSendFailureParameterErrorGetParameterError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error")] public static extern long LDKPaymentSendFailurePathParameterErrorGetPathParameterError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe")] public static extern long LDKPaymentSendFailureAllFailedResendSafeGetAllFailedResendSafe(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_results")] public static extern long LDKPaymentSendFailurePartialFailureGetResults(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry")] public static extern long LDKPaymentSendFailurePartialFailureGetFailedPathsRetry(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentSendFailure_PartialFailure_get_payment_id")] public static extern long LDKPaymentSendFailurePartialFailureGetPaymentId(long ptr); // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_get_ok")] public static extern void CResult_NonePaymentSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_get_ok")] public static extern void CResultNonePaymentSendFailureZGetOk(long _owner); // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_get_err")] public static extern long CResult_NonePaymentSendFailureZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_get_err")] public static extern long CResultNonePaymentSendFailureZGetErr(long _owner); // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_get_ok")] public static extern void CResult_NoneRetryableSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_get_ok")] public static extern void CResultNoneRetryableSendFailureZGetOk(long _owner); // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_get_err")] public static extern RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_get_err")] public static extern RetryableSendFailure CResultNoneRetryableSendFailureZGetErr(long _owner); // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZGetOk(long _owner); // struct LDKPaymentSendFailure CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZGetErr(long _owner); // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok")] public static extern long CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok")] public static extern long CResultThirtyTwoBytesRetryableSendFailureZGetOk(long _owner); // enum LDKRetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err")] public static extern RetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err")] public static extern RetryableSendFailure CResultThirtyTwoBytesRetryableSendFailureZGetErr(long _owner); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a")] public static extern long C2TupleThirtyTwoBytesThirtyTwoBytesZGetA(long _owner); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b")] public static extern long C2TupleThirtyTwoBytesThirtyTwoBytesZGetB(long _owner); // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZGetOk(long _owner); // struct LDKPaymentSendFailure CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKProbeSendFailure_ty_from_ptr")] public static extern long LDKProbeSendFailure_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKProbeSendFailure_SendingFailed_get_sending_failed")] public static extern long LDKProbeSendFailure_SendingFailed_get_sending_failed(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKProbeSendFailure_ty_from_ptr")] public static extern long LDKProbeSendFailureTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKProbeSendFailure_SendingFailed_get_sending_failed")] public static extern long LDKProbeSendFailureSendingFailedGetSendingFailed(long ptr); // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZGetOk(long _owner); // struct LDKProbeSendFailure CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZGetErr(long _owner); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a")] public static extern long C2TupleThirtyTwoBytesPublicKeyZGetA(long _owner); // struct LDKPublicKey C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_StrZ_ty_from_ptr")] public static extern long LDKCOption_StrZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_StrZ_Some_get_some")] public static extern long LDKCOption_StrZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b")] public static extern long C2TupleThirtyTwoBytesPublicKeyZGetB(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_StrZ_ty_from_ptr")] public static extern long LDKCOptionStrZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_StrZ_Some_get_some")] public static extern long LDKCOptionStrZSomeGetSome(long ptr); // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_get_ok")] public static extern void CResult_NoneBolt12SemanticErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_get_ok")] public static extern void CResultNoneBolt12SemanticErrorZGetOk(long _owner); // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_get_err")] public static extern Bolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_get_err")] public static extern Bolt12SemanticError CResultNoneBolt12SemanticErrorZGetErr(long _owner); // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZGetOk(long _owner); // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err")] public static extern void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_ty_from_ptr")] public static extern long LDKOffersMessage_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_InvoiceRequest_get_invoice_request")] public static extern long LDKOffersMessage_InvoiceRequest_get_invoice_request(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_Invoice_get_invoice")] public static extern long LDKOffersMessage_Invoice_get_invoice(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_InvoiceError_get_invoice_error")] public static extern long LDKOffersMessage_InvoiceError_get_invoice_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OffersMessageZ_ty_from_ptr")] public static extern long LDKCOption_OffersMessageZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OffersMessageZ_Some_get_some")] public static extern long LDKCOption_OffersMessageZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_ty_from_ptr")] public static extern long LDKDestination_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_Node_get_node")] public static extern long LDKDestination_Node_get_node(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_BlindedPath_get_blinded_path")] public static extern long LDKDestination_BlindedPath_get_blinded_path(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err")] public static extern void CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_ty_from_ptr")] public static extern long LDKOffersMessageTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_InvoiceRequest_get_invoice_request")] public static extern long LDKOffersMessageInvoiceRequestGetInvoiceRequest(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_Invoice_get_invoice")] public static extern long LDKOffersMessageInvoiceGetInvoice(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessage_InvoiceError_get_invoice_error")] public static extern long LDKOffersMessageInvoiceErrorGetInvoiceError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OffersMessageZ_ty_from_ptr")] public static extern long LDKCOptionOffersMessageZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OffersMessageZ_Some_get_some")] public static extern long LDKCOptionOffersMessageZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_ty_from_ptr")] public static extern long LDKDestinationTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_Node_get_node")] public static extern long LDKDestinationNodeGetNode(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKDestination_BlindedPath_get_blinded_path")] public static extern long LDKDestinationBlindedPathGetBlindedPath(long ptr); // struct LDKOffersMessage C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_a")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_a")] public static extern long C3TupleOffersMessageDestinationBlindedPathZGetA(long _owner); // struct LDKDestination C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_b")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_b")] public static extern long C3TupleOffersMessageDestinationBlindedPathZGetB(long _owner); // struct LDKBlindedPath C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_c")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_get_c")] public static extern long C3TupleOffersMessageDestinationBlindedPathZGetC(long _owner); // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZGetErr(long _owner); // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_get_ok")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_get_ok")] public static extern long CResultChannelCounterpartyDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_get_err")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_get_err")] public static extern long CResultChannelCounterpartyDecodeErrorZGetErr(long _owner); // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_get_ok")] public static extern long CResult_ChannelDetailsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_get_ok")] public static extern long CResultChannelDetailsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_get_err")] public static extern long CResult_ChannelDetailsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_get_err")] public static extern long CResultChannelDetailsDecodeErrorZGetErr(long _owner); // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_get_ok")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_get_ok")] public static extern long CResultPhantomRouteHintsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_get_err")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_get_err")] public static extern long CResultPhantomRouteHintsDecodeErrorZGetErr(long _owner); // struct LDKBlindedForward CResult_BlindedForwardDecodeErrorZ_get_ok(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_get_ok")] public static extern long CResult_BlindedForwardDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_get_ok")] public static extern long CResultBlindedForwardDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedForwardDecodeErrorZ_get_err(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_get_err")] public static extern long CResult_BlindedForwardDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ty_from_ptr")] public static extern long LDKPendingHTLCRouting_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_onion_packet")] public static extern long LDKPendingHTLCRouting_Forward_get_onion_packet(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_short_channel_id")] public static extern long LDKPendingHTLCRouting_Forward_get_short_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_blinded")] public static extern long LDKPendingHTLCRouting_Forward_get_blinded(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_payment_data")] public static extern long LDKPendingHTLCRouting_Receive_get_payment_data(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_payment_metadata")] public static extern long LDKPendingHTLCRouting_Receive_get_payment_metadata(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_incoming_cltv_expiry")] public static extern int LDKPendingHTLCRouting_Receive_get_incoming_cltv_expiry(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_phantom_shared_secret")] public static extern long LDKPendingHTLCRouting_Receive_get_phantom_shared_secret(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_custom_tlvs")] public static extern long LDKPendingHTLCRouting_Receive_get_custom_tlvs(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_requires_blinded_error")] public static extern bool LDKPendingHTLCRouting_Receive_get_requires_blinded_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_data")] public static extern long LDKPendingHTLCRouting_ReceiveKeysend_get_payment_data(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_preimage")] public static extern long LDKPendingHTLCRouting_ReceiveKeysend_get_payment_preimage(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_metadata")] public static extern long LDKPendingHTLCRouting_ReceiveKeysend_get_payment_metadata(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_incoming_cltv_expiry")] public static extern int LDKPendingHTLCRouting_ReceiveKeysend_get_incoming_cltv_expiry(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs")] public static extern long LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_get_err")] public static extern long CResultBlindedForwardDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ty_from_ptr")] public static extern long LDKPendingHTLCRoutingTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_onion_packet")] public static extern long LDKPendingHTLCRoutingForwardGetOnionPacket(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_short_channel_id")] public static extern long LDKPendingHTLCRoutingForwardGetShortChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Forward_get_blinded")] public static extern long LDKPendingHTLCRoutingForwardGetBlinded(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_payment_data")] public static extern long LDKPendingHTLCRoutingReceiveGetPaymentData(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_payment_metadata")] public static extern long LDKPendingHTLCRoutingReceiveGetPaymentMetadata(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_incoming_cltv_expiry")] public static extern int LDKPendingHTLCRoutingReceiveGetIncomingCltvExpiry(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_phantom_shared_secret")] public static extern long LDKPendingHTLCRoutingReceiveGetPhantomSharedSecret(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_custom_tlvs")] public static extern long LDKPendingHTLCRoutingReceiveGetCustomTlvs(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_Receive_get_requires_blinded_error")] public static extern bool LDKPendingHTLCRoutingReceiveGetRequiresBlindedError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_data")] public static extern long LDKPendingHTLCRoutingReceiveKeysendGetPaymentData(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_preimage")] public static extern long LDKPendingHTLCRoutingReceiveKeysendGetPaymentPreimage(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_payment_metadata")] public static extern long LDKPendingHTLCRoutingReceiveKeysendGetPaymentMetadata(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_incoming_cltv_expiry")] public static extern int LDKPendingHTLCRoutingReceiveKeysendGetIncomingCltvExpiry(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs")] public static extern long LDKPendingHTLCRoutingReceiveKeysendGetCustomTlvs(long ptr); // struct LDKPendingHTLCRouting CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_get_ok")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_get_ok")] public static extern long CResultPendingHTLCRoutingDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PendingHTLCRoutingDecodeErrorZ_get_err(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_get_err")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_get_err")] public static extern long CResultPendingHTLCRoutingDecodeErrorZGetErr(long _owner); // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoDecodeErrorZ_get_ok(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_get_ok")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_get_ok")] public static extern long CResultPendingHTLCInfoDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PendingHTLCInfoDecodeErrorZ_get_err(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_get_err")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_get_err")] public static extern long CResultPendingHTLCInfoDecodeErrorZGetErr(long _owner); // enum LDKBlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_get_ok")] public static extern BlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_get_ok")] public static extern BlindedFailure CResultBlindedFailureDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedFailureDecodeErrorZ_get_err(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_get_err")] public static extern long CResult_BlindedFailureDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_get_err")] public static extern long CResultBlindedFailureDecodeErrorZGetErr(long _owner); // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_get_ok")] public static extern ChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_get_ok")] public static extern ChannelShutdownState CResultChannelShutdownStateDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_get_err")] public static extern long CResult_ChannelShutdownStateDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_get_err")] public static extern long CResultChannelShutdownStateDecodeErrorZGetErr(long _owner); public interface LDKWatch { - long watch_channel(long funding_txo, long monitor); - ChannelMonitorUpdateStatus update_channel(long funding_txo, long update); - long release_pending_monitor_events(); + long WatchChannel(long funding_txo, long monitor); + ChannelMonitorUpdateStatus UpdateChannel(long funding_txo, long update); + long ReleasePendingMonitorEvents(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWatch_new")] public static extern long LDKWatch_new_native(long impl_idx); - public static long[] LDKWatch_new(LDKWatch impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWatch_new")] public static extern long LDKWatchNewNative(long impl_idx); + public static long[] LDKWatchNew(LDKWatch impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -906,21 +906,21 @@ public static long[] LDKWatch_new(LDKWatch impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKWatch_new_native(i); + ret[0] = LDKWatchNewNative(i); ret[1] = i; return ret; } // LDKCResult_ChannelMonitorUpdateStatusNoneZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_watch_channel")] public static extern long Watch_watch_channel(long _this_arg, long _funding_txo, long _monitor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_watch_channel")] public static extern long WatchWatchChannel(long _this_arg, long _funding_txo, long _monitor); // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_update_channel")] public static extern ChannelMonitorUpdateStatus Watch_update_channel(long _this_arg, long _funding_txo, long _update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_update_channel")] public static extern ChannelMonitorUpdateStatus WatchUpdateChannel(long _this_arg, long _funding_txo, long _update); // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_release_pending_monitor_events")] public static extern long Watch_release_pending_monitor_events(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_release_pending_monitor_events")] public static extern long WatchReleasePendingMonitorEvents(long _this_arg); public interface LDKBroadcasterInterface { - void broadcast_transactions(long txs); + void BroadcastTransactions(long txs); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBroadcasterInterface_new")] public static extern long LDKBroadcasterInterface_new_native(long impl_idx); - public static long[] LDKBroadcasterInterface_new(LDKBroadcasterInterface impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBroadcasterInterface_new")] public static extern long LDKBroadcasterInterfaceNewNative(long impl_idx); + public static long[] LDKBroadcasterInterfaceNew(LDKBroadcasterInterface impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -932,17 +932,17 @@ public static long[] LDKBroadcasterInterface_new(LDKBroadcasterInterface impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKBroadcasterInterface_new_native(i); + ret[0] = LDKBroadcasterInterfaceNewNative(i); ret[1] = i; return ret; } // void BroadcasterInterface_broadcast_transactions LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKCVec_TransactionZ txs - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BroadcasterInterface_broadcast_transactions")] public static extern void BroadcasterInterface_broadcast_transactions(long _this_arg, long _txs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BroadcasterInterface_broadcast_transactions")] public static extern void BroadcasterInterfaceBroadcastTransactions(long _this_arg, long _txs); public interface LDKEntropySource { - long get_secure_random_bytes(); + long GetSecureRandomBytes(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEntropySource_new")] public static extern long LDKEntropySource_new_native(long impl_idx); - public static long[] LDKEntropySource_new(LDKEntropySource impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEntropySource_new")] public static extern long LDKEntropySourceNewNative(long impl_idx); + public static long[] LDKEntropySourceNew(LDKEntropySource impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -954,27 +954,27 @@ public static long[] LDKEntropySource_new(LDKEntropySource impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKEntropySource_new_native(i); + ret[0] = LDKEntropySourceNewNative(i); ret[1] = i; return ret; } // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EntropySource_get_secure_random_bytes")] public static extern long EntropySource_get_secure_random_bytes(long _this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ty_from_ptr")] public static extern long LDKUnsignedGossipMessage_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement")] public static extern long LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update")] public static extern long LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement")] public static extern long LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EntropySource_get_secure_random_bytes")] public static extern long EntropySourceGetSecureRandomBytes(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ty_from_ptr")] public static extern long LDKUnsignedGossipMessageTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement")] public static extern long LDKUnsignedGossipMessageChannelAnnouncementGetChannelAnnouncement(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update")] public static extern long LDKUnsignedGossipMessageChannelUpdateGetChannelUpdate(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement")] public static extern long LDKUnsignedGossipMessageNodeAnnouncementGetNodeAnnouncement(long ptr); public interface LDKNodeSigner { - long get_inbound_payment_key_material(); - long get_node_id(Recipient recipient); - long ecdh(Recipient recipient, long other_key, long tweak); - long sign_invoice(long hrp_bytes, long invoice_data, Recipient recipient); - long sign_bolt12_invoice_request(long invoice_request); - long sign_bolt12_invoice(long invoice); - long sign_gossip_message(long msg); + long GetInboundPaymentKeyMaterial(); + long GetNodeId(Recipient recipient); + long Ecdh(Recipient recipient, long other_key, long tweak); + long SignInvoice(long hrp_bytes, long invoice_data, Recipient recipient); + long SignBolt12InvoiceRequest(long invoice_request); + long SignBolt12Invoice(long invoice); + long SignGossipMessage(long msg); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNodeSigner_new")] public static extern long LDKNodeSigner_new_native(long impl_idx); - public static long[] LDKNodeSigner_new(LDKNodeSigner impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKNodeSigner_new")] public static extern long LDKNodeSignerNewNative(long impl_idx); + public static long[] LDKNodeSignerNew(LDKNodeSigner impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -986,33 +986,33 @@ public static long[] LDKNodeSigner_new(LDKNodeSigner impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKNodeSigner_new_native(i); + ret[0] = LDKNodeSignerNewNative(i); ret[1] = i; return ret; } // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_get_inbound_payment_key_material")] public static extern long NodeSigner_get_inbound_payment_key_material(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_get_inbound_payment_key_material")] public static extern long NodeSignerGetInboundPaymentKeyMaterial(long _this_arg); // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_get_node_id")] public static extern long NodeSigner_get_node_id(long _this_arg, Recipient _recipient); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_get_node_id")] public static extern long NodeSignerGetNodeId(long _this_arg, Recipient _recipient); // LDKCResult_ThirtyTwoBytesNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_ecdh")] public static extern long NodeSigner_ecdh(long _this_arg, Recipient _recipient, long _other_key, long _tweak); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_ecdh")] public static extern long NodeSignerEcdh(long _this_arg, Recipient _recipient, long _other_key, long _tweak); // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_invoice")] public static extern long NodeSigner_sign_invoice(long _this_arg, long _hrp_bytes, long _invoice_data, Recipient _recipient); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_invoice")] public static extern long NodeSignerSignInvoice(long _this_arg, long _hrp_bytes, long _invoice_data, Recipient _recipient); // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice_request LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_bolt12_invoice_request")] public static extern long NodeSigner_sign_bolt12_invoice_request(long _this_arg, long _invoice_request); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_bolt12_invoice_request")] public static extern long NodeSignerSignBolt12InvoiceRequest(long _this_arg, long _invoice_request); // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_bolt12_invoice")] public static extern long NodeSigner_sign_bolt12_invoice(long _this_arg, long _invoice); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_bolt12_invoice")] public static extern long NodeSignerSignBolt12Invoice(long _this_arg, long _invoice); // LDKCResult_ECDSASignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_gossip_message")] public static extern long NodeSigner_sign_gossip_message(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_sign_gossip_message")] public static extern long NodeSignerSignGossipMessage(long _this_arg, long _msg); public interface LDKSignerProvider { - long generate_channel_keys_id(bool inbound, long channel_value_satoshis, long user_channel_id); - long derive_channel_signer(long channel_value_satoshis, long channel_keys_id); - long read_chan_signer(long reader); - long get_destination_script(long channel_keys_id); - long get_shutdown_scriptpubkey(); + long GenerateChannelKeysId(bool inbound, long channel_value_satoshis, long user_channel_id); + long DeriveChannelSigner(long channel_value_satoshis, long channel_keys_id); + long ReadChanSigner(long reader); + long GetDestinationScript(long channel_keys_id); + long GetShutdownScriptpubkey(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignerProvider_new")] public static extern long LDKSignerProvider_new_native(long impl_idx); - public static long[] LDKSignerProvider_new(LDKSignerProvider impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignerProvider_new")] public static extern long LDKSignerProviderNewNative(long impl_idx); + public static long[] LDKSignerProviderNew(LDKSignerProvider impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1024,25 +1024,25 @@ public static long[] LDKSignerProvider_new(LDKSignerProvider impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKSignerProvider_new_native(i); + ret[0] = LDKSignerProviderNewNative(i); ret[1] = i; return ret; } // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_generate_channel_keys_id")] public static extern long SignerProvider_generate_channel_keys_id(long _this_arg, bool _inbound, long _channel_value_satoshis, long _user_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_generate_channel_keys_id")] public static extern long SignerProviderGenerateChannelKeysId(long _this_arg, bool _inbound, long _channel_value_satoshis, long _user_channel_id); // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_derive_channel_signer")] public static extern long SignerProvider_derive_channel_signer(long _this_arg, long _channel_value_satoshis, long _channel_keys_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_derive_channel_signer")] public static extern long SignerProviderDeriveChannelSigner(long _this_arg, long _channel_value_satoshis, long _channel_keys_id); // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_read_chan_signer")] public static extern long SignerProvider_read_chan_signer(long _this_arg, long _reader); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_read_chan_signer")] public static extern long SignerProviderReadChanSigner(long _this_arg, long _reader); // LDKCResult_CVec_u8ZNoneZ SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes channel_keys_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_get_destination_script")] public static extern long SignerProvider_get_destination_script(long _this_arg, long _channel_keys_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_get_destination_script")] public static extern long SignerProviderGetDestinationScript(long _this_arg, long _channel_keys_id); // LDKCResult_ShutdownScriptNoneZ SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_get_shutdown_scriptpubkey")] public static extern long SignerProvider_get_shutdown_scriptpubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_get_shutdown_scriptpubkey")] public static extern long SignerProviderGetShutdownScriptpubkey(long _this_arg); public interface LDKFeeEstimator { - int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target); + int GetEstSatPer1000Weight(ConfirmationTarget confirmation_target); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFeeEstimator_new")] public static extern long LDKFeeEstimator_new_native(long impl_idx); - public static long[] LDKFeeEstimator_new(LDKFeeEstimator impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFeeEstimator_new")] public static extern long LDKFeeEstimatorNewNative(long impl_idx); + public static long[] LDKFeeEstimatorNew(LDKFeeEstimator impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1054,18 +1054,18 @@ public static long[] LDKFeeEstimator_new(LDKFeeEstimator impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKFeeEstimator_new_native(i); + ret[0] = LDKFeeEstimatorNewNative(i); ret[1] = i; return ret; } // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FeeEstimator_get_est_sat_per_1000_weight")] public static extern int FeeEstimator_get_est_sat_per_1000_weight(long _this_arg, ConfirmationTarget _confirmation_target); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FeeEstimator_get_est_sat_per_1000_weight")] public static extern int FeeEstimatorGetEstSatPer1000Weight(long _this_arg, ConfirmationTarget _confirmation_target); public interface LDKMessageRouter { - long find_path(long sender, long peers, long destination); - long create_blinded_paths(long recipient, long peers); + long FindPath(long sender, long peers, long destination); + long CreateBlindedPaths(long recipient, long peers); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageRouter_new")] public static extern long LDKMessageRouter_new_native(long impl_idx); - public static long[] LDKMessageRouter_new(LDKMessageRouter impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageRouter_new")] public static extern long LDKMessageRouterNewNative(long impl_idx); + public static long[] LDKMessageRouterNew(LDKMessageRouter impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1077,21 +1077,21 @@ public static long[] LDKMessageRouter_new(LDKMessageRouter impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKMessageRouter_new_native(i); + ret[0] = LDKMessageRouterNewNative(i); ret[1] = i; return ret; } // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_find_path")] public static extern long MessageRouter_find_path(long _this_arg, long _sender, long _peers, long _destination); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_find_path")] public static extern long MessageRouterFindPath(long _this_arg, long _sender, long _peers, long _destination); // LDKCResult_CVec_BlindedPathZNoneZ MessageRouter_create_blinded_paths LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey recipient, struct LDKCVec_PublicKeyZ peers - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_create_blinded_paths")] public static extern long MessageRouter_create_blinded_paths(long _this_arg, long _recipient, long _peers); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_create_blinded_paths")] public static extern long MessageRouterCreateBlindedPaths(long _this_arg, long _recipient, long _peers); public interface LDKRouter { - long find_route(long payer, long route_params, long first_hops, long inflight_htlcs); - long find_route_with_id(long payer, long route_params, long first_hops, long inflight_htlcs, long _payment_hash, long _payment_id); - long create_blinded_payment_paths(long recipient, long first_hops, long tlvs, long amount_msats); + long FindRoute(long payer, long route_params, long first_hops, long inflight_htlcs); + long FindRouteWithId(long payer, long route_params, long first_hops, long inflight_htlcs, long _payment_hash, long _payment_id); + long CreateBlindedPaymentPaths(long recipient, long first_hops, long tlvs, long amount_msats); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRouter_new")] public static extern long LDKRouter_new_native(long impl_idx, long MessageRouter); - public static long[] LDKRouter_new(LDKRouter impl, long MessageRouter) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRouter_new")] public static extern long LDKRouterNewNative(long impl_idx, long MessageRouter); + public static long[] LDKRouterNew(LDKRouter impl, long MessageRouter) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1103,107 +1103,107 @@ public static long[] LDKRouter_new(LDKRouter impl, long MessageRouter) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKRouter_new_native(i, MessageRouter); + ret[0] = LDKRouterNewNative(i, MessageRouter); ret[1] = i; return ret; } // LDKCResult_RouteLightningErrorZ Router_find_route LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKInFlightHtlcs inflight_htlcs - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_find_route")] public static extern long Router_find_route(long _this_arg, long _payer, long _route_params, long _first_hops, long _inflight_htlcs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_find_route")] public static extern long RouterFindRoute(long _this_arg, long _payer, long _route_params, long _first_hops, long _inflight_htlcs); // LDKCResult_RouteLightningErrorZ Router_find_route_with_id LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKInFlightHtlcs inflight_htlcs, struct LDKThirtyTwoBytes _payment_hash, struct LDKThirtyTwoBytes _payment_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_find_route_with_id")] public static extern long Router_find_route_with_id(long _this_arg, long _payer, long _route_params, long _first_hops, long _inflight_htlcs, long __payment_hash, long __payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_find_route_with_id")] public static extern long RouterFindRouteWithId(long _this_arg, long _payer, long _route_params, long _first_hops, long _inflight_htlcs, long __payment_hash, long __payment_id); // LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ Router_create_blinded_payment_paths LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey recipient, struct LDKCVec_ChannelDetailsZ first_hops, struct LDKReceiveTlvs tlvs, uint64_t amount_msats - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_create_blinded_payment_paths")] public static extern long Router_create_blinded_payment_paths(long _this_arg, long _recipient, long _first_hops, long _tlvs, long _amount_msats); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_create_blinded_payment_paths")] public static extern long RouterCreateBlindedPaymentPaths(long _this_arg, long _recipient, long _first_hops, long _tlvs, long _amount_msats); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a")] public static extern long C2TupleThirtyTwoBytesChannelManagerZGetA(long _owner); // struct LDKChannelManager C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b")] public static extern long C2TupleThirtyTwoBytesChannelManagerZGetB(long _owner); // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_ty_from_ptr")] public static extern long LDKMaxDustHTLCExposure_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_FixedLimitMsat_get_fixed_limit_msat")] public static extern long LDKMaxDustHTLCExposure_FixedLimitMsat_get_fixed_limit_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_FeeRateMultiplier_get_fee_rate_multiplier")] public static extern long LDKMaxDustHTLCExposure_FeeRateMultiplier_get_fee_rate_multiplier(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err")] public static extern long CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_ty_from_ptr")] public static extern long LDKMaxDustHTLCExposureTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_FixedLimitMsat_get_fixed_limit_msat")] public static extern long LDKMaxDustHTLCExposureFixedLimitMsatGetFixedLimitMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMaxDustHTLCExposure_FeeRateMultiplier_get_fee_rate_multiplier")] public static extern long LDKMaxDustHTLCExposureFeeRateMultiplierGetFeeRateMultiplier(long ptr); // struct LDKMaxDustHTLCExposure CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_get_err")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_get_err")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZGetErr(long _owner); // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_get_ok")] public static extern long CResult_ChannelConfigDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_get_ok")] public static extern long CResultChannelConfigDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_get_err")] public static extern long CResult_ChannelConfigDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MaxDustHTLCExposureZ_ty_from_ptr")] public static extern long LDKCOption_MaxDustHTLCExposureZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MaxDustHTLCExposureZ_Some_get_some")] public static extern long LDKCOption_MaxDustHTLCExposureZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_APIErrorZ_ty_from_ptr")] public static extern long LDKCOption_APIErrorZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_APIErrorZ_Some_get_some")] public static extern long LDKCOption_APIErrorZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_get_err")] public static extern long CResultChannelConfigDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MaxDustHTLCExposureZ_ty_from_ptr")] public static extern long LDKCOptionMaxDustHTLCExposureZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MaxDustHTLCExposureZ_Some_get_some")] public static extern long LDKCOptionMaxDustHTLCExposureZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_APIErrorZ_ty_from_ptr")] public static extern long LDKCOptionAPIErrorZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_APIErrorZ_Some_get_some")] public static extern long LDKCOptionAPIErrorZSomeGetSome(long ptr); // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_get_ok")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_get_ok")] public static extern long CResultCOptionAPIErrorZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_get_err")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_get_err")] public static extern long CResultCOptionAPIErrorZDecodeErrorZGetErr(long _owner); // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok")] public static extern long CResultChannelMonitorUpdateDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MonitorEventZ_ty_from_ptr")] public static extern long LDKCOption_MonitorEventZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MonitorEventZ_Some_get_some")] public static extern long LDKCOption_MonitorEventZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err")] public static extern long CResultChannelMonitorUpdateDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MonitorEventZ_ty_from_ptr")] public static extern long LDKCOptionMonitorEventZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_MonitorEventZ_Some_get_some")] public static extern long LDKCOptionMonitorEventZSomeGetSome(long ptr); // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_get_ok")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_get_ok")] public static extern long CResultCOptionMonitorEventZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_get_err")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_get_err")] public static extern long CResultCOptionMonitorEventZDecodeErrorZGetErr(long _owner); // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_get_ok")] public static extern long CResult_HTLCUpdateDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_get_ok")] public static extern long CResultHTLCUpdateDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_get_err")] public static extern long CResult_HTLCUpdateDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_get_err")] public static extern long CResultHTLCUpdateDecodeErrorZGetErr(long _owner); // struct LDKOutPoint C2Tuple_OutPointCVec_u8ZZ_get_a(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_get_a")] public static extern long C2Tuple_OutPointCVec_u8ZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_get_a")] public static extern long C2TupleOutPointCVecU8ZzGetA(long _owner); // struct LDKCVec_u8Z C2Tuple_OutPointCVec_u8ZZ_get_b(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_get_b")] public static extern long C2Tuple_OutPointCVec_u8ZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_get_b")] public static extern long C2TupleOutPointCVecU8ZzGetB(long _owner); // uint32_t C2Tuple_u32CVec_u8ZZ_get_a(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_get_a")] public static extern int C2Tuple_u32CVec_u8ZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_get_a")] public static extern int C2TupleU32CvecU8ZzGetA(long _owner); // struct LDKCVec_u8Z C2Tuple_u32CVec_u8ZZ_get_b(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_get_b")] public static extern long C2Tuple_u32CVec_u8ZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_get_b")] public static extern long C2TupleU32CvecU8ZzGetB(long _owner); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzGetA(long _owner); // struct LDKCVec_C2Tuple_u32CVec_u8ZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzGetB(long _owner); // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_get_a")] public static extern int C2Tuple_u32TxOutZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_get_a")] public static extern int C2TupleU32TxoutzGetA(long _owner); // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_get_b")] public static extern long C2Tuple_u32TxOutZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_get_b")] public static extern long C2TupleU32TxoutzGetB(long _owner); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzGetA(long _owner); // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ty_from_ptr")] public static extern long LDKBalance_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableOnChannelClose_get_amount_satoshis")] public static extern long LDKBalance_ClaimableOnChannelClose_get_amount_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableAwaitingConfirmations_get_amount_satoshis")] public static extern long LDKBalance_ClaimableAwaitingConfirmations_get_amount_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height")] public static extern int LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_amount_satoshis")] public static extern long LDKBalance_ContentiousClaimable_get_amount_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_timeout_height")] public static extern int LDKBalance_ContentiousClaimable_get_timeout_height(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_payment_hash")] public static extern long LDKBalance_ContentiousClaimable_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_payment_preimage")] public static extern long LDKBalance_ContentiousClaimable_get_payment_preimage(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_amount_satoshis")] public static extern long LDKBalance_MaybeTimeoutClaimableHTLC_get_amount_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height")] public static extern int LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_payment_hash")] public static extern long LDKBalance_MaybeTimeoutClaimableHTLC_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_amount_satoshis")] public static extern long LDKBalance_MaybePreimageClaimableHTLC_get_amount_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height")] public static extern int LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_payment_hash")] public static extern long LDKBalance_MaybePreimageClaimableHTLC_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_CounterpartyRevokedOutputClaimable_get_amount_satoshis")] public static extern long LDKBalance_CounterpartyRevokedOutputClaimable_get_amount_satoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzGetB(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ty_from_ptr")] public static extern long LDKBalanceTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableOnChannelClose_get_amount_satoshis")] public static extern long LDKBalanceClaimableOnChannelCloseGetAmountSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableAwaitingConfirmations_get_amount_satoshis")] public static extern long LDKBalanceClaimableAwaitingConfirmationsGetAmountSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height")] public static extern int LDKBalanceClaimableAwaitingConfirmationsGetConfirmationHeight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_amount_satoshis")] public static extern long LDKBalanceContentiousClaimableGetAmountSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_timeout_height")] public static extern int LDKBalanceContentiousClaimableGetTimeoutHeight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_payment_hash")] public static extern long LDKBalanceContentiousClaimableGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_ContentiousClaimable_get_payment_preimage")] public static extern long LDKBalanceContentiousClaimableGetPaymentPreimage(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_amount_satoshis")] public static extern long LDKBalanceMaybeTimeoutClaimableHTLCGetAmountSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height")] public static extern int LDKBalanceMaybeTimeoutClaimableHTLCGetClaimableHeight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybeTimeoutClaimableHTLC_get_payment_hash")] public static extern long LDKBalanceMaybeTimeoutClaimableHTLCGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_amount_satoshis")] public static extern long LDKBalanceMaybePreimageClaimableHTLCGetAmountSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height")] public static extern int LDKBalanceMaybePreimageClaimableHTLCGetExpiryHeight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_MaybePreimageClaimableHTLC_get_payment_hash")] public static extern long LDKBalanceMaybePreimageClaimableHTLCGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBalance_CounterpartyRevokedOutputClaimable_get_amount_satoshis")] public static extern long LDKBalanceCounterpartyRevokedOutputClaimableGetAmountSatoshis(long ptr); // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZGetA(long _owner); // struct LDKChannelMonitor C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZGetB(long _owner); // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZGetErr(long _owner); public interface LDKType { - short type_id(); - long debug_str(); - long write(); + short TypeId(); + long DebugStr(); + long Write(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKType_new")] public static extern long LDKType_new_native(long impl_idx); - public static long[] LDKType_new(LDKType impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKType_new")] public static extern long LDKTypeNewNative(long impl_idx); + public static long[] LDKTypeNew(LDKType impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1215,31 +1215,31 @@ public static long[] LDKType_new(LDKType impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKType_new_native(i); + ret[0] = LDKTypeNewNative(i); ret[1] = i; return ret; } // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_type_id")] public static extern short Type_type_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_type_id")] public static extern short TypeTypeId(long _this_arg); // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_debug_str")] public static extern long Type_debug_str(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_debug_str")] public static extern long TypeDebugStr(long _this_arg); // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_write")] public static extern long Type_write(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_write")] public static extern long TypeWrite(long _this_arg); // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_get_a")] public static extern long C2Tuple_PublicKeyTypeZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_get_a")] public static extern long C2TuplePublicKeyTypeZGetA(long _owner); // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_get_b")] public static extern long C2Tuple_PublicKeyTypeZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_get_b")] public static extern long C2TuplePublicKeyTypeZGetB(long _owner); // struct LDKPublicKey C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a")] public static extern long C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a")] public static extern long C2TuplePublicKeyCVecSocketAddressZZGetA(long _owner); // struct LDKCVec_SocketAddressZ C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b")] public static extern long C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b")] public static extern long C2TuplePublicKeyCVecSocketAddressZZGetB(long _owner); public interface LDKOnionMessageContents { - long tlv_type(); - long write(); - long debug_str(); + long TlvType(); + long Write(); + long DebugStr(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOnionMessageContents_new")] public static extern long LDKOnionMessageContents_new_native(long impl_idx); - public static long[] LDKOnionMessageContents_new(LDKOnionMessageContents impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOnionMessageContents_new")] public static extern long LDKOnionMessageContentsNewNative(long impl_idx); + public static long[] LDKOnionMessageContentsNew(LDKOnionMessageContents impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1251,700 +1251,700 @@ public static long[] LDKOnionMessageContents_new(LDKOnionMessageContents impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKOnionMessageContents_new_native(i); + ret[0] = LDKOnionMessageContentsNewNative(i); ret[1] = i; return ret; } // uint64_t OnionMessageContents_tlv_type LDKOnionMessageContents *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_tlv_type")] public static extern long OnionMessageContents_tlv_type(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_tlv_type")] public static extern long OnionMessageContentsTlvType(long _this_arg); // LDKCVec_u8Z OnionMessageContents_write LDKOnionMessageContents *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_write")] public static extern long OnionMessageContents_write(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_write")] public static extern long OnionMessageContentsWrite(long _this_arg); // LDKStr OnionMessageContents_debug_str LDKOnionMessageContents *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_debug_str")] public static extern long OnionMessageContents_debug_str(long _this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OnionMessageContentsZ_ty_from_ptr")] public static extern long LDKCOption_OnionMessageContentsZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OnionMessageContentsZ_Some_get_some")] public static extern long LDKCOption_OnionMessageContentsZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_debug_str")] public static extern long OnionMessageContentsDebugStr(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OnionMessageContentsZ_ty_from_ptr")] public static extern long LDKCOptionOnionMessageContentsZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_OnionMessageContentsZ_Some_get_some")] public static extern long LDKCOptionOnionMessageContentsZSomeGetSome(long ptr); // struct LDKCOption_OnionMessageContentsZ CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZGetErr(long _owner); // struct LDKOnionMessageContents C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZGetA(long _owner); // struct LDKDestination C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZGetB(long _owner); // struct LDKBlindedPath C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TypeZ_ty_from_ptr")] public static extern long LDKCOption_TypeZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TypeZ_Some_get_some")] public static extern long LDKCOption_TypeZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZGetC(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TypeZ_ty_from_ptr")] public static extern long LDKCOptionTypeZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_TypeZ_Some_get_some")] public static extern long LDKCOptionTypeZSomeGetSome(long ptr); // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_get_ok")] public static extern long CResult_COption_TypeZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_get_ok")] public static extern long CResultCOptionTypeZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_get_err")] public static extern long CResult_COption_TypeZDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SocketAddressZ_ty_from_ptr")] public static extern long LDKCOption_SocketAddressZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SocketAddressZ_Some_get_some")] public static extern long LDKCOption_SocketAddressZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_get_err")] public static extern long CResultCOptionTypeZDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SocketAddressZ_ty_from_ptr")] public static extern long LDKCOptionSocketAddressZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SocketAddressZ_Some_get_some")] public static extern long LDKCOptionSocketAddressZSomeGetSome(long ptr); // struct LDKPublicKey C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a")] public static extern long C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a")] public static extern long C2TuplePublicKeyCOptionSocketAddressZZGetA(long _owner); // struct LDKCOption_SocketAddressZ C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b")] public static extern long C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b")] public static extern long C2TuplePublicKeyCOptionSocketAddressZZGetB(long _owner); // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_get_ok")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_get_ok")] public static extern long CResultCVecU8ZpeerhandleerrorzGetOk(long _owner); // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_get_err")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_get_err")] public static extern long CResultCVecU8ZpeerhandleerrorzGetErr(long _owner); // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_get_ok")] public static extern void CResult_NonePeerHandleErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_get_ok")] public static extern void CResultNonePeerHandleErrorZGetOk(long _owner); // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_get_err")] public static extern long CResult_NonePeerHandleErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_get_err")] public static extern long CResultNonePeerHandleErrorZGetErr(long _owner); // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_get_ok")] public static extern bool CResult_boolPeerHandleErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_get_ok")] public static extern bool CResultBoolpeerhandleerrorzGetOk(long _owner); // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_get_err")] public static extern long CResult_boolPeerHandleErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_ty_from_ptr")] public static extern long LDKGraphSyncError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_DecodeError_get_decode_error")] public static extern long LDKGraphSyncError_DecodeError_get_decode_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_LightningError_get_lightning_error")] public static extern long LDKGraphSyncError_LightningError_get_lightning_error(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_get_err")] public static extern long CResultBoolpeerhandleerrorzGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_ty_from_ptr")] public static extern long LDKGraphSyncErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_DecodeError_get_decode_error")] public static extern long LDKGraphSyncErrorDecodeErrorGetDecodeError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGraphSyncError_LightningError_get_lightning_error")] public static extern long LDKGraphSyncErrorLightningErrorGetLightningError(long ptr); // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_get_ok")] public static extern int CResult_u32GraphSyncErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_get_ok")] public static extern int CResultU32GraphsyncerrorzGetOk(long _owner); // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_get_err")] public static extern long CResult_u32GraphSyncErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_get_err")] public static extern long CResultU32GraphsyncerrorzGetErr(long _owner); // struct LDKCVec_u8Z CResult_CVec_u8ZIOErrorZ_get_ok(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_get_ok")] public static extern long CResult_CVec_u8ZIOErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_get_ok")] public static extern long CResultCVecU8ZioerrorzGetOk(long _owner); // enum LDKIOError CResult_CVec_u8ZIOErrorZ_get_err(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_get_err")] public static extern IOError CResult_CVec_u8ZIOErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_get_err")] public static extern IOError CResultCVecU8ZioerrorzGetErr(long _owner); // struct LDKCVec_StrZ CResult_CVec_StrZIOErrorZ_get_ok(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_get_ok")] public static extern long CResult_CVec_StrZIOErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_get_ok")] public static extern long CResultCVecStrZIOErrorZGetOk(long _owner); // enum LDKIOError CResult_CVec_StrZIOErrorZ_get_err(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_get_err")] public static extern IOError CResult_CVec_StrZIOErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_get_err")] public static extern IOError CResultCVecStrZIOErrorZGetErr(long _owner); // struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok")] public static extern long CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZGetOk(long _owner); // enum LDKIOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err")] public static extern IOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err")] public static extern IOError CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZGetErr(long _owner); // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZGetOk(long _owner); // enum LDKIOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err")] public static extern IOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SecretKeyZ_ty_from_ptr")] public static extern long LDKCOption_SecretKeyZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SecretKeyZ_Some_get_some")] public static extern long LDKCOption_SecretKeyZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err")] public static extern IOError CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SecretKeyZ_ty_from_ptr")] public static extern long LDKCOptionSecretKeyZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_SecretKeyZ_Some_get_some")] public static extern long LDKCOptionSecretKeyZSomeGetSome(long ptr); // struct LDKVerifiedInvoiceRequest CResult_VerifiedInvoiceRequestNoneZ_get_ok(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_get_ok")] public static extern long CResult_VerifiedInvoiceRequestNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_get_ok")] public static extern long CResultVerifiedInvoiceRequestNoneZGetOk(long _owner); // void CResult_VerifiedInvoiceRequestNoneZ_get_err(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_get_err")] public static extern void CResult_VerifiedInvoiceRequestNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_i64Z_ty_from_ptr")] public static extern long LDKCOption_i64Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_i64Z_Some_get_some")] public static extern long LDKCOption_i64Z_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_get_err")] public static extern void CResultVerifiedInvoiceRequestNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_i64Z_ty_from_ptr")] public static extern long LDKCOptionI64ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_i64Z_Some_get_some")] public static extern long LDKCOptionI64ZSomeGetSome(long ptr); // struct LDKSocketAddress CResult_SocketAddressDecodeErrorZ_get_ok(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_get_ok")] public static extern long CResult_SocketAddressDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_get_ok")] public static extern long CResultSocketAddressDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_SocketAddressDecodeErrorZ_get_err(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_get_err")] public static extern long CResult_SocketAddressDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_get_err")] public static extern long CResultSocketAddressDecodeErrorZGetErr(long _owner); // struct LDKSocketAddress CResult_SocketAddressSocketAddressParseErrorZ_get_ok(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_get_ok")] public static extern long CResult_SocketAddressSocketAddressParseErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_get_ok")] public static extern long CResultSocketAddressSocketAddressParseErrorZGetOk(long _owner); // enum LDKSocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_get_err")] public static extern SocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_get_err")] public static extern SocketAddressParseError CResultSocketAddressSocketAddressParseErrorZGetErr(long _owner); // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_get_ok")] public static extern long CResult_AcceptChannelDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_get_ok")] public static extern long CResultAcceptChannelDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_get_err")] public static extern long CResult_AcceptChannelDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_get_err")] public static extern long CResultAcceptChannelDecodeErrorZGetErr(long _owner); // struct LDKAcceptChannelV2 CResult_AcceptChannelV2DecodeErrorZ_get_ok(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_get_ok")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_get_ok")] public static extern long CResultAcceptChannelV2DecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_AcceptChannelV2DecodeErrorZ_get_err(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_get_err")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_get_err")] public static extern long CResultAcceptChannelV2DecodeErrorZGetErr(long _owner); // struct LDKStfu CResult_StfuDecodeErrorZ_get_ok(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_get_ok")] public static extern long CResult_StfuDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_get_ok")] public static extern long CResultStfuDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_StfuDecodeErrorZ_get_err(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_get_err")] public static extern long CResult_StfuDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_get_err")] public static extern long CResultStfuDecodeErrorZGetErr(long _owner); // struct LDKSplice CResult_SpliceDecodeErrorZ_get_ok(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_get_ok")] public static extern long CResult_SpliceDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_get_ok")] public static extern long CResultSpliceDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_SpliceDecodeErrorZ_get_err(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_get_err")] public static extern long CResult_SpliceDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_get_err")] public static extern long CResultSpliceDecodeErrorZGetErr(long _owner); // struct LDKSpliceAck CResult_SpliceAckDecodeErrorZ_get_ok(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_get_ok")] public static extern long CResult_SpliceAckDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_get_ok")] public static extern long CResultSpliceAckDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_SpliceAckDecodeErrorZ_get_err(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_get_err")] public static extern long CResult_SpliceAckDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_get_err")] public static extern long CResultSpliceAckDecodeErrorZGetErr(long _owner); // struct LDKSpliceLocked CResult_SpliceLockedDecodeErrorZ_get_ok(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_get_ok")] public static extern long CResult_SpliceLockedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_get_ok")] public static extern long CResultSpliceLockedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_SpliceLockedDecodeErrorZ_get_err(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_get_err")] public static extern long CResult_SpliceLockedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_get_err")] public static extern long CResultSpliceLockedDecodeErrorZGetErr(long _owner); // struct LDKTxAddInput CResult_TxAddInputDecodeErrorZ_get_ok(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_get_ok")] public static extern long CResult_TxAddInputDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_get_ok")] public static extern long CResultTxAddInputDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxAddInputDecodeErrorZ_get_err(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_get_err")] public static extern long CResult_TxAddInputDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_get_err")] public static extern long CResultTxAddInputDecodeErrorZGetErr(long _owner); // struct LDKTxAddOutput CResult_TxAddOutputDecodeErrorZ_get_ok(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_get_ok")] public static extern long CResult_TxAddOutputDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_get_ok")] public static extern long CResultTxAddOutputDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxAddOutputDecodeErrorZ_get_err(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_get_err")] public static extern long CResult_TxAddOutputDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_get_err")] public static extern long CResultTxAddOutputDecodeErrorZGetErr(long _owner); // struct LDKTxRemoveInput CResult_TxRemoveInputDecodeErrorZ_get_ok(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_get_ok")] public static extern long CResult_TxRemoveInputDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_get_ok")] public static extern long CResultTxRemoveInputDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxRemoveInputDecodeErrorZ_get_err(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_get_err")] public static extern long CResult_TxRemoveInputDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_get_err")] public static extern long CResultTxRemoveInputDecodeErrorZGetErr(long _owner); // struct LDKTxRemoveOutput CResult_TxRemoveOutputDecodeErrorZ_get_ok(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_get_ok")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_get_ok")] public static extern long CResultTxRemoveOutputDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxRemoveOutputDecodeErrorZ_get_err(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_get_err")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_get_err")] public static extern long CResultTxRemoveOutputDecodeErrorZGetErr(long _owner); // struct LDKTxComplete CResult_TxCompleteDecodeErrorZ_get_ok(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_get_ok")] public static extern long CResult_TxCompleteDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_get_ok")] public static extern long CResultTxCompleteDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxCompleteDecodeErrorZ_get_err(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_get_err")] public static extern long CResult_TxCompleteDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_get_err")] public static extern long CResultTxCompleteDecodeErrorZGetErr(long _owner); // struct LDKTxSignatures CResult_TxSignaturesDecodeErrorZ_get_ok(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_get_ok")] public static extern long CResult_TxSignaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_get_ok")] public static extern long CResultTxSignaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxSignaturesDecodeErrorZ_get_err(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_get_err")] public static extern long CResult_TxSignaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_get_err")] public static extern long CResultTxSignaturesDecodeErrorZGetErr(long _owner); // struct LDKTxInitRbf CResult_TxInitRbfDecodeErrorZ_get_ok(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_get_ok")] public static extern long CResult_TxInitRbfDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_get_ok")] public static extern long CResultTxInitRbfDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxInitRbfDecodeErrorZ_get_err(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_get_err")] public static extern long CResult_TxInitRbfDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_get_err")] public static extern long CResultTxInitRbfDecodeErrorZGetErr(long _owner); // struct LDKTxAckRbf CResult_TxAckRbfDecodeErrorZ_get_ok(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_get_ok")] public static extern long CResult_TxAckRbfDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_get_ok")] public static extern long CResultTxAckRbfDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxAckRbfDecodeErrorZ_get_err(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_get_err")] public static extern long CResult_TxAckRbfDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_get_err")] public static extern long CResultTxAckRbfDecodeErrorZGetErr(long _owner); // struct LDKTxAbort CResult_TxAbortDecodeErrorZ_get_ok(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_get_ok")] public static extern long CResult_TxAbortDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_get_ok")] public static extern long CResultTxAbortDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxAbortDecodeErrorZ_get_err(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_get_err")] public static extern long CResult_TxAbortDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_get_err")] public static extern long CResultTxAbortDecodeErrorZGetErr(long _owner); // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok")] public static extern long CResultAnnouncementSignaturesDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_get_err")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_get_err")] public static extern long CResultAnnouncementSignaturesDecodeErrorZGetErr(long _owner); // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_get_ok")] public static extern long CResult_ChannelReestablishDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_get_ok")] public static extern long CResultChannelReestablishDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_get_err")] public static extern long CResult_ChannelReestablishDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_get_err")] public static extern long CResultChannelReestablishDecodeErrorZGetErr(long _owner); // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_get_ok")] public static extern long CResult_ClosingSignedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_get_ok")] public static extern long CResultClosingSignedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_get_err")] public static extern long CResult_ClosingSignedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_get_err")] public static extern long CResultClosingSignedDecodeErrorZGetErr(long _owner); // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZGetErr(long _owner); // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_get_ok")] public static extern long CResult_CommitmentSignedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_get_ok")] public static extern long CResultCommitmentSignedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_get_err")] public static extern long CResult_CommitmentSignedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_get_err")] public static extern long CResultCommitmentSignedDecodeErrorZGetErr(long _owner); // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_get_ok")] public static extern long CResult_FundingCreatedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_get_ok")] public static extern long CResultFundingCreatedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_get_err")] public static extern long CResult_FundingCreatedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_get_err")] public static extern long CResultFundingCreatedDecodeErrorZGetErr(long _owner); // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_get_ok")] public static extern long CResult_FundingSignedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_get_ok")] public static extern long CResultFundingSignedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_get_err")] public static extern long CResult_FundingSignedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_get_err")] public static extern long CResultFundingSignedDecodeErrorZGetErr(long _owner); // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_get_ok")] public static extern long CResult_ChannelReadyDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_get_ok")] public static extern long CResultChannelReadyDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_get_err")] public static extern long CResult_ChannelReadyDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_get_err")] public static extern long CResultChannelReadyDecodeErrorZGetErr(long _owner); // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_get_ok")] public static extern long CResult_InitDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_get_ok")] public static extern long CResultInitDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_get_err")] public static extern long CResult_InitDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_get_err")] public static extern long CResultInitDecodeErrorZGetErr(long _owner); // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_get_ok")] public static extern long CResult_OpenChannelDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_get_ok")] public static extern long CResultOpenChannelDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_get_err")] public static extern long CResult_OpenChannelDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_get_err")] public static extern long CResultOpenChannelDecodeErrorZGetErr(long _owner); // struct LDKOpenChannelV2 CResult_OpenChannelV2DecodeErrorZ_get_ok(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_get_ok")] public static extern long CResult_OpenChannelV2DecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_get_ok")] public static extern long CResultOpenChannelV2DecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OpenChannelV2DecodeErrorZ_get_err(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_get_err")] public static extern long CResult_OpenChannelV2DecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_get_err")] public static extern long CResultOpenChannelV2DecodeErrorZGetErr(long _owner); // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_get_ok")] public static extern long CResult_RevokeAndACKDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_get_ok")] public static extern long CResultRevokeAndACKDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_get_err")] public static extern long CResult_RevokeAndACKDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_get_err")] public static extern long CResultRevokeAndACKDecodeErrorZGetErr(long _owner); // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_get_ok")] public static extern long CResult_ShutdownDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_get_ok")] public static extern long CResultShutdownDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_get_err")] public static extern long CResult_ShutdownDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_get_err")] public static extern long CResultShutdownDecodeErrorZGetErr(long _owner); // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_get_ok")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_get_ok")] public static extern long CResultUpdateFailHTLCDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_get_err")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_get_err")] public static extern long CResultUpdateFailHTLCDecodeErrorZGetErr(long _owner); // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZGetErr(long _owner); // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_get_ok")] public static extern long CResult_UpdateFeeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_get_ok")] public static extern long CResultUpdateFeeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_get_err")] public static extern long CResult_UpdateFeeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_get_err")] public static extern long CResultUpdateFeeDecodeErrorZGetErr(long _owner); // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZGetErr(long _owner); // struct LDKOnionPacket CResult_OnionPacketDecodeErrorZ_get_ok(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_get_ok")] public static extern long CResult_OnionPacketDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_get_ok")] public static extern long CResultOnionPacketDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OnionPacketDecodeErrorZ_get_err(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_get_err")] public static extern long CResult_OnionPacketDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_get_err")] public static extern long CResultOnionPacketDecodeErrorZGetErr(long _owner); // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_get_ok")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_get_ok")] public static extern long CResultUpdateAddHTLCDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_get_err")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_get_err")] public static extern long CResultUpdateAddHTLCDecodeErrorZGetErr(long _owner); // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_get_ok")] public static extern long CResult_OnionMessageDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_get_ok")] public static extern long CResultOnionMessageDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_get_err")] public static extern long CResult_OnionMessageDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_get_err")] public static extern long CResultOnionMessageDecodeErrorZGetErr(long _owner); // struct LDKFinalOnionHopData CResult_FinalOnionHopDataDecodeErrorZ_get_ok(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_get_ok")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_get_ok")] public static extern long CResultFinalOnionHopDataDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_FinalOnionHopDataDecodeErrorZ_get_err(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_get_err")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_get_err")] public static extern long CResultFinalOnionHopDataDecodeErrorZGetErr(long _owner); // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_get_ok")] public static extern long CResult_PingDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_get_ok")] public static extern long CResultPingDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_get_err")] public static extern long CResult_PingDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_get_err")] public static extern long CResultPingDecodeErrorZGetErr(long _owner); // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_get_ok")] public static extern long CResult_PongDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_get_ok")] public static extern long CResultPongDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_get_err")] public static extern long CResult_PongDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_get_err")] public static extern long CResultPongDecodeErrorZGetErr(long _owner); // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZGetErr(long _owner); // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_get_ok")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_get_ok")] public static extern long CResultChannelAnnouncementDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_get_err")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_get_err")] public static extern long CResultChannelAnnouncementDecodeErrorZGetErr(long _owner); // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZGetErr(long _owner); // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_get_ok")] public static extern long CResult_ChannelUpdateDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_get_ok")] public static extern long CResultChannelUpdateDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_get_err")] public static extern long CResult_ChannelUpdateDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_get_err")] public static extern long CResultChannelUpdateDecodeErrorZGetErr(long _owner); // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_get_ok")] public static extern long CResult_ErrorMessageDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_get_ok")] public static extern long CResultErrorMessageDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_get_err")] public static extern long CResult_ErrorMessageDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_get_err")] public static extern long CResultErrorMessageDecodeErrorZGetErr(long _owner); // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_get_ok")] public static extern long CResult_WarningMessageDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_get_ok")] public static extern long CResultWarningMessageDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_get_err")] public static extern long CResult_WarningMessageDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_get_err")] public static extern long CResultWarningMessageDecodeErrorZGetErr(long _owner); // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZGetErr(long _owner); // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_get_ok")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_get_ok")] public static extern long CResultNodeAnnouncementDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_get_err")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_get_err")] public static extern long CResultNodeAnnouncementDecodeErrorZGetErr(long _owner); // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok")] public static extern long CResultQueryShortChannelIdsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_get_err")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_get_err")] public static extern long CResultQueryShortChannelIdsDecodeErrorZGetErr(long _owner); // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZGetErr(long _owner); // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_get_ok")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_get_ok")] public static extern long CResultQueryChannelRangeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_get_err")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_get_err")] public static extern long CResultQueryChannelRangeDecodeErrorZGetErr(long _owner); // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_get_ok")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_get_ok")] public static extern long CResultReplyChannelRangeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_get_err")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_get_err")] public static extern long CResultReplyChannelRangeDecodeErrorZGetErr(long _owner); // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_get_ok")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_get_ok")] public static extern long CResultGossipTimestampFilterDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_get_err")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignOrCreationError_ty_from_ptr")] public static extern long LDKSignOrCreationError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignOrCreationError_CreationError_get_creation_error")] public static extern CreationError LDKSignOrCreationError_CreationError_get_creation_error(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_get_err")] public static extern long CResultGossipTimestampFilterDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignOrCreationError_ty_from_ptr")] public static extern long LDKSignOrCreationErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSignOrCreationError_CreationError_get_creation_error")] public static extern CreationError LDKSignOrCreationErrorCreationErrorGetCreationError(long ptr); // struct LDKBolt11Invoice CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZGetOk(long _owner); // struct LDKSignOrCreationError CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZGetErr(long _owner); // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_get_ok")] public static extern long CResult_OffersMessageDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_get_ok")] public static extern long CResultOffersMessageDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OffersMessageDecodeErrorZ_get_err(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_get_err")] public static extern long CResult_OffersMessageDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCClaimZ_ty_from_ptr")] public static extern long LDKCOption_HTLCClaimZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCClaimZ_Some_get_some")] public static extern HTLCClaim LDKCOption_HTLCClaimZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_get_err")] public static extern long CResultOffersMessageDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCClaimZ_ty_from_ptr")] public static extern long LDKCOptionHTLCClaimZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCClaimZ_Some_get_some")] public static extern HTLCClaim LDKCOptionHTLCClaimZSomeGetSome(long ptr); // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZGetErr(long _owner); // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_get_ok")] public static extern long CResult_TxCreationKeysDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_get_ok")] public static extern long CResultTxCreationKeysDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_get_err")] public static extern long CResult_TxCreationKeysDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_get_err")] public static extern long CResultTxCreationKeysDecodeErrorZGetErr(long _owner); // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_get_ok")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_get_ok")] public static extern long CResultChannelPublicKeysDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_get_err")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_get_err")] public static extern long CResultChannelPublicKeysDecodeErrorZGetErr(long _owner); // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZGetErr(long _owner); // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZGetErr(long _owner); // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok")] public static extern long CResultChannelTransactionParametersDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_get_err")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_get_err")] public static extern long CResultChannelTransactionParametersDecodeErrorZGetErr(long _owner); // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZGetErr(long _owner); // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZGetErr(long _owner); // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_get_ok")] public static extern long CResult_TrustedClosingTransactionNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_get_ok")] public static extern long CResultTrustedClosingTransactionNoneZGetOk(long _owner); // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_get_err")] public static extern void CResult_TrustedClosingTransactionNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_get_err")] public static extern void CResultTrustedClosingTransactionNoneZGetErr(long _owner); // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_get_ok")] public static extern long CResultCommitmentTransactionDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_get_err")] public static extern long CResultCommitmentTransactionDecodeErrorZGetErr(long _owner); // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_get_ok")] public static extern long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_get_ok")] public static extern long CResultTrustedCommitmentTransactionNoneZGetOk(long _owner); // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_get_err")] public static extern void CResult_TrustedCommitmentTransactionNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_get_err")] public static extern void CResultTrustedCommitmentTransactionNoneZGetErr(long _owner); // struct LDKCVec_ECDSASignatureZ CResult_CVec_ECDSASignatureZNoneZ_get_ok(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_get_ok")] public static extern long CResult_CVec_ECDSASignatureZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_get_ok")] public static extern long CResultCVecECDSASignatureZNoneZGetOk(long _owner); // void CResult_CVec_ECDSASignatureZNoneZ_get_err(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_get_err")] public static extern void CResult_CVec_ECDSASignatureZNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_usizeZ_ty_from_ptr")] public static extern long LDKCOption_usizeZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_usizeZ_Some_get_some")] public static extern long LDKCOption_usizeZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_get_err")] public static extern void CResultCVecECDSASignatureZNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_usizeZ_ty_from_ptr")] public static extern long LDKCOptionUsizezTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_usizeZ_Some_get_some")] public static extern long LDKCOptionUsizezSomeGetSome(long ptr); // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_get_ok")] public static extern long CResult_ShutdownScriptDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_get_ok")] public static extern long CResultShutdownScriptDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_get_err")] public static extern long CResult_ShutdownScriptDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_get_err")] public static extern long CResultShutdownScriptDecodeErrorZGetErr(long _owner); // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok")] public static extern long CResultShutdownScriptInvalidShutdownScriptZGetOk(long _owner); // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_ty_from_ptr")] public static extern long LDKPaymentPurpose_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_InvoicePayment_get_payment_preimage")] public static extern long LDKPaymentPurpose_InvoicePayment_get_payment_preimage(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_InvoicePayment_get_payment_secret")] public static extern long LDKPaymentPurpose_InvoicePayment_get_payment_secret(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment")] public static extern long LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err")] public static extern long CResultShutdownScriptInvalidShutdownScriptZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_ty_from_ptr")] public static extern long LDKPaymentPurposeTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_InvoicePayment_get_payment_preimage")] public static extern long LDKPaymentPurposeInvoicePaymentGetPaymentPreimage(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_InvoicePayment_get_payment_secret")] public static extern long LDKPaymentPurposeInvoicePaymentGetPaymentSecret(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment")] public static extern long LDKPaymentPurposeSpontaneousPaymentGetSpontaneousPayment(long ptr); // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_get_ok")] public static extern long CResult_PaymentPurposeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_get_ok")] public static extern long CResultPaymentPurposeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_get_err")] public static extern long CResult_PaymentPurposeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_get_err")] public static extern long CResultPaymentPurposeDecodeErrorZGetErr(long _owner); // struct LDKClaimedHTLC CResult_ClaimedHTLCDecodeErrorZ_get_ok(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_get_ok")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_get_ok")] public static extern long CResultClaimedHTLCDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_ClaimedHTLCDecodeErrorZ_get_err(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_get_err")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_ty_from_ptr")] public static extern long LDKPathFailure_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_InitialSend_get_err")] public static extern long LDKPathFailure_InitialSend_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_OnPath_get_network_update")] public static extern long LDKPathFailure_OnPath_get_network_update(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PathFailureZ_ty_from_ptr")] public static extern long LDKCOption_PathFailureZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PathFailureZ_Some_get_some")] public static extern long LDKCOption_PathFailureZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_get_err")] public static extern long CResultClaimedHTLCDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_ty_from_ptr")] public static extern long LDKPathFailureTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_InitialSend_get_err")] public static extern long LDKPathFailureInitialSendGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPathFailure_OnPath_get_network_update")] public static extern long LDKPathFailureOnPathGetNetworkUpdate(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PathFailureZ_ty_from_ptr")] public static extern long LDKCOptionPathFailureZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PathFailureZ_Some_get_some")] public static extern long LDKCOptionPathFailureZSomeGetSome(long ptr); // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_get_ok")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_get_ok")] public static extern long CResultCOptionPathFailureZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_get_err")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_ty_from_ptr")] public static extern long LDKClosureReason_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_CounterpartyForceClosed_get_peer_msg")] public static extern long LDKClosureReason_CounterpartyForceClosed_get_peer_msg(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_ProcessingError_get_err")] public static extern long LDKClosureReason_ProcessingError_get_err(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ClosureReasonZ_ty_from_ptr")] public static extern long LDKCOption_ClosureReasonZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ClosureReasonZ_Some_get_some")] public static extern long LDKCOption_ClosureReasonZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_get_err")] public static extern long CResultCOptionPathFailureZDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_ty_from_ptr")] public static extern long LDKClosureReasonTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_CounterpartyForceClosed_get_peer_msg")] public static extern long LDKClosureReasonCounterpartyForceClosedGetPeerMsg(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKClosureReason_ProcessingError_get_err")] public static extern long LDKClosureReasonProcessingErrorGetErr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ClosureReasonZ_ty_from_ptr")] public static extern long LDKCOptionClosureReasonZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_ClosureReasonZ_Some_get_some")] public static extern long LDKCOptionClosureReasonZSomeGetSome(long ptr); // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok")] public static extern long CResultCOptionClosureReasonZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_get_err")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_ty_from_ptr")] public static extern long LDKHTLCDestination_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_NextHopChannel_get_node_id")] public static extern long LDKHTLCDestination_NextHopChannel_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_NextHopChannel_get_channel_id")] public static extern long LDKHTLCDestination_NextHopChannel_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid")] public static extern long LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_InvalidForward_get_requested_forward_scid")] public static extern long LDKHTLCDestination_InvalidForward_get_requested_forward_scid(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_FailedPayment_get_payment_hash")] public static extern long LDKHTLCDestination_FailedPayment_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCDestinationZ_ty_from_ptr")] public static extern long LDKCOption_HTLCDestinationZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCDestinationZ_Some_get_some")] public static extern long LDKCOption_HTLCDestinationZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_get_err")] public static extern long CResultCOptionClosureReasonZDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_ty_from_ptr")] public static extern long LDKHTLCDestinationTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_NextHopChannel_get_node_id")] public static extern long LDKHTLCDestinationNextHopChannelGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_NextHopChannel_get_channel_id")] public static extern long LDKHTLCDestinationNextHopChannelGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid")] public static extern long LDKHTLCDestinationUnknownNextHopGetRequestedForwardScid(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_InvalidForward_get_requested_forward_scid")] public static extern long LDKHTLCDestinationInvalidForwardGetRequestedForwardScid(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKHTLCDestination_FailedPayment_get_payment_hash")] public static extern long LDKHTLCDestinationFailedPaymentGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCDestinationZ_ty_from_ptr")] public static extern long LDKCOptionHTLCDestinationZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_HTLCDestinationZ_Some_get_some")] public static extern long LDKCOptionHTLCDestinationZSomeGetSome(long ptr); // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_get_err")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_get_err")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZGetErr(long _owner); // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_get_ok")] public static extern PaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_get_ok")] public static extern PaymentFailureReason CResultPaymentFailureReasonDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_get_err")] public static extern long CResult_PaymentFailureReasonDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_U128Z_ty_from_ptr")] public static extern long LDKCOption_U128Z_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_U128Z_Some_get_some")] public static extern long LDKCOption_U128Z_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PaymentFailureReasonZ_ty_from_ptr")] public static extern long LDKCOption_PaymentFailureReasonZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PaymentFailureReasonZ_Some_get_some")] public static extern PaymentFailureReason LDKCOption_PaymentFailureReasonZ_Some_get_some(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ty_from_ptr")] public static extern long LDKBumpTransactionEvent_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_claim_id")] public static extern long LDKBumpTransactionEvent_ChannelClose_get_claim_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_package_target_feerate_sat_per_1000_weight")] public static extern int LDKBumpTransactionEvent_ChannelClose_get_package_target_feerate_sat_per_1000_weight(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_commitment_tx")] public static extern long LDKBumpTransactionEvent_ChannelClose_get_commitment_tx(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_commitment_tx_fee_satoshis")] public static extern long LDKBumpTransactionEvent_ChannelClose_get_commitment_tx_fee_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_anchor_descriptor")] public static extern long LDKBumpTransactionEvent_ChannelClose_get_anchor_descriptor(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_pending_htlcs")] public static extern long LDKBumpTransactionEvent_ChannelClose_get_pending_htlcs(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_claim_id")] public static extern long LDKBumpTransactionEvent_HTLCResolution_get_claim_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_target_feerate_sat_per_1000_weight")] public static extern int LDKBumpTransactionEvent_HTLCResolution_get_target_feerate_sat_per_1000_weight(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_htlc_descriptors")] public static extern long LDKBumpTransactionEvent_HTLCResolution_get_htlc_descriptors(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_tx_lock_time")] public static extern int LDKBumpTransactionEvent_HTLCResolution_get_tx_lock_time(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ty_from_ptr")] public static extern long LDKEvent_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_temporary_channel_id")] public static extern long LDKEvent_FundingGenerationReady_get_temporary_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_counterparty_node_id")] public static extern long LDKEvent_FundingGenerationReady_get_counterparty_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_channel_value_satoshis")] public static extern long LDKEvent_FundingGenerationReady_get_channel_value_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_output_script")] public static extern long LDKEvent_FundingGenerationReady_get_output_script(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_user_channel_id")] public static extern long LDKEvent_FundingGenerationReady_get_user_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_receiver_node_id")] public static extern long LDKEvent_PaymentClaimable_get_receiver_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_payment_hash")] public static extern long LDKEvent_PaymentClaimable_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_onion_fields")] public static extern long LDKEvent_PaymentClaimable_get_onion_fields(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_amount_msat")] public static extern long LDKEvent_PaymentClaimable_get_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_counterparty_skimmed_fee_msat")] public static extern long LDKEvent_PaymentClaimable_get_counterparty_skimmed_fee_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_purpose")] public static extern long LDKEvent_PaymentClaimable_get_purpose(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_via_channel_id")] public static extern long LDKEvent_PaymentClaimable_get_via_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_via_user_channel_id")] public static extern long LDKEvent_PaymentClaimable_get_via_user_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_claim_deadline")] public static extern long LDKEvent_PaymentClaimable_get_claim_deadline(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_receiver_node_id")] public static extern long LDKEvent_PaymentClaimed_get_receiver_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_payment_hash")] public static extern long LDKEvent_PaymentClaimed_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_amount_msat")] public static extern long LDKEvent_PaymentClaimed_get_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_purpose")] public static extern long LDKEvent_PaymentClaimed_get_purpose(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_htlcs")] public static extern long LDKEvent_PaymentClaimed_get_htlcs(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_sender_intended_total_msat")] public static extern long LDKEvent_PaymentClaimed_get_sender_intended_total_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ConnectionNeeded_get_node_id")] public static extern long LDKEvent_ConnectionNeeded_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ConnectionNeeded_get_addresses")] public static extern long LDKEvent_ConnectionNeeded_get_addresses(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_InvoiceRequestFailed_get_payment_id")] public static extern long LDKEvent_InvoiceRequestFailed_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_id")] public static extern long LDKEvent_PaymentSent_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_preimage")] public static extern long LDKEvent_PaymentSent_get_payment_preimage(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_hash")] public static extern long LDKEvent_PaymentSent_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_fee_paid_msat")] public static extern long LDKEvent_PaymentSent_get_fee_paid_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_payment_id")] public static extern long LDKEvent_PaymentFailed_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_payment_hash")] public static extern long LDKEvent_PaymentFailed_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_reason")] public static extern long LDKEvent_PaymentFailed_get_reason(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_payment_id")] public static extern long LDKEvent_PaymentPathSuccessful_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_payment_hash")] public static extern long LDKEvent_PaymentPathSuccessful_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_path")] public static extern long LDKEvent_PaymentPathSuccessful_get_path(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_id")] public static extern long LDKEvent_PaymentPathFailed_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_hash")] public static extern long LDKEvent_PaymentPathFailed_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_failed_permanently")] public static extern bool LDKEvent_PaymentPathFailed_get_payment_failed_permanently(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_failure")] public static extern long LDKEvent_PaymentPathFailed_get_failure(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_path")] public static extern long LDKEvent_PaymentPathFailed_get_path(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_short_channel_id")] public static extern long LDKEvent_PaymentPathFailed_get_short_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_payment_id")] public static extern long LDKEvent_ProbeSuccessful_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_payment_hash")] public static extern long LDKEvent_ProbeSuccessful_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_path")] public static extern long LDKEvent_ProbeSuccessful_get_path(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_payment_id")] public static extern long LDKEvent_ProbeFailed_get_payment_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_payment_hash")] public static extern long LDKEvent_ProbeFailed_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_path")] public static extern long LDKEvent_ProbeFailed_get_path(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_short_channel_id")] public static extern long LDKEvent_ProbeFailed_get_short_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PendingHTLCsForwardable_get_time_forwardable")] public static extern long LDKEvent_PendingHTLCsForwardable_get_time_forwardable(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_intercept_id")] public static extern long LDKEvent_HTLCIntercepted_get_intercept_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_requested_next_hop_scid")] public static extern long LDKEvent_HTLCIntercepted_get_requested_next_hop_scid(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_payment_hash")] public static extern long LDKEvent_HTLCIntercepted_get_payment_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_inbound_amount_msat")] public static extern long LDKEvent_HTLCIntercepted_get_inbound_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat")] public static extern long LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_SpendableOutputs_get_outputs")] public static extern long LDKEvent_SpendableOutputs_get_outputs(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_SpendableOutputs_get_channel_id")] public static extern long LDKEvent_SpendableOutputs_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_prev_channel_id")] public static extern long LDKEvent_PaymentForwarded_get_prev_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_next_channel_id")] public static extern long LDKEvent_PaymentForwarded_get_next_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_fee_earned_msat")] public static extern long LDKEvent_PaymentForwarded_get_fee_earned_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx")] public static extern bool LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat")] public static extern long LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_channel_id")] public static extern long LDKEvent_ChannelPending_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_user_channel_id")] public static extern long LDKEvent_ChannelPending_get_user_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_former_temporary_channel_id")] public static extern long LDKEvent_ChannelPending_get_former_temporary_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_counterparty_node_id")] public static extern long LDKEvent_ChannelPending_get_counterparty_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_funding_txo")] public static extern long LDKEvent_ChannelPending_get_funding_txo(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_channel_id")] public static extern long LDKEvent_ChannelReady_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_user_channel_id")] public static extern long LDKEvent_ChannelReady_get_user_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_counterparty_node_id")] public static extern long LDKEvent_ChannelReady_get_counterparty_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_channel_type")] public static extern long LDKEvent_ChannelReady_get_channel_type(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_id")] public static extern long LDKEvent_ChannelClosed_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_user_channel_id")] public static extern long LDKEvent_ChannelClosed_get_user_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_reason")] public static extern long LDKEvent_ChannelClosed_get_reason(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_counterparty_node_id")] public static extern long LDKEvent_ChannelClosed_get_counterparty_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_capacity_sats")] public static extern long LDKEvent_ChannelClosed_get_channel_capacity_sats(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_funding_txo")] public static extern long LDKEvent_ChannelClosed_get_channel_funding_txo(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_DiscardFunding_get_channel_id")] public static extern long LDKEvent_DiscardFunding_get_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_DiscardFunding_get_transaction")] public static extern long LDKEvent_DiscardFunding_get_transaction(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_temporary_channel_id")] public static extern long LDKEvent_OpenChannelRequest_get_temporary_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_counterparty_node_id")] public static extern long LDKEvent_OpenChannelRequest_get_counterparty_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_funding_satoshis")] public static extern long LDKEvent_OpenChannelRequest_get_funding_satoshis(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_push_msat")] public static extern long LDKEvent_OpenChannelRequest_get_push_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_channel_type")] public static extern long LDKEvent_OpenChannelRequest_get_channel_type(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCHandlingFailed_get_prev_channel_id")] public static extern long LDKEvent_HTLCHandlingFailed_get_prev_channel_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCHandlingFailed_get_failed_next_destination")] public static extern long LDKEvent_HTLCHandlingFailed_get_failed_next_destination(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_BumpTransaction_get_bump_transaction")] public static extern long LDKEvent_BumpTransaction_get_bump_transaction(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_EventZ_ty_from_ptr")] public static extern long LDKCOption_EventZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_EventZ_Some_get_some")] public static extern long LDKCOption_EventZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_get_err")] public static extern long CResultPaymentFailureReasonDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_U128Z_ty_from_ptr")] public static extern long LDKCOptionU128ZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_U128Z_Some_get_some")] public static extern long LDKCOptionU128ZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PaymentFailureReasonZ_ty_from_ptr")] public static extern long LDKCOptionPaymentFailureReasonZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_PaymentFailureReasonZ_Some_get_some")] public static extern PaymentFailureReason LDKCOptionPaymentFailureReasonZSomeGetSome(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ty_from_ptr")] public static extern long LDKBumpTransactionEventTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_claim_id")] public static extern long LDKBumpTransactionEventChannelCloseGetClaimId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_package_target_feerate_sat_per_1000_weight")] public static extern int LDKBumpTransactionEventChannelCloseGetPackageTargetFeerateSatPer1000Weight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_commitment_tx")] public static extern long LDKBumpTransactionEventChannelCloseGetCommitmentTx(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_commitment_tx_fee_satoshis")] public static extern long LDKBumpTransactionEventChannelCloseGetCommitmentTxFeeSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_anchor_descriptor")] public static extern long LDKBumpTransactionEventChannelCloseGetAnchorDescriptor(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_ChannelClose_get_pending_htlcs")] public static extern long LDKBumpTransactionEventChannelCloseGetPendingHtlcs(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_claim_id")] public static extern long LDKBumpTransactionEventHTLCResolutionGetClaimId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_target_feerate_sat_per_1000_weight")] public static extern int LDKBumpTransactionEventHTLCResolutionGetTargetFeerateSatPer1000Weight(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_htlc_descriptors")] public static extern long LDKBumpTransactionEventHTLCResolutionGetHtlcDescriptors(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBumpTransactionEvent_HTLCResolution_get_tx_lock_time")] public static extern int LDKBumpTransactionEventHTLCResolutionGetTxLockTime(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ty_from_ptr")] public static extern long LDKEventTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_temporary_channel_id")] public static extern long LDKEventFundingGenerationReadyGetTemporaryChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_counterparty_node_id")] public static extern long LDKEventFundingGenerationReadyGetCounterpartyNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_channel_value_satoshis")] public static extern long LDKEventFundingGenerationReadyGetChannelValueSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_output_script")] public static extern long LDKEventFundingGenerationReadyGetOutputScript(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_FundingGenerationReady_get_user_channel_id")] public static extern long LDKEventFundingGenerationReadyGetUserChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_receiver_node_id")] public static extern long LDKEventPaymentClaimableGetReceiverNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_payment_hash")] public static extern long LDKEventPaymentClaimableGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_onion_fields")] public static extern long LDKEventPaymentClaimableGetOnionFields(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_amount_msat")] public static extern long LDKEventPaymentClaimableGetAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_counterparty_skimmed_fee_msat")] public static extern long LDKEventPaymentClaimableGetCounterpartySkimmedFeeMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_purpose")] public static extern long LDKEventPaymentClaimableGetPurpose(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_via_channel_id")] public static extern long LDKEventPaymentClaimableGetViaChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_via_user_channel_id")] public static extern long LDKEventPaymentClaimableGetViaUserChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimable_get_claim_deadline")] public static extern long LDKEventPaymentClaimableGetClaimDeadline(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_receiver_node_id")] public static extern long LDKEventPaymentClaimedGetReceiverNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_payment_hash")] public static extern long LDKEventPaymentClaimedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_amount_msat")] public static extern long LDKEventPaymentClaimedGetAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_purpose")] public static extern long LDKEventPaymentClaimedGetPurpose(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_htlcs")] public static extern long LDKEventPaymentClaimedGetHtlcs(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentClaimed_get_sender_intended_total_msat")] public static extern long LDKEventPaymentClaimedGetSenderIntendedTotalMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ConnectionNeeded_get_node_id")] public static extern long LDKEventConnectionNeededGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ConnectionNeeded_get_addresses")] public static extern long LDKEventConnectionNeededGetAddresses(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_InvoiceRequestFailed_get_payment_id")] public static extern long LDKEventInvoiceRequestFailedGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_id")] public static extern long LDKEventPaymentSentGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_preimage")] public static extern long LDKEventPaymentSentGetPaymentPreimage(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_payment_hash")] public static extern long LDKEventPaymentSentGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentSent_get_fee_paid_msat")] public static extern long LDKEventPaymentSentGetFeePaidMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_payment_id")] public static extern long LDKEventPaymentFailedGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_payment_hash")] public static extern long LDKEventPaymentFailedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentFailed_get_reason")] public static extern long LDKEventPaymentFailedGetReason(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_payment_id")] public static extern long LDKEventPaymentPathSuccessfulGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_payment_hash")] public static extern long LDKEventPaymentPathSuccessfulGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathSuccessful_get_path")] public static extern long LDKEventPaymentPathSuccessfulGetPath(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_id")] public static extern long LDKEventPaymentPathFailedGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_hash")] public static extern long LDKEventPaymentPathFailedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_payment_failed_permanently")] public static extern bool LDKEventPaymentPathFailedGetPaymentFailedPermanently(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_failure")] public static extern long LDKEventPaymentPathFailedGetFailure(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_path")] public static extern long LDKEventPaymentPathFailedGetPath(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentPathFailed_get_short_channel_id")] public static extern long LDKEventPaymentPathFailedGetShortChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_payment_id")] public static extern long LDKEventProbeSuccessfulGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_payment_hash")] public static extern long LDKEventProbeSuccessfulGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeSuccessful_get_path")] public static extern long LDKEventProbeSuccessfulGetPath(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_payment_id")] public static extern long LDKEventProbeFailedGetPaymentId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_payment_hash")] public static extern long LDKEventProbeFailedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_path")] public static extern long LDKEventProbeFailedGetPath(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ProbeFailed_get_short_channel_id")] public static extern long LDKEventProbeFailedGetShortChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PendingHTLCsForwardable_get_time_forwardable")] public static extern long LDKEventPendingHTLCsForwardableGetTimeForwardable(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_intercept_id")] public static extern long LDKEventHTLCInterceptedGetInterceptId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_requested_next_hop_scid")] public static extern long LDKEventHTLCInterceptedGetRequestedNextHopScid(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_payment_hash")] public static extern long LDKEventHTLCInterceptedGetPaymentHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_inbound_amount_msat")] public static extern long LDKEventHTLCInterceptedGetInboundAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat")] public static extern long LDKEventHTLCInterceptedGetExpectedOutboundAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_SpendableOutputs_get_outputs")] public static extern long LDKEventSpendableOutputsGetOutputs(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_SpendableOutputs_get_channel_id")] public static extern long LDKEventSpendableOutputsGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_prev_channel_id")] public static extern long LDKEventPaymentForwardedGetPrevChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_next_channel_id")] public static extern long LDKEventPaymentForwardedGetNextChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_fee_earned_msat")] public static extern long LDKEventPaymentForwardedGetFeeEarnedMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx")] public static extern bool LDKEventPaymentForwardedGetClaimFromOnchainTx(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat")] public static extern long LDKEventPaymentForwardedGetOutboundAmountForwardedMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_channel_id")] public static extern long LDKEventChannelPendingGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_user_channel_id")] public static extern long LDKEventChannelPendingGetUserChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_former_temporary_channel_id")] public static extern long LDKEventChannelPendingGetFormerTemporaryChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_counterparty_node_id")] public static extern long LDKEventChannelPendingGetCounterpartyNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelPending_get_funding_txo")] public static extern long LDKEventChannelPendingGetFundingTxo(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_channel_id")] public static extern long LDKEventChannelReadyGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_user_channel_id")] public static extern long LDKEventChannelReadyGetUserChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_counterparty_node_id")] public static extern long LDKEventChannelReadyGetCounterpartyNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelReady_get_channel_type")] public static extern long LDKEventChannelReadyGetChannelType(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_id")] public static extern long LDKEventChannelClosedGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_user_channel_id")] public static extern long LDKEventChannelClosedGetUserChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_reason")] public static extern long LDKEventChannelClosedGetReason(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_counterparty_node_id")] public static extern long LDKEventChannelClosedGetCounterpartyNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_capacity_sats")] public static extern long LDKEventChannelClosedGetChannelCapacitySats(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_ChannelClosed_get_channel_funding_txo")] public static extern long LDKEventChannelClosedGetChannelFundingTxo(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_DiscardFunding_get_channel_id")] public static extern long LDKEventDiscardFundingGetChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_DiscardFunding_get_transaction")] public static extern long LDKEventDiscardFundingGetTransaction(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_temporary_channel_id")] public static extern long LDKEventOpenChannelRequestGetTemporaryChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_counterparty_node_id")] public static extern long LDKEventOpenChannelRequestGetCounterpartyNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_funding_satoshis")] public static extern long LDKEventOpenChannelRequestGetFundingSatoshis(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_push_msat")] public static extern long LDKEventOpenChannelRequestGetPushMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_OpenChannelRequest_get_channel_type")] public static extern long LDKEventOpenChannelRequestGetChannelType(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCHandlingFailed_get_prev_channel_id")] public static extern long LDKEventHTLCHandlingFailedGetPrevChannelId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_HTLCHandlingFailed_get_failed_next_destination")] public static extern long LDKEventHTLCHandlingFailedGetFailedNextDestination(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEvent_BumpTransaction_get_bump_transaction")] public static extern long LDKEventBumpTransactionGetBumpTransaction(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_EventZ_ty_from_ptr")] public static extern long LDKCOptionEventZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_EventZ_Some_get_some")] public static extern long LDKCOptionEventZSomeGetSome(long ptr); // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_get_ok")] public static extern long CResult_COption_EventZDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_get_ok")] public static extern long CResultCOptionEventZDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_get_err")] public static extern long CResult_COption_EventZDecodeErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_ty_from_ptr")] public static extern long LDKBolt11ParseError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_Bech32Error_get_bech32_error")] public static extern long LDKBolt11ParseError_Bech32Error_get_bech32_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_ParseAmountError_get_parse_amount_error")] public static extern int LDKBolt11ParseError_ParseAmountError_get_parse_amount_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_MalformedSignature_get_malformed_signature")] public static extern Secp256k1Error LDKBolt11ParseError_MalformedSignature_get_malformed_signature(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_DescriptionDecodeError_get_description_decode_error")] public static extern int LDKBolt11ParseError_DescriptionDecodeError_get_description_decode_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_InvalidSliceLength_get_invalid_slice_length")] public static extern long LDKBolt11ParseError_InvalidSliceLength_get_invalid_slice_length(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_get_err")] public static extern long CResultCOptionEventZDecodeErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_ty_from_ptr")] public static extern long LDKBolt11ParseErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_Bech32Error_get_bech32_error")] public static extern long LDKBolt11ParseErrorBech32ErrorGetBech32Error(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_ParseAmountError_get_parse_amount_error")] public static extern int LDKBolt11ParseErrorParseAmountErrorGetParseAmountError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_MalformedSignature_get_malformed_signature")] public static extern Secp256k1Error LDKBolt11ParseErrorMalformedSignatureGetMalformedSignature(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_DescriptionDecodeError_get_description_decode_error")] public static extern int LDKBolt11ParseErrorDescriptionDecodeErrorGetDescriptionDecodeError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKBolt11ParseError_InvalidSliceLength_get_invalid_slice_length")] public static extern long LDKBolt11ParseErrorInvalidSliceLengthGetInvalidSliceLength(long ptr); // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_get_ok")] public static extern SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_get_ok")] public static extern SiPrefix CResultSiPrefixBolt11ParseErrorZGetOk(long _owner); // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_get_err")] public static extern long CResult_SiPrefixBolt11ParseErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_ty_from_ptr")] public static extern long LDKParseOrSemanticError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_ParseError_get_parse_error")] public static extern long LDKParseOrSemanticError_ParseError_get_parse_error(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_SemanticError_get_semantic_error")] public static extern Bolt11SemanticError LDKParseOrSemanticError_SemanticError_get_semantic_error(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_get_err")] public static extern long CResultSiPrefixBolt11ParseErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_ty_from_ptr")] public static extern long LDKParseOrSemanticErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_ParseError_get_parse_error")] public static extern long LDKParseOrSemanticErrorParseErrorGetParseError(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParseOrSemanticError_SemanticError_get_semantic_error")] public static extern Bolt11SemanticError LDKParseOrSemanticErrorSemanticErrorGetSemanticError(long ptr); // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZGetOk(long _owner); // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZGetErr(long _owner); // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZGetOk(long _owner); // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZGetErr(long _owner); // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetA(long _owner); // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetB(long _owner); // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetC(long _owner); // struct LDKPayeePubKey CResult_PayeePubKeySecp256k1ErrorZ_get_ok(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_get_ok")] public static extern long CResult_PayeePubKeySecp256k1ErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_get_ok")] public static extern long CResultPayeePubKeySecp256k1ErrorZGetOk(long _owner); // enum LDKSecp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResultPayeePubKeySecp256k1ErrorZGetErr(long _owner); // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_get_ok")] public static extern long CResult_PositiveTimestampCreationErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_get_ok")] public static extern long CResultPositiveTimestampCreationErrorZGetOk(long _owner); // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_get_err")] public static extern CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_get_err")] public static extern CreationError CResultPositiveTimestampCreationErrorZGetErr(long _owner); // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_get_ok")] public static extern void CResult_NoneBolt11SemanticErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_get_ok")] public static extern void CResultNoneBolt11SemanticErrorZGetOk(long _owner); // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_get_err")] public static extern Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_get_err")] public static extern Bolt11SemanticError CResultNoneBolt11SemanticErrorZGetErr(long _owner); // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok")] public static extern long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok")] public static extern long CResultBolt11InvoiceBolt11SemanticErrorZGetOk(long _owner); // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err")] public static extern Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err")] public static extern Bolt11SemanticError CResultBolt11InvoiceBolt11SemanticErrorZGetErr(long _owner); // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_get_ok")] public static extern long CResult_DescriptionCreationErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_get_ok")] public static extern long CResultDescriptionCreationErrorZGetOk(long _owner); // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_get_err")] public static extern CreationError CResult_DescriptionCreationErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_get_err")] public static extern CreationError CResultDescriptionCreationErrorZGetErr(long _owner); // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_get_ok")] public static extern long CResult_PrivateRouteCreationErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_get_ok")] public static extern long CResultPrivateRouteCreationErrorZGetOk(long _owner); // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_get_err")] public static extern CreationError CResult_PrivateRouteCreationErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_get_err")] public static extern CreationError CResultPrivateRouteCreationErrorZGetErr(long _owner); // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_get_ok")] public static extern long CResult_OutPointDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_get_ok")] public static extern long CResultOutPointDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_get_err")] public static extern long CResult_OutPointDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_get_err")] public static extern long CResultOutPointDecodeErrorZGetErr(long _owner); // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_get_ok")] public static extern long CResult_BigSizeDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_get_ok")] public static extern long CResultBigSizeDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_get_err")] public static extern long CResult_BigSizeDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_get_err")] public static extern long CResultBigSizeDecodeErrorZGetErr(long _owner); // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_get_ok")] public static extern long CResult_HostnameDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_get_ok")] public static extern long CResultHostnameDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_get_err")] public static extern long CResult_HostnameDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_get_err")] public static extern long CResultHostnameDecodeErrorZGetErr(long _owner); // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_get_ok")] public static extern long CResult_TransactionU16LenLimitedNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_get_ok")] public static extern long CResultTransactionU16LenLimitedNoneZGetOk(long _owner); // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_get_err")] public static extern void CResult_TransactionU16LenLimitedNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_get_err")] public static extern void CResultTransactionU16LenLimitedNoneZGetErr(long _owner); // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_get_err")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_get_err")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZGetErr(long _owner); // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_get_ok")] public static extern long CResult_UntrustedStringDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_get_ok")] public static extern long CResultUntrustedStringDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_get_err")] public static extern long CResult_UntrustedStringDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_get_err")] public static extern long CResultUntrustedStringDecodeErrorZGetErr(long _owner); // struct LDKThirtyTwoBytes C2Tuple__u832u16Z_get_a(LDKC2Tuple__u832u16Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_get_a")] public static extern long C2Tuple__u832u16Z_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_get_a")] public static extern long C2TupleU832U16ZGetA(long _owner); // uint16_t C2Tuple__u832u16Z_get_b(LDKC2Tuple__u832u16Z *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_get_b")] public static extern short C2Tuple__u832u16Z_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_get_b")] public static extern short C2TupleU832U16ZGetB(long _owner); // struct LDKPaymentRelay CResult_PaymentRelayDecodeErrorZ_get_ok(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_get_ok")] public static extern long CResult_PaymentRelayDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_get_ok")] public static extern long CResultPaymentRelayDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PaymentRelayDecodeErrorZ_get_err(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_get_err")] public static extern long CResult_PaymentRelayDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_get_err")] public static extern long CResultPaymentRelayDecodeErrorZGetErr(long _owner); // struct LDKPaymentConstraints CResult_PaymentConstraintsDecodeErrorZ_get_ok(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_get_ok")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_get_ok")] public static extern long CResultPaymentConstraintsDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_PaymentConstraintsDecodeErrorZ_get_err(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_get_err")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_get_err")] public static extern long CResultPaymentConstraintsDecodeErrorZGetErr(long _owner); // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetA(long _owner); // struct LDKRecipientOnionFields C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetB(long _owner); // struct LDKRouteParameters C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetC(long _owner); // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok")] public static extern long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok")] public static extern long CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZGetOk(long _owner); // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err")] public static extern void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err")] public static extern void CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZGetErr(long _owner); // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_get_ok")] public static extern long CResult_StrSecp256k1ErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_get_ok")] public static extern long CResultStrSecp256k1ErrorZGetOk(long _owner); // enum LDKSecp256k1Error CResult_StrSecp256k1ErrorZ_get_err(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResult_StrSecp256k1ErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_get_err")] public static extern Secp256k1Error CResultStrSecp256k1ErrorZGetErr(long _owner); // struct LDKPublicKey C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetA(long _owner); // struct LDKOnionMessage C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetB(long _owner); // struct LDKCOption_CVec_SocketAddressZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_ty_from_ptr")] public static extern long LDKSendError_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_Secp256k1_get_secp256k1")] public static extern Secp256k1Error LDKSendError_Secp256k1_get_secp256k1(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_InvalidFirstHop_get_invalid_first_hop")] public static extern long LDKSendError_InvalidFirstHop_get_invalid_first_hop(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetC(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_ty_from_ptr")] public static extern long LDKSendErrorTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_Secp256k1_get_secp256k1")] public static extern Secp256k1Error LDKSendErrorSecp256k1GetSecp256K1(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendError_InvalidFirstHop_get_invalid_first_hop")] public static extern long LDKSendErrorInvalidFirstHopGetInvalidFirstHop(long ptr); // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok")] public static extern long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok")] public static extern long CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZGetOk(long _owner); // struct LDKSendError CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err")] public static extern long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_ty_from_ptr")] public static extern long LDKParsedOnionMessageContents_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_Offers_get_offers")] public static extern long LDKParsedOnionMessageContents_Offers_get_offers(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_Custom_get_custom")] public static extern long LDKParsedOnionMessageContents_Custom_get_custom(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_ty_from_ptr")] public static extern long LDKPeeledOnion_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Forward_get__0")] public static extern long LDKPeeledOnion_Forward_get__0(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Forward_get__1")] public static extern long LDKPeeledOnion_Forward_get__1(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__0")] public static extern long LDKPeeledOnion_Receive_get__0(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__1")] public static extern long LDKPeeledOnion_Receive_get__1(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__2")] public static extern long LDKPeeledOnion_Receive_get__2(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err")] public static extern long CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_ty_from_ptr")] public static extern long LDKParsedOnionMessageContentsTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_Offers_get_offers")] public static extern long LDKParsedOnionMessageContentsOffersGetOffers(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKParsedOnionMessageContents_Custom_get_custom")] public static extern long LDKParsedOnionMessageContentsCustomGetCustom(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_ty_from_ptr")] public static extern long LDKPeeledOnionTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Forward_get__0")] public static extern long LDKPeeledOnionForwardGet0(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Forward_get__1")] public static extern long LDKPeeledOnionForwardGet1(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__0")] public static extern long LDKPeeledOnionReceiveGet0(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__1")] public static extern long LDKPeeledOnionReceiveGet1(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPeeledOnion_Receive_get__2")] public static extern long LDKPeeledOnionReceiveGet2(long ptr); // struct LDKPeeledOnion CResult_PeeledOnionNoneZ_get_ok(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_get_ok")] public static extern long CResult_PeeledOnionNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_get_ok")] public static extern long CResultPeeledOnionNoneZGetOk(long _owner); // void CResult_PeeledOnionNoneZ_get_err(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_get_err")] public static extern void CResult_PeeledOnionNoneZ_get_err(long _owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendSuccess_ty_from_ptr")] public static extern long LDKSendSuccess_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendSuccess_BufferedAwaitingConnection_get_buffered_awaiting_connection")] public static extern long LDKSendSuccess_BufferedAwaitingConnection_get_buffered_awaiting_connection(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_get_err")] public static extern void CResultPeeledOnionNoneZGetErr(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendSuccess_ty_from_ptr")] public static extern long LDKSendSuccessTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSendSuccess_BufferedAwaitingConnection_get_buffered_awaiting_connection")] public static extern long LDKSendSuccessBufferedAwaitingConnectionGetBufferedAwaitingConnection(long ptr); // struct LDKSendSuccess CResult_SendSuccessSendErrorZ_get_ok(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_get_ok")] public static extern long CResult_SendSuccessSendErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_get_ok")] public static extern long CResultSendSuccessSendErrorZGetOk(long _owner); // struct LDKSendError CResult_SendSuccessSendErrorZ_get_err(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_get_err")] public static extern long CResult_SendSuccessSendErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_get_err")] public static extern long CResultSendSuccessSendErrorZGetErr(long _owner); // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_get_ok")] public static extern long CResult_BlindedPathNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_get_ok")] public static extern long CResultBlindedPathNoneZGetOk(long _owner); // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_get_err")] public static extern void CResult_BlindedPathNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_get_err")] public static extern void CResultBlindedPathNoneZGetErr(long _owner); // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok")] public static extern long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok")] public static extern long CResultC2TupleBlindedPayInfoBlindedPathZNoneZGetOk(long _owner); // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err")] public static extern void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err")] public static extern void CResultC2TupleBlindedPayInfoBlindedPathZNoneZGetErr(long _owner); // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_get_ok")] public static extern long CResult_BlindedPathDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_get_ok")] public static extern long CResultBlindedPathDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_get_err")] public static extern long CResult_BlindedPathDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_get_err")] public static extern long CResultBlindedPathDecodeErrorZGetErr(long _owner); // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_get_ok")] public static extern long CResult_BlindedHopDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_get_ok")] public static extern long CResultBlindedHopDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_get_err")] public static extern long CResult_BlindedHopDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_get_err")] public static extern long CResultBlindedHopDecodeErrorZGetErr(long _owner); // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_get_ok")] public static extern long CResult_InvoiceErrorDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_get_ok")] public static extern long CResultInvoiceErrorDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_get_err")] public static extern long CResult_InvoiceErrorDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_get_err")] public static extern long CResultInvoiceErrorDecodeErrorZGetErr(long _owner); // struct LDKDelayedPaymentBasepoint CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_get_err")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_get_err")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZGetErr(long _owner); // struct LDKDelayedPaymentKey CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_get_ok")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_get_ok")] public static extern long CResultDelayedPaymentKeyDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_DelayedPaymentKeyDecodeErrorZ_get_err(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_get_err")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_get_err")] public static extern long CResultDelayedPaymentKeyDecodeErrorZGetErr(long _owner); // struct LDKHtlcBasepoint CResult_HtlcBasepointDecodeErrorZ_get_ok(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_get_ok")] public static extern long CResult_HtlcBasepointDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_get_ok")] public static extern long CResultHtlcBasepointDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HtlcBasepointDecodeErrorZ_get_err(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_get_err")] public static extern long CResult_HtlcBasepointDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_get_err")] public static extern long CResultHtlcBasepointDecodeErrorZGetErr(long _owner); // struct LDKHtlcKey CResult_HtlcKeyDecodeErrorZ_get_ok(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_get_ok")] public static extern long CResult_HtlcKeyDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_get_ok")] public static extern long CResultHtlcKeyDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_HtlcKeyDecodeErrorZ_get_err(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_get_err")] public static extern long CResult_HtlcKeyDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_get_err")] public static extern long CResultHtlcKeyDecodeErrorZGetErr(long _owner); // struct LDKRevocationBasepoint CResult_RevocationBasepointDecodeErrorZ_get_ok(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_get_ok")] public static extern long CResult_RevocationBasepointDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_get_ok")] public static extern long CResultRevocationBasepointDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RevocationBasepointDecodeErrorZ_get_err(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_get_err")] public static extern long CResult_RevocationBasepointDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_get_err")] public static extern long CResultRevocationBasepointDecodeErrorZGetErr(long _owner); // struct LDKRevocationKey CResult_RevocationKeyDecodeErrorZ_get_ok(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_get_ok")] public static extern long CResult_RevocationKeyDecodeErrorZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_get_ok")] public static extern long CResultRevocationKeyDecodeErrorZGetOk(long _owner); // struct LDKDecodeError CResult_RevocationKeyDecodeErrorZ_get_err(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_get_err")] public static extern long CResult_RevocationKeyDecodeErrorZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_get_err")] public static extern long CResultRevocationKeyDecodeErrorZGetErr(long _owner); public interface LDKFilter { - void register_tx(long txid, long script_pubkey); - void register_output(long output); + void RegisterTx(long txid, long script_pubkey); + void RegisterOutput(long output); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFilter_new")] public static extern long LDKFilter_new_native(long impl_idx); - public static long[] LDKFilter_new(LDKFilter impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFilter_new")] public static extern long LDKFilterNewNative(long impl_idx); + public static long[] LDKFilterNew(LDKFilter impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1956,32 +1956,32 @@ public static long[] LDKFilter_new(LDKFilter impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKFilter_new_native(i); + ret[0] = LDKFilterNewNative(i); ret[1] = i; return ret; } // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_register_tx")] public static extern void Filter_register_tx(long _this_arg, long _txid, long _script_pubkey); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_register_tx")] public static extern void FilterRegisterTx(long _this_arg, long _txid, long _script_pubkey); // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_register_output")] public static extern void Filter_register_output(long _this_arg, long _output); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_FilterZ_ty_from_ptr")] public static extern long LDKCOption_FilterZ_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_FilterZ_Some_get_some")] public static extern long LDKCOption_FilterZ_Some_get_some(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_register_output")] public static extern void FilterRegisterOutput(long _this_arg, long _output); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_FilterZ_ty_from_ptr")] public static extern long LDKCOptionFilterZTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCOption_FilterZ_Some_get_some")] public static extern long LDKCOptionFilterZSomeGetSome(long ptr); // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_get_ok")] public static extern long CResult_LockedChannelMonitorNoneZ_get_ok(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_get_ok")] public static extern long CResultLockedChannelMonitorNoneZGetOk(long _owner); // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_get_err")] public static extern void CResult_LockedChannelMonitorNoneZ_get_err(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_get_err")] public static extern void CResultLockedChannelMonitorNoneZGetErr(long _owner); // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a")] public static extern long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a")] public static extern long C2TupleOutPointCVecMonitorUpdateIdZZGetA(long _owner); // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b")] public static extern long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long _owner); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b")] public static extern long C2TupleOutPointCVecMonitorUpdateIdZZGetB(long _owner); public interface LDKKVStore { - long read(long primary_namespace, long secondary_namespace, long key); - long write(long primary_namespace, long secondary_namespace, long key, long buf); - long remove(long primary_namespace, long secondary_namespace, long key, bool lazy); - long list(long primary_namespace, long secondary_namespace); + long Read(long primary_namespace, long secondary_namespace, long key); + long Write(long primary_namespace, long secondary_namespace, long key, long buf); + long Remove(long primary_namespace, long secondary_namespace, long key, bool lazy); + long List(long primary_namespace, long secondary_namespace); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKKVStore_new")] public static extern long LDKKVStore_new_native(long impl_idx); - public static long[] LDKKVStore_new(LDKKVStore impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKKVStore_new")] public static extern long LDKKVStoreNewNative(long impl_idx); + public static long[] LDKKVStoreNew(LDKKVStore impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -1993,25 +1993,25 @@ public static long[] LDKKVStore_new(LDKKVStore impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKKVStore_new_native(i); + ret[0] = LDKKVStoreNewNative(i); ret[1] = i; return ret; } // LDKCResult_CVec_u8ZIOErrorZ KVStore_read LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_read")] public static extern long KVStore_read(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_read")] public static extern long KVStoreRead(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key); // LDKCResult_NoneIOErrorZ KVStore_write LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_write")] public static extern long KVStore_write(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key, long _buf); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_write")] public static extern long KVStoreWrite(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key, long _buf); // LDKCResult_NoneIOErrorZ KVStore_remove LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_remove")] public static extern long KVStore_remove(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key, bool _lazy); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_remove")] public static extern long KVStoreRemove(long _this_arg, long _primary_namespace, long _secondary_namespace, long _key, bool _lazy); // LDKCResult_CVec_StrZIOErrorZ KVStore_list LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_list")] public static extern long KVStore_list(long _this_arg, long _primary_namespace, long _secondary_namespace); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_list")] public static extern long KVStoreList(long _this_arg, long _primary_namespace, long _secondary_namespace); public interface LDKPersister { - long persist_manager(long channel_manager); - long persist_graph(long network_graph); - long persist_scorer(long scorer); + long PersistManager(long channel_manager); + long PersistGraph(long network_graph); + long PersistScorer(long scorer); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPersister_new")] public static extern long LDKPersister_new_native(long impl_idx); - public static long[] LDKPersister_new(LDKPersister impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPersister_new")] public static extern long LDKPersisterNewNative(long impl_idx); + public static long[] LDKPersisterNew(LDKPersister impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2023,22 +2023,22 @@ public static long[] LDKPersister_new(LDKPersister impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKPersister_new_native(i); + ret[0] = LDKPersisterNewNative(i); ret[1] = i; return ret; } // LDKCResult_NoneIOErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_manager")] public static extern long Persister_persist_manager(long _this_arg, long _channel_manager); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_manager")] public static extern long PersisterPersistManager(long _this_arg, long _channel_manager); // LDKCResult_NoneIOErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_graph")] public static extern long Persister_persist_graph(long _this_arg, long _network_graph); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_graph")] public static extern long PersisterPersistGraph(long _this_arg, long _network_graph); // LDKCResult_NoneIOErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_scorer")] public static extern long Persister_persist_scorer(long _this_arg, long _scorer); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_persist_scorer")] public static extern long PersisterPersistScorer(long _this_arg, long _scorer); public interface LDKPersist { - ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id); - ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id); + ChannelMonitorUpdateStatus PersistNewChannel(long channel_id, long data, long update_id); + ChannelMonitorUpdateStatus UpdatePersistedChannel(long channel_id, long update, long data, long update_id); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPersist_new")] public static extern long LDKPersist_new_native(long impl_idx); - public static long[] LDKPersist_new(LDKPersist impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPersist_new")] public static extern long LDKPersistNewNative(long impl_idx); + public static long[] LDKPersistNew(LDKPersist impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2050,19 +2050,19 @@ public static long[] LDKPersist_new(LDKPersist impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKPersist_new_native(i); + ret[0] = LDKPersistNewNative(i); ret[1] = i; return ret; } // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_persist_new_channel")] public static extern ChannelMonitorUpdateStatus Persist_persist_new_channel(long _this_arg, long _channel_id, long _data, long _update_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_persist_new_channel")] public static extern ChannelMonitorUpdateStatus PersistPersistNewChannel(long _this_arg, long _channel_id, long _data, long _update_id); // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_update_persisted_channel")] public static extern ChannelMonitorUpdateStatus Persist_update_persisted_channel(long _this_arg, long _channel_id, long _update, long _data, long _update_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_update_persisted_channel")] public static extern ChannelMonitorUpdateStatus PersistUpdatePersistedChannel(long _this_arg, long _channel_id, long _update, long _data, long _update_id); public interface LDKFutureCallback { - void call(); + void Call(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFutureCallback_new")] public static extern long LDKFutureCallback_new_native(long impl_idx); - public static long[] LDKFutureCallback_new(LDKFutureCallback impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFutureCallback_new")] public static extern long LDKFutureCallbackNewNative(long impl_idx); + public static long[] LDKFutureCallbackNew(LDKFutureCallback impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2074,19 +2074,19 @@ public static long[] LDKFutureCallback_new(LDKFutureCallback impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKFutureCallback_new_native(i); + ret[0] = LDKFutureCallbackNewNative(i); ret[1] = i; return ret; } // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FutureCallback_call")] public static extern void FutureCallback_call(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FutureCallback_call")] public static extern void FutureCallbackCall(long _this_arg); public interface LDKListen { - void filtered_block_connected(long header, long txdata, int height); - void block_connected(long block, int height); - void block_disconnected(long header, int height); + void FilteredBlockConnected(long header, long txdata, int height); + void BlockConnected(long block, int height); + void BlockDisconnected(long header, int height); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKListen_new")] public static extern long LDKListen_new_native(long impl_idx); - public static long[] LDKListen_new(LDKListen impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKListen_new")] public static extern long LDKListenNewNative(long impl_idx); + public static long[] LDKListenNew(LDKListen impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2098,24 +2098,24 @@ public static long[] LDKListen_new(LDKListen impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKListen_new_native(i); + ret[0] = LDKListenNewNative(i); ret[1] = i; return ret; } // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_filtered_block_connected")] public static extern void Listen_filtered_block_connected(long _this_arg, long _header, long _txdata, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_filtered_block_connected")] public static extern void ListenFilteredBlockConnected(long _this_arg, long _header, long _txdata, int _height); // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_block_connected")] public static extern void Listen_block_connected(long _this_arg, long _block, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_block_connected")] public static extern void ListenBlockConnected(long _this_arg, long _block, int _height); // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_block_disconnected")] public static extern void Listen_block_disconnected(long _this_arg, long _header, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_block_disconnected")] public static extern void ListenBlockDisconnected(long _this_arg, long _header, int _height); public interface LDKConfirm { - void transactions_confirmed(long header, long txdata, int height); - void transaction_unconfirmed(long txid); - void best_block_updated(long header, int height); - long get_relevant_txids(); + void TransactionsConfirmed(long header, long txdata, int height); + void TransactionUnconfirmed(long txid); + void BestBlockUpdated(long header, int height); + long GetRelevantTxids(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKConfirm_new")] public static extern long LDKConfirm_new_native(long impl_idx); - public static long[] LDKConfirm_new(LDKConfirm impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKConfirm_new")] public static extern long LDKConfirmNewNative(long impl_idx); + public static long[] LDKConfirmNew(LDKConfirm impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2127,23 +2127,23 @@ public static long[] LDKConfirm_new(LDKConfirm impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKConfirm_new_native(i); + ret[0] = LDKConfirmNewNative(i); ret[1] = i; return ret; } // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_transactions_confirmed")] public static extern void Confirm_transactions_confirmed(long _this_arg, long _header, long _txdata, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_transactions_confirmed")] public static extern void ConfirmTransactionsConfirmed(long _this_arg, long _header, long _txdata, int _height); // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32] - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_transaction_unconfirmed")] public static extern void Confirm_transaction_unconfirmed(long _this_arg, long _txid); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_transaction_unconfirmed")] public static extern void ConfirmTransactionUnconfirmed(long _this_arg, long _txid); // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_best_block_updated")] public static extern void Confirm_best_block_updated(long _this_arg, long _header, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_best_block_updated")] public static extern void ConfirmBestBlockUpdated(long _this_arg, long _header, int _height); // LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_get_relevant_txids")] public static extern long Confirm_get_relevant_txids(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_get_relevant_txids")] public static extern long ConfirmGetRelevantTxids(long _this_arg); public interface LDKEventHandler { - void handle_event(long _event); + void HandleEvent(long _event); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEventHandler_new")] public static extern long LDKEventHandler_new_native(long impl_idx); - public static long[] LDKEventHandler_new(LDKEventHandler impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEventHandler_new")] public static extern long LDKEventHandlerNewNative(long impl_idx); + public static long[] LDKEventHandlerNew(LDKEventHandler impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2155,17 +2155,17 @@ public static long[] LDKEventHandler_new(LDKEventHandler impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKEventHandler_new_native(i); + ret[0] = LDKEventHandlerNewNative(i); ret[1] = i; return ret; } // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventHandler_handle_event")] public static extern void EventHandler_handle_event(long _this_arg, long _event); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventHandler_handle_event")] public static extern void EventHandlerHandleEvent(long _this_arg, long _event); public interface LDKEventsProvider { - void process_pending_events(long handler); + void ProcessPendingEvents(long handler); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEventsProvider_new")] public static extern long LDKEventsProvider_new_native(long impl_idx); - public static long[] LDKEventsProvider_new(LDKEventsProvider impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEventsProvider_new")] public static extern long LDKEventsProviderNewNative(long impl_idx); + public static long[] LDKEventsProviderNew(LDKEventsProvider impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2177,19 +2177,19 @@ public static long[] LDKEventsProvider_new(LDKEventsProvider impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKEventsProvider_new_native(i); + ret[0] = LDKEventsProviderNewNative(i); ret[1] = i; return ret; } // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventsProvider_process_pending_events")] public static extern void EventsProvider_process_pending_events(long _this_arg, long _handler); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFailureCode_ty_from_ptr")] public static extern long LDKFailureCode_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFailureCode_InvalidOnionPayload_get_invalid_onion_payload")] public static extern long LDKFailureCode_InvalidOnionPayload_get_invalid_onion_payload(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventsProvider_process_pending_events")] public static extern void EventsProviderProcessPendingEvents(long _this_arg, long _handler); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFailureCode_ty_from_ptr")] public static extern long LDKFailureCodeTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFailureCode_InvalidOnionPayload_get_invalid_onion_payload")] public static extern long LDKFailureCodeInvalidOnionPayloadGetInvalidOnionPayload(long ptr); public interface LDKMessageSendEventsProvider { - long get_and_clear_pending_msg_events(); + long GetAndClearPendingMsgEvents(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEventsProvider_new")] public static extern long LDKMessageSendEventsProvider_new_native(long impl_idx); - public static long[] LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKMessageSendEventsProvider_new")] public static extern long LDKMessageSendEventsProviderNewNative(long impl_idx); + public static long[] LDKMessageSendEventsProviderNew(LDKMessageSendEventsProvider impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2201,54 +2201,54 @@ public static long[] LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvid js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKMessageSendEventsProvider_new_native(i); + ret[0] = LDKMessageSendEventsProviderNewNative(i); ret[1] = i; return ret; } // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEventsProvider_get_and_clear_pending_msg_events")] public static extern long MessageSendEventsProvider_get_and_clear_pending_msg_events(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEventsProvider_get_and_clear_pending_msg_events")] public static extern long MessageSendEventsProviderGetAndClearPendingMsgEvents(long _this_arg); public interface LDKChannelMessageHandler { - void handle_open_channel(long their_node_id, long msg); - void handle_open_channel_v2(long their_node_id, long msg); - void handle_accept_channel(long their_node_id, long msg); - void handle_accept_channel_v2(long their_node_id, long msg); - void handle_funding_created(long their_node_id, long msg); - void handle_funding_signed(long their_node_id, long msg); - void handle_channel_ready(long their_node_id, long msg); - void handle_shutdown(long their_node_id, long msg); - void handle_closing_signed(long their_node_id, long msg); - void handle_stfu(long their_node_id, long msg); - void handle_splice(long their_node_id, long msg); - void handle_splice_ack(long their_node_id, long msg); - void handle_splice_locked(long their_node_id, long msg); - void handle_tx_add_input(long their_node_id, long msg); - void handle_tx_add_output(long their_node_id, long msg); - void handle_tx_remove_input(long their_node_id, long msg); - void handle_tx_remove_output(long their_node_id, long msg); - void handle_tx_complete(long their_node_id, long msg); - void handle_tx_signatures(long their_node_id, long msg); - void handle_tx_init_rbf(long their_node_id, long msg); - void handle_tx_ack_rbf(long their_node_id, long msg); - void handle_tx_abort(long their_node_id, long msg); - void handle_update_add_htlc(long their_node_id, long msg); - void handle_update_fulfill_htlc(long their_node_id, long msg); - void handle_update_fail_htlc(long their_node_id, long msg); - void handle_update_fail_malformed_htlc(long their_node_id, long msg); - void handle_commitment_signed(long their_node_id, long msg); - void handle_revoke_and_ack(long their_node_id, long msg); - void handle_update_fee(long their_node_id, long msg); - void handle_announcement_signatures(long their_node_id, long msg); - void peer_disconnected(long their_node_id); - long peer_connected(long their_node_id, long msg, bool inbound); - void handle_channel_reestablish(long their_node_id, long msg); - void handle_channel_update(long their_node_id, long msg); - void handle_error(long their_node_id, long msg); - long provided_node_features(); - long provided_init_features(long their_node_id); - long get_chain_hashes(); + void HandleOpenChannel(long their_node_id, long msg); + void HandleOpenChannelV2(long their_node_id, long msg); + void HandleAcceptChannel(long their_node_id, long msg); + void HandleAcceptChannelV2(long their_node_id, long msg); + void HandleFundingCreated(long their_node_id, long msg); + void HandleFundingSigned(long their_node_id, long msg); + void HandleChannelReady(long their_node_id, long msg); + void HandleShutdown(long their_node_id, long msg); + void HandleClosingSigned(long their_node_id, long msg); + void HandleStfu(long their_node_id, long msg); + void HandleSplice(long their_node_id, long msg); + void HandleSpliceAck(long their_node_id, long msg); + void HandleSpliceLocked(long their_node_id, long msg); + void HandleTxAddInput(long their_node_id, long msg); + void HandleTxAddOutput(long their_node_id, long msg); + void HandleTxRemoveInput(long their_node_id, long msg); + void HandleTxRemoveOutput(long their_node_id, long msg); + void HandleTxComplete(long their_node_id, long msg); + void HandleTxSignatures(long their_node_id, long msg); + void HandleTxInitRbf(long their_node_id, long msg); + void HandleTxAckRbf(long their_node_id, long msg); + void HandleTxAbort(long their_node_id, long msg); + void HandleUpdateAddHtlc(long their_node_id, long msg); + void HandleUpdateFulfillHtlc(long their_node_id, long msg); + void HandleUpdateFailHtlc(long their_node_id, long msg); + void HandleUpdateFailMalformedHtlc(long their_node_id, long msg); + void HandleCommitmentSigned(long their_node_id, long msg); + void HandleRevokeAndAck(long their_node_id, long msg); + void HandleUpdateFee(long their_node_id, long msg); + void HandleAnnouncementSignatures(long their_node_id, long msg); + void PeerDisconnected(long their_node_id); + long PeerConnected(long their_node_id, long msg, bool inbound); + void HandleChannelReestablish(long their_node_id, long msg); + void HandleChannelUpdate(long their_node_id, long msg); + void HandleError(long their_node_id, long msg); + long ProvidedNodeFeatures(); + long ProvidedInitFeatures(long their_node_id); + long GetChainHashes(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKChannelMessageHandler_new")] public static extern long LDKChannelMessageHandler_new_native(long impl_idx, long MessageSendEventsProvider); - public static long[] LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, long MessageSendEventsProvider) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKChannelMessageHandler_new")] public static extern long LDKChannelMessageHandlerNewNative(long impl_idx, long MessageSendEventsProvider); + public static long[] LDKChannelMessageHandlerNew(LDKChannelMessageHandler impl, long MessageSendEventsProvider) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2260,92 +2260,92 @@ public static long[] LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKChannelMessageHandler_new_native(i, MessageSendEventsProvider); + ret[0] = LDKChannelMessageHandlerNewNative(i, MessageSendEventsProvider); ret[1] = i; return ret; } // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_open_channel")] public static extern void ChannelMessageHandler_handle_open_channel(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_open_channel")] public static extern void ChannelMessageHandlerHandleOpenChannel(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_open_channel_v2")] public static extern void ChannelMessageHandler_handle_open_channel_v2(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_open_channel_v2")] public static extern void ChannelMessageHandlerHandleOpenChannelV2(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_accept_channel")] public static extern void ChannelMessageHandler_handle_accept_channel(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_accept_channel")] public static extern void ChannelMessageHandlerHandleAcceptChannel(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_accept_channel_v2")] public static extern void ChannelMessageHandler_handle_accept_channel_v2(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_accept_channel_v2")] public static extern void ChannelMessageHandlerHandleAcceptChannelV2(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_funding_created")] public static extern void ChannelMessageHandler_handle_funding_created(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_funding_created")] public static extern void ChannelMessageHandlerHandleFundingCreated(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_funding_signed")] public static extern void ChannelMessageHandler_handle_funding_signed(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_funding_signed")] public static extern void ChannelMessageHandlerHandleFundingSigned(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_ready")] public static extern void ChannelMessageHandler_handle_channel_ready(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_ready")] public static extern void ChannelMessageHandlerHandleChannelReady(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_shutdown")] public static extern void ChannelMessageHandler_handle_shutdown(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_shutdown")] public static extern void ChannelMessageHandlerHandleShutdown(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_closing_signed")] public static extern void ChannelMessageHandler_handle_closing_signed(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_closing_signed")] public static extern void ChannelMessageHandlerHandleClosingSigned(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_stfu LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKStfu *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_stfu")] public static extern void ChannelMessageHandler_handle_stfu(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_stfu")] public static extern void ChannelMessageHandlerHandleStfu(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_splice LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSplice *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice")] public static extern void ChannelMessageHandler_handle_splice(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice")] public static extern void ChannelMessageHandlerHandleSplice(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_splice_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceAck *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice_ack")] public static extern void ChannelMessageHandler_handle_splice_ack(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice_ack")] public static extern void ChannelMessageHandlerHandleSpliceAck(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_splice_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceLocked *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice_locked")] public static extern void ChannelMessageHandler_handle_splice_locked(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_splice_locked")] public static extern void ChannelMessageHandlerHandleSpliceLocked(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_add_input")] public static extern void ChannelMessageHandler_handle_tx_add_input(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_add_input")] public static extern void ChannelMessageHandlerHandleTxAddInput(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_add_output")] public static extern void ChannelMessageHandler_handle_tx_add_output(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_add_output")] public static extern void ChannelMessageHandlerHandleTxAddOutput(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_remove_input")] public static extern void ChannelMessageHandler_handle_tx_remove_input(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_remove_input")] public static extern void ChannelMessageHandlerHandleTxRemoveInput(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_remove_output")] public static extern void ChannelMessageHandler_handle_tx_remove_output(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_remove_output")] public static extern void ChannelMessageHandlerHandleTxRemoveOutput(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_complete")] public static extern void ChannelMessageHandler_handle_tx_complete(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_complete")] public static extern void ChannelMessageHandlerHandleTxComplete(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_signatures")] public static extern void ChannelMessageHandler_handle_tx_signatures(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_signatures")] public static extern void ChannelMessageHandlerHandleTxSignatures(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_init_rbf")] public static extern void ChannelMessageHandler_handle_tx_init_rbf(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_init_rbf")] public static extern void ChannelMessageHandlerHandleTxInitRbf(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_ack_rbf")] public static extern void ChannelMessageHandler_handle_tx_ack_rbf(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_ack_rbf")] public static extern void ChannelMessageHandlerHandleTxAckRbf(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_abort")] public static extern void ChannelMessageHandler_handle_tx_abort(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_tx_abort")] public static extern void ChannelMessageHandlerHandleTxAbort(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_add_htlc")] public static extern void ChannelMessageHandler_handle_update_add_htlc(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_add_htlc")] public static extern void ChannelMessageHandlerHandleUpdateAddHtlc(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fulfill_htlc")] public static extern void ChannelMessageHandler_handle_update_fulfill_htlc(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fulfill_htlc")] public static extern void ChannelMessageHandlerHandleUpdateFulfillHtlc(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fail_htlc")] public static extern void ChannelMessageHandler_handle_update_fail_htlc(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fail_htlc")] public static extern void ChannelMessageHandlerHandleUpdateFailHtlc(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fail_malformed_htlc")] public static extern void ChannelMessageHandler_handle_update_fail_malformed_htlc(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fail_malformed_htlc")] public static extern void ChannelMessageHandlerHandleUpdateFailMalformedHtlc(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_commitment_signed")] public static extern void ChannelMessageHandler_handle_commitment_signed(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_commitment_signed")] public static extern void ChannelMessageHandlerHandleCommitmentSigned(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_revoke_and_ack")] public static extern void ChannelMessageHandler_handle_revoke_and_ack(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_revoke_and_ack")] public static extern void ChannelMessageHandlerHandleRevokeAndAck(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fee")] public static extern void ChannelMessageHandler_handle_update_fee(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_update_fee")] public static extern void ChannelMessageHandlerHandleUpdateFee(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_announcement_signatures")] public static extern void ChannelMessageHandler_handle_announcement_signatures(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_announcement_signatures")] public static extern void ChannelMessageHandlerHandleAnnouncementSignatures(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_peer_disconnected")] public static extern void ChannelMessageHandler_peer_disconnected(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_peer_disconnected")] public static extern void ChannelMessageHandlerPeerDisconnected(long _this_arg, long _their_node_id); // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_peer_connected")] public static extern long ChannelMessageHandler_peer_connected(long _this_arg, long _their_node_id, long _msg, bool _inbound); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_peer_connected")] public static extern long ChannelMessageHandlerPeerConnected(long _this_arg, long _their_node_id, long _msg, bool _inbound); // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_reestablish")] public static extern void ChannelMessageHandler_handle_channel_reestablish(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_reestablish")] public static extern void ChannelMessageHandlerHandleChannelReestablish(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_update")] public static extern void ChannelMessageHandler_handle_channel_update(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_channel_update")] public static extern void ChannelMessageHandlerHandleChannelUpdate(long _this_arg, long _their_node_id, long _msg); // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_error")] public static extern void ChannelMessageHandler_handle_error(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_handle_error")] public static extern void ChannelMessageHandlerHandleError(long _this_arg, long _their_node_id, long _msg); // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_provided_node_features")] public static extern long ChannelMessageHandler_provided_node_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_provided_node_features")] public static extern long ChannelMessageHandlerProvidedNodeFeatures(long _this_arg); // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_provided_init_features")] public static extern long ChannelMessageHandler_provided_init_features(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_provided_init_features")] public static extern long ChannelMessageHandlerProvidedInitFeatures(long _this_arg, long _their_node_id); // LDKCOption_CVec_ThirtyTwoBytesZZ ChannelMessageHandler_get_chain_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_get_chain_hashes")] public static extern long ChannelMessageHandler_get_chain_hashes(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_get_chain_hashes")] public static extern long ChannelMessageHandlerGetChainHashes(long _this_arg); public interface LDKOffersMessageHandler { - long handle_message(long message); - long release_pending_messages(); + long HandleMessage(long message); + long ReleasePendingMessages(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessageHandler_new")] public static extern long LDKOffersMessageHandler_new_native(long impl_idx); - public static long[] LDKOffersMessageHandler_new(LDKOffersMessageHandler impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOffersMessageHandler_new")] public static extern long LDKOffersMessageHandlerNewNative(long impl_idx); + public static long[] LDKOffersMessageHandlerNew(LDKOffersMessageHandler impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2357,31 +2357,31 @@ public static long[] LDKOffersMessageHandler_new(LDKOffersMessageHandler impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKOffersMessageHandler_new_native(i); + ret[0] = LDKOffersMessageHandlerNewNative(i); ret[1] = i; return ret; } // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_handle_message")] public static extern long OffersMessageHandler_handle_message(long _this_arg, long _message); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_handle_message")] public static extern long OffersMessageHandlerHandleMessage(long _this_arg, long _message); // LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ OffersMessageHandler_release_pending_messages LDKOffersMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_release_pending_messages")] public static extern long OffersMessageHandler_release_pending_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_release_pending_messages")] public static extern long OffersMessageHandlerReleasePendingMessages(long _this_arg); public interface LDKRoutingMessageHandler { - long handle_node_announcement(long msg); - long handle_channel_announcement(long msg); - long handle_channel_update(long msg); - long get_next_channel_announcement(long starting_point); - long get_next_node_announcement(long starting_point); - long peer_connected(long their_node_id, long init, bool inbound); - long handle_reply_channel_range(long their_node_id, long msg); - long handle_reply_short_channel_ids_end(long their_node_id, long msg); - long handle_query_channel_range(long their_node_id, long msg); - long handle_query_short_channel_ids(long their_node_id, long msg); - bool processing_queue_high(); - long provided_node_features(); - long provided_init_features(long their_node_id); + long HandleNodeAnnouncement(long msg); + long HandleChannelAnnouncement(long msg); + long HandleChannelUpdate(long msg); + long GetNextChannelAnnouncement(long starting_point); + long GetNextNodeAnnouncement(long starting_point); + long PeerConnected(long their_node_id, long init, bool inbound); + long HandleReplyChannelRange(long their_node_id, long msg); + long HandleReplyShortChannelIdsEnd(long their_node_id, long msg); + long HandleQueryChannelRange(long their_node_id, long msg); + long HandleQueryShortChannelIds(long their_node_id, long msg); + bool ProcessingQueueHigh(); + long ProvidedNodeFeatures(); + long ProvidedInitFeatures(long their_node_id); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRoutingMessageHandler_new")] public static extern long LDKRoutingMessageHandler_new_native(long impl_idx, long MessageSendEventsProvider); - public static long[] LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, long MessageSendEventsProvider) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKRoutingMessageHandler_new")] public static extern long LDKRoutingMessageHandlerNewNative(long impl_idx, long MessageSendEventsProvider); + public static long[] LDKRoutingMessageHandlerNew(LDKRoutingMessageHandler impl, long MessageSendEventsProvider) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2393,48 +2393,48 @@ public static long[] LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKRoutingMessageHandler_new_native(i, MessageSendEventsProvider); + ret[0] = LDKRoutingMessageHandlerNewNative(i, MessageSendEventsProvider); ret[1] = i; return ret; } // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_node_announcement")] public static extern long RoutingMessageHandler_handle_node_announcement(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_node_announcement")] public static extern long RoutingMessageHandlerHandleNodeAnnouncement(long _this_arg, long _msg); // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_channel_announcement")] public static extern long RoutingMessageHandler_handle_channel_announcement(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_channel_announcement")] public static extern long RoutingMessageHandlerHandleChannelAnnouncement(long _this_arg, long _msg); // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_channel_update")] public static extern long RoutingMessageHandler_handle_channel_update(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_channel_update")] public static extern long RoutingMessageHandlerHandleChannelUpdate(long _this_arg, long _msg); // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_get_next_channel_announcement")] public static extern long RoutingMessageHandler_get_next_channel_announcement(long _this_arg, long _starting_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_get_next_channel_announcement")] public static extern long RoutingMessageHandlerGetNextChannelAnnouncement(long _this_arg, long _starting_point); // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_get_next_node_announcement")] public static extern long RoutingMessageHandler_get_next_node_announcement(long _this_arg, long _starting_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_get_next_node_announcement")] public static extern long RoutingMessageHandlerGetNextNodeAnnouncement(long _this_arg, long _starting_point); // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_peer_connected")] public static extern long RoutingMessageHandler_peer_connected(long _this_arg, long _their_node_id, long _init, bool _inbound); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_peer_connected")] public static extern long RoutingMessageHandlerPeerConnected(long _this_arg, long _their_node_id, long _init, bool _inbound); // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_reply_channel_range")] public static extern long RoutingMessageHandler_handle_reply_channel_range(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_reply_channel_range")] public static extern long RoutingMessageHandlerHandleReplyChannelRange(long _this_arg, long _their_node_id, long _msg); // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_reply_short_channel_ids_end")] public static extern long RoutingMessageHandler_handle_reply_short_channel_ids_end(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_reply_short_channel_ids_end")] public static extern long RoutingMessageHandlerHandleReplyShortChannelIdsEnd(long _this_arg, long _their_node_id, long _msg); // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_query_channel_range")] public static extern long RoutingMessageHandler_handle_query_channel_range(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_query_channel_range")] public static extern long RoutingMessageHandlerHandleQueryChannelRange(long _this_arg, long _their_node_id, long _msg); // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_query_short_channel_ids")] public static extern long RoutingMessageHandler_handle_query_short_channel_ids(long _this_arg, long _their_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_handle_query_short_channel_ids")] public static extern long RoutingMessageHandlerHandleQueryShortChannelIds(long _this_arg, long _their_node_id, long _msg); // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_processing_queue_high")] public static extern bool RoutingMessageHandler_processing_queue_high(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_processing_queue_high")] public static extern bool RoutingMessageHandlerProcessingQueueHigh(long _this_arg); // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_provided_node_features")] public static extern long RoutingMessageHandler_provided_node_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_provided_node_features")] public static extern long RoutingMessageHandlerProvidedNodeFeatures(long _this_arg); // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_provided_init_features")] public static extern long RoutingMessageHandler_provided_init_features(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_provided_init_features")] public static extern long RoutingMessageHandlerProvidedInitFeatures(long _this_arg, long _their_node_id); public interface LDKOnionMessageHandler { - long get_and_clear_connections_needed(); - void handle_onion_message(long peer_node_id, long msg); - long next_onion_message_for_peer(long peer_node_id); - long peer_connected(long their_node_id, long init, bool inbound); - void peer_disconnected(long their_node_id); - void timer_tick_occurred(); - long provided_node_features(); - long provided_init_features(long their_node_id); + long GetAndClearConnectionsNeeded(); + void HandleOnionMessage(long peer_node_id, long msg); + long NextOnionMessageForPeer(long peer_node_id); + long PeerConnected(long their_node_id, long init, bool inbound); + void PeerDisconnected(long their_node_id); + void TimerTickOccurred(); + long ProvidedNodeFeatures(); + long ProvidedInitFeatures(long their_node_id); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOnionMessageHandler_new")] public static extern long LDKOnionMessageHandler_new_native(long impl_idx); - public static long[] LDKOnionMessageHandler_new(LDKOnionMessageHandler impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKOnionMessageHandler_new")] public static extern long LDKOnionMessageHandlerNewNative(long impl_idx); + public static long[] LDKOnionMessageHandlerNew(LDKOnionMessageHandler impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2446,31 +2446,31 @@ public static long[] LDKOnionMessageHandler_new(LDKOnionMessageHandler impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKOnionMessageHandler_new_native(i); + ret[0] = LDKOnionMessageHandlerNewNative(i); ret[1] = i; return ret; } // LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ OnionMessageHandler_get_and_clear_connections_needed LDKOnionMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_get_and_clear_connections_needed")] public static extern long OnionMessageHandler_get_and_clear_connections_needed(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_get_and_clear_connections_needed")] public static extern long OnionMessageHandlerGetAndClearConnectionsNeeded(long _this_arg); // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_handle_onion_message")] public static extern void OnionMessageHandler_handle_onion_message(long _this_arg, long _peer_node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_handle_onion_message")] public static extern void OnionMessageHandlerHandleOnionMessage(long _this_arg, long _peer_node_id, long _msg); // LDKOnionMessage OnionMessageHandler_next_onion_message_for_peer LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_next_onion_message_for_peer")] public static extern long OnionMessageHandler_next_onion_message_for_peer(long _this_arg, long _peer_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_next_onion_message_for_peer")] public static extern long OnionMessageHandlerNextOnionMessageForPeer(long _this_arg, long _peer_node_id); // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_peer_connected")] public static extern long OnionMessageHandler_peer_connected(long _this_arg, long _their_node_id, long _init, bool _inbound); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_peer_connected")] public static extern long OnionMessageHandlerPeerConnected(long _this_arg, long _their_node_id, long _init, bool _inbound); // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_peer_disconnected")] public static extern void OnionMessageHandler_peer_disconnected(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_peer_disconnected")] public static extern void OnionMessageHandlerPeerDisconnected(long _this_arg, long _their_node_id); // void OnionMessageHandler_timer_tick_occurred LDKOnionMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_timer_tick_occurred")] public static extern void OnionMessageHandler_timer_tick_occurred(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_timer_tick_occurred")] public static extern void OnionMessageHandlerTimerTickOccurred(long _this_arg); // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_provided_node_features")] public static extern long OnionMessageHandler_provided_node_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_provided_node_features")] public static extern long OnionMessageHandlerProvidedNodeFeatures(long _this_arg); // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_provided_init_features")] public static extern long OnionMessageHandler_provided_init_features(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_provided_init_features")] public static extern long OnionMessageHandlerProvidedInitFeatures(long _this_arg, long _their_node_id); public interface LDKCustomMessageReader { - long read(short message_type, long buffer); + long Read(short message_type, long buffer); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomMessageReader_new")] public static extern long LDKCustomMessageReader_new_native(long impl_idx); - public static long[] LDKCustomMessageReader_new(LDKCustomMessageReader impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomMessageReader_new")] public static extern long LDKCustomMessageReaderNewNative(long impl_idx); + public static long[] LDKCustomMessageReaderNew(LDKCustomMessageReader impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2482,20 +2482,20 @@ public static long[] LDKCustomMessageReader_new(LDKCustomMessageReader impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKCustomMessageReader_new_native(i); + ret[0] = LDKCustomMessageReaderNewNative(i); ret[1] = i; return ret; } // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageReader_read")] public static extern long CustomMessageReader_read(long _this_arg, short _message_type, long _buffer); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageReader_read")] public static extern long CustomMessageReaderRead(long _this_arg, short _message_type, long _buffer); public interface LDKCustomMessageHandler { - long handle_custom_message(long msg, long sender_node_id); - long get_and_clear_pending_msg(); - long provided_node_features(); - long provided_init_features(long their_node_id); + long HandleCustomMessage(long msg, long sender_node_id); + long GetAndClearPendingMsg(); + long ProvidedNodeFeatures(); + long ProvidedInitFeatures(long their_node_id); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomMessageHandler_new")] public static extern long LDKCustomMessageHandler_new_native(long impl_idx, long CustomMessageReader); - public static long[] LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, long CustomMessageReader) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomMessageHandler_new")] public static extern long LDKCustomMessageHandlerNewNative(long impl_idx, long CustomMessageReader); + public static long[] LDKCustomMessageHandlerNew(LDKCustomMessageHandler impl, long CustomMessageReader) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2507,25 +2507,25 @@ public static long[] LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, l js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKCustomMessageHandler_new_native(i, CustomMessageReader); + ret[0] = LDKCustomMessageHandlerNewNative(i, CustomMessageReader); ret[1] = i; return ret; } // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_handle_custom_message")] public static extern long CustomMessageHandler_handle_custom_message(long _this_arg, long _msg, long _sender_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_handle_custom_message")] public static extern long CustomMessageHandlerHandleCustomMessage(long _this_arg, long _msg, long _sender_node_id); // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_get_and_clear_pending_msg")] public static extern long CustomMessageHandler_get_and_clear_pending_msg(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_get_and_clear_pending_msg")] public static extern long CustomMessageHandlerGetAndClearPendingMsg(long _this_arg); // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_provided_node_features")] public static extern long CustomMessageHandler_provided_node_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_provided_node_features")] public static extern long CustomMessageHandlerProvidedNodeFeatures(long _this_arg); // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_provided_init_features")] public static extern long CustomMessageHandler_provided_init_features(long _this_arg, long _their_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_provided_init_features")] public static extern long CustomMessageHandlerProvidedInitFeatures(long _this_arg, long _their_node_id); public interface LDKCustomOnionMessageHandler { - long handle_custom_message(long msg); - long read_custom_message(long message_type, long buffer); - long release_pending_custom_messages(); + long HandleCustomMessage(long msg); + long ReadCustomMessage(long message_type, long buffer); + long ReleasePendingCustomMessages(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomOnionMessageHandler_new")] public static extern long LDKCustomOnionMessageHandler_new_native(long impl_idx); - public static long[] LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCustomOnionMessageHandler_new")] public static extern long LDKCustomOnionMessageHandlerNewNative(long impl_idx); + public static long[] LDKCustomOnionMessageHandlerNew(LDKCustomOnionMessageHandler impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2537,24 +2537,24 @@ public static long[] LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandl js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKCustomOnionMessageHandler_new_native(i); + ret[0] = LDKCustomOnionMessageHandlerNewNative(i); ret[1] = i; return ret; } // LDKCOption_OnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKOnionMessageContents msg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_handle_custom_message")] public static extern long CustomOnionMessageHandler_handle_custom_message(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_handle_custom_message")] public static extern long CustomOnionMessageHandlerHandleCustomMessage(long _this_arg, long _msg); // LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_read_custom_message")] public static extern long CustomOnionMessageHandler_read_custom_message(long _this_arg, long _message_type, long _buffer); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_read_custom_message")] public static extern long CustomOnionMessageHandlerReadCustomMessage(long _this_arg, long _message_type, long _buffer); // LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ CustomOnionMessageHandler_release_pending_custom_messages LDKCustomOnionMessageHandler *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_release_pending_custom_messages")] public static extern long CustomOnionMessageHandler_release_pending_custom_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_release_pending_custom_messages")] public static extern long CustomOnionMessageHandlerReleasePendingCustomMessages(long _this_arg); public interface LDKSocketDescriptor { - long send_data(long data, bool resume_read); - void disconnect_socket(); - bool eq(long other_arg); - long hash(); + long SendData(long data, bool resume_read); + void DisconnectSocket(); + bool Eq(long other_arg); + long Hash(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketDescriptor_new")] public static extern long LDKSocketDescriptor_new_native(long impl_idx); - public static long[] LDKSocketDescriptor_new(LDKSocketDescriptor impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKSocketDescriptor_new")] public static extern long LDKSocketDescriptorNewNative(long impl_idx); + public static long[] LDKSocketDescriptorNew(LDKSocketDescriptor impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2566,34 +2566,34 @@ public static long[] LDKSocketDescriptor_new(LDKSocketDescriptor impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKSocketDescriptor_new_native(i); + ret[0] = LDKSocketDescriptorNewNative(i); ret[1] = i; return ret; } // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_send_data")] public static extern long SocketDescriptor_send_data(long _this_arg, long _data, bool _resume_read); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_send_data")] public static extern long SocketDescriptorSendData(long _this_arg, long _data, bool _resume_read); // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_disconnect_socket")] public static extern void SocketDescriptor_disconnect_socket(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_disconnect_socket")] public static extern void SocketDescriptorDisconnectSocket(long _this_arg); // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_hash")] public static extern long SocketDescriptor_hash(long _this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_ty_from_ptr")] public static extern long LDKEffectiveCapacity_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat")] public static extern long LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_AdvertisedMaxHTLC_get_amount_msat")] public static extern long LDKEffectiveCapacity_AdvertisedMaxHTLC_get_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_Total_get_capacity_msat")] public static extern long LDKEffectiveCapacity_Total_get_capacity_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_Total_get_htlc_maximum_msat")] public static extern long LDKEffectiveCapacity_Total_get_htlc_maximum_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_HintMaxHTLC_get_amount_msat")] public static extern long LDKEffectiveCapacity_HintMaxHTLC_get_amount_msat(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_ty_from_ptr")] public static extern long LDKPayee_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Blinded_get_route_hints")] public static extern long LDKPayee_Blinded_get_route_hints(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Blinded_get_features")] public static extern long LDKPayee_Blinded_get_features(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_node_id")] public static extern long LDKPayee_Clear_get_node_id(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_route_hints")] public static extern long LDKPayee_Clear_get_route_hints(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_features")] public static extern long LDKPayee_Clear_get_features(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_final_cltv_expiry_delta")] public static extern int LDKPayee_Clear_get_final_cltv_expiry_delta(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_hash")] public static extern long SocketDescriptorHash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_ty_from_ptr")] public static extern long LDKEffectiveCapacityTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat")] public static extern long LDKEffectiveCapacityExactLiquidityGetLiquidityMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_AdvertisedMaxHTLC_get_amount_msat")] public static extern long LDKEffectiveCapacityAdvertisedMaxHTLCGetAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_Total_get_capacity_msat")] public static extern long LDKEffectiveCapacityTotalGetCapacityMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_Total_get_htlc_maximum_msat")] public static extern long LDKEffectiveCapacityTotalGetHtlcMaximumMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKEffectiveCapacity_HintMaxHTLC_get_amount_msat")] public static extern long LDKEffectiveCapacityHintMaxHTLCGetAmountMsat(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_ty_from_ptr")] public static extern long LDKPayeeTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Blinded_get_route_hints")] public static extern long LDKPayeeBlindedGetRouteHints(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Blinded_get_features")] public static extern long LDKPayeeBlindedGetFeatures(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_node_id")] public static extern long LDKPayeeClearGetNodeId(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_route_hints")] public static extern long LDKPayeeClearGetRouteHints(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_features")] public static extern long LDKPayeeClearGetFeatures(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKPayee_Clear_get_final_cltv_expiry_delta")] public static extern int LDKPayeeClearGetFinalCltvExpiryDelta(long ptr); public interface LDKScore { - long write(); + long Write(); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScore_new")] public static extern long LDKScore_new_native(long impl_idx, long ScoreLookUp, long ScoreUpdate); - public static long[] LDKScore_new(LDKScore impl, long ScoreLookUp, long ScoreUpdate) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKScore_new")] public static extern long LDKScoreNewNative(long impl_idx, long ScoreLookUp, long ScoreUpdate); + public static long[] LDKScoreNew(LDKScore impl, long ScoreLookUp, long ScoreUpdate) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2605,18 +2605,18 @@ public static long[] LDKScore_new(LDKScore impl, long ScoreLookUp, long ScoreUpd js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKScore_new_native(i, ScoreLookUp, ScoreUpdate); + ret[0] = LDKScoreNewNative(i, ScoreLookUp, ScoreUpdate); ret[1] = i; return ret; } // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Score_write")] public static extern long Score_write(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Score_write")] public static extern long ScoreWrite(long _this_arg); public interface LDKCoinSelectionSource { - long select_confirmed_utxos(long claim_id, long must_spend, long must_pay_to, int target_feerate_sat_per_1000_weight); - long sign_psbt(long psbt); + long SelectConfirmedUtxos(long claim_id, long must_spend, long must_pay_to, int target_feerate_sat_per_1000_weight); + long SignPsbt(long psbt); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCoinSelectionSource_new")] public static extern long LDKCoinSelectionSource_new_native(long impl_idx); - public static long[] LDKCoinSelectionSource_new(LDKCoinSelectionSource impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKCoinSelectionSource_new")] public static extern long LDKCoinSelectionSourceNewNative(long impl_idx); + public static long[] LDKCoinSelectionSourceNew(LDKCoinSelectionSource impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2628,21 +2628,21 @@ public static long[] LDKCoinSelectionSource_new(LDKCoinSelectionSource impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKCoinSelectionSource_new_native(i); + ret[0] = LDKCoinSelectionSourceNewNative(i); ret[1] = i; return ret; } // LDKCResult_CoinSelectionNoneZ CoinSelectionSource_select_confirmed_utxos LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes claim_id, struct LDKCVec_InputZ must_spend, struct LDKCVec_TxOutZ must_pay_to, uint32_t target_feerate_sat_per_1000_weight - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_select_confirmed_utxos")] public static extern long CoinSelectionSource_select_confirmed_utxos(long _this_arg, long _claim_id, long _must_spend, long _must_pay_to, int _target_feerate_sat_per_1000_weight); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_select_confirmed_utxos")] public static extern long CoinSelectionSourceSelectConfirmedUtxos(long _this_arg, long _claim_id, long _must_spend, long _must_pay_to, int _target_feerate_sat_per_1000_weight); // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_psbt LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_sign_psbt")] public static extern long CoinSelectionSource_sign_psbt(long _this_arg, long _psbt); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_sign_psbt")] public static extern long CoinSelectionSourceSignPsbt(long _this_arg, long _psbt); public interface LDKWalletSource { - long list_confirmed_utxos(); - long get_change_script(); - long sign_psbt(long psbt); + long ListConfirmedUtxos(); + long GetChangeScript(); + long SignPsbt(long psbt); } - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWalletSource_new")] public static extern long LDKWalletSource_new_native(long impl_idx); - public static long[] LDKWalletSource_new(LDKWalletSource impl) { + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKWalletSource_new")] public static extern long LDKWalletSourceNewNative(long impl_idx); + public static long[] LDKWalletSourceNew(LDKWalletSource impl) { long new_obj_idx = js_objs.Count; int i = 0; for (; i < js_objs.Count; i++) { @@ -2654,10746 +2654,10746 @@ public static long[] LDKWalletSource_new(LDKWalletSource impl) { js_objs[i] = new WeakReference(impl); } long[] ret = new long[2]; - ret[0] = LDKWalletSource_new_native(i); + ret[0] = LDKWalletSourceNewNative(i); ret[1] = i; return ret; } // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_list_confirmed_utxos")] public static extern long WalletSource_list_confirmed_utxos(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_list_confirmed_utxos")] public static extern long WalletSourceListConfirmedUtxos(long _this_arg); // LDKCResult_CVec_u8ZNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_get_change_script")] public static extern long WalletSource_get_change_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_get_change_script")] public static extern long WalletSourceGetChangeScript(long _this_arg); // LDKCResult_TransactionNoneZ WalletSource_sign_psbt LDKWalletSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_sign_psbt")] public static extern long WalletSource_sign_psbt(long _this_arg, long _psbt); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_ty_from_ptr")] public static extern long LDKGossipSync_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_P2P_get_p2p")] public static extern long LDKGossipSync_P2P_get_p2p(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_Rapid_get_rapid")] public static extern long LDKGossipSync_Rapid_get_rapid(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_ty_from_ptr")] public static extern long LDKFallback_ty_from_ptr(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_SegWitProgram_get_version")] public static extern byte LDKFallback_SegWitProgram_get_version(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_SegWitProgram_get_program")] public static extern long LDKFallback_SegWitProgram_get_program(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_PubKeyHash_get_pub_key_hash")] public static extern long LDKFallback_PubKeyHash_get_pub_key_hash(long ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_ScriptHash_get_script_hash")] public static extern long LDKFallback_ScriptHash_get_script_hash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_sign_psbt")] public static extern long WalletSourceSignPsbt(long _this_arg, long _psbt); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_ty_from_ptr")] public static extern long LDKGossipSyncTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_P2P_get_p2p")] public static extern long LDKGossipSyncP2PGetP2P(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKGossipSync_Rapid_get_rapid")] public static extern long LDKGossipSyncRapidGetRapid(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_ty_from_ptr")] public static extern long LDKFallbackTyFromPtr(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_SegWitProgram_get_version")] public static extern byte LDKFallbackSegWitProgramGetVersion(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_SegWitProgram_get_program")] public static extern long LDKFallbackSegWitProgramGetProgram(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_PubKeyHash_get_pub_key_hash")] public static extern long LDKFallbackPubKeyHashGetPubKeyHash(long ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LDKFallback_ScriptHash_get_script_hash")] public static extern long LDKFallbackScriptHashGetScriptHash(long ptr); // struct LDKStr _ldk_get_compiled_version(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK__ldk_get_compiled_version")] public static extern long _ldk_get_compiled_version(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK__ldk_get_compiled_version")] public static extern long LdkGetCompiledVersion(); // struct LDKStr _ldk_c_bindings_get_compiled_version(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK__ldk_c_bindings_get_compiled_version")] public static extern long _ldk_c_bindings_get_compiled_version(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK__ldk_c_bindings_get_compiled_version")] public static extern long LdkCBindingsGetCompiledVersion(); // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_U128_le_bytes")] public static extern long U128_le_bytes(long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_U128_le_bytes")] public static extern long U128LeBytes(long _val); // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_U128_new")] public static extern long U128_new(long _le_bytes); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_U128_new")] public static extern long U128New(long _le_bytes); // struct LDKWitnessProgram WitnessProgram_new(struct LDKWitnessVersion version, struct LDKCVec_u8Z program); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_new")] public static extern long WitnessProgram_new(byte _version, long _program); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_new")] public static extern long WitnessProgramNew(byte _version, long _program); // struct LDKWitnessVersion WitnessProgram_get_version(const struct LDKWitnessProgram *NONNULL_PTR prog); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_get_version")] public static extern byte WitnessProgram_get_version(long _prog); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_get_version")] public static extern byte WitnessProgramGetVersion(long _prog); // struct LDKu8slice WitnessProgram_get_program(const struct LDKWitnessProgram *NONNULL_PTR prog); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_get_program")] public static extern long WitnessProgram_get_program(long _prog); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_get_program")] public static extern long WitnessProgramGetProgram(long _prog); // uint64_t WitnessProgram_clone_ptr(LDKWitnessProgram *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_clone_ptr")] public static extern long WitnessProgram_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_clone_ptr")] public static extern long WitnessProgramClonePtr(long _arg); // struct LDKWitnessProgram WitnessProgram_clone(const struct LDKWitnessProgram *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_clone")] public static extern long WitnessProgram_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_clone")] public static extern long WitnessProgramClone(long _orig); // void WitnessProgram_free(struct LDKWitnessProgram o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_free")] public static extern void WitnessProgram_free(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WitnessProgram_free")] public static extern void WitnessProgramFree(long _o); // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_new")] public static extern long BigEndianScalar_new(long _big_endian_bytes); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigEndianScalar_new")] public static extern long BigEndianScalarNew(long _big_endian_bytes); // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_clone_ptr")] public static extern long Bech32Error_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_clone_ptr")] public static extern long Bech32ErrorClonePtr(long _arg); // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_clone")] public static extern long Bech32Error_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_clone")] public static extern long Bech32ErrorClone(long _orig); // void Bech32Error_free(struct LDKBech32Error o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_free")] public static extern void Bech32Error_free(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bech32Error_free")] public static extern void Bech32ErrorFree(long _o); // void Transaction_free(struct LDKTransaction _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Transaction_free")] public static extern void Transaction_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Transaction_free")] public static extern void TransactionFree(long __res); // void Witness_free(struct LDKWitness _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Witness_free")] public static extern void Witness_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Witness_free")] public static extern void WitnessFree(long __res); // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_new")] public static extern long TxIn_new(long _witness, long _script_sig, int _sequence, long _previous_txid, int _previous_vout); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_new")] public static extern long TxInNew(long _witness, long _script_sig, int _sequence, long _previous_txid, int _previous_vout); // struct LDKWitness TxIn_get_witness(const struct LDKTxIn *NONNULL_PTR txin); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_witness")] public static extern long TxIn_get_witness(long _txin); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_witness")] public static extern long TxInGetWitness(long _txin); // struct LDKu8slice TxIn_get_script_sig(const struct LDKTxIn *NONNULL_PTR txin); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_script_sig")] public static extern long TxIn_get_script_sig(long _txin); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_script_sig")] public static extern long TxInGetScriptSig(long _txin); // uint32_t TxIn_get_sequence(const struct LDKTxIn *NONNULL_PTR txin); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_sequence")] public static extern int TxIn_get_sequence(long _txin); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_sequence")] public static extern int TxInGetSequence(long _txin); // struct LDKThirtyTwoBytes TxIn_get_previous_txid(const struct LDKTxIn *NONNULL_PTR txin); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_previous_txid")] public static extern long TxIn_get_previous_txid(long _txin); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_previous_txid")] public static extern long TxInGetPreviousTxid(long _txin); // uint32_t TxIn_get_previous_vout(const struct LDKTxIn *NONNULL_PTR txin); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_previous_vout")] public static extern int TxIn_get_previous_vout(long _txin); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_get_previous_vout")] public static extern int TxInGetPreviousVout(long _txin); // void TxIn_free(struct LDKTxIn _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_free")] public static extern void TxIn_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxIn_free")] public static extern void TxInFree(long __res); // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_new")] public static extern long TxOut_new(long _script_pubkey, long _value); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_new")] public static extern long TxOutNew(long _script_pubkey, long _value); // struct LDKu8slice TxOut_get_script_pubkey(const struct LDKTxOut *NONNULL_PTR txout); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_get_script_pubkey")] public static extern long TxOut_get_script_pubkey(long _txout); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_get_script_pubkey")] public static extern long TxOutGetScriptPubkey(long _txout); // uint64_t TxOut_get_value(const struct LDKTxOut *NONNULL_PTR txout); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_get_value")] public static extern long TxOut_get_value(long _txout); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_get_value")] public static extern long TxOutGetValue(long _txout); // void TxOut_free(struct LDKTxOut _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_free")] public static extern void TxOut_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_free")] public static extern void TxOutFree(long __res); // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_clone_ptr")] public static extern long TxOut_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_clone_ptr")] public static extern long TxOutClonePtr(long _arg); // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_clone")] public static extern long TxOut_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxOut_clone")] public static extern long TxOutClone(long _orig); // void Str_free(struct LDKStr _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Str_free")] public static extern void Str_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Str_free")] public static extern void StrFree(long __res); // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_some")] public static extern long COption_u64Z_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_some")] public static extern long COptionU64ZSome(long _o); // struct LDKCOption_u64Z COption_u64Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_none")] public static extern long COption_u64Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_none")] public static extern long COptionU64ZNone(); // void COption_u64Z_free(struct LDKCOption_u64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_free")] public static extern void COption_u64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_free")] public static extern void COptionU64ZFree(long __res); // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_clone_ptr")] public static extern long COption_u64Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_clone_ptr")] public static extern long COptionU64ZClonePtr(long _arg); // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_clone")] public static extern long COption_u64Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u64Z_clone")] public static extern long COptionU64ZClone(long _orig); // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BlindedPathZ_free")] public static extern void CVec_BlindedPathZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BlindedPathZ_free")] public static extern void CVecBlindedPathZFree(long __res); // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_ok")] public static extern long CResult_RefundBolt12ParseErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_ok")] public static extern long CResultRefundBolt12ParseErrorZOk(long _o); // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_err")] public static extern long CResult_RefundBolt12ParseErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_err")] public static extern long CResultRefundBolt12ParseErrorZErr(long _e); // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_is_ok")] public static extern bool CResult_RefundBolt12ParseErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_is_ok")] public static extern bool CResultRefundBolt12ParseErrorZIsOk(long _o); // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_free")] public static extern void CResult_RefundBolt12ParseErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_free")] public static extern void CResultRefundBolt12ParseErrorZFree(long __res); // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_clone_ptr")] public static extern long CResult_RefundBolt12ParseErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_clone_ptr")] public static extern long CResultRefundBolt12ParseErrorZClonePtr(long _arg); // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_clone")] public static extern long CResult_RefundBolt12ParseErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RefundBolt12ParseErrorZ_clone")] public static extern long CResultRefundBolt12ParseErrorZClone(long _orig); // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_ok")] public static extern long CResult_RetryDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_ok")] public static extern long CResultRetryDecodeErrorZOk(long _o); // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_err")] public static extern long CResult_RetryDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_err")] public static extern long CResultRetryDecodeErrorZErr(long _e); // bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_is_ok")] public static extern bool CResult_RetryDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_is_ok")] public static extern bool CResultRetryDecodeErrorZIsOk(long _o); // void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_free")] public static extern void CResult_RetryDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_free")] public static extern void CResultRetryDecodeErrorZFree(long __res); // uint64_t CResult_RetryDecodeErrorZ_clone_ptr(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_clone_ptr")] public static extern long CResult_RetryDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_clone_ptr")] public static extern long CResultRetryDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_clone")] public static extern long CResult_RetryDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RetryDecodeErrorZ_clone")] public static extern long CResultRetryDecodeErrorZClone(long _orig); // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_ok")] public static extern long CResult_NoneAPIErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_ok")] public static extern long CResultNoneAPIErrorZOk(); // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_err")] public static extern long CResult_NoneAPIErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_err")] public static extern long CResultNoneAPIErrorZErr(long _e); // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_is_ok")] public static extern bool CResult_NoneAPIErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_is_ok")] public static extern bool CResultNoneAPIErrorZIsOk(long _o); // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_free")] public static extern void CResult_NoneAPIErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_free")] public static extern void CResultNoneAPIErrorZFree(long __res); // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_clone_ptr")] public static extern long CResult_NoneAPIErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_clone_ptr")] public static extern long CResultNoneAPIErrorZClonePtr(long _arg); // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_clone")] public static extern long CResult_NoneAPIErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneAPIErrorZ_clone")] public static extern long CResultNoneAPIErrorZClone(long _orig); // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_CResult_NoneAPIErrorZZ_free")] public static extern void CVec_CResult_NoneAPIErrorZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_CResult_NoneAPIErrorZZ_free")] public static extern void CVecCResultNoneAPIErrorZZFree(long __res); // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_APIErrorZ_free")] public static extern void CVec_APIErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_APIErrorZ_free")] public static extern void CVecAPIErrorZFree(long __res); // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_some")] public static extern long COption_ThirtyTwoBytesZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_some")] public static extern long COptionThirtyTwoBytesZSome(long _o); // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_none")] public static extern long COption_ThirtyTwoBytesZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_none")] public static extern long COptionThirtyTwoBytesZNone(); // void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_free")] public static extern void COption_ThirtyTwoBytesZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_free")] public static extern void COptionThirtyTwoBytesZFree(long __res); // uint64_t COption_ThirtyTwoBytesZ_clone_ptr(LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_clone_ptr")] public static extern long COption_ThirtyTwoBytesZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_clone_ptr")] public static extern long COptionThirtyTwoBytesZClonePtr(long _arg); // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_clone")] public static extern long COption_ThirtyTwoBytesZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ThirtyTwoBytesZ_clone")] public static extern long COptionThirtyTwoBytesZClone(long _orig); // void CVec_u8Z_free(struct LDKCVec_u8Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_u8Z_free")] public static extern void CVec_u8Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_u8Z_free")] public static extern void CVecU8ZFree(long __res); // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_some")] public static extern long COption_CVec_u8ZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_some")] public static extern long COptionCVecU8ZzSome(long _o); // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_none")] public static extern long COption_CVec_u8ZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_none")] public static extern long COptionCVecU8ZzNone(); // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_free")] public static extern void COption_CVec_u8ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_free")] public static extern void COptionCVecU8ZzFree(long __res); // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_clone_ptr")] public static extern long COption_CVec_u8ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_clone_ptr")] public static extern long COptionCVecU8ZzClonePtr(long _arg); // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_clone")] public static extern long COption_CVec_u8ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_u8ZZ_clone")] public static extern long COptionCVecU8ZzClone(long _orig); // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_ok")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_ok")] public static extern long CResultRecipientOnionFieldsDecodeErrorZOk(long _o); // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_err")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_err")] public static extern long CResultRecipientOnionFieldsDecodeErrorZErr(long _e); // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_is_ok")] public static extern bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_is_ok")] public static extern bool CResultRecipientOnionFieldsDecodeErrorZIsOk(long _o); // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_free")] public static extern void CResult_RecipientOnionFieldsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_free")] public static extern void CResultRecipientOnionFieldsDecodeErrorZFree(long __res); // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr")] public static extern long CResultRecipientOnionFieldsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_clone")] public static extern long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsDecodeErrorZ_clone")] public static extern long CResultRecipientOnionFieldsDecodeErrorZClone(long _orig); // uint64_t C2Tuple_u64CVec_u8ZZ_clone_ptr(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_clone_ptr")] public static extern long C2Tuple_u64CVec_u8ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_clone_ptr")] public static extern long C2TupleU64CvecU8ZzClonePtr(long _arg); // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_clone")] public static extern long C2Tuple_u64CVec_u8ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_clone")] public static extern long C2TupleU64CvecU8ZzClone(long _orig); // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_new")] public static extern long C2Tuple_u64CVec_u8ZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_new")] public static extern long C2TupleU64CvecU8ZzNew(long _a, long _b); // void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_free")] public static extern void C2Tuple_u64CVec_u8ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64CVec_u8ZZ_free")] public static extern void C2TupleU64CvecU8ZzFree(long __res); // void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u64CVec_u8ZZZ_free")] public static extern void CVec_C2Tuple_u64CVec_u8ZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u64CVec_u8ZZZ_free")] public static extern void CVecC2TupleU64CvecU8ZzzFree(long __res); // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_ok")] public static extern long CResult_RecipientOnionFieldsNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_ok")] public static extern long CResultRecipientOnionFieldsNoneZOk(long _o); // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_err")] public static extern long CResult_RecipientOnionFieldsNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_err")] public static extern long CResultRecipientOnionFieldsNoneZErr(); // bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_is_ok")] public static extern bool CResult_RecipientOnionFieldsNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_is_ok")] public static extern bool CResultRecipientOnionFieldsNoneZIsOk(long _o); // void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_free")] public static extern void CResult_RecipientOnionFieldsNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_free")] public static extern void CResultRecipientOnionFieldsNoneZFree(long __res); // uint64_t CResult_RecipientOnionFieldsNoneZ_clone_ptr(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_clone_ptr")] public static extern long CResult_RecipientOnionFieldsNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_clone_ptr")] public static extern long CResultRecipientOnionFieldsNoneZClonePtr(long _arg); // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_clone")] public static extern long CResult_RecipientOnionFieldsNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecipientOnionFieldsNoneZ_clone")] public static extern long CResultRecipientOnionFieldsNoneZClone(long _orig); // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ThirtyTwoBytesZ_free")] public static extern void CVec_ThirtyTwoBytesZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ThirtyTwoBytesZ_free")] public static extern void CVecThirtyTwoBytesZFree(long __res); // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_some")] public static extern long COption_CVec_ThirtyTwoBytesZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_some")] public static extern long COptionCVecThirtyTwoBytesZZSome(long _o); // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_none")] public static extern long COption_CVec_ThirtyTwoBytesZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_none")] public static extern long COptionCVecThirtyTwoBytesZZNone(); // void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_free")] public static extern void COption_CVec_ThirtyTwoBytesZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_free")] public static extern void COptionCVecThirtyTwoBytesZZFree(long __res); // uint64_t COption_CVec_ThirtyTwoBytesZZ_clone_ptr(LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_clone_ptr")] public static extern long COption_CVec_ThirtyTwoBytesZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_clone_ptr")] public static extern long COptionCVecThirtyTwoBytesZZClonePtr(long _arg); // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_clone")] public static extern long COption_CVec_ThirtyTwoBytesZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_ThirtyTwoBytesZZ_clone")] public static extern long COptionCVecThirtyTwoBytesZZClone(long _orig); // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_ok")] public static extern long CResult_ThirtyTwoBytesNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_ok")] public static extern long CResultThirtyTwoBytesNoneZOk(long _o); // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_err")] public static extern long CResult_ThirtyTwoBytesNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_err")] public static extern long CResultThirtyTwoBytesNoneZErr(); // bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_is_ok")] public static extern bool CResult_ThirtyTwoBytesNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_is_ok")] public static extern bool CResultThirtyTwoBytesNoneZIsOk(long _o); // void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_free")] public static extern void CResult_ThirtyTwoBytesNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_free")] public static extern void CResultThirtyTwoBytesNoneZFree(long __res); // uint64_t CResult_ThirtyTwoBytesNoneZ_clone_ptr(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_clone_ptr")] public static extern long CResult_ThirtyTwoBytesNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_clone_ptr")] public static extern long CResultThirtyTwoBytesNoneZClonePtr(long _arg); // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_clone")] public static extern long CResult_ThirtyTwoBytesNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesNoneZ_clone")] public static extern long CResultThirtyTwoBytesNoneZClone(long _orig); // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_ok")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_ok")] public static extern long CResultBlindedPayInfoDecodeErrorZOk(long _o); // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_err")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_err")] public static extern long CResultBlindedPayInfoDecodeErrorZErr(long _e); // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_is_ok")] public static extern bool CResultBlindedPayInfoDecodeErrorZIsOk(long _o); // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_free")] public static extern void CResult_BlindedPayInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_free")] public static extern void CResultBlindedPayInfoDecodeErrorZFree(long __res); // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedPayInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_clone")] public static extern long CResult_BlindedPayInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPayInfoDecodeErrorZ_clone")] public static extern long CResultBlindedPayInfoDecodeErrorZClone(long _orig); // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZOk(long _o); // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZErr(long _e); // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResultDelayedPaymentOutputDescriptorDecodeErrorZIsOk(long _o); // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free")] public static extern void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free")] public static extern void CResultDelayedPaymentOutputDescriptorDecodeErrorZFree(long __res); // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZClonePtr(long _arg); // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone")] public static extern long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone")] public static extern long CResultDelayedPaymentOutputDescriptorDecodeErrorZClone(long _orig); // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZOk(long _o); // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZErr(long _e); // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResultStaticPaymentOutputDescriptorDecodeErrorZIsOk(long _o); // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free")] public static extern void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free")] public static extern void CResultStaticPaymentOutputDescriptorDecodeErrorZFree(long __res); // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZClonePtr(long _arg); // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone")] public static extern long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone")] public static extern long CResultStaticPaymentOutputDescriptorDecodeErrorZClone(long _orig); // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_ok")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_ok")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZOk(long _o); // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_err")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_err")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZErr(long _e); // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok")] public static extern bool CResultSpendableOutputDescriptorDecodeErrorZIsOk(long _o); // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_free")] public static extern void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_free")] public static extern void CResultSpendableOutputDescriptorDecodeErrorZFree(long __res); // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZClonePtr(long _arg); // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_clone")] public static extern long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpendableOutputDescriptorDecodeErrorZ_clone")] public static extern long CResultSpendableOutputDescriptorDecodeErrorZClone(long _orig); // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_SpendableOutputDescriptorZ_free")] public static extern void CVec_SpendableOutputDescriptorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_SpendableOutputDescriptorZ_free")] public static extern void CVecSpendableOutputDescriptorZFree(long __res); // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_TxOutZ_free")] public static extern void CVec_TxOutZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_TxOutZ_free")] public static extern void CVecTxOutZFree(long __res); // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_some")] public static extern long COption_u32Z_some(int _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_some")] public static extern long COptionU32ZSome(int _o); // struct LDKCOption_u32Z COption_u32Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_none")] public static extern long COption_u32Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_none")] public static extern long COptionU32ZNone(); // void COption_u32Z_free(struct LDKCOption_u32Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_free")] public static extern void COption_u32Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_free")] public static extern void COptionU32ZFree(long __res); // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_clone_ptr")] public static extern long COption_u32Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_clone_ptr")] public static extern long COptionU32ZClonePtr(long _arg); // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_clone")] public static extern long COption_u32Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u32Z_clone")] public static extern long COptionU32ZClone(long _orig); // uint64_t C2Tuple_CVec_u8Zu64Z_clone_ptr(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_clone_ptr")] public static extern long C2Tuple_CVec_u8Zu64Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_clone_ptr")] public static extern long C2TupleCVecU8Zu64ZClonePtr(long _arg); // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_clone(const struct LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_clone")] public static extern long C2Tuple_CVec_u8Zu64Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_clone")] public static extern long C2TupleCVecU8Zu64ZClone(long _orig); // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_new(struct LDKCVec_u8Z a, uint64_t b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_new")] public static extern long C2Tuple_CVec_u8Zu64Z_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_new")] public static extern long C2TupleCVecU8Zu64ZNew(long _a, long _b); // void C2Tuple_CVec_u8Zu64Z_free(struct LDKC2Tuple_CVec_u8Zu64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_free")] public static extern void C2Tuple_CVec_u8Zu64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_CVec_u8Zu64Z_free")] public static extern void C2TupleCVecU8Zu64ZFree(long __res); // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(struct LDKC2Tuple_CVec_u8Zu64Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok")] public static extern long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok")] public static extern long CResultC2TupleCVecU8Zu64ZnonezOk(long _o); // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err")] public static extern long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err")] public static extern long CResultC2TupleCVecU8Zu64ZnonezErr(); // bool CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok")] public static extern bool CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok")] public static extern bool CResultC2TupleCVecU8Zu64ZnonezIsOk(long _o); // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free")] public static extern void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free")] public static extern void CResultC2TupleCVecU8Zu64ZnonezFree(long __res); // uint64_t CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr")] public static extern long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr")] public static extern long CResultC2TupleCVecU8Zu64ZnonezClonePtr(long _arg); // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone")] public static extern long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone")] public static extern long CResultC2TupleCVecU8Zu64ZnonezClone(long _orig); // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_ok")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_ok")] public static extern long CResultChannelDerivationParametersDecodeErrorZOk(long _o); // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_err")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_err")] public static extern long CResultChannelDerivationParametersDecodeErrorZErr(long _e); // bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_is_ok")] public static extern bool CResultChannelDerivationParametersDecodeErrorZIsOk(long _o); // void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_free")] public static extern void CResult_ChannelDerivationParametersDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_free")] public static extern void CResultChannelDerivationParametersDecodeErrorZFree(long __res); // uint64_t CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr")] public static extern long CResultChannelDerivationParametersDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_clone")] public static extern long CResult_ChannelDerivationParametersDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDerivationParametersDecodeErrorZ_clone")] public static extern long CResultChannelDerivationParametersDecodeErrorZClone(long _orig); // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_ok")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_ok")] public static extern long CResultHTLCDescriptorDecodeErrorZOk(long _o); // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_err")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_err")] public static extern long CResultHTLCDescriptorDecodeErrorZErr(long _e); // bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_is_ok")] public static extern bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_is_ok")] public static extern bool CResultHTLCDescriptorDecodeErrorZIsOk(long _o); // void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_free")] public static extern void CResult_HTLCDescriptorDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_free")] public static extern void CResultHTLCDescriptorDecodeErrorZFree(long __res); // uint64_t CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_clone_ptr")] public static extern long CResultHTLCDescriptorDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_clone")] public static extern long CResult_HTLCDescriptorDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCDescriptorDecodeErrorZ_clone")] public static extern long CResultHTLCDescriptorDecodeErrorZClone(long _orig); // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_ok")] public static extern long CResult_NoneNoneZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_ok")] public static extern long CResultNoneNoneZOk(); // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_err")] public static extern long CResult_NoneNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_err")] public static extern long CResultNoneNoneZErr(); // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_is_ok")] public static extern bool CResult_NoneNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_is_ok")] public static extern bool CResultNoneNoneZIsOk(long _o); // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_free")] public static extern void CResult_NoneNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_free")] public static extern void CResultNoneNoneZFree(long __res); // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_clone_ptr")] public static extern long CResult_NoneNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_clone_ptr")] public static extern long CResultNoneNoneZClonePtr(long _arg); // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_clone")] public static extern long CResult_NoneNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneNoneZ_clone")] public static extern long CResultNoneNoneZClone(long _orig); // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_ok")] public static extern long CResult_PublicKeyNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_ok")] public static extern long CResultPublicKeyNoneZOk(long _o); // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_err")] public static extern long CResult_PublicKeyNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_err")] public static extern long CResultPublicKeyNoneZErr(); // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_is_ok")] public static extern bool CResult_PublicKeyNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_is_ok")] public static extern bool CResultPublicKeyNoneZIsOk(long _o); // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_free")] public static extern void CResult_PublicKeyNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_free")] public static extern void CResultPublicKeyNoneZFree(long __res); // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_clone_ptr")] public static extern long CResult_PublicKeyNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_clone_ptr")] public static extern long CResultPublicKeyNoneZClonePtr(long _arg); // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_clone")] public static extern long CResult_PublicKeyNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeyNoneZ_clone")] public static extern long CResultPublicKeyNoneZClone(long _orig); // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_some")] public static extern long COption_BigEndianScalarZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_some")] public static extern long COptionBigEndianScalarZSome(long _o); // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_none")] public static extern long COption_BigEndianScalarZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_none")] public static extern long COptionBigEndianScalarZNone(); // void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_free")] public static extern void COption_BigEndianScalarZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_free")] public static extern void COptionBigEndianScalarZFree(long __res); // uint64_t COption_BigEndianScalarZ_clone_ptr(LDKCOption_BigEndianScalarZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_clone_ptr")] public static extern long COption_BigEndianScalarZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_clone_ptr")] public static extern long COptionBigEndianScalarZClonePtr(long _arg); // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_clone")] public static extern long COption_BigEndianScalarZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_BigEndianScalarZ_clone")] public static extern long COptionBigEndianScalarZClone(long _orig); // void CVec_U5Z_free(struct LDKCVec_U5Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_U5Z_free")] public static extern void CVec_U5Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_U5Z_free")] public static extern void CVecU5ZFree(long __res); // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_ok")] public static extern long CResult_RecoverableSignatureNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_ok")] public static extern long CResultRecoverableSignatureNoneZOk(long _o); // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_err")] public static extern long CResult_RecoverableSignatureNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_err")] public static extern long CResultRecoverableSignatureNoneZErr(); // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_is_ok")] public static extern bool CResult_RecoverableSignatureNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_is_ok")] public static extern bool CResultRecoverableSignatureNoneZIsOk(long _o); // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_free")] public static extern void CResult_RecoverableSignatureNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_free")] public static extern void CResultRecoverableSignatureNoneZFree(long __res); // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_clone_ptr")] public static extern long CResult_RecoverableSignatureNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_clone_ptr")] public static extern long CResultRecoverableSignatureNoneZClonePtr(long _arg); // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_clone")] public static extern long CResult_RecoverableSignatureNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RecoverableSignatureNoneZ_clone")] public static extern long CResultRecoverableSignatureNoneZClone(long _orig); // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_ok")] public static extern long CResult_SchnorrSignatureNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_ok")] public static extern long CResultSchnorrSignatureNoneZOk(long _o); // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_err")] public static extern long CResult_SchnorrSignatureNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_err")] public static extern long CResultSchnorrSignatureNoneZErr(); // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_is_ok")] public static extern bool CResult_SchnorrSignatureNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_is_ok")] public static extern bool CResultSchnorrSignatureNoneZIsOk(long _o); // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_free")] public static extern void CResult_SchnorrSignatureNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_free")] public static extern void CResultSchnorrSignatureNoneZFree(long __res); // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_clone_ptr")] public static extern long CResult_SchnorrSignatureNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_clone_ptr")] public static extern long CResultSchnorrSignatureNoneZClonePtr(long _arg); // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_clone")] public static extern long CResult_SchnorrSignatureNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SchnorrSignatureNoneZ_clone")] public static extern long CResultSchnorrSignatureNoneZClone(long _orig); // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_ok")] public static extern long CResult_ECDSASignatureNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_ok")] public static extern long CResultECDSASignatureNoneZOk(long _o); // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_err")] public static extern long CResult_ECDSASignatureNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_err")] public static extern long CResultECDSASignatureNoneZErr(); // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_is_ok")] public static extern bool CResult_ECDSASignatureNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_is_ok")] public static extern bool CResultECDSASignatureNoneZIsOk(long _o); // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_free")] public static extern void CResult_ECDSASignatureNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_free")] public static extern void CResultECDSASignatureNoneZFree(long __res); // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_clone_ptr")] public static extern long CResult_ECDSASignatureNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_clone_ptr")] public static extern long CResultECDSASignatureNoneZClonePtr(long _arg); // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_clone")] public static extern long CResult_ECDSASignatureNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ECDSASignatureNoneZ_clone")] public static extern long CResultECDSASignatureNoneZClone(long _orig); // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZOk(long _o); // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZErr(long _e); // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok")] public static extern bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok")] public static extern bool CResultWriteableEcdsaChannelSignerDecodeErrorZIsOk(long _o); // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free")] public static extern void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free")] public static extern void CResultWriteableEcdsaChannelSignerDecodeErrorZFree(long __res); // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZClonePtr(long _arg); // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone")] public static extern long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone")] public static extern long CResultWriteableEcdsaChannelSignerDecodeErrorZClone(long _orig); // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_ok")] public static extern long CResult_CVec_u8ZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_ok")] public static extern long CResultCVecU8ZnonezOk(long _o); // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_err")] public static extern long CResult_CVec_u8ZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_err")] public static extern long CResultCVecU8ZnonezErr(); // bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_is_ok")] public static extern bool CResult_CVec_u8ZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_is_ok")] public static extern bool CResultCVecU8ZnonezIsOk(long _o); // void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_free")] public static extern void CResult_CVec_u8ZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_free")] public static extern void CResultCVecU8ZnonezFree(long __res); // uint64_t CResult_CVec_u8ZNoneZ_clone_ptr(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_clone_ptr")] public static extern long CResult_CVec_u8ZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_clone_ptr")] public static extern long CResultCVecU8ZnonezClonePtr(long _arg); // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_clone")] public static extern long CResult_CVec_u8ZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZNoneZ_clone")] public static extern long CResultCVecU8ZnonezClone(long _orig); // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_ok")] public static extern long CResult_ShutdownScriptNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_ok")] public static extern long CResultShutdownScriptNoneZOk(long _o); // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_err")] public static extern long CResult_ShutdownScriptNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_err")] public static extern long CResultShutdownScriptNoneZErr(); // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_is_ok")] public static extern bool CResult_ShutdownScriptNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_is_ok")] public static extern bool CResultShutdownScriptNoneZIsOk(long _o); // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_free")] public static extern void CResult_ShutdownScriptNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_free")] public static extern void CResultShutdownScriptNoneZFree(long __res); // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_clone_ptr")] public static extern long CResult_ShutdownScriptNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_clone_ptr")] public static extern long CResultShutdownScriptNoneZClonePtr(long _arg); // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_clone")] public static extern long CResult_ShutdownScriptNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptNoneZ_clone")] public static extern long CResultShutdownScriptNoneZClone(long _orig); // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_some")] public static extern long COption_u16Z_some(short _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_some")] public static extern long COptionU16ZSome(short _o); // struct LDKCOption_u16Z COption_u16Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_none")] public static extern long COption_u16Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_none")] public static extern long COptionU16ZNone(); // void COption_u16Z_free(struct LDKCOption_u16Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_free")] public static extern void COption_u16Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_free")] public static extern void COptionU16ZFree(long __res); // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_clone_ptr")] public static extern long COption_u16Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_clone_ptr")] public static extern long COptionU16ZClonePtr(long _arg); // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_clone")] public static extern long COption_u16Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_u16Z_clone")] public static extern long COptionU16ZClone(long _orig); // struct LDKCOption_boolZ COption_boolZ_some(bool o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_some")] public static extern long COption_boolZ_some(bool _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_some")] public static extern long COptionBoolzSome(bool _o); // struct LDKCOption_boolZ COption_boolZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_none")] public static extern long COption_boolZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_none")] public static extern long COptionBoolzNone(); // void COption_boolZ_free(struct LDKCOption_boolZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_free")] public static extern void COption_boolZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_free")] public static extern void COptionBoolzFree(long __res); // uint64_t COption_boolZ_clone_ptr(LDKCOption_boolZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_clone_ptr")] public static extern long COption_boolZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_clone_ptr")] public static extern long COptionBoolzClonePtr(long _arg); // struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_clone")] public static extern long COption_boolZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_boolZ_clone")] public static extern long COptionBoolzClone(long _orig); // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_ok(struct LDKWitness o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_ok")] public static extern long CResult_WitnessNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_ok")] public static extern long CResultWitnessNoneZOk(long _o); // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_err")] public static extern long CResult_WitnessNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_err")] public static extern long CResultWitnessNoneZErr(); // bool CResult_WitnessNoneZ_is_ok(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_is_ok")] public static extern bool CResult_WitnessNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_is_ok")] public static extern bool CResultWitnessNoneZIsOk(long _o); // void CResult_WitnessNoneZ_free(struct LDKCResult_WitnessNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_free")] public static extern void CResult_WitnessNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_free")] public static extern void CResultWitnessNoneZFree(long __res); // uint64_t CResult_WitnessNoneZ_clone_ptr(LDKCResult_WitnessNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_clone_ptr")] public static extern long CResult_WitnessNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_clone_ptr")] public static extern long CResultWitnessNoneZClonePtr(long _arg); // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_clone(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_clone")] public static extern long CResult_WitnessNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WitnessNoneZ_clone")] public static extern long CResultWitnessNoneZClone(long _orig); // void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ECDSASignatureZ_free")] public static extern void CVec_ECDSASignatureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ECDSASignatureZ_free")] public static extern void CVecECDSASignatureZFree(long __res); // uint64_t C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr")] public static extern long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr")] public static extern long C2TupleECDSASignatureCVecECDSASignatureZZClonePtr(long _arg); // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone")] public static extern long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone")] public static extern long C2TupleECDSASignatureCVecECDSASignatureZZClone(long _orig); // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new")] public static extern long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new")] public static extern long C2TupleECDSASignatureCVecECDSASignatureZZNew(long _a, long _b); // void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free")] public static extern void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free")] public static extern void C2TupleECDSASignatureCVecECDSASignatureZZFree(long __res); // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok")] public static extern long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok")] public static extern long CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZOk(long _o); // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err")] public static extern long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err")] public static extern long CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZErr(); // bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok")] public static extern bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok")] public static extern bool CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZIsOk(long _o); // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free")] public static extern void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free")] public static extern void CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZFree(long __res); // uint64_t CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr")] public static extern long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr")] public static extern long CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZClonePtr(long _arg); // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone")] public static extern long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone")] public static extern long CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZClone(long _orig); // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_ok")] public static extern long CResult_InMemorySignerDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_ok")] public static extern long CResultInMemorySignerDecodeErrorZOk(long _o); // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_err")] public static extern long CResult_InMemorySignerDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_err")] public static extern long CResultInMemorySignerDecodeErrorZErr(long _e); // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_is_ok")] public static extern bool CResult_InMemorySignerDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_is_ok")] public static extern bool CResultInMemorySignerDecodeErrorZIsOk(long _o); // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_free")] public static extern void CResult_InMemorySignerDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_free")] public static extern void CResultInMemorySignerDecodeErrorZFree(long __res); // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_clone_ptr")] public static extern long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_clone_ptr")] public static extern long CResultInMemorySignerDecodeErrorZClonePtr(long _arg); // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_clone")] public static extern long CResult_InMemorySignerDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InMemorySignerDecodeErrorZ_clone")] public static extern long CResultInMemorySignerDecodeErrorZClone(long _orig); // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_ok")] public static extern long CResult_TransactionNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_ok")] public static extern long CResultTransactionNoneZOk(long _o); // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_err")] public static extern long CResult_TransactionNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_err")] public static extern long CResultTransactionNoneZErr(); // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_is_ok")] public static extern bool CResult_TransactionNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_is_ok")] public static extern bool CResultTransactionNoneZIsOk(long _o); // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_free")] public static extern void CResult_TransactionNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_free")] public static extern void CResultTransactionNoneZFree(long __res); // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_clone_ptr")] public static extern long CResult_TransactionNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_clone_ptr")] public static extern long CResultTransactionNoneZClonePtr(long _arg); // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_clone")] public static extern long CResult_TransactionNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionNoneZ_clone")] public static extern long CResultTransactionNoneZClone(long _orig); // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_some")] public static extern long COption_WriteableScoreZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_some")] public static extern long COptionWriteableScoreZSome(long _o); // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_none")] public static extern long COption_WriteableScoreZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_none")] public static extern long COptionWriteableScoreZNone(); // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_free")] public static extern void COption_WriteableScoreZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_WriteableScoreZ_free")] public static extern void COptionWriteableScoreZFree(long __res); // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_ok")] public static extern long CResult_NoneIOErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_ok")] public static extern long CResultNoneIOErrorZOk(); // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_err")] public static extern long CResult_NoneIOErrorZ_err(IOError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_err")] public static extern long CResultNoneIOErrorZErr(IOError _e); // bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_is_ok")] public static extern bool CResult_NoneIOErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_is_ok")] public static extern bool CResultNoneIOErrorZIsOk(long _o); // void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_free")] public static extern void CResult_NoneIOErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_free")] public static extern void CResultNoneIOErrorZFree(long __res); // uint64_t CResult_NoneIOErrorZ_clone_ptr(LDKCResult_NoneIOErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_clone_ptr")] public static extern long CResult_NoneIOErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_clone_ptr")] public static extern long CResultNoneIOErrorZClonePtr(long _arg); // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_clone")] public static extern long CResult_NoneIOErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneIOErrorZ_clone")] public static extern long CResultNoneIOErrorZClone(long _orig); // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ChannelDetailsZ_free")] public static extern void CVec_ChannelDetailsZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ChannelDetailsZ_free")] public static extern void CVecChannelDetailsZFree(long __res); // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_ok")] public static extern long CResult_RouteLightningErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_ok")] public static extern long CResultRouteLightningErrorZOk(long _o); // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_err")] public static extern long CResult_RouteLightningErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_err")] public static extern long CResultRouteLightningErrorZErr(long _e); // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_is_ok")] public static extern bool CResult_RouteLightningErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_is_ok")] public static extern bool CResultRouteLightningErrorZIsOk(long _o); // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_free")] public static extern void CResult_RouteLightningErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_free")] public static extern void CResultRouteLightningErrorZFree(long __res); // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_clone_ptr")] public static extern long CResult_RouteLightningErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_clone_ptr")] public static extern long CResultRouteLightningErrorZClonePtr(long _arg); // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_clone")] public static extern long CResult_RouteLightningErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteLightningErrorZ_clone")] public static extern long CResultRouteLightningErrorZClone(long _orig); // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr")] public static extern long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr")] public static extern long C2TupleBlindedPayInfoBlindedPathZClonePtr(long _arg); // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_clone")] public static extern long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_clone")] public static extern long C2TupleBlindedPayInfoBlindedPathZClone(long _orig); // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_new")] public static extern long C2Tuple_BlindedPayInfoBlindedPathZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_new")] public static extern long C2TupleBlindedPayInfoBlindedPathZNew(long _a, long _b); // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_free")] public static extern void C2Tuple_BlindedPayInfoBlindedPathZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_BlindedPayInfoBlindedPathZ_free")] public static extern void C2TupleBlindedPayInfoBlindedPathZFree(long __res); // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free")] public static extern void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free")] public static extern void CVecC2TupleBlindedPayInfoBlindedPathZZFree(long __res); // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok")] public static extern long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok")] public static extern long CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZOk(long _o); // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err")] public static extern long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err")] public static extern long CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZErr(); // bool CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok")] public static extern bool CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok")] public static extern bool CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZIsOk(long _o); // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free")] public static extern void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free")] public static extern void CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZFree(long __res); // uint64_t CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr")] public static extern long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr")] public static extern long CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZClonePtr(long _arg); // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone")] public static extern long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone")] public static extern long CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZClone(long _orig); // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PublicKeyZ_free")] public static extern void CVec_PublicKeyZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PublicKeyZ_free")] public static extern void CVecPublicKeyZFree(long __res); // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_ok")] public static extern long CResult_OnionMessagePathNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_ok")] public static extern long CResultOnionMessagePathNoneZOk(long _o); // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_err")] public static extern long CResult_OnionMessagePathNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_err")] public static extern long CResultOnionMessagePathNoneZErr(); // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_is_ok")] public static extern bool CResult_OnionMessagePathNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_is_ok")] public static extern bool CResultOnionMessagePathNoneZIsOk(long _o); // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_free")] public static extern void CResult_OnionMessagePathNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_free")] public static extern void CResultOnionMessagePathNoneZFree(long __res); // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_clone_ptr")] public static extern long CResult_OnionMessagePathNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_clone_ptr")] public static extern long CResultOnionMessagePathNoneZClonePtr(long _arg); // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_clone")] public static extern long CResult_OnionMessagePathNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessagePathNoneZ_clone")] public static extern long CResultOnionMessagePathNoneZClone(long _orig); // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_ok(struct LDKCVec_BlindedPathZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_ok")] public static extern long CResult_CVec_BlindedPathZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_ok")] public static extern long CResultCVecBlindedPathZNoneZOk(long _o); // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_err")] public static extern long CResult_CVec_BlindedPathZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_err")] public static extern long CResultCVecBlindedPathZNoneZErr(); // bool CResult_CVec_BlindedPathZNoneZ_is_ok(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_is_ok")] public static extern bool CResult_CVec_BlindedPathZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_is_ok")] public static extern bool CResultCVecBlindedPathZNoneZIsOk(long _o); // void CResult_CVec_BlindedPathZNoneZ_free(struct LDKCResult_CVec_BlindedPathZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_free")] public static extern void CResult_CVec_BlindedPathZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_free")] public static extern void CResultCVecBlindedPathZNoneZFree(long __res); // uint64_t CResult_CVec_BlindedPathZNoneZ_clone_ptr(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_clone_ptr")] public static extern long CResult_CVec_BlindedPathZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_clone_ptr")] public static extern long CResultCVecBlindedPathZNoneZClonePtr(long _arg); // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_clone(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_clone")] public static extern long CResult_CVec_BlindedPathZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_BlindedPathZNoneZ_clone")] public static extern long CResultCVecBlindedPathZNoneZClone(long _orig); // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_ok")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_ok")] public static extern long CResultInFlightHtlcsDecodeErrorZOk(long _o); // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_err")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_err")] public static extern long CResultInFlightHtlcsDecodeErrorZErr(long _e); // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_is_ok")] public static extern bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_is_ok")] public static extern bool CResultInFlightHtlcsDecodeErrorZIsOk(long _o); // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_free")] public static extern void CResult_InFlightHtlcsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_free")] public static extern void CResultInFlightHtlcsDecodeErrorZFree(long __res); // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_clone_ptr")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_clone_ptr")] public static extern long CResultInFlightHtlcsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_clone")] public static extern long CResult_InFlightHtlcsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InFlightHtlcsDecodeErrorZ_clone")] public static extern long CResultInFlightHtlcsDecodeErrorZClone(long _orig); // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_ok")] public static extern long CResult_RouteHopDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_ok")] public static extern long CResultRouteHopDecodeErrorZOk(long _o); // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_err")] public static extern long CResult_RouteHopDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_err")] public static extern long CResultRouteHopDecodeErrorZErr(long _e); // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_is_ok")] public static extern bool CResult_RouteHopDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_is_ok")] public static extern bool CResultRouteHopDecodeErrorZIsOk(long _o); // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_free")] public static extern void CResult_RouteHopDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_free")] public static extern void CResultRouteHopDecodeErrorZFree(long __res); // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_clone_ptr")] public static extern long CResult_RouteHopDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_clone_ptr")] public static extern long CResultRouteHopDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_clone")] public static extern long CResult_RouteHopDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHopDecodeErrorZ_clone")] public static extern long CResultRouteHopDecodeErrorZClone(long _orig); // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BlindedHopZ_free")] public static extern void CVec_BlindedHopZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BlindedHopZ_free")] public static extern void CVecBlindedHopZFree(long __res); // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_ok")] public static extern long CResult_BlindedTailDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_ok")] public static extern long CResultBlindedTailDecodeErrorZOk(long _o); // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_err")] public static extern long CResult_BlindedTailDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_err")] public static extern long CResultBlindedTailDecodeErrorZErr(long _e); // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedTailDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_is_ok")] public static extern bool CResultBlindedTailDecodeErrorZIsOk(long _o); // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_free")] public static extern void CResult_BlindedTailDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_free")] public static extern void CResultBlindedTailDecodeErrorZFree(long __res); // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedTailDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedTailDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_clone")] public static extern long CResult_BlindedTailDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedTailDecodeErrorZ_clone")] public static extern long CResultBlindedTailDecodeErrorZClone(long _orig); // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHopZ_free")] public static extern void CVec_RouteHopZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHopZ_free")] public static extern void CVecRouteHopZFree(long __res); // void CVec_PathZ_free(struct LDKCVec_PathZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PathZ_free")] public static extern void CVec_PathZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PathZ_free")] public static extern void CVecPathZFree(long __res); // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_ok")] public static extern long CResult_RouteDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_ok")] public static extern long CResultRouteDecodeErrorZOk(long _o); // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_err")] public static extern long CResult_RouteDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_err")] public static extern long CResultRouteDecodeErrorZErr(long _e); // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_is_ok")] public static extern bool CResult_RouteDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_is_ok")] public static extern bool CResultRouteDecodeErrorZIsOk(long _o); // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_free")] public static extern void CResult_RouteDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_free")] public static extern void CResultRouteDecodeErrorZFree(long __res); // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_clone_ptr")] public static extern long CResult_RouteDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_clone_ptr")] public static extern long CResultRouteDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_clone")] public static extern long CResult_RouteDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteDecodeErrorZ_clone")] public static extern long CResultRouteDecodeErrorZClone(long _orig); // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_ok")] public static extern long CResult_RouteParametersDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_ok")] public static extern long CResultRouteParametersDecodeErrorZOk(long _o); // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_err")] public static extern long CResult_RouteParametersDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_err")] public static extern long CResultRouteParametersDecodeErrorZErr(long _e); // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_is_ok")] public static extern bool CResult_RouteParametersDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_is_ok")] public static extern bool CResultRouteParametersDecodeErrorZIsOk(long _o); // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_free")] public static extern void CResult_RouteParametersDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_free")] public static extern void CResultRouteParametersDecodeErrorZFree(long __res); // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_clone_ptr")] public static extern long CResult_RouteParametersDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_clone_ptr")] public static extern long CResultRouteParametersDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_clone")] public static extern long CResult_RouteParametersDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteParametersDecodeErrorZ_clone")] public static extern long CResultRouteParametersDecodeErrorZClone(long _orig); // void CVec_u64Z_free(struct LDKCVec_u64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_u64Z_free")] public static extern void CVec_u64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_u64Z_free")] public static extern void CVecU64ZFree(long __res); // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_ok")] public static extern long CResult_PaymentParametersDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_ok")] public static extern long CResultPaymentParametersDecodeErrorZOk(long _o); // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_err")] public static extern long CResult_PaymentParametersDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_err")] public static extern long CResultPaymentParametersDecodeErrorZErr(long _e); // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_is_ok")] public static extern bool CResult_PaymentParametersDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_is_ok")] public static extern bool CResultPaymentParametersDecodeErrorZIsOk(long _o); // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_free")] public static extern void CResult_PaymentParametersDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_free")] public static extern void CResultPaymentParametersDecodeErrorZFree(long __res); // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_clone_ptr")] public static extern long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_clone_ptr")] public static extern long CResultPaymentParametersDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_clone")] public static extern long CResult_PaymentParametersDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentParametersDecodeErrorZ_clone")] public static extern long CResultPaymentParametersDecodeErrorZClone(long _orig); // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHintZ_free")] public static extern void CVec_RouteHintZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHintZ_free")] public static extern void CVecRouteHintZFree(long __res); // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHintHopZ_free")] public static extern void CVec_RouteHintHopZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RouteHintHopZ_free")] public static extern void CVecRouteHintHopZFree(long __res); // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_ok")] public static extern long CResult_RouteHintDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_ok")] public static extern long CResultRouteHintDecodeErrorZOk(long _o); // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_err")] public static extern long CResult_RouteHintDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_err")] public static extern long CResultRouteHintDecodeErrorZErr(long _e); // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_is_ok")] public static extern bool CResult_RouteHintDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_is_ok")] public static extern bool CResultRouteHintDecodeErrorZIsOk(long _o); // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_free")] public static extern void CResult_RouteHintDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_free")] public static extern void CResultRouteHintDecodeErrorZFree(long __res); // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_clone_ptr")] public static extern long CResult_RouteHintDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_clone_ptr")] public static extern long CResultRouteHintDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_clone")] public static extern long CResult_RouteHintDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintDecodeErrorZ_clone")] public static extern long CResultRouteHintDecodeErrorZClone(long _orig); // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_ok")] public static extern long CResult_RouteHintHopDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_ok")] public static extern long CResultRouteHintHopDecodeErrorZOk(long _o); // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_err")] public static extern long CResult_RouteHintHopDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_err")] public static extern long CResultRouteHintHopDecodeErrorZErr(long _e); // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_is_ok")] public static extern bool CResult_RouteHintHopDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_is_ok")] public static extern bool CResultRouteHintHopDecodeErrorZIsOk(long _o); // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_free")] public static extern void CResult_RouteHintHopDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_free")] public static extern void CResultRouteHintHopDecodeErrorZFree(long __res); // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_clone_ptr")] public static extern long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_clone_ptr")] public static extern long CResultRouteHintHopDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_clone")] public static extern long CResult_RouteHintHopDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RouteHintHopDecodeErrorZ_clone")] public static extern long CResultRouteHintHopDecodeErrorZClone(long _orig); // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_ok")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_ok")] public static extern long CResultFixedPenaltyScorerDecodeErrorZOk(long _o); // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_err")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_err")] public static extern long CResultFixedPenaltyScorerDecodeErrorZErr(long _e); // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok")] public static extern bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok")] public static extern bool CResultFixedPenaltyScorerDecodeErrorZIsOk(long _o); // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_free")] public static extern void CResult_FixedPenaltyScorerDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_free")] public static extern void CResultFixedPenaltyScorerDecodeErrorZFree(long __res); // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr")] public static extern long CResultFixedPenaltyScorerDecodeErrorZClonePtr(long _arg); // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_clone")] public static extern long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FixedPenaltyScorerDecodeErrorZ_clone")] public static extern long CResultFixedPenaltyScorerDecodeErrorZClone(long _orig); // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_NodeIdZ_free")] public static extern void CVec_NodeIdZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_NodeIdZ_free")] public static extern void CVecNodeIdZFree(long __res); // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_clone_ptr")] public static extern long C2Tuple_u64u64Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_clone_ptr")] public static extern long C2TupleU64U64ZClonePtr(long _arg); // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_clone")] public static extern long C2Tuple_u64u64Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_clone")] public static extern long C2TupleU64U64ZClone(long _orig); // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_new")] public static extern long C2Tuple_u64u64Z_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_new")] public static extern long C2TupleU64U64ZNew(long _a, long _b); // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_free")] public static extern void C2Tuple_u64u64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u64Z_free")] public static extern void C2TupleU64U64ZFree(long __res); // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_some")] public static extern long COption_C2Tuple_u64u64ZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_some")] public static extern long COptionC2TupleU64U64ZzSome(long _o); // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_none")] public static extern long COption_C2Tuple_u64u64ZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_none")] public static extern long COptionC2TupleU64U64ZzNone(); // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_free")] public static extern void COption_C2Tuple_u64u64ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_free")] public static extern void COptionC2TupleU64U64ZzFree(long __res); // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_clone_ptr")] public static extern long COption_C2Tuple_u64u64ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_clone_ptr")] public static extern long COptionC2TupleU64U64ZzClonePtr(long _arg); // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_clone")] public static extern long COption_C2Tuple_u64u64ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u64ZZ_clone")] public static extern long COptionC2TupleU64U64ZzClone(long _orig); // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_new")] public static extern long C2Tuple_Z_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_new")] public static extern long C2TupleZNew(long _a, long _b); // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_free")] public static extern void C2Tuple_Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_Z_free")] public static extern void C2TupleZFree(long __res); // struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_new")] public static extern long C2Tuple__u1632_u1632Z_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_new")] public static extern long C2TupleU1632U1632ZNew(long _a, long _b); // void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_free")] public static extern void C2Tuple__u1632_u1632Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u1632_u1632Z_free")] public static extern void C2TupleU1632U1632ZFree(long __res); // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some")] public static extern long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some")] public static extern long COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZSome(long _o); // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none")] public static extern long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none")] public static extern long COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZNone(); // void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free")] public static extern void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free")] public static extern void COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZFree(long __res); // struct LDKCOption_f64Z COption_f64Z_some(double o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_some")] public static extern long COption_f64Z_some(double _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_some")] public static extern long COptionF64ZSome(double _o); // struct LDKCOption_f64Z COption_f64Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_none")] public static extern long COption_f64Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_none")] public static extern long COptionF64ZNone(); // void COption_f64Z_free(struct LDKCOption_f64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_free")] public static extern void COption_f64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_free")] public static extern void COptionF64ZFree(long __res); // uint64_t COption_f64Z_clone_ptr(LDKCOption_f64Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_clone_ptr")] public static extern long COption_f64Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_clone_ptr")] public static extern long COptionF64ZClonePtr(long _arg); // struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_clone")] public static extern long COption_f64Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_f64Z_clone")] public static extern long COptionF64ZClone(long _orig); // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_ok")] public static extern long CResult_ProbabilisticScorerDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_ok")] public static extern long CResultProbabilisticScorerDecodeErrorZOk(long _o); // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_err")] public static extern long CResult_ProbabilisticScorerDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_err")] public static extern long CResultProbabilisticScorerDecodeErrorZErr(long _e); // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_is_ok")] public static extern bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_is_ok")] public static extern bool CResultProbabilisticScorerDecodeErrorZIsOk(long _o); // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_free")] public static extern void CResult_ProbabilisticScorerDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ProbabilisticScorerDecodeErrorZ_free")] public static extern void CResultProbabilisticScorerDecodeErrorZFree(long __res); // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_clone_ptr")] public static extern long C2Tuple_usizeTransactionZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_clone_ptr")] public static extern long C2TupleUsizetransactionzClonePtr(long _arg); // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_clone")] public static extern long C2Tuple_usizeTransactionZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_clone")] public static extern long C2TupleUsizetransactionzClone(long _orig); // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_new")] public static extern long C2Tuple_usizeTransactionZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_new")] public static extern long C2TupleUsizetransactionzNew(long _a, long _b); // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_free")] public static extern void C2Tuple_usizeTransactionZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_usizeTransactionZ_free")] public static extern void C2TupleUsizetransactionzFree(long __res); // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_usizeTransactionZZ_free")] public static extern void CVec_C2Tuple_usizeTransactionZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_usizeTransactionZZ_free")] public static extern void CVecC2TupleUsizetransactionzzFree(long __res); // uint64_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr")] public static extern long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr")] public static extern long C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZClonePtr(long _arg); // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone")] public static extern long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone")] public static extern long C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZClone(long _orig); // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, uint32_t b, struct LDKCOption_ThirtyTwoBytesZ c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new")] public static extern long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(long _a, int _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new")] public static extern long C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZNew(long _a, int _b, long _c); // void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free")] public static extern void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free")] public static extern void C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZFree(long __res); // void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free")] public static extern void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free")] public static extern void CVecC3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZZFree(long __res); // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_ok")] public static extern long CResult_ChannelMonitorUpdateStatusNoneZ_ok(ChannelMonitorUpdateStatus _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_ok")] public static extern long CResultChannelMonitorUpdateStatusNoneZOk(ChannelMonitorUpdateStatus _o); // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_err")] public static extern long CResult_ChannelMonitorUpdateStatusNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_err")] public static extern long CResultChannelMonitorUpdateStatusNoneZErr(); // bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_is_ok")] public static extern bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_is_ok")] public static extern bool CResultChannelMonitorUpdateStatusNoneZIsOk(long _o); // void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_free")] public static extern void CResult_ChannelMonitorUpdateStatusNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_free")] public static extern void CResultChannelMonitorUpdateStatusNoneZFree(long __res); // uint64_t CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr")] public static extern long CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr")] public static extern long CResultChannelMonitorUpdateStatusNoneZClonePtr(long _arg); // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_clone")] public static extern long CResult_ChannelMonitorUpdateStatusNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateStatusNoneZ_clone")] public static extern long CResultChannelMonitorUpdateStatusNoneZClone(long _orig); // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MonitorEventZ_free")] public static extern void CVec_MonitorEventZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MonitorEventZ_free")] public static extern void CVecMonitorEventZFree(long __res); // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZClonePtr(long _arg); // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZClone(long _orig); // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new")] public static extern long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new")] public static extern long C3TupleOutPointCVecMonitorEventZPublicKeyZNew(long _a, long _b, long _c); // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free")] public static extern void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free")] public static extern void C3TupleOutPointCVecMonitorEventZPublicKeyZFree(long __res); // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free")] public static extern void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free")] public static extern void CVecC3TupleOutPointCVecMonitorEventZPublicKeyZZFree(long __res); // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_ok")] public static extern long CResult_InitFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_ok")] public static extern long CResultInitFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_err")] public static extern long CResult_InitFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_err")] public static extern long CResultInitFeaturesDecodeErrorZErr(long _e); // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_InitFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultInitFeaturesDecodeErrorZIsOk(long _o); // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_free")] public static extern void CResult_InitFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_free")] public static extern void CResultInitFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultInitFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_clone")] public static extern long CResult_InitFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitFeaturesDecodeErrorZ_clone")] public static extern long CResultInitFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_ok")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_ok")] public static extern long CResultChannelFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_err")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_err")] public static extern long CResultChannelFeaturesDecodeErrorZErr(long _e); // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultChannelFeaturesDecodeErrorZIsOk(long _o); // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_free")] public static extern void CResult_ChannelFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_free")] public static extern void CResultChannelFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultChannelFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_clone")] public static extern long CResult_ChannelFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelFeaturesDecodeErrorZ_clone")] public static extern long CResultChannelFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_ok")] public static extern long CResult_NodeFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_ok")] public static extern long CResultNodeFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_err")] public static extern long CResult_NodeFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_err")] public static extern long CResultNodeFeaturesDecodeErrorZErr(long _e); // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_NodeFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultNodeFeaturesDecodeErrorZIsOk(long _o); // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_free")] public static extern void CResult_NodeFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_free")] public static extern void CResultNodeFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultNodeFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_clone")] public static extern long CResult_NodeFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeFeaturesDecodeErrorZ_clone")] public static extern long CResultNodeFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZErr(long _e); // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultBolt11InvoiceFeaturesDecodeErrorZIsOk(long _o); // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free")] public static extern void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free")] public static extern void CResultBolt11InvoiceFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone")] public static extern long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone")] public static extern long CResultBolt11InvoiceFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZErr(long _e); // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultBolt12InvoiceFeaturesDecodeErrorZIsOk(long _o); // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free")] public static extern void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free")] public static extern void CResultBolt12InvoiceFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone")] public static extern long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone")] public static extern long CResultBolt12InvoiceFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_ok")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_ok")] public static extern long CResultBlindedHopFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_err")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_err")] public static extern long CResultBlindedHopFeaturesDecodeErrorZErr(long _e); // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultBlindedHopFeaturesDecodeErrorZIsOk(long _o); // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_free")] public static extern void CResult_BlindedHopFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_free")] public static extern void CResultBlindedHopFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedHopFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_clone")] public static extern long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopFeaturesDecodeErrorZ_clone")] public static extern long CResultBlindedHopFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_ok")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_ok")] public static extern long CResultChannelTypeFeaturesDecodeErrorZOk(long _o); // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_err")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_err")] public static extern long CResultChannelTypeFeaturesDecodeErrorZErr(long _e); // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok")] public static extern bool CResultChannelTypeFeaturesDecodeErrorZIsOk(long _o); // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_free")] public static extern void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_free")] public static extern void CResultChannelTypeFeaturesDecodeErrorZFree(long __res); // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr")] public static extern long CResultChannelTypeFeaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_clone")] public static extern long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTypeFeaturesDecodeErrorZ_clone")] public static extern long CResultChannelTypeFeaturesDecodeErrorZClone(long _orig); // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_ok")] public static extern long CResult_OfferBolt12ParseErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_ok")] public static extern long CResultOfferBolt12ParseErrorZOk(long _o); // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_err")] public static extern long CResult_OfferBolt12ParseErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_err")] public static extern long CResultOfferBolt12ParseErrorZErr(long _e); // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_is_ok")] public static extern bool CResult_OfferBolt12ParseErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_is_ok")] public static extern bool CResultOfferBolt12ParseErrorZIsOk(long _o); // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_free")] public static extern void CResult_OfferBolt12ParseErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_free")] public static extern void CResultOfferBolt12ParseErrorZFree(long __res); // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_clone_ptr")] public static extern long CResult_OfferBolt12ParseErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_clone_ptr")] public static extern long CResultOfferBolt12ParseErrorZClonePtr(long _arg); // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_clone")] public static extern long CResult_OfferBolt12ParseErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OfferBolt12ParseErrorZ_clone")] public static extern long CResultOfferBolt12ParseErrorZClone(long _orig); // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_ok")] public static extern long CResult_PublicKeySecp256k1ErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_ok")] public static extern long CResultPublicKeySecp256k1ErrorZOk(long _o); // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_err")] public static extern long CResult_PublicKeySecp256k1ErrorZ_err(Secp256k1Error _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_err")] public static extern long CResultPublicKeySecp256k1ErrorZErr(Secp256k1Error _e); // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_is_ok")] public static extern bool CResult_PublicKeySecp256k1ErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_is_ok")] public static extern bool CResultPublicKeySecp256k1ErrorZIsOk(long _o); // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_free")] public static extern void CResult_PublicKeySecp256k1ErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_free")] public static extern void CResultPublicKeySecp256k1ErrorZFree(long __res); // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_clone_ptr")] public static extern long CResult_PublicKeySecp256k1ErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_clone_ptr")] public static extern long CResultPublicKeySecp256k1ErrorZClonePtr(long _arg); // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_clone")] public static extern long CResult_PublicKeySecp256k1ErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PublicKeySecp256k1ErrorZ_clone")] public static extern long CResultPublicKeySecp256k1ErrorZClone(long _orig); // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_ok")] public static extern long CResult_NodeIdDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_ok")] public static extern long CResultNodeIdDecodeErrorZOk(long _o); // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_err")] public static extern long CResult_NodeIdDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_err")] public static extern long CResultNodeIdDecodeErrorZErr(long _e); // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_is_ok")] public static extern bool CResult_NodeIdDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_is_ok")] public static extern bool CResultNodeIdDecodeErrorZIsOk(long _o); // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_free")] public static extern void CResult_NodeIdDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_free")] public static extern void CResultNodeIdDecodeErrorZFree(long __res); // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeIdDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_clone_ptr")] public static extern long CResultNodeIdDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_clone")] public static extern long CResult_NodeIdDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeIdDecodeErrorZ_clone")] public static extern long CResultNodeIdDecodeErrorZClone(long _orig); // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_some")] public static extern long COption_NetworkUpdateZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_some")] public static extern long COptionNetworkUpdateZSome(long _o); // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_none")] public static extern long COption_NetworkUpdateZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_none")] public static extern long COptionNetworkUpdateZNone(); // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_free")] public static extern void COption_NetworkUpdateZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_free")] public static extern void COptionNetworkUpdateZFree(long __res); // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_clone_ptr")] public static extern long COption_NetworkUpdateZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_clone_ptr")] public static extern long COptionNetworkUpdateZClonePtr(long _arg); // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_clone")] public static extern long COption_NetworkUpdateZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NetworkUpdateZ_clone")] public static extern long COptionNetworkUpdateZClone(long _orig); // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_ok")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_ok")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZOk(long _o); // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_err")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_err")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZErr(long _e); // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionNetworkUpdateZDecodeErrorZIsOk(long _o); // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_free")] public static extern void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_free")] public static extern void CResultCOptionNetworkUpdateZDecodeErrorZFree(long __res); // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_clone")] public static extern long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_NetworkUpdateZDecodeErrorZ_clone")] public static extern long CResultCOptionNetworkUpdateZDecodeErrorZClone(long _orig); // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_some")] public static extern long COption_UtxoLookupZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_some")] public static extern long COptionUtxoLookupZSome(long _o); // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_none")] public static extern long COption_UtxoLookupZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_none")] public static extern long COptionUtxoLookupZNone(); // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_free")] public static extern void COption_UtxoLookupZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_UtxoLookupZ_free")] public static extern void COptionUtxoLookupZFree(long __res); // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_ok")] public static extern long CResult_NoneLightningErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_ok")] public static extern long CResultNoneLightningErrorZOk(); // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_err")] public static extern long CResult_NoneLightningErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_err")] public static extern long CResultNoneLightningErrorZErr(long _e); // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_is_ok")] public static extern bool CResult_NoneLightningErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_is_ok")] public static extern bool CResultNoneLightningErrorZIsOk(long _o); // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_free")] public static extern void CResult_NoneLightningErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_free")] public static extern void CResultNoneLightningErrorZFree(long __res); // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_clone_ptr")] public static extern long CResult_NoneLightningErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_clone_ptr")] public static extern long CResultNoneLightningErrorZClonePtr(long _arg); // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_clone")] public static extern long CResult_NoneLightningErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneLightningErrorZ_clone")] public static extern long CResultNoneLightningErrorZClone(long _orig); // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_ok")] public static extern long CResult_boolLightningErrorZ_ok(bool _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_ok")] public static extern long CResultBoollightningerrorzOk(bool _o); // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_err")] public static extern long CResult_boolLightningErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_err")] public static extern long CResultBoollightningerrorzErr(long _e); // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_is_ok")] public static extern bool CResult_boolLightningErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_is_ok")] public static extern bool CResultBoollightningerrorzIsOk(long _o); // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_free")] public static extern void CResult_boolLightningErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_free")] public static extern void CResultBoollightningerrorzFree(long __res); // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_clone_ptr")] public static extern long CResult_boolLightningErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_clone_ptr")] public static extern long CResultBoollightningerrorzClonePtr(long _arg); // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_clone")] public static extern long CResult_boolLightningErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolLightningErrorZ_clone")] public static extern long CResultBoollightningerrorzClone(long _orig); // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZClonePtr(long _arg); // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZClone(long _orig); // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new")] public static extern long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new")] public static extern long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZNew(long _a, long _b, long _c); // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free")] public static extern void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free")] public static extern void C3TupleChannelAnnouncementChannelUpdateChannelUpdateZFree(long __res); // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some")] public static extern long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some")] public static extern long COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZSome(long _o); // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none")] public static extern long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none")] public static extern long COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZNone(); // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free")] public static extern void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free")] public static extern void COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZFree(long __res); // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr")] public static extern long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr")] public static extern long COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZClonePtr(long _arg); // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone")] public static extern long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone")] public static extern long COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZClone(long _orig); // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MessageSendEventZ_free")] public static extern void CVec_MessageSendEventZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MessageSendEventZ_free")] public static extern void CVecMessageSendEventZFree(long __res); // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_ok")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_ok")] public static extern long CResultChannelUpdateInfoDecodeErrorZOk(long _o); // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_err")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_err")] public static extern long CResultChannelUpdateInfoDecodeErrorZErr(long _e); // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok")] public static extern bool CResultChannelUpdateInfoDecodeErrorZIsOk(long _o); // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_free")] public static extern void CResult_ChannelUpdateInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_free")] public static extern void CResultChannelUpdateInfoDecodeErrorZFree(long __res); // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr")] public static extern long CResultChannelUpdateInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_clone")] public static extern long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateInfoDecodeErrorZ_clone")] public static extern long CResultChannelUpdateInfoDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_ok")] public static extern long CResult_ChannelInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_ok")] public static extern long CResultChannelInfoDecodeErrorZOk(long _o); // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_err")] public static extern long CResult_ChannelInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_err")] public static extern long CResultChannelInfoDecodeErrorZErr(long _e); // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_is_ok")] public static extern bool CResultChannelInfoDecodeErrorZIsOk(long _o); // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_free")] public static extern void CResult_ChannelInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_free")] public static extern void CResultChannelInfoDecodeErrorZFree(long __res); // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_clone_ptr")] public static extern long CResultChannelInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_clone")] public static extern long CResult_ChannelInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelInfoDecodeErrorZ_clone")] public static extern long CResultChannelInfoDecodeErrorZClone(long _orig); // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_ok")] public static extern long CResult_RoutingFeesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_ok")] public static extern long CResultRoutingFeesDecodeErrorZOk(long _o); // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_err")] public static extern long CResult_RoutingFeesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_err")] public static extern long CResultRoutingFeesDecodeErrorZErr(long _e); // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_is_ok")] public static extern bool CResult_RoutingFeesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_is_ok")] public static extern bool CResultRoutingFeesDecodeErrorZIsOk(long _o); // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_free")] public static extern void CResult_RoutingFeesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_free")] public static extern void CResultRoutingFeesDecodeErrorZFree(long __res); // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_clone_ptr")] public static extern long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_clone_ptr")] public static extern long CResultRoutingFeesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_clone")] public static extern long CResult_RoutingFeesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RoutingFeesDecodeErrorZ_clone")] public static extern long CResultRoutingFeesDecodeErrorZClone(long _orig); // void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_SocketAddressZ_free")] public static extern void CVec_SocketAddressZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_SocketAddressZ_free")] public static extern void CVecSocketAddressZFree(long __res); // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_ok")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_ok")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZOk(long _o); // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_err")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_err")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZErr(long _e); // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok")] public static extern bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok")] public static extern bool CResultNodeAnnouncementInfoDecodeErrorZIsOk(long _o); // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_free")] public static extern void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_free")] public static extern void CResultNodeAnnouncementInfoDecodeErrorZFree(long __res); // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_clone")] public static extern long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementInfoDecodeErrorZ_clone")] public static extern long CResultNodeAnnouncementInfoDecodeErrorZClone(long _orig); // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_ok")] public static extern long CResult_NodeAliasDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_ok")] public static extern long CResultNodeAliasDecodeErrorZOk(long _o); // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_err")] public static extern long CResult_NodeAliasDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_err")] public static extern long CResultNodeAliasDecodeErrorZErr(long _e); // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_is_ok")] public static extern bool CResult_NodeAliasDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_is_ok")] public static extern bool CResultNodeAliasDecodeErrorZIsOk(long _o); // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_free")] public static extern void CResult_NodeAliasDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_free")] public static extern void CResultNodeAliasDecodeErrorZFree(long __res); // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeAliasDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_clone_ptr")] public static extern long CResultNodeAliasDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_clone")] public static extern long CResult_NodeAliasDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAliasDecodeErrorZ_clone")] public static extern long CResultNodeAliasDecodeErrorZClone(long _orig); // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_ok")] public static extern long CResult_NodeInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_ok")] public static extern long CResultNodeInfoDecodeErrorZOk(long _o); // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_err")] public static extern long CResult_NodeInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_err")] public static extern long CResultNodeInfoDecodeErrorZErr(long _e); // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_is_ok")] public static extern bool CResult_NodeInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_is_ok")] public static extern bool CResultNodeInfoDecodeErrorZIsOk(long _o); // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_free")] public static extern void CResult_NodeInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_free")] public static extern void CResultNodeInfoDecodeErrorZFree(long __res); // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_clone_ptr")] public static extern long CResultNodeInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_clone")] public static extern long CResult_NodeInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeInfoDecodeErrorZ_clone")] public static extern long CResultNodeInfoDecodeErrorZClone(long _orig); // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_ok")] public static extern long CResult_NetworkGraphDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_ok")] public static extern long CResultNetworkGraphDecodeErrorZOk(long _o); // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_err")] public static extern long CResult_NetworkGraphDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_err")] public static extern long CResultNetworkGraphDecodeErrorZErr(long _e); // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_is_ok")] public static extern bool CResult_NetworkGraphDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_is_ok")] public static extern bool CResultNetworkGraphDecodeErrorZIsOk(long _o); // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_free")] public static extern void CResult_NetworkGraphDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NetworkGraphDecodeErrorZ_free")] public static extern void CResultNetworkGraphDecodeErrorZFree(long __res); // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_some")] public static extern long COption_CVec_SocketAddressZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_some")] public static extern long COptionCVecSocketAddressZZSome(long _o); // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_none")] public static extern long COption_CVec_SocketAddressZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_none")] public static extern long COptionCVecSocketAddressZZNone(); // void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_free")] public static extern void COption_CVec_SocketAddressZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_free")] public static extern void COptionCVecSocketAddressZZFree(long __res); // uint64_t COption_CVec_SocketAddressZZ_clone_ptr(LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_clone_ptr")] public static extern long COption_CVec_SocketAddressZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_clone_ptr")] public static extern long COptionCVecSocketAddressZZClonePtr(long _arg); // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_clone")] public static extern long COption_CVec_SocketAddressZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_CVec_SocketAddressZZ_clone")] public static extern long COptionCVecSocketAddressZZClone(long _orig); // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_ok(struct LDKPendingHTLCInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_ok")] public static extern long CResult_PendingHTLCInfoInboundHTLCErrZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_ok")] public static extern long CResultPendingHTLCInfoInboundHTLCErrZOk(long _o); // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_err(struct LDKInboundHTLCErr e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_err")] public static extern long CResult_PendingHTLCInfoInboundHTLCErrZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_err")] public static extern long CResultPendingHTLCInfoInboundHTLCErrZErr(long _e); // bool CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(const struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok")] public static extern bool CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok")] public static extern bool CResultPendingHTLCInfoInboundHTLCErrZIsOk(long _o); // void CResult_PendingHTLCInfoInboundHTLCErrZ_free(struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_free")] public static extern void CResult_PendingHTLCInfoInboundHTLCErrZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoInboundHTLCErrZ_free")] public static extern void CResultPendingHTLCInfoInboundHTLCErrZFree(long __res); // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_HTLCOutputInCommitmentZ_free")] public static extern void CVec_HTLCOutputInCommitmentZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_HTLCOutputInCommitmentZ_free")] public static extern void CVecHTLCOutputInCommitmentZFree(long __res); // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_HTLCDescriptorZ_free")] public static extern void CVec_HTLCDescriptorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_HTLCDescriptorZ_free")] public static extern void CVecHTLCDescriptorZFree(long __res); // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UtxoZ_free")] public static extern void CVec_UtxoZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UtxoZ_free")] public static extern void CVecUtxoZFree(long __res); // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_some")] public static extern long COption_TxOutZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_some")] public static extern long COptionTxOutZSome(long _o); // struct LDKCOption_TxOutZ COption_TxOutZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_none")] public static extern long COption_TxOutZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_none")] public static extern long COptionTxOutZNone(); // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_free")] public static extern void COption_TxOutZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_free")] public static extern void COptionTxOutZFree(long __res); // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_clone_ptr")] public static extern long COption_TxOutZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_clone_ptr")] public static extern long COptionTxOutZClonePtr(long _arg); // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_clone")] public static extern long COption_TxOutZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TxOutZ_clone")] public static extern long COptionTxOutZClone(long _orig); // void CVec_InputZ_free(struct LDKCVec_InputZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_InputZ_free")] public static extern void CVec_InputZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_InputZ_free")] public static extern void CVecInputZFree(long __res); // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_ok")] public static extern long CResult_CoinSelectionNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_ok")] public static extern long CResultCoinSelectionNoneZOk(long _o); // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_err")] public static extern long CResult_CoinSelectionNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_err")] public static extern long CResultCoinSelectionNoneZErr(); // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_is_ok")] public static extern bool CResult_CoinSelectionNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_is_ok")] public static extern bool CResultCoinSelectionNoneZIsOk(long _o); // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_free")] public static extern void CResult_CoinSelectionNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_free")] public static extern void CResultCoinSelectionNoneZFree(long __res); // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_clone_ptr")] public static extern long CResult_CoinSelectionNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_clone_ptr")] public static extern long CResultCoinSelectionNoneZClonePtr(long _arg); // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_clone")] public static extern long CResult_CoinSelectionNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CoinSelectionNoneZ_clone")] public static extern long CResultCoinSelectionNoneZClone(long _orig); // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_ok")] public static extern long CResult_CVec_UtxoZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_ok")] public static extern long CResultCVecUtxoZNoneZOk(long _o); // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_err")] public static extern long CResult_CVec_UtxoZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_err")] public static extern long CResultCVecUtxoZNoneZErr(); // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_is_ok")] public static extern bool CResult_CVec_UtxoZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_is_ok")] public static extern bool CResultCVecUtxoZNoneZIsOk(long _o); // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_free")] public static extern void CResult_CVec_UtxoZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_free")] public static extern void CResultCVecUtxoZNoneZFree(long __res); // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_clone_ptr")] public static extern long CResult_CVec_UtxoZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_clone_ptr")] public static extern long CResultCVecUtxoZNoneZClonePtr(long _arg); // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_clone")] public static extern long CResult_CVec_UtxoZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_UtxoZNoneZ_clone")] public static extern long CResultCVecUtxoZNoneZClone(long _orig); // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_clone_ptr")] public static extern long C2Tuple_u64u16Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_clone_ptr")] public static extern long C2TupleU64U16ZClonePtr(long _arg); // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_clone")] public static extern long C2Tuple_u64u16Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_clone")] public static extern long C2TupleU64U16ZClone(long _orig); // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_new")] public static extern long C2Tuple_u64u16Z_new(long _a, short _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_new")] public static extern long C2TupleU64U16ZNew(long _a, short _b); // void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_free")] public static extern void C2Tuple_u64u16Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u64u16Z_free")] public static extern void C2TupleU64U16ZFree(long __res); // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_some")] public static extern long COption_C2Tuple_u64u16ZZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_some")] public static extern long COptionC2TupleU64U16ZzSome(long _o); // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_none")] public static extern long COption_C2Tuple_u64u16ZZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_none")] public static extern long COptionC2TupleU64U16ZzNone(); // void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_free")] public static extern void COption_C2Tuple_u64u16ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_free")] public static extern void COptionC2TupleU64U16ZzFree(long __res); // uint64_t COption_C2Tuple_u64u16ZZ_clone_ptr(LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_clone_ptr")] public static extern long COption_C2Tuple_u64u16ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_clone_ptr")] public static extern long COptionC2TupleU64U16ZzClonePtr(long _arg); // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_clone")] public static extern long COption_C2Tuple_u64u16ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_C2Tuple_u64u16ZZ_clone")] public static extern long COptionC2TupleU64U16ZzClone(long _orig); // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_some")] public static extern long COption_ChannelShutdownStateZ_some(ChannelShutdownState _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_some")] public static extern long COptionChannelShutdownStateZSome(ChannelShutdownState _o); // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_none")] public static extern long COption_ChannelShutdownStateZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_none")] public static extern long COptionChannelShutdownStateZNone(); // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_free")] public static extern void COption_ChannelShutdownStateZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_free")] public static extern void COptionChannelShutdownStateZFree(long __res); // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_clone_ptr")] public static extern long COption_ChannelShutdownStateZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_clone_ptr")] public static extern long COptionChannelShutdownStateZClonePtr(long _arg); // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_clone")] public static extern long COption_ChannelShutdownStateZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ChannelShutdownStateZ_clone")] public static extern long COptionChannelShutdownStateZClone(long _orig); // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_ok")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_ok")] public static extern long CResultThirtyTwoBytesAPIErrorZOk(long _o); // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_err")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_err")] public static extern long CResultThirtyTwoBytesAPIErrorZErr(long _e); // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_is_ok")] public static extern bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_is_ok")] public static extern bool CResultThirtyTwoBytesAPIErrorZIsOk(long _o); // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_free")] public static extern void CResult_ThirtyTwoBytesAPIErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_free")] public static extern void CResultThirtyTwoBytesAPIErrorZFree(long __res); // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr")] public static extern long CResultThirtyTwoBytesAPIErrorZClonePtr(long _arg); // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_clone")] public static extern long CResult_ThirtyTwoBytesAPIErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesAPIErrorZ_clone")] public static extern long CResultThirtyTwoBytesAPIErrorZClone(long _orig); // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RecentPaymentDetailsZ_free")] public static extern void CVec_RecentPaymentDetailsZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_RecentPaymentDetailsZ_free")] public static extern void CVecRecentPaymentDetailsZFree(long __res); // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_ok")] public static extern long CResult_NonePaymentSendFailureZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_ok")] public static extern long CResultNonePaymentSendFailureZOk(); // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_err")] public static extern long CResult_NonePaymentSendFailureZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_err")] public static extern long CResultNonePaymentSendFailureZErr(long _e); // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_is_ok")] public static extern bool CResult_NonePaymentSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_is_ok")] public static extern bool CResultNonePaymentSendFailureZIsOk(long _o); // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_free")] public static extern void CResult_NonePaymentSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_free")] public static extern void CResultNonePaymentSendFailureZFree(long __res); // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_clone_ptr")] public static extern long CResult_NonePaymentSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_clone_ptr")] public static extern long CResultNonePaymentSendFailureZClonePtr(long _arg); // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_clone")] public static extern long CResult_NonePaymentSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePaymentSendFailureZ_clone")] public static extern long CResultNonePaymentSendFailureZClone(long _orig); // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_ok")] public static extern long CResult_NoneRetryableSendFailureZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_ok")] public static extern long CResultNoneRetryableSendFailureZOk(); // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_err")] public static extern long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_err")] public static extern long CResultNoneRetryableSendFailureZErr(RetryableSendFailure _e); // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_is_ok")] public static extern bool CResult_NoneRetryableSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_is_ok")] public static extern bool CResultNoneRetryableSendFailureZIsOk(long _o); // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_free")] public static extern void CResult_NoneRetryableSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_free")] public static extern void CResultNoneRetryableSendFailureZFree(long __res); // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_clone_ptr")] public static extern long CResult_NoneRetryableSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_clone_ptr")] public static extern long CResultNoneRetryableSendFailureZClonePtr(long _arg); // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_clone")] public static extern long CResult_NoneRetryableSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneRetryableSendFailureZ_clone")] public static extern long CResultNoneRetryableSendFailureZClone(long _orig); // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_ok")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_ok")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZOk(long _o); // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_err")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_err")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZErr(long _e); // bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok")] public static extern bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok")] public static extern bool CResultThirtyTwoBytesPaymentSendFailureZIsOk(long _o); // void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_free")] public static extern void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_free")] public static extern void CResultThirtyTwoBytesPaymentSendFailureZFree(long __res); // uint64_t CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZClonePtr(long _arg); // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_clone")] public static extern long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesPaymentSendFailureZ_clone")] public static extern long CResultThirtyTwoBytesPaymentSendFailureZClone(long _orig); // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_ok")] public static extern long CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_ok")] public static extern long CResultThirtyTwoBytesRetryableSendFailureZOk(long _o); // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_err")] public static extern long CResult_ThirtyTwoBytesRetryableSendFailureZ_err(RetryableSendFailure _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_err")] public static extern long CResultThirtyTwoBytesRetryableSendFailureZErr(RetryableSendFailure _e); // bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok")] public static extern bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok")] public static extern bool CResultThirtyTwoBytesRetryableSendFailureZIsOk(long _o); // void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_free")] public static extern void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_free")] public static extern void CResultThirtyTwoBytesRetryableSendFailureZFree(long __res); // uint64_t CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr")] public static extern long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr")] public static extern long CResultThirtyTwoBytesRetryableSendFailureZClonePtr(long _arg); // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_clone")] public static extern long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ThirtyTwoBytesRetryableSendFailureZ_clone")] public static extern long CResultThirtyTwoBytesRetryableSendFailureZClone(long _orig); // uint64_t C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr")] public static extern long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr")] public static extern long C2TupleThirtyTwoBytesThirtyTwoBytesZClonePtr(long _arg); // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone")] public static extern long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone")] public static extern long C2TupleThirtyTwoBytesThirtyTwoBytesZClone(long _orig); // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new")] public static extern long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new")] public static extern long C2TupleThirtyTwoBytesThirtyTwoBytesZNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free")] public static extern void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free")] public static extern void C2TupleThirtyTwoBytesThirtyTwoBytesZFree(long __res); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZOk(long _o); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZErr(long _e); // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok")] public static extern bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok")] public static extern bool CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZIsOk(long _o); // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free")] public static extern void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free")] public static extern void CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZFree(long __res); // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZClonePtr(long _arg); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZClone(long _orig); // void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free")] public static extern void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free")] public static extern void CVecC2TupleThirtyTwoBytesThirtyTwoBytesZZFree(long __res); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZOk(long _o); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZErr(long _e); // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok")] public static extern bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok")] public static extern bool CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZIsOk(long _o); // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free")] public static extern void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free")] public static extern void CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZFree(long __res); // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZClonePtr(long _arg); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone")] public static extern long CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZClone(long _orig); // uint64_t C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr")] public static extern long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr")] public static extern long C2TupleThirtyTwoBytesPublicKeyZClonePtr(long _arg); // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone")] public static extern long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone")] public static extern long C2TupleThirtyTwoBytesPublicKeyZClone(long _orig); // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_new")] public static extern long C2Tuple_ThirtyTwoBytesPublicKeyZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_new")] public static extern long C2TupleThirtyTwoBytesPublicKeyZNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_free")] public static extern void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesPublicKeyZ_free")] public static extern void C2TupleThirtyTwoBytesPublicKeyZFree(long __res); // void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free")] public static extern void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free")] public static extern void CVecC2TupleThirtyTwoBytesPublicKeyZZFree(long __res); // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_some")] public static extern long COption_StrZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_some")] public static extern long COptionStrZSome(long _o); // struct LDKCOption_StrZ COption_StrZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_none")] public static extern long COption_StrZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_none")] public static extern long COptionStrZNone(); // void COption_StrZ_free(struct LDKCOption_StrZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_free")] public static extern void COption_StrZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_free")] public static extern void COptionStrZFree(long __res); // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_clone_ptr")] public static extern long COption_StrZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_clone_ptr")] public static extern long COptionStrZClonePtr(long _arg); // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_clone")] public static extern long COption_StrZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_StrZ_clone")] public static extern long COptionStrZClone(long _orig); // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_ok")] public static extern long CResult_NoneBolt12SemanticErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_ok")] public static extern long CResultNoneBolt12SemanticErrorZOk(); // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_err")] public static extern long CResult_NoneBolt12SemanticErrorZ_err(Bolt12SemanticError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_err")] public static extern long CResultNoneBolt12SemanticErrorZErr(Bolt12SemanticError _e); // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_is_ok")] public static extern bool CResult_NoneBolt12SemanticErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_is_ok")] public static extern bool CResultNoneBolt12SemanticErrorZIsOk(long _o); // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_free")] public static extern void CResult_NoneBolt12SemanticErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_free")] public static extern void CResultNoneBolt12SemanticErrorZFree(long __res); // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_clone_ptr")] public static extern long CResult_NoneBolt12SemanticErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_clone_ptr")] public static extern long CResultNoneBolt12SemanticErrorZClonePtr(long _arg); // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_clone")] public static extern long CResult_NoneBolt12SemanticErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt12SemanticErrorZ_clone")] public static extern long CResultNoneBolt12SemanticErrorZClone(long _orig); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZOk(long _o); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZErr(); // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok")] public static extern bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok")] public static extern bool CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZIsOk(long _o); // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free")] public static extern void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free")] public static extern void CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZFree(long __res); // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZClonePtr(long _arg); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone")] public static extern long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone")] public static extern long CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZClone(long _orig); // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_some")] public static extern long COption_OffersMessageZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_some")] public static extern long COptionOffersMessageZSome(long _o); // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_none")] public static extern long COption_OffersMessageZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_none")] public static extern long COptionOffersMessageZNone(); // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_free")] public static extern void COption_OffersMessageZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_free")] public static extern void COptionOffersMessageZFree(long __res); // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_clone_ptr")] public static extern long COption_OffersMessageZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_clone_ptr")] public static extern long COptionOffersMessageZClonePtr(long _arg); // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_clone")] public static extern long COption_OffersMessageZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OffersMessageZ_clone")] public static extern long COptionOffersMessageZClone(long _orig); // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr")] public static extern long C3TupleOffersMessageDestinationBlindedPathZClonePtr(long _arg); // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_clone")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_clone")] public static extern long C3TupleOffersMessageDestinationBlindedPathZClone(long _orig); // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_new")] public static extern long C3Tuple_OffersMessageDestinationBlindedPathZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_new")] public static extern long C3TupleOffersMessageDestinationBlindedPathZNew(long _a, long _b, long _c); // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_free")] public static extern void C3Tuple_OffersMessageDestinationBlindedPathZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OffersMessageDestinationBlindedPathZ_free")] public static extern void C3TupleOffersMessageDestinationBlindedPathZFree(long __res); // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free")] public static extern void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free")] public static extern void CVecC3TupleOffersMessageDestinationBlindedPathZZFree(long __res); // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZOk(long _o); // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_err")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_err")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZErr(long _e); // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok")] public static extern bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok")] public static extern bool CResultCounterpartyForwardingInfoDecodeErrorZIsOk(long _o); // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_free")] public static extern void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_free")] public static extern void CResultCounterpartyForwardingInfoDecodeErrorZFree(long __res); // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone")] public static extern long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone")] public static extern long CResultCounterpartyForwardingInfoDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_ok")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_ok")] public static extern long CResultChannelCounterpartyDecodeErrorZOk(long _o); // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_err")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_err")] public static extern long CResultChannelCounterpartyDecodeErrorZErr(long _e); // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_is_ok")] public static extern bool CResultChannelCounterpartyDecodeErrorZIsOk(long _o); // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_free")] public static extern void CResult_ChannelCounterpartyDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_free")] public static extern void CResultChannelCounterpartyDecodeErrorZFree(long __res); // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr")] public static extern long CResultChannelCounterpartyDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_clone")] public static extern long CResult_ChannelCounterpartyDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelCounterpartyDecodeErrorZ_clone")] public static extern long CResultChannelCounterpartyDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_ok")] public static extern long CResult_ChannelDetailsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_ok")] public static extern long CResultChannelDetailsDecodeErrorZOk(long _o); // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_err")] public static extern long CResult_ChannelDetailsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_err")] public static extern long CResultChannelDetailsDecodeErrorZErr(long _e); // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelDetailsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_is_ok")] public static extern bool CResultChannelDetailsDecodeErrorZIsOk(long _o); // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_free")] public static extern void CResult_ChannelDetailsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_free")] public static extern void CResultChannelDetailsDecodeErrorZFree(long __res); // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_clone_ptr")] public static extern long CResultChannelDetailsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_clone")] public static extern long CResult_ChannelDetailsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelDetailsDecodeErrorZ_clone")] public static extern long CResultChannelDetailsDecodeErrorZClone(long _orig); // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_ok")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_ok")] public static extern long CResultPhantomRouteHintsDecodeErrorZOk(long _o); // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_err")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_err")] public static extern long CResultPhantomRouteHintsDecodeErrorZErr(long _e); // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_is_ok")] public static extern bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_is_ok")] public static extern bool CResultPhantomRouteHintsDecodeErrorZIsOk(long _o); // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_free")] public static extern void CResult_PhantomRouteHintsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_free")] public static extern void CResultPhantomRouteHintsDecodeErrorZFree(long __res); // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr")] public static extern long CResultPhantomRouteHintsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_clone")] public static extern long CResult_PhantomRouteHintsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PhantomRouteHintsDecodeErrorZ_clone")] public static extern long CResultPhantomRouteHintsDecodeErrorZClone(long _orig); // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_ok(struct LDKBlindedForward o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_ok")] public static extern long CResult_BlindedForwardDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_ok")] public static extern long CResultBlindedForwardDecodeErrorZOk(long _o); // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_err")] public static extern long CResult_BlindedForwardDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_err")] public static extern long CResultBlindedForwardDecodeErrorZErr(long _e); // bool CResult_BlindedForwardDecodeErrorZ_is_ok(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedForwardDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_is_ok")] public static extern bool CResultBlindedForwardDecodeErrorZIsOk(long _o); // void CResult_BlindedForwardDecodeErrorZ_free(struct LDKCResult_BlindedForwardDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_free")] public static extern void CResult_BlindedForwardDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_free")] public static extern void CResultBlindedForwardDecodeErrorZFree(long __res); // uint64_t CResult_BlindedForwardDecodeErrorZ_clone_ptr(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedForwardDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedForwardDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_clone(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_clone")] public static extern long CResult_BlindedForwardDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedForwardDecodeErrorZ_clone")] public static extern long CResultBlindedForwardDecodeErrorZClone(long _orig); // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_ok(struct LDKPendingHTLCRouting o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_ok")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_ok")] public static extern long CResultPendingHTLCRoutingDecodeErrorZOk(long _o); // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_err")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_err")] public static extern long CResultPendingHTLCRoutingDecodeErrorZErr(long _e); // bool CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_is_ok")] public static extern bool CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_is_ok")] public static extern bool CResultPendingHTLCRoutingDecodeErrorZIsOk(long _o); // void CResult_PendingHTLCRoutingDecodeErrorZ_free(struct LDKCResult_PendingHTLCRoutingDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_free")] public static extern void CResult_PendingHTLCRoutingDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_free")] public static extern void CResultPendingHTLCRoutingDecodeErrorZFree(long __res); // uint64_t CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr")] public static extern long CResultPendingHTLCRoutingDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_clone")] public static extern long CResult_PendingHTLCRoutingDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCRoutingDecodeErrorZ_clone")] public static extern long CResultPendingHTLCRoutingDecodeErrorZClone(long _orig); // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_ok(struct LDKPendingHTLCInfo o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_ok")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_ok")] public static extern long CResultPendingHTLCInfoDecodeErrorZOk(long _o); // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_err")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_err")] public static extern long CResultPendingHTLCInfoDecodeErrorZErr(long _e); // bool CResult_PendingHTLCInfoDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_is_ok")] public static extern bool CResult_PendingHTLCInfoDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_is_ok")] public static extern bool CResultPendingHTLCInfoDecodeErrorZIsOk(long _o); // void CResult_PendingHTLCInfoDecodeErrorZ_free(struct LDKCResult_PendingHTLCInfoDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_free")] public static extern void CResult_PendingHTLCInfoDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_free")] public static extern void CResultPendingHTLCInfoDecodeErrorZFree(long __res); // uint64_t CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr")] public static extern long CResultPendingHTLCInfoDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_clone")] public static extern long CResult_PendingHTLCInfoDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PendingHTLCInfoDecodeErrorZ_clone")] public static extern long CResultPendingHTLCInfoDecodeErrorZClone(long _orig); // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_ok(enum LDKBlindedFailure o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_ok")] public static extern long CResult_BlindedFailureDecodeErrorZ_ok(BlindedFailure _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_ok")] public static extern long CResultBlindedFailureDecodeErrorZOk(BlindedFailure _o); // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_err")] public static extern long CResult_BlindedFailureDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_err")] public static extern long CResultBlindedFailureDecodeErrorZErr(long _e); // bool CResult_BlindedFailureDecodeErrorZ_is_ok(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedFailureDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_is_ok")] public static extern bool CResultBlindedFailureDecodeErrorZIsOk(long _o); // void CResult_BlindedFailureDecodeErrorZ_free(struct LDKCResult_BlindedFailureDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_free")] public static extern void CResult_BlindedFailureDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_free")] public static extern void CResultBlindedFailureDecodeErrorZFree(long __res); // uint64_t CResult_BlindedFailureDecodeErrorZ_clone_ptr(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedFailureDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedFailureDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_clone(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_clone")] public static extern long CResult_BlindedFailureDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedFailureDecodeErrorZ_clone")] public static extern long CResultBlindedFailureDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_ok")] public static extern long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_ok")] public static extern long CResultChannelShutdownStateDecodeErrorZOk(ChannelShutdownState _o); // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_err")] public static extern long CResult_ChannelShutdownStateDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_err")] public static extern long CResultChannelShutdownStateDecodeErrorZErr(long _e); // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_is_ok")] public static extern bool CResultChannelShutdownStateDecodeErrorZIsOk(long _o); // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_free")] public static extern void CResult_ChannelShutdownStateDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_free")] public static extern void CResultChannelShutdownStateDecodeErrorZFree(long __res); // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr")] public static extern long CResultChannelShutdownStateDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_clone")] public static extern long CResult_ChannelShutdownStateDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelShutdownStateDecodeErrorZ_clone")] public static extern long CResultChannelShutdownStateDecodeErrorZClone(long _orig); // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ChannelMonitorZ_free")] public static extern void CVec_ChannelMonitorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ChannelMonitorZ_free")] public static extern void CVecChannelMonitorZFree(long __res); // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_new")] public static extern long C2Tuple_ThirtyTwoBytesChannelManagerZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_new")] public static extern long C2TupleThirtyTwoBytesChannelManagerZNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_free")] public static extern void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_free")] public static extern void C2TupleThirtyTwoBytesChannelManagerZFree(long __res); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZOk(long _o); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err")] public static extern long CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZErr(long _e); // bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok")] public static extern bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok")] public static extern bool CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZIsOk(long _o); // void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free")] public static extern void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free")] public static extern void CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZFree(long __res); // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_ok")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_ok")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZOk(long _o); // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_err")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_err")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZErr(long _e); // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok")] public static extern bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok")] public static extern bool CResultMaxDustHTLCExposureDecodeErrorZIsOk(long _o); // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_free")] public static extern void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_free")] public static extern void CResultMaxDustHTLCExposureDecodeErrorZFree(long __res); // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZClonePtr(long _arg); // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_clone")] public static extern long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_MaxDustHTLCExposureDecodeErrorZ_clone")] public static extern long CResultMaxDustHTLCExposureDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_ok")] public static extern long CResult_ChannelConfigDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_ok")] public static extern long CResultChannelConfigDecodeErrorZOk(long _o); // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_err")] public static extern long CResult_ChannelConfigDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_err")] public static extern long CResultChannelConfigDecodeErrorZErr(long _e); // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelConfigDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_is_ok")] public static extern bool CResultChannelConfigDecodeErrorZIsOk(long _o); // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_free")] public static extern void CResult_ChannelConfigDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_free")] public static extern void CResultChannelConfigDecodeErrorZFree(long __res); // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_clone_ptr")] public static extern long CResultChannelConfigDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_clone")] public static extern long CResult_ChannelConfigDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelConfigDecodeErrorZ_clone")] public static extern long CResultChannelConfigDecodeErrorZClone(long _orig); // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_some")] public static extern long COption_MaxDustHTLCExposureZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_some")] public static extern long COptionMaxDustHTLCExposureZSome(long _o); // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_none")] public static extern long COption_MaxDustHTLCExposureZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_none")] public static extern long COptionMaxDustHTLCExposureZNone(); // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_free")] public static extern void COption_MaxDustHTLCExposureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_free")] public static extern void COptionMaxDustHTLCExposureZFree(long __res); // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_clone_ptr")] public static extern long COption_MaxDustHTLCExposureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_clone_ptr")] public static extern long COptionMaxDustHTLCExposureZClonePtr(long _arg); // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_clone")] public static extern long COption_MaxDustHTLCExposureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MaxDustHTLCExposureZ_clone")] public static extern long COptionMaxDustHTLCExposureZClone(long _orig); // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_some")] public static extern long COption_APIErrorZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_some")] public static extern long COptionAPIErrorZSome(long _o); // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_none")] public static extern long COption_APIErrorZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_none")] public static extern long COptionAPIErrorZNone(); // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_free")] public static extern void COption_APIErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_free")] public static extern void COptionAPIErrorZFree(long __res); // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_clone_ptr")] public static extern long COption_APIErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_clone_ptr")] public static extern long COptionAPIErrorZClonePtr(long _arg); // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_clone")] public static extern long COption_APIErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_APIErrorZ_clone")] public static extern long COptionAPIErrorZClone(long _orig); // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_ok")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_ok")] public static extern long CResultCOptionAPIErrorZDecodeErrorZOk(long _o); // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_err")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_err")] public static extern long CResultCOptionAPIErrorZDecodeErrorZErr(long _e); // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionAPIErrorZDecodeErrorZIsOk(long _o); // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_free")] public static extern void CResult_COption_APIErrorZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_free")] public static extern void CResultCOptionAPIErrorZDecodeErrorZFree(long __res); // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionAPIErrorZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_clone")] public static extern long CResult_COption_APIErrorZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_APIErrorZDecodeErrorZ_clone")] public static extern long CResultCOptionAPIErrorZDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_ok")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_ok")] public static extern long CResultChannelMonitorUpdateDecodeErrorZOk(long _o); // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_err")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_err")] public static extern long CResultChannelMonitorUpdateDecodeErrorZErr(long _e); // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok")] public static extern bool CResultChannelMonitorUpdateDecodeErrorZIsOk(long _o); // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_free")] public static extern void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_free")] public static extern void CResultChannelMonitorUpdateDecodeErrorZFree(long __res); // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr")] public static extern long CResultChannelMonitorUpdateDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_clone")] public static extern long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelMonitorUpdateDecodeErrorZ_clone")] public static extern long CResultChannelMonitorUpdateDecodeErrorZClone(long _orig); // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_some")] public static extern long COption_MonitorEventZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_some")] public static extern long COptionMonitorEventZSome(long _o); // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_none")] public static extern long COption_MonitorEventZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_none")] public static extern long COptionMonitorEventZNone(); // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_free")] public static extern void COption_MonitorEventZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_free")] public static extern void COptionMonitorEventZFree(long __res); // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_clone_ptr")] public static extern long COption_MonitorEventZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_clone_ptr")] public static extern long COptionMonitorEventZClonePtr(long _arg); // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_clone")] public static extern long COption_MonitorEventZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_MonitorEventZ_clone")] public static extern long COptionMonitorEventZClone(long _orig); // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_ok")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_ok")] public static extern long CResultCOptionMonitorEventZDecodeErrorZOk(long _o); // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_err")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_err")] public static extern long CResultCOptionMonitorEventZDecodeErrorZErr(long _e); // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionMonitorEventZDecodeErrorZIsOk(long _o); // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_free")] public static extern void CResult_COption_MonitorEventZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_free")] public static extern void CResultCOptionMonitorEventZDecodeErrorZFree(long __res); // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionMonitorEventZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_clone")] public static extern long CResult_COption_MonitorEventZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_MonitorEventZDecodeErrorZ_clone")] public static extern long CResultCOptionMonitorEventZDecodeErrorZClone(long _orig); // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_ok")] public static extern long CResult_HTLCUpdateDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_ok")] public static extern long CResultHTLCUpdateDecodeErrorZOk(long _o); // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_err")] public static extern long CResult_HTLCUpdateDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_err")] public static extern long CResultHTLCUpdateDecodeErrorZErr(long _e); // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_is_ok")] public static extern bool CResult_HTLCUpdateDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_is_ok")] public static extern bool CResultHTLCUpdateDecodeErrorZIsOk(long _o); // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_free")] public static extern void CResult_HTLCUpdateDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_free")] public static extern void CResultHTLCUpdateDecodeErrorZFree(long __res); // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_clone_ptr")] public static extern long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_clone_ptr")] public static extern long CResultHTLCUpdateDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_clone")] public static extern long CResult_HTLCUpdateDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCUpdateDecodeErrorZ_clone")] public static extern long CResultHTLCUpdateDecodeErrorZClone(long _orig); // uint64_t C2Tuple_OutPointCVec_u8ZZ_clone_ptr(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_clone_ptr")] public static extern long C2Tuple_OutPointCVec_u8ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_clone_ptr")] public static extern long C2TupleOutPointCVecU8ZzClonePtr(long _arg); // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_clone")] public static extern long C2Tuple_OutPointCVec_u8ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_clone")] public static extern long C2TupleOutPointCVecU8ZzClone(long _orig); // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_new")] public static extern long C2Tuple_OutPointCVec_u8ZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_new")] public static extern long C2TupleOutPointCVecU8ZzNew(long _a, long _b); // void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_free")] public static extern void C2Tuple_OutPointCVec_u8ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_u8ZZ_free")] public static extern void C2TupleOutPointCVecU8ZzFree(long __res); // uint64_t C2Tuple_u32CVec_u8ZZ_clone_ptr(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_clone_ptr")] public static extern long C2Tuple_u32CVec_u8ZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_clone_ptr")] public static extern long C2TupleU32CvecU8ZzClonePtr(long _arg); // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_clone")] public static extern long C2Tuple_u32CVec_u8ZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_clone")] public static extern long C2TupleU32CvecU8ZzClone(long _orig); // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_new")] public static extern long C2Tuple_u32CVec_u8ZZ_new(int _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_new")] public static extern long C2TupleU32CvecU8ZzNew(int _a, long _b); // void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_free")] public static extern void C2Tuple_u32CVec_u8ZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32CVec_u8ZZ_free")] public static extern void C2TupleU32CvecU8ZzFree(long __res); // void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u32CVec_u8ZZZ_free")] public static extern void CVec_C2Tuple_u32CVec_u8ZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u32CVec_u8ZZZ_free")] public static extern void CVecC2TupleU32CvecU8ZzzFree(long __res); // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzClonePtr(long _arg); // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzClone(long _orig); // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free")] public static extern void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free")] public static extern void C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzFree(long __res); // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free")] public static extern void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free")] public static extern void CVecC2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzzFree(long __res); // void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_CommitmentTransactionZ_free")] public static extern void CVec_CommitmentTransactionZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_CommitmentTransactionZ_free")] public static extern void CVecCommitmentTransactionZFree(long __res); // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_TransactionZ_free")] public static extern void CVec_TransactionZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_TransactionZ_free")] public static extern void CVecTransactionZFree(long __res); // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_clone_ptr")] public static extern long C2Tuple_u32TxOutZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_clone_ptr")] public static extern long C2TupleU32TxoutzClonePtr(long _arg); // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_clone")] public static extern long C2Tuple_u32TxOutZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_clone")] public static extern long C2TupleU32TxoutzClone(long _orig); // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_new")] public static extern long C2Tuple_u32TxOutZ_new(int _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_new")] public static extern long C2TupleU32TxoutzNew(int _a, long _b); // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_free")] public static extern void C2Tuple_u32TxOutZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_u32TxOutZ_free")] public static extern void C2TupleU32TxoutzFree(long __res); // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u32TxOutZZ_free")] public static extern void CVec_C2Tuple_u32TxOutZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_u32TxOutZZ_free")] public static extern void CVecC2TupleU32TxoutzzFree(long __res); // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzClonePtr(long _arg); // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzClone(long _orig); // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new")] public static extern long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new")] public static extern long C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free")] public static extern void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free")] public static extern void C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzFree(long __res); // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free")] public static extern void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free")] public static extern void CVecC2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzzFree(long __res); // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BalanceZ_free")] public static extern void CVec_BalanceZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_BalanceZ_free")] public static extern void CVecBalanceZFree(long __res); // uint64_t C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZClonePtr(long _arg); // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZClone(long _orig); // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_new")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_new")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZNew(long _a, long _b); // void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_free")] public static extern void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_free")] public static extern void C2TupleThirtyTwoBytesChannelMonitorZFree(long __res); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZOk(long _o); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZErr(long _e); // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok")] public static extern bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok")] public static extern bool CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZIsOk(long _o); // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free")] public static extern void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free")] public static extern void CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZFree(long __res); // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZClone(long _orig); // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_clone_ptr")] public static extern long C2Tuple_PublicKeyTypeZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_clone_ptr")] public static extern long C2TuplePublicKeyTypeZClonePtr(long _arg); // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_clone")] public static extern long C2Tuple_PublicKeyTypeZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_clone")] public static extern long C2TuplePublicKeyTypeZClone(long _orig); // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_new")] public static extern long C2Tuple_PublicKeyTypeZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_new")] public static extern long C2TuplePublicKeyTypeZNew(long _a, long _b); // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_free")] public static extern void C2Tuple_PublicKeyTypeZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyTypeZ_free")] public static extern void C2TuplePublicKeyTypeZFree(long __res); // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyTypeZZ_free")] public static extern void CVec_C2Tuple_PublicKeyTypeZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyTypeZZ_free")] public static extern void CVecC2TuplePublicKeyTypeZZFree(long __res); // uint64_t C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr")] public static extern long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr")] public static extern long C2TuplePublicKeyCVecSocketAddressZZClonePtr(long _arg); // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_clone")] public static extern long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_clone")] public static extern long C2TuplePublicKeyCVecSocketAddressZZClone(long _orig); // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCVec_SocketAddressZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_new")] public static extern long C2Tuple_PublicKeyCVec_SocketAddressZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_new")] public static extern long C2TuplePublicKeyCVecSocketAddressZZNew(long _a, long _b); // void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_free")] public static extern void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCVec_SocketAddressZZ_free")] public static extern void C2TuplePublicKeyCVecSocketAddressZZFree(long __res); // void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free")] public static extern void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free")] public static extern void CVecC2TuplePublicKeyCVecSocketAddressZZZFree(long __res); // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_some(struct LDKOnionMessageContents o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_some")] public static extern long COption_OnionMessageContentsZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_some")] public static extern long COptionOnionMessageContentsZSome(long _o); // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_none")] public static extern long COption_OnionMessageContentsZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_none")] public static extern long COptionOnionMessageContentsZNone(); // void COption_OnionMessageContentsZ_free(struct LDKCOption_OnionMessageContentsZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_free")] public static extern void COption_OnionMessageContentsZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_free")] public static extern void COptionOnionMessageContentsZFree(long __res); // uint64_t COption_OnionMessageContentsZ_clone_ptr(LDKCOption_OnionMessageContentsZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_clone_ptr")] public static extern long COption_OnionMessageContentsZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_clone_ptr")] public static extern long COptionOnionMessageContentsZClonePtr(long _arg); // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_clone(const struct LDKCOption_OnionMessageContentsZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_clone")] public static extern long COption_OnionMessageContentsZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_OnionMessageContentsZ_clone")] public static extern long COptionOnionMessageContentsZClone(long _orig); // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_OnionMessageContentsZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_ok")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_ok")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZOk(long _o); // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_err")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_err")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZErr(long _e); // bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionOnionMessageContentsZDecodeErrorZIsOk(long _o); // void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_free")] public static extern void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_free")] public static extern void CResultCOptionOnionMessageContentsZDecodeErrorZFree(long __res); // uint64_t CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_clone")] public static extern long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_OnionMessageContentsZDecodeErrorZ_clone")] public static extern long CResultCOptionOnionMessageContentsZDecodeErrorZClone(long _orig); // uint64_t C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZClonePtr(long _arg); // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZClone(long _orig); // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(struct LDKOnionMessageContents a, struct LDKDestination b, struct LDKBlindedPath c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new")] public static extern long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new")] public static extern long C3TupleOnionMessageContentsDestinationBlindedPathZNew(long _a, long _b, long _c); // void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free")] public static extern void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free")] public static extern void C3TupleOnionMessageContentsDestinationBlindedPathZFree(long __res); // void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free")] public static extern void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free")] public static extern void CVecC3TupleOnionMessageContentsDestinationBlindedPathZZFree(long __res); // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_some")] public static extern long COption_TypeZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_some")] public static extern long COptionTypeZSome(long _o); // struct LDKCOption_TypeZ COption_TypeZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_none")] public static extern long COption_TypeZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_none")] public static extern long COptionTypeZNone(); // void COption_TypeZ_free(struct LDKCOption_TypeZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_free")] public static extern void COption_TypeZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_free")] public static extern void COptionTypeZFree(long __res); // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_clone_ptr")] public static extern long COption_TypeZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_clone_ptr")] public static extern long COptionTypeZClonePtr(long _arg); // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_clone")] public static extern long COption_TypeZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_TypeZ_clone")] public static extern long COptionTypeZClone(long _orig); // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_ok")] public static extern long CResult_COption_TypeZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_ok")] public static extern long CResultCOptionTypeZDecodeErrorZOk(long _o); // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_err")] public static extern long CResult_COption_TypeZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_err")] public static extern long CResultCOptionTypeZDecodeErrorZErr(long _e); // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_TypeZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionTypeZDecodeErrorZIsOk(long _o); // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_free")] public static extern void CResult_COption_TypeZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_free")] public static extern void CResultCOptionTypeZDecodeErrorZFree(long __res); // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionTypeZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_clone")] public static extern long CResult_COption_TypeZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_TypeZDecodeErrorZ_clone")] public static extern long CResultCOptionTypeZDecodeErrorZClone(long _orig); // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_some")] public static extern long COption_SocketAddressZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_some")] public static extern long COptionSocketAddressZSome(long _o); // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_none")] public static extern long COption_SocketAddressZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_none")] public static extern long COptionSocketAddressZNone(); // void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_free")] public static extern void COption_SocketAddressZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_free")] public static extern void COptionSocketAddressZFree(long __res); // uint64_t COption_SocketAddressZ_clone_ptr(LDKCOption_SocketAddressZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_clone_ptr")] public static extern long COption_SocketAddressZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_clone_ptr")] public static extern long COptionSocketAddressZClonePtr(long _arg); // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_clone")] public static extern long COption_SocketAddressZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SocketAddressZ_clone")] public static extern long COptionSocketAddressZClone(long _orig); // uint64_t C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr")] public static extern long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr")] public static extern long C2TuplePublicKeyCOptionSocketAddressZZClonePtr(long _arg); // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone")] public static extern long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone")] public static extern long C2TuplePublicKeyCOptionSocketAddressZZClone(long _orig); // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_new")] public static extern long C2Tuple_PublicKeyCOption_SocketAddressZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_new")] public static extern long C2TuplePublicKeyCOptionSocketAddressZZNew(long _a, long _b); // void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_free")] public static extern void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_PublicKeyCOption_SocketAddressZZ_free")] public static extern void C2TuplePublicKeyCOptionSocketAddressZZFree(long __res); // void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free")] public static extern void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free")] public static extern void CVecC2TuplePublicKeyCOptionSocketAddressZZZFree(long __res); // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_ok")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_ok")] public static extern long CResultCVecU8ZpeerhandleerrorzOk(long _o); // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_err")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_err")] public static extern long CResultCVecU8ZpeerhandleerrorzErr(long _e); // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_is_ok")] public static extern bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_is_ok")] public static extern bool CResultCVecU8ZpeerhandleerrorzIsOk(long _o); // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_free")] public static extern void CResult_CVec_u8ZPeerHandleErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_free")] public static extern void CResultCVecU8ZpeerhandleerrorzFree(long __res); // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr")] public static extern long CResultCVecU8ZpeerhandleerrorzClonePtr(long _arg); // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_clone")] public static extern long CResult_CVec_u8ZPeerHandleErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZPeerHandleErrorZ_clone")] public static extern long CResultCVecU8ZpeerhandleerrorzClone(long _orig); // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_ok")] public static extern long CResult_NonePeerHandleErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_ok")] public static extern long CResultNonePeerHandleErrorZOk(); // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_err")] public static extern long CResult_NonePeerHandleErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_err")] public static extern long CResultNonePeerHandleErrorZErr(long _e); // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_is_ok")] public static extern bool CResult_NonePeerHandleErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_is_ok")] public static extern bool CResultNonePeerHandleErrorZIsOk(long _o); // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_free")] public static extern void CResult_NonePeerHandleErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_free")] public static extern void CResultNonePeerHandleErrorZFree(long __res); // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_clone_ptr")] public static extern long CResult_NonePeerHandleErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_clone_ptr")] public static extern long CResultNonePeerHandleErrorZClonePtr(long _arg); // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_clone")] public static extern long CResult_NonePeerHandleErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NonePeerHandleErrorZ_clone")] public static extern long CResultNonePeerHandleErrorZClone(long _orig); // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_ok")] public static extern long CResult_boolPeerHandleErrorZ_ok(bool _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_ok")] public static extern long CResultBoolpeerhandleerrorzOk(bool _o); // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_err")] public static extern long CResult_boolPeerHandleErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_err")] public static extern long CResultBoolpeerhandleerrorzErr(long _e); // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_is_ok")] public static extern bool CResult_boolPeerHandleErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_is_ok")] public static extern bool CResultBoolpeerhandleerrorzIsOk(long _o); // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_free")] public static extern void CResult_boolPeerHandleErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_free")] public static extern void CResultBoolpeerhandleerrorzFree(long __res); // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_clone_ptr")] public static extern long CResult_boolPeerHandleErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_clone_ptr")] public static extern long CResultBoolpeerhandleerrorzClonePtr(long _arg); // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_clone")] public static extern long CResult_boolPeerHandleErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_boolPeerHandleErrorZ_clone")] public static extern long CResultBoolpeerhandleerrorzClone(long _orig); // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_ok")] public static extern long CResult_u32GraphSyncErrorZ_ok(int _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_ok")] public static extern long CResultU32GraphsyncerrorzOk(int _o); // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_err")] public static extern long CResult_u32GraphSyncErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_err")] public static extern long CResultU32GraphsyncerrorzErr(long _e); // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_is_ok")] public static extern bool CResult_u32GraphSyncErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_is_ok")] public static extern bool CResultU32GraphsyncerrorzIsOk(long _o); // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_free")] public static extern void CResult_u32GraphSyncErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_u32GraphSyncErrorZ_free")] public static extern void CResultU32GraphsyncerrorzFree(long __res); // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_ok")] public static extern long CResult_CVec_u8ZIOErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_ok")] public static extern long CResultCVecU8ZioerrorzOk(long _o); // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_err")] public static extern long CResult_CVec_u8ZIOErrorZ_err(IOError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_err")] public static extern long CResultCVecU8ZioerrorzErr(IOError _e); // bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_is_ok")] public static extern bool CResult_CVec_u8ZIOErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_is_ok")] public static extern bool CResultCVecU8ZioerrorzIsOk(long _o); // void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_free")] public static extern void CResult_CVec_u8ZIOErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_free")] public static extern void CResultCVecU8ZioerrorzFree(long __res); // uint64_t CResult_CVec_u8ZIOErrorZ_clone_ptr(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_clone_ptr")] public static extern long CResult_CVec_u8ZIOErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_clone_ptr")] public static extern long CResultCVecU8ZioerrorzClonePtr(long _arg); // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_clone")] public static extern long CResult_CVec_u8ZIOErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_u8ZIOErrorZ_clone")] public static extern long CResultCVecU8ZioerrorzClone(long _orig); // void CVec_StrZ_free(struct LDKCVec_StrZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_StrZ_free")] public static extern void CVec_StrZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_StrZ_free")] public static extern void CVecStrZFree(long __res); // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_ok")] public static extern long CResult_CVec_StrZIOErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_ok")] public static extern long CResultCVecStrZIOErrorZOk(long _o); // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_err")] public static extern long CResult_CVec_StrZIOErrorZ_err(IOError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_err")] public static extern long CResultCVecStrZIOErrorZErr(IOError _e); // bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_is_ok")] public static extern bool CResult_CVec_StrZIOErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_is_ok")] public static extern bool CResultCVecStrZIOErrorZIsOk(long _o); // void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_free")] public static extern void CResult_CVec_StrZIOErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_free")] public static extern void CResultCVecStrZIOErrorZFree(long __res); // uint64_t CResult_CVec_StrZIOErrorZ_clone_ptr(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_clone_ptr")] public static extern long CResult_CVec_StrZIOErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_clone_ptr")] public static extern long CResultCVecStrZIOErrorZClonePtr(long _arg); // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_clone")] public static extern long CResult_CVec_StrZIOErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_StrZIOErrorZ_clone")] public static extern long CResultCVecStrZIOErrorZClone(long _orig); // void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free")] public static extern void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free")] public static extern void CVecC2TupleThirtyTwoBytesChannelMonitorZZFree(long __res); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok")] public static extern long CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZOk(long _o); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(IOError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err")] public static extern long CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZErr(IOError _e); // bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok")] public static extern bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok")] public static extern bool CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZIsOk(long _o); // void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free")] public static extern void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free")] public static extern void CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZFree(long __res); // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr")] public static extern long CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZClonePtr(long _arg); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone")] public static extern long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone")] public static extern long CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZClone(long _orig); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZOk(long _o); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(IOError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZErr(IOError _e); // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok")] public static extern bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok")] public static extern bool CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZIsOk(long _o); // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free")] public static extern void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free")] public static extern void CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZFree(long __res); // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZClonePtr(long _arg); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone")] public static extern long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone")] public static extern long CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZClone(long _orig); // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_some")] public static extern long COption_SecretKeyZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_some")] public static extern long COptionSecretKeyZSome(long _o); // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_none")] public static extern long COption_SecretKeyZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_none")] public static extern long COptionSecretKeyZNone(); // void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_free")] public static extern void COption_SecretKeyZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_free")] public static extern void COptionSecretKeyZFree(long __res); // uint64_t COption_SecretKeyZ_clone_ptr(LDKCOption_SecretKeyZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_clone_ptr")] public static extern long COption_SecretKeyZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_clone_ptr")] public static extern long COptionSecretKeyZClonePtr(long _arg); // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_clone")] public static extern long COption_SecretKeyZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_SecretKeyZ_clone")] public static extern long COptionSecretKeyZClone(long _orig); // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_ok")] public static extern long CResult_VerifiedInvoiceRequestNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_ok")] public static extern long CResultVerifiedInvoiceRequestNoneZOk(long _o); // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_err")] public static extern long CResult_VerifiedInvoiceRequestNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_err")] public static extern long CResultVerifiedInvoiceRequestNoneZErr(); // bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_is_ok")] public static extern bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_is_ok")] public static extern bool CResultVerifiedInvoiceRequestNoneZIsOk(long _o); // void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_free")] public static extern void CResult_VerifiedInvoiceRequestNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_free")] public static extern void CResultVerifiedInvoiceRequestNoneZFree(long __res); // uint64_t CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_clone_ptr")] public static extern long CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_clone_ptr")] public static extern long CResultVerifiedInvoiceRequestNoneZClonePtr(long _arg); // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_clone")] public static extern long CResult_VerifiedInvoiceRequestNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_VerifiedInvoiceRequestNoneZ_clone")] public static extern long CResultVerifiedInvoiceRequestNoneZClone(long _orig); // enum LDKCOption_NoneZ COption_NoneZ_some(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_some")] public static extern COption_NoneZ COption_NoneZ_some(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_some")] public static extern COption_NoneZ COptionNoneZSome(); // enum LDKCOption_NoneZ COption_NoneZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_none")] public static extern COption_NoneZ COption_NoneZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_none")] public static extern COption_NoneZ COptionNoneZNone(); // void COption_NoneZ_free(enum LDKCOption_NoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_free")] public static extern void COption_NoneZ_free(COption_NoneZ __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_NoneZ_free")] public static extern void COptionNoneZFree(COption_NoneZ __res); // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_WitnessZ_free")] public static extern void CVec_WitnessZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_WitnessZ_free")] public static extern void CVecWitnessZFree(long __res); // struct LDKCOption_i64Z COption_i64Z_some(int64_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_some")] public static extern long COption_i64Z_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_some")] public static extern long COptionI64ZSome(long _o); // struct LDKCOption_i64Z COption_i64Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_none")] public static extern long COption_i64Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_none")] public static extern long COptionI64ZNone(); // void COption_i64Z_free(struct LDKCOption_i64Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_free")] public static extern void COption_i64Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_free")] public static extern void COptionI64ZFree(long __res); // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_clone_ptr")] public static extern long COption_i64Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_clone_ptr")] public static extern long COptionI64ZClonePtr(long _arg); // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_clone")] public static extern long COption_i64Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_i64Z_clone")] public static extern long COptionI64ZClone(long _orig); // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_ok")] public static extern long CResult_SocketAddressDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_ok")] public static extern long CResultSocketAddressDecodeErrorZOk(long _o); // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_err")] public static extern long CResult_SocketAddressDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_err")] public static extern long CResultSocketAddressDecodeErrorZErr(long _e); // bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_is_ok")] public static extern bool CResult_SocketAddressDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_is_ok")] public static extern bool CResultSocketAddressDecodeErrorZIsOk(long _o); // void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_free")] public static extern void CResult_SocketAddressDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_free")] public static extern void CResultSocketAddressDecodeErrorZFree(long __res); // uint64_t CResult_SocketAddressDecodeErrorZ_clone_ptr(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_clone_ptr")] public static extern long CResult_SocketAddressDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_clone_ptr")] public static extern long CResultSocketAddressDecodeErrorZClonePtr(long _arg); // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_clone")] public static extern long CResult_SocketAddressDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressDecodeErrorZ_clone")] public static extern long CResultSocketAddressDecodeErrorZClone(long _orig); // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_ok")] public static extern long CResult_SocketAddressSocketAddressParseErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_ok")] public static extern long CResultSocketAddressSocketAddressParseErrorZOk(long _o); // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_err")] public static extern long CResult_SocketAddressSocketAddressParseErrorZ_err(SocketAddressParseError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_err")] public static extern long CResultSocketAddressSocketAddressParseErrorZErr(SocketAddressParseError _e); // bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_is_ok")] public static extern bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_is_ok")] public static extern bool CResultSocketAddressSocketAddressParseErrorZIsOk(long _o); // void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_free")] public static extern void CResult_SocketAddressSocketAddressParseErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_free")] public static extern void CResultSocketAddressSocketAddressParseErrorZFree(long __res); // uint64_t CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr")] public static extern long CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr")] public static extern long CResultSocketAddressSocketAddressParseErrorZClonePtr(long _arg); // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_clone")] public static extern long CResult_SocketAddressSocketAddressParseErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SocketAddressSocketAddressParseErrorZ_clone")] public static extern long CResultSocketAddressSocketAddressParseErrorZClone(long _orig); // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateAddHTLCZ_free")] public static extern void CVec_UpdateAddHTLCZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateAddHTLCZ_free")] public static extern void CVecUpdateAddHTLCZFree(long __res); // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFulfillHTLCZ_free")] public static extern void CVec_UpdateFulfillHTLCZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFulfillHTLCZ_free")] public static extern void CVecUpdateFulfillHTLCZFree(long __res); // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFailHTLCZ_free")] public static extern void CVec_UpdateFailHTLCZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFailHTLCZ_free")] public static extern void CVecUpdateFailHTLCZFree(long __res); // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFailMalformedHTLCZ_free")] public static extern void CVec_UpdateFailMalformedHTLCZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_UpdateFailMalformedHTLCZ_free")] public static extern void CVecUpdateFailMalformedHTLCZFree(long __res); // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_ok")] public static extern long CResult_AcceptChannelDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_ok")] public static extern long CResultAcceptChannelDecodeErrorZOk(long _o); // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_err")] public static extern long CResult_AcceptChannelDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_err")] public static extern long CResultAcceptChannelDecodeErrorZErr(long _e); // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_is_ok")] public static extern bool CResult_AcceptChannelDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_is_ok")] public static extern bool CResultAcceptChannelDecodeErrorZIsOk(long _o); // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_free")] public static extern void CResult_AcceptChannelDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_free")] public static extern void CResultAcceptChannelDecodeErrorZFree(long __res); // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_clone_ptr")] public static extern long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_clone_ptr")] public static extern long CResultAcceptChannelDecodeErrorZClonePtr(long _arg); // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_clone")] public static extern long CResult_AcceptChannelDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelDecodeErrorZ_clone")] public static extern long CResultAcceptChannelDecodeErrorZClone(long _orig); // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_ok")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_ok")] public static extern long CResultAcceptChannelV2DecodeErrorZOk(long _o); // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_err")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_err")] public static extern long CResultAcceptChannelV2DecodeErrorZErr(long _e); // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_is_ok")] public static extern bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_is_ok")] public static extern bool CResultAcceptChannelV2DecodeErrorZIsOk(long _o); // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_free")] public static extern void CResult_AcceptChannelV2DecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_free")] public static extern void CResultAcceptChannelV2DecodeErrorZFree(long __res); // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_clone_ptr")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_clone_ptr")] public static extern long CResultAcceptChannelV2DecodeErrorZClonePtr(long _arg); // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_clone")] public static extern long CResult_AcceptChannelV2DecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AcceptChannelV2DecodeErrorZ_clone")] public static extern long CResultAcceptChannelV2DecodeErrorZClone(long _orig); // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_ok(struct LDKStfu o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_ok")] public static extern long CResult_StfuDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_ok")] public static extern long CResultStfuDecodeErrorZOk(long _o); // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_err")] public static extern long CResult_StfuDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_err")] public static extern long CResultStfuDecodeErrorZErr(long _e); // bool CResult_StfuDecodeErrorZ_is_ok(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_is_ok")] public static extern bool CResult_StfuDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_is_ok")] public static extern bool CResultStfuDecodeErrorZIsOk(long _o); // void CResult_StfuDecodeErrorZ_free(struct LDKCResult_StfuDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_free")] public static extern void CResult_StfuDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_free")] public static extern void CResultStfuDecodeErrorZFree(long __res); // uint64_t CResult_StfuDecodeErrorZ_clone_ptr(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_clone_ptr")] public static extern long CResult_StfuDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_clone_ptr")] public static extern long CResultStfuDecodeErrorZClonePtr(long _arg); // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_clone(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_clone")] public static extern long CResult_StfuDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StfuDecodeErrorZ_clone")] public static extern long CResultStfuDecodeErrorZClone(long _orig); // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_ok(struct LDKSplice o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_ok")] public static extern long CResult_SpliceDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_ok")] public static extern long CResultSpliceDecodeErrorZOk(long _o); // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_err")] public static extern long CResult_SpliceDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_err")] public static extern long CResultSpliceDecodeErrorZErr(long _e); // bool CResult_SpliceDecodeErrorZ_is_ok(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_is_ok")] public static extern bool CResult_SpliceDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_is_ok")] public static extern bool CResultSpliceDecodeErrorZIsOk(long _o); // void CResult_SpliceDecodeErrorZ_free(struct LDKCResult_SpliceDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_free")] public static extern void CResult_SpliceDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_free")] public static extern void CResultSpliceDecodeErrorZFree(long __res); // uint64_t CResult_SpliceDecodeErrorZ_clone_ptr(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_clone_ptr")] public static extern long CResult_SpliceDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_clone_ptr")] public static extern long CResultSpliceDecodeErrorZClonePtr(long _arg); // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_clone(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_clone")] public static extern long CResult_SpliceDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceDecodeErrorZ_clone")] public static extern long CResultSpliceDecodeErrorZClone(long _orig); // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_ok(struct LDKSpliceAck o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_ok")] public static extern long CResult_SpliceAckDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_ok")] public static extern long CResultSpliceAckDecodeErrorZOk(long _o); // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_err")] public static extern long CResult_SpliceAckDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_err")] public static extern long CResultSpliceAckDecodeErrorZErr(long _e); // bool CResult_SpliceAckDecodeErrorZ_is_ok(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_is_ok")] public static extern bool CResult_SpliceAckDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_is_ok")] public static extern bool CResultSpliceAckDecodeErrorZIsOk(long _o); // void CResult_SpliceAckDecodeErrorZ_free(struct LDKCResult_SpliceAckDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_free")] public static extern void CResult_SpliceAckDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_free")] public static extern void CResultSpliceAckDecodeErrorZFree(long __res); // uint64_t CResult_SpliceAckDecodeErrorZ_clone_ptr(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_clone_ptr")] public static extern long CResult_SpliceAckDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_clone_ptr")] public static extern long CResultSpliceAckDecodeErrorZClonePtr(long _arg); // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_clone(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_clone")] public static extern long CResult_SpliceAckDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceAckDecodeErrorZ_clone")] public static extern long CResultSpliceAckDecodeErrorZClone(long _orig); // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_ok(struct LDKSpliceLocked o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_ok")] public static extern long CResult_SpliceLockedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_ok")] public static extern long CResultSpliceLockedDecodeErrorZOk(long _o); // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_err")] public static extern long CResult_SpliceLockedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_err")] public static extern long CResultSpliceLockedDecodeErrorZErr(long _e); // bool CResult_SpliceLockedDecodeErrorZ_is_ok(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_is_ok")] public static extern bool CResult_SpliceLockedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_is_ok")] public static extern bool CResultSpliceLockedDecodeErrorZIsOk(long _o); // void CResult_SpliceLockedDecodeErrorZ_free(struct LDKCResult_SpliceLockedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_free")] public static extern void CResult_SpliceLockedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_free")] public static extern void CResultSpliceLockedDecodeErrorZFree(long __res); // uint64_t CResult_SpliceLockedDecodeErrorZ_clone_ptr(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_clone_ptr")] public static extern long CResult_SpliceLockedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_clone_ptr")] public static extern long CResultSpliceLockedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_clone(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_clone")] public static extern long CResult_SpliceLockedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SpliceLockedDecodeErrorZ_clone")] public static extern long CResultSpliceLockedDecodeErrorZClone(long _orig); // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_ok")] public static extern long CResult_TxAddInputDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_ok")] public static extern long CResultTxAddInputDecodeErrorZOk(long _o); // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_err")] public static extern long CResult_TxAddInputDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_err")] public static extern long CResultTxAddInputDecodeErrorZErr(long _e); // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_is_ok")] public static extern bool CResult_TxAddInputDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_is_ok")] public static extern bool CResultTxAddInputDecodeErrorZIsOk(long _o); // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_free")] public static extern void CResult_TxAddInputDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_free")] public static extern void CResultTxAddInputDecodeErrorZFree(long __res); // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_clone_ptr")] public static extern long CResult_TxAddInputDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_clone_ptr")] public static extern long CResultTxAddInputDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_clone")] public static extern long CResult_TxAddInputDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddInputDecodeErrorZ_clone")] public static extern long CResultTxAddInputDecodeErrorZClone(long _orig); // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_ok")] public static extern long CResult_TxAddOutputDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_ok")] public static extern long CResultTxAddOutputDecodeErrorZOk(long _o); // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_err")] public static extern long CResult_TxAddOutputDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_err")] public static extern long CResultTxAddOutputDecodeErrorZErr(long _e); // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_is_ok")] public static extern bool CResult_TxAddOutputDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_is_ok")] public static extern bool CResultTxAddOutputDecodeErrorZIsOk(long _o); // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_free")] public static extern void CResult_TxAddOutputDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_free")] public static extern void CResultTxAddOutputDecodeErrorZFree(long __res); // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_clone_ptr")] public static extern long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_clone_ptr")] public static extern long CResultTxAddOutputDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_clone")] public static extern long CResult_TxAddOutputDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAddOutputDecodeErrorZ_clone")] public static extern long CResultTxAddOutputDecodeErrorZClone(long _orig); // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_ok")] public static extern long CResult_TxRemoveInputDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_ok")] public static extern long CResultTxRemoveInputDecodeErrorZOk(long _o); // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_err")] public static extern long CResult_TxRemoveInputDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_err")] public static extern long CResultTxRemoveInputDecodeErrorZErr(long _e); // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_is_ok")] public static extern bool CResult_TxRemoveInputDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_is_ok")] public static extern bool CResultTxRemoveInputDecodeErrorZIsOk(long _o); // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_free")] public static extern void CResult_TxRemoveInputDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_free")] public static extern void CResultTxRemoveInputDecodeErrorZFree(long __res); // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_clone_ptr")] public static extern long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_clone_ptr")] public static extern long CResultTxRemoveInputDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_clone")] public static extern long CResult_TxRemoveInputDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveInputDecodeErrorZ_clone")] public static extern long CResultTxRemoveInputDecodeErrorZClone(long _orig); // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_ok")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_ok")] public static extern long CResultTxRemoveOutputDecodeErrorZOk(long _o); // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_err")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_err")] public static extern long CResultTxRemoveOutputDecodeErrorZErr(long _e); // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_is_ok")] public static extern bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_is_ok")] public static extern bool CResultTxRemoveOutputDecodeErrorZIsOk(long _o); // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_free")] public static extern void CResult_TxRemoveOutputDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_free")] public static extern void CResultTxRemoveOutputDecodeErrorZFree(long __res); // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_clone_ptr")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_clone_ptr")] public static extern long CResultTxRemoveOutputDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_clone")] public static extern long CResult_TxRemoveOutputDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxRemoveOutputDecodeErrorZ_clone")] public static extern long CResultTxRemoveOutputDecodeErrorZClone(long _orig); // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_ok")] public static extern long CResult_TxCompleteDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_ok")] public static extern long CResultTxCompleteDecodeErrorZOk(long _o); // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_err")] public static extern long CResult_TxCompleteDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_err")] public static extern long CResultTxCompleteDecodeErrorZErr(long _e); // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_is_ok")] public static extern bool CResult_TxCompleteDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_is_ok")] public static extern bool CResultTxCompleteDecodeErrorZIsOk(long _o); // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_free")] public static extern void CResult_TxCompleteDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_free")] public static extern void CResultTxCompleteDecodeErrorZFree(long __res); // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_clone_ptr")] public static extern long CResult_TxCompleteDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_clone_ptr")] public static extern long CResultTxCompleteDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_clone")] public static extern long CResult_TxCompleteDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCompleteDecodeErrorZ_clone")] public static extern long CResultTxCompleteDecodeErrorZClone(long _orig); // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_ok")] public static extern long CResult_TxSignaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_ok")] public static extern long CResultTxSignaturesDecodeErrorZOk(long _o); // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_err")] public static extern long CResult_TxSignaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_err")] public static extern long CResultTxSignaturesDecodeErrorZErr(long _e); // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_is_ok")] public static extern bool CResult_TxSignaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_is_ok")] public static extern bool CResultTxSignaturesDecodeErrorZIsOk(long _o); // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_free")] public static extern void CResult_TxSignaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_free")] public static extern void CResultTxSignaturesDecodeErrorZFree(long __res); // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_clone_ptr")] public static extern long CResultTxSignaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_clone")] public static extern long CResult_TxSignaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxSignaturesDecodeErrorZ_clone")] public static extern long CResultTxSignaturesDecodeErrorZClone(long _orig); // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_ok")] public static extern long CResult_TxInitRbfDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_ok")] public static extern long CResultTxInitRbfDecodeErrorZOk(long _o); // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_err")] public static extern long CResult_TxInitRbfDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_err")] public static extern long CResultTxInitRbfDecodeErrorZErr(long _e); // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_is_ok")] public static extern bool CResult_TxInitRbfDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_is_ok")] public static extern bool CResultTxInitRbfDecodeErrorZIsOk(long _o); // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_free")] public static extern void CResult_TxInitRbfDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_free")] public static extern void CResultTxInitRbfDecodeErrorZFree(long __res); // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_clone_ptr")] public static extern long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_clone_ptr")] public static extern long CResultTxInitRbfDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_clone")] public static extern long CResult_TxInitRbfDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxInitRbfDecodeErrorZ_clone")] public static extern long CResultTxInitRbfDecodeErrorZClone(long _orig); // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_ok")] public static extern long CResult_TxAckRbfDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_ok")] public static extern long CResultTxAckRbfDecodeErrorZOk(long _o); // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_err")] public static extern long CResult_TxAckRbfDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_err")] public static extern long CResultTxAckRbfDecodeErrorZErr(long _e); // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_is_ok")] public static extern bool CResult_TxAckRbfDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_is_ok")] public static extern bool CResultTxAckRbfDecodeErrorZIsOk(long _o); // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_free")] public static extern void CResult_TxAckRbfDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_free")] public static extern void CResultTxAckRbfDecodeErrorZFree(long __res); // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_clone_ptr")] public static extern long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_clone_ptr")] public static extern long CResultTxAckRbfDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_clone")] public static extern long CResult_TxAckRbfDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAckRbfDecodeErrorZ_clone")] public static extern long CResultTxAckRbfDecodeErrorZClone(long _orig); // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_ok")] public static extern long CResult_TxAbortDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_ok")] public static extern long CResultTxAbortDecodeErrorZOk(long _o); // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_err")] public static extern long CResult_TxAbortDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_err")] public static extern long CResultTxAbortDecodeErrorZErr(long _e); // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_is_ok")] public static extern bool CResult_TxAbortDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_is_ok")] public static extern bool CResultTxAbortDecodeErrorZIsOk(long _o); // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_free")] public static extern void CResult_TxAbortDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_free")] public static extern void CResultTxAbortDecodeErrorZFree(long __res); // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_clone_ptr")] public static extern long CResult_TxAbortDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_clone_ptr")] public static extern long CResultTxAbortDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_clone")] public static extern long CResult_TxAbortDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxAbortDecodeErrorZ_clone")] public static extern long CResultTxAbortDecodeErrorZClone(long _orig); // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_ok")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_ok")] public static extern long CResultAnnouncementSignaturesDecodeErrorZOk(long _o); // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_err")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_err")] public static extern long CResultAnnouncementSignaturesDecodeErrorZErr(long _e); // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok")] public static extern bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok")] public static extern bool CResultAnnouncementSignaturesDecodeErrorZIsOk(long _o); // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_free")] public static extern void CResult_AnnouncementSignaturesDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_free")] public static extern void CResultAnnouncementSignaturesDecodeErrorZFree(long __res); // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr")] public static extern long CResultAnnouncementSignaturesDecodeErrorZClonePtr(long _arg); // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_clone")] public static extern long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_AnnouncementSignaturesDecodeErrorZ_clone")] public static extern long CResultAnnouncementSignaturesDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_ok")] public static extern long CResult_ChannelReestablishDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_ok")] public static extern long CResultChannelReestablishDecodeErrorZOk(long _o); // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_err")] public static extern long CResult_ChannelReestablishDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_err")] public static extern long CResultChannelReestablishDecodeErrorZErr(long _e); // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelReestablishDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_is_ok")] public static extern bool CResultChannelReestablishDecodeErrorZIsOk(long _o); // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_free")] public static extern void CResult_ChannelReestablishDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_free")] public static extern void CResultChannelReestablishDecodeErrorZFree(long __res); // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_clone_ptr")] public static extern long CResultChannelReestablishDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_clone")] public static extern long CResult_ChannelReestablishDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReestablishDecodeErrorZ_clone")] public static extern long CResultChannelReestablishDecodeErrorZClone(long _orig); // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_ok")] public static extern long CResult_ClosingSignedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_ok")] public static extern long CResultClosingSignedDecodeErrorZOk(long _o); // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_err")] public static extern long CResult_ClosingSignedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_err")] public static extern long CResultClosingSignedDecodeErrorZErr(long _e); // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_is_ok")] public static extern bool CResult_ClosingSignedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_is_ok")] public static extern bool CResultClosingSignedDecodeErrorZIsOk(long _o); // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_free")] public static extern void CResult_ClosingSignedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_free")] public static extern void CResultClosingSignedDecodeErrorZFree(long __res); // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_clone_ptr")] public static extern long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_clone_ptr")] public static extern long CResultClosingSignedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_clone")] public static extern long CResult_ClosingSignedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedDecodeErrorZ_clone")] public static extern long CResultClosingSignedDecodeErrorZClone(long _orig); // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZOk(long _o); // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_err")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_err")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZErr(long _e); // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok")] public static extern bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok")] public static extern bool CResultClosingSignedFeeRangeDecodeErrorZIsOk(long _o); // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_free")] public static extern void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_free")] public static extern void CResultClosingSignedFeeRangeDecodeErrorZFree(long __res); // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone")] public static extern long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone")] public static extern long CResultClosingSignedFeeRangeDecodeErrorZClone(long _orig); // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_ok")] public static extern long CResult_CommitmentSignedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_ok")] public static extern long CResultCommitmentSignedDecodeErrorZOk(long _o); // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_err")] public static extern long CResult_CommitmentSignedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_err")] public static extern long CResultCommitmentSignedDecodeErrorZErr(long _e); // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_is_ok")] public static extern bool CResult_CommitmentSignedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_is_ok")] public static extern bool CResultCommitmentSignedDecodeErrorZIsOk(long _o); // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_free")] public static extern void CResult_CommitmentSignedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_free")] public static extern void CResultCommitmentSignedDecodeErrorZFree(long __res); // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_clone_ptr")] public static extern long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_clone_ptr")] public static extern long CResultCommitmentSignedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_clone")] public static extern long CResult_CommitmentSignedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentSignedDecodeErrorZ_clone")] public static extern long CResultCommitmentSignedDecodeErrorZClone(long _orig); // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_ok")] public static extern long CResult_FundingCreatedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_ok")] public static extern long CResultFundingCreatedDecodeErrorZOk(long _o); // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_err")] public static extern long CResult_FundingCreatedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_err")] public static extern long CResultFundingCreatedDecodeErrorZErr(long _e); // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_is_ok")] public static extern bool CResult_FundingCreatedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_is_ok")] public static extern bool CResultFundingCreatedDecodeErrorZIsOk(long _o); // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_free")] public static extern void CResult_FundingCreatedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_free")] public static extern void CResultFundingCreatedDecodeErrorZFree(long __res); // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_clone_ptr")] public static extern long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_clone_ptr")] public static extern long CResultFundingCreatedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_clone")] public static extern long CResult_FundingCreatedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingCreatedDecodeErrorZ_clone")] public static extern long CResultFundingCreatedDecodeErrorZClone(long _orig); // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_ok")] public static extern long CResult_FundingSignedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_ok")] public static extern long CResultFundingSignedDecodeErrorZOk(long _o); // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_err")] public static extern long CResult_FundingSignedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_err")] public static extern long CResultFundingSignedDecodeErrorZErr(long _e); // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_is_ok")] public static extern bool CResult_FundingSignedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_is_ok")] public static extern bool CResultFundingSignedDecodeErrorZIsOk(long _o); // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_free")] public static extern void CResult_FundingSignedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_free")] public static extern void CResultFundingSignedDecodeErrorZFree(long __res); // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_clone_ptr")] public static extern long CResult_FundingSignedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_clone_ptr")] public static extern long CResultFundingSignedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_clone")] public static extern long CResult_FundingSignedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FundingSignedDecodeErrorZ_clone")] public static extern long CResultFundingSignedDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_ok")] public static extern long CResult_ChannelReadyDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_ok")] public static extern long CResultChannelReadyDecodeErrorZOk(long _o); // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_err")] public static extern long CResult_ChannelReadyDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_err")] public static extern long CResultChannelReadyDecodeErrorZErr(long _e); // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelReadyDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_is_ok")] public static extern bool CResultChannelReadyDecodeErrorZIsOk(long _o); // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_free")] public static extern void CResult_ChannelReadyDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_free")] public static extern void CResultChannelReadyDecodeErrorZFree(long __res); // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_clone_ptr")] public static extern long CResultChannelReadyDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_clone")] public static extern long CResult_ChannelReadyDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelReadyDecodeErrorZ_clone")] public static extern long CResultChannelReadyDecodeErrorZClone(long _orig); // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_ok")] public static extern long CResult_InitDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_ok")] public static extern long CResultInitDecodeErrorZOk(long _o); // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_err")] public static extern long CResult_InitDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_err")] public static extern long CResultInitDecodeErrorZErr(long _e); // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_is_ok")] public static extern bool CResult_InitDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_is_ok")] public static extern bool CResultInitDecodeErrorZIsOk(long _o); // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_free")] public static extern void CResult_InitDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_free")] public static extern void CResultInitDecodeErrorZFree(long __res); // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_clone_ptr")] public static extern long CResult_InitDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_clone_ptr")] public static extern long CResultInitDecodeErrorZClonePtr(long _arg); // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_clone")] public static extern long CResult_InitDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InitDecodeErrorZ_clone")] public static extern long CResultInitDecodeErrorZClone(long _orig); // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_ok")] public static extern long CResult_OpenChannelDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_ok")] public static extern long CResultOpenChannelDecodeErrorZOk(long _o); // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_err")] public static extern long CResult_OpenChannelDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_err")] public static extern long CResultOpenChannelDecodeErrorZErr(long _e); // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_is_ok")] public static extern bool CResult_OpenChannelDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_is_ok")] public static extern bool CResultOpenChannelDecodeErrorZIsOk(long _o); // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_free")] public static extern void CResult_OpenChannelDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_free")] public static extern void CResultOpenChannelDecodeErrorZFree(long __res); // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_clone_ptr")] public static extern long CResult_OpenChannelDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_clone_ptr")] public static extern long CResultOpenChannelDecodeErrorZClonePtr(long _arg); // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_clone")] public static extern long CResult_OpenChannelDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelDecodeErrorZ_clone")] public static extern long CResultOpenChannelDecodeErrorZClone(long _orig); // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_ok")] public static extern long CResult_OpenChannelV2DecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_ok")] public static extern long CResultOpenChannelV2DecodeErrorZOk(long _o); // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_err")] public static extern long CResult_OpenChannelV2DecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_err")] public static extern long CResultOpenChannelV2DecodeErrorZErr(long _e); // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_is_ok")] public static extern bool CResult_OpenChannelV2DecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_is_ok")] public static extern bool CResultOpenChannelV2DecodeErrorZIsOk(long _o); // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_free")] public static extern void CResult_OpenChannelV2DecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_free")] public static extern void CResultOpenChannelV2DecodeErrorZFree(long __res); // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_clone_ptr")] public static extern long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_clone_ptr")] public static extern long CResultOpenChannelV2DecodeErrorZClonePtr(long _arg); // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_clone")] public static extern long CResult_OpenChannelV2DecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OpenChannelV2DecodeErrorZ_clone")] public static extern long CResultOpenChannelV2DecodeErrorZClone(long _orig); // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_ok")] public static extern long CResult_RevokeAndACKDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_ok")] public static extern long CResultRevokeAndACKDecodeErrorZOk(long _o); // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_err")] public static extern long CResult_RevokeAndACKDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_err")] public static extern long CResultRevokeAndACKDecodeErrorZErr(long _e); // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_is_ok")] public static extern bool CResult_RevokeAndACKDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_is_ok")] public static extern bool CResultRevokeAndACKDecodeErrorZIsOk(long _o); // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_free")] public static extern void CResult_RevokeAndACKDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_free")] public static extern void CResultRevokeAndACKDecodeErrorZFree(long __res); // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_clone_ptr")] public static extern long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_clone_ptr")] public static extern long CResultRevokeAndACKDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_clone")] public static extern long CResult_RevokeAndACKDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevokeAndACKDecodeErrorZ_clone")] public static extern long CResultRevokeAndACKDecodeErrorZClone(long _orig); // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_ok")] public static extern long CResult_ShutdownDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_ok")] public static extern long CResultShutdownDecodeErrorZOk(long _o); // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_err")] public static extern long CResult_ShutdownDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_err")] public static extern long CResultShutdownDecodeErrorZErr(long _e); // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_is_ok")] public static extern bool CResult_ShutdownDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_is_ok")] public static extern bool CResultShutdownDecodeErrorZIsOk(long _o); // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_free")] public static extern void CResult_ShutdownDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_free")] public static extern void CResultShutdownDecodeErrorZFree(long __res); // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_clone_ptr")] public static extern long CResult_ShutdownDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_clone_ptr")] public static extern long CResultShutdownDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_clone")] public static extern long CResult_ShutdownDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownDecodeErrorZ_clone")] public static extern long CResultShutdownDecodeErrorZClone(long _orig); // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_ok")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_ok")] public static extern long CResultUpdateFailHTLCDecodeErrorZOk(long _o); // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_err")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_err")] public static extern long CResultUpdateFailHTLCDecodeErrorZErr(long _e); // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_is_ok")] public static extern bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_is_ok")] public static extern bool CResultUpdateFailHTLCDecodeErrorZIsOk(long _o); // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_free")] public static extern void CResult_UpdateFailHTLCDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_free")] public static extern void CResultUpdateFailHTLCDecodeErrorZFree(long __res); // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr")] public static extern long CResultUpdateFailHTLCDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_clone")] public static extern long CResult_UpdateFailHTLCDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailHTLCDecodeErrorZ_clone")] public static extern long CResultUpdateFailHTLCDecodeErrorZClone(long _orig); // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZOk(long _o); // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZErr(long _e); // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok")] public static extern bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok")] public static extern bool CResultUpdateFailMalformedHTLCDecodeErrorZIsOk(long _o); // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free")] public static extern void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free")] public static extern void CResultUpdateFailMalformedHTLCDecodeErrorZFree(long __res); // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone")] public static extern long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone")] public static extern long CResultUpdateFailMalformedHTLCDecodeErrorZClone(long _orig); // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_ok")] public static extern long CResult_UpdateFeeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_ok")] public static extern long CResultUpdateFeeDecodeErrorZOk(long _o); // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_err")] public static extern long CResult_UpdateFeeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_err")] public static extern long CResultUpdateFeeDecodeErrorZErr(long _e); // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_is_ok")] public static extern bool CResult_UpdateFeeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_is_ok")] public static extern bool CResultUpdateFeeDecodeErrorZIsOk(long _o); // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_free")] public static extern void CResult_UpdateFeeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_free")] public static extern void CResultUpdateFeeDecodeErrorZFree(long __res); // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_clone_ptr")] public static extern long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_clone_ptr")] public static extern long CResultUpdateFeeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_clone")] public static extern long CResult_UpdateFeeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFeeDecodeErrorZ_clone")] public static extern long CResultUpdateFeeDecodeErrorZClone(long _orig); // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_ok")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_ok")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZOk(long _o); // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_err")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_err")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZErr(long _e); // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok")] public static extern bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok")] public static extern bool CResultUpdateFulfillHTLCDecodeErrorZIsOk(long _o); // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_free")] public static extern void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_free")] public static extern void CResultUpdateFulfillHTLCDecodeErrorZFree(long __res); // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_clone")] public static extern long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateFulfillHTLCDecodeErrorZ_clone")] public static extern long CResultUpdateFulfillHTLCDecodeErrorZClone(long _orig); // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_ok(struct LDKOnionPacket o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_ok")] public static extern long CResult_OnionPacketDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_ok")] public static extern long CResultOnionPacketDecodeErrorZOk(long _o); // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_err")] public static extern long CResult_OnionPacketDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_err")] public static extern long CResultOnionPacketDecodeErrorZErr(long _e); // bool CResult_OnionPacketDecodeErrorZ_is_ok(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_is_ok")] public static extern bool CResult_OnionPacketDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_is_ok")] public static extern bool CResultOnionPacketDecodeErrorZIsOk(long _o); // void CResult_OnionPacketDecodeErrorZ_free(struct LDKCResult_OnionPacketDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_free")] public static extern void CResult_OnionPacketDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_free")] public static extern void CResultOnionPacketDecodeErrorZFree(long __res); // uint64_t CResult_OnionPacketDecodeErrorZ_clone_ptr(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_clone_ptr")] public static extern long CResult_OnionPacketDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_clone_ptr")] public static extern long CResultOnionPacketDecodeErrorZClonePtr(long _arg); // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_clone(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_clone")] public static extern long CResult_OnionPacketDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionPacketDecodeErrorZ_clone")] public static extern long CResultOnionPacketDecodeErrorZClone(long _orig); // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_ok")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_ok")] public static extern long CResultUpdateAddHTLCDecodeErrorZOk(long _o); // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_err")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_err")] public static extern long CResultUpdateAddHTLCDecodeErrorZErr(long _e); // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_is_ok")] public static extern bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_is_ok")] public static extern bool CResultUpdateAddHTLCDecodeErrorZIsOk(long _o); // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_free")] public static extern void CResult_UpdateAddHTLCDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_free")] public static extern void CResultUpdateAddHTLCDecodeErrorZFree(long __res); // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr")] public static extern long CResultUpdateAddHTLCDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_clone")] public static extern long CResult_UpdateAddHTLCDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UpdateAddHTLCDecodeErrorZ_clone")] public static extern long CResultUpdateAddHTLCDecodeErrorZClone(long _orig); // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_ok")] public static extern long CResult_OnionMessageDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_ok")] public static extern long CResultOnionMessageDecodeErrorZOk(long _o); // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_err")] public static extern long CResult_OnionMessageDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_err")] public static extern long CResultOnionMessageDecodeErrorZErr(long _e); // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_is_ok")] public static extern bool CResult_OnionMessageDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_is_ok")] public static extern bool CResultOnionMessageDecodeErrorZIsOk(long _o); // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_free")] public static extern void CResult_OnionMessageDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_free")] public static extern void CResultOnionMessageDecodeErrorZFree(long __res); // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_clone_ptr")] public static extern long CResult_OnionMessageDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_clone_ptr")] public static extern long CResultOnionMessageDecodeErrorZClonePtr(long _arg); // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_clone")] public static extern long CResult_OnionMessageDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OnionMessageDecodeErrorZ_clone")] public static extern long CResultOnionMessageDecodeErrorZClone(long _orig); // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_ok(struct LDKFinalOnionHopData o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_ok")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_ok")] public static extern long CResultFinalOnionHopDataDecodeErrorZOk(long _o); // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_err")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_err")] public static extern long CResultFinalOnionHopDataDecodeErrorZErr(long _e); // bool CResult_FinalOnionHopDataDecodeErrorZ_is_ok(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_is_ok")] public static extern bool CResult_FinalOnionHopDataDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_is_ok")] public static extern bool CResultFinalOnionHopDataDecodeErrorZIsOk(long _o); // void CResult_FinalOnionHopDataDecodeErrorZ_free(struct LDKCResult_FinalOnionHopDataDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_free")] public static extern void CResult_FinalOnionHopDataDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_free")] public static extern void CResultFinalOnionHopDataDecodeErrorZFree(long __res); // uint64_t CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr")] public static extern long CResultFinalOnionHopDataDecodeErrorZClonePtr(long _arg); // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_clone(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_clone")] public static extern long CResult_FinalOnionHopDataDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_FinalOnionHopDataDecodeErrorZ_clone")] public static extern long CResultFinalOnionHopDataDecodeErrorZClone(long _orig); // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_ok")] public static extern long CResult_PingDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_ok")] public static extern long CResultPingDecodeErrorZOk(long _o); // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_err")] public static extern long CResult_PingDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_err")] public static extern long CResultPingDecodeErrorZErr(long _e); // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_is_ok")] public static extern bool CResult_PingDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_is_ok")] public static extern bool CResultPingDecodeErrorZIsOk(long _o); // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_free")] public static extern void CResult_PingDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_free")] public static extern void CResultPingDecodeErrorZFree(long __res); // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_clone_ptr")] public static extern long CResult_PingDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_clone_ptr")] public static extern long CResultPingDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_clone")] public static extern long CResult_PingDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PingDecodeErrorZ_clone")] public static extern long CResultPingDecodeErrorZClone(long _orig); // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_ok")] public static extern long CResult_PongDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_ok")] public static extern long CResultPongDecodeErrorZOk(long _o); // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_err")] public static extern long CResult_PongDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_err")] public static extern long CResultPongDecodeErrorZErr(long _e); // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_is_ok")] public static extern bool CResult_PongDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_is_ok")] public static extern bool CResultPongDecodeErrorZIsOk(long _o); // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_free")] public static extern void CResult_PongDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_free")] public static extern void CResultPongDecodeErrorZFree(long __res); // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_clone_ptr")] public static extern long CResult_PongDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_clone_ptr")] public static extern long CResultPongDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_clone")] public static extern long CResult_PongDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PongDecodeErrorZ_clone")] public static extern long CResultPongDecodeErrorZClone(long _orig); // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZOk(long _o); // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZErr(long _e); // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResultUnsignedChannelAnnouncementDecodeErrorZIsOk(long _o); // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free")] public static extern void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free")] public static extern void CResultUnsignedChannelAnnouncementDecodeErrorZFree(long __res); // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone")] public static extern long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone")] public static extern long CResultUnsignedChannelAnnouncementDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_ok")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_ok")] public static extern long CResultChannelAnnouncementDecodeErrorZOk(long _o); // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_err")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_err")] public static extern long CResultChannelAnnouncementDecodeErrorZErr(long _e); // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResultChannelAnnouncementDecodeErrorZIsOk(long _o); // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_free")] public static extern void CResult_ChannelAnnouncementDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_free")] public static extern void CResultChannelAnnouncementDecodeErrorZFree(long __res); // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResultChannelAnnouncementDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_clone")] public static extern long CResult_ChannelAnnouncementDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelAnnouncementDecodeErrorZ_clone")] public static extern long CResultChannelAnnouncementDecodeErrorZClone(long _orig); // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_ok")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_ok")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZOk(long _o); // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_err")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_err")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZErr(long _e); // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok")] public static extern bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok")] public static extern bool CResultUnsignedChannelUpdateDecodeErrorZIsOk(long _o); // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_free")] public static extern void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_free")] public static extern void CResultUnsignedChannelUpdateDecodeErrorZFree(long __res); // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_clone")] public static extern long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedChannelUpdateDecodeErrorZ_clone")] public static extern long CResultUnsignedChannelUpdateDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_ok")] public static extern long CResult_ChannelUpdateDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_ok")] public static extern long CResultChannelUpdateDecodeErrorZOk(long _o); // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_err")] public static extern long CResult_ChannelUpdateDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_err")] public static extern long CResultChannelUpdateDecodeErrorZErr(long _e); // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelUpdateDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_is_ok")] public static extern bool CResultChannelUpdateDecodeErrorZIsOk(long _o); // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_free")] public static extern void CResult_ChannelUpdateDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_free")] public static extern void CResultChannelUpdateDecodeErrorZFree(long __res); // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_clone_ptr")] public static extern long CResultChannelUpdateDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_clone")] public static extern long CResult_ChannelUpdateDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelUpdateDecodeErrorZ_clone")] public static extern long CResultChannelUpdateDecodeErrorZClone(long _orig); // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_ok")] public static extern long CResult_ErrorMessageDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_ok")] public static extern long CResultErrorMessageDecodeErrorZOk(long _o); // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_err")] public static extern long CResult_ErrorMessageDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_err")] public static extern long CResultErrorMessageDecodeErrorZErr(long _e); // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_is_ok")] public static extern bool CResult_ErrorMessageDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_is_ok")] public static extern bool CResultErrorMessageDecodeErrorZIsOk(long _o); // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_free")] public static extern void CResult_ErrorMessageDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_free")] public static extern void CResultErrorMessageDecodeErrorZFree(long __res); // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_clone_ptr")] public static extern long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_clone_ptr")] public static extern long CResultErrorMessageDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_clone")] public static extern long CResult_ErrorMessageDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ErrorMessageDecodeErrorZ_clone")] public static extern long CResultErrorMessageDecodeErrorZClone(long _orig); // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_ok")] public static extern long CResult_WarningMessageDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_ok")] public static extern long CResultWarningMessageDecodeErrorZOk(long _o); // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_err")] public static extern long CResult_WarningMessageDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_err")] public static extern long CResultWarningMessageDecodeErrorZErr(long _e); // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_is_ok")] public static extern bool CResult_WarningMessageDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_is_ok")] public static extern bool CResultWarningMessageDecodeErrorZIsOk(long _o); // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_free")] public static extern void CResult_WarningMessageDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_free")] public static extern void CResultWarningMessageDecodeErrorZFree(long __res); // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_clone_ptr")] public static extern long CResult_WarningMessageDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_clone_ptr")] public static extern long CResultWarningMessageDecodeErrorZClonePtr(long _arg); // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_clone")] public static extern long CResult_WarningMessageDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_WarningMessageDecodeErrorZ_clone")] public static extern long CResultWarningMessageDecodeErrorZClone(long _orig); // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZOk(long _o); // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZErr(long _e); // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResultUnsignedNodeAnnouncementDecodeErrorZIsOk(long _o); // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free")] public static extern void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free")] public static extern void CResultUnsignedNodeAnnouncementDecodeErrorZFree(long __res); // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone")] public static extern long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone")] public static extern long CResultUnsignedNodeAnnouncementDecodeErrorZClone(long _orig); // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_ok")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_ok")] public static extern long CResultNodeAnnouncementDecodeErrorZOk(long _o); // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_err")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_err")] public static extern long CResultNodeAnnouncementDecodeErrorZErr(long _e); // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_is_ok")] public static extern bool CResultNodeAnnouncementDecodeErrorZIsOk(long _o); // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_free")] public static extern void CResult_NodeAnnouncementDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_free")] public static extern void CResultNodeAnnouncementDecodeErrorZFree(long __res); // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr")] public static extern long CResultNodeAnnouncementDecodeErrorZClonePtr(long _arg); // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_clone")] public static extern long CResult_NodeAnnouncementDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NodeAnnouncementDecodeErrorZ_clone")] public static extern long CResultNodeAnnouncementDecodeErrorZClone(long _orig); // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_ok")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_ok")] public static extern long CResultQueryShortChannelIdsDecodeErrorZOk(long _o); // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_err")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_err")] public static extern long CResultQueryShortChannelIdsDecodeErrorZErr(long _e); // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok")] public static extern bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok")] public static extern bool CResultQueryShortChannelIdsDecodeErrorZIsOk(long _o); // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_free")] public static extern void CResult_QueryShortChannelIdsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_free")] public static extern void CResultQueryShortChannelIdsDecodeErrorZFree(long __res); // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr")] public static extern long CResultQueryShortChannelIdsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_clone")] public static extern long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryShortChannelIdsDecodeErrorZ_clone")] public static extern long CResultQueryShortChannelIdsDecodeErrorZClone(long _orig); // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZOk(long _o); // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZErr(long _e); // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok")] public static extern bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok")] public static extern bool CResultReplyShortChannelIdsEndDecodeErrorZIsOk(long _o); // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free")] public static extern void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free")] public static extern void CResultReplyShortChannelIdsEndDecodeErrorZFree(long __res); // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone")] public static extern long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone")] public static extern long CResultReplyShortChannelIdsEndDecodeErrorZClone(long _orig); // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_ok")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_ok")] public static extern long CResultQueryChannelRangeDecodeErrorZOk(long _o); // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_err")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_err")] public static extern long CResultQueryChannelRangeDecodeErrorZErr(long _e); // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_is_ok")] public static extern bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_is_ok")] public static extern bool CResultQueryChannelRangeDecodeErrorZIsOk(long _o); // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_free")] public static extern void CResult_QueryChannelRangeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_free")] public static extern void CResultQueryChannelRangeDecodeErrorZFree(long __res); // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr")] public static extern long CResultQueryChannelRangeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_clone")] public static extern long CResult_QueryChannelRangeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_QueryChannelRangeDecodeErrorZ_clone")] public static extern long CResultQueryChannelRangeDecodeErrorZClone(long _orig); // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_ok")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_ok")] public static extern long CResultReplyChannelRangeDecodeErrorZOk(long _o); // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_err")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_err")] public static extern long CResultReplyChannelRangeDecodeErrorZErr(long _e); // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_is_ok")] public static extern bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_is_ok")] public static extern bool CResultReplyChannelRangeDecodeErrorZIsOk(long _o); // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_free")] public static extern void CResult_ReplyChannelRangeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_free")] public static extern void CResultReplyChannelRangeDecodeErrorZFree(long __res); // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr")] public static extern long CResultReplyChannelRangeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_clone")] public static extern long CResult_ReplyChannelRangeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ReplyChannelRangeDecodeErrorZ_clone")] public static extern long CResultReplyChannelRangeDecodeErrorZClone(long _orig); // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_ok")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_ok")] public static extern long CResultGossipTimestampFilterDecodeErrorZOk(long _o); // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_err")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_err")] public static extern long CResultGossipTimestampFilterDecodeErrorZErr(long _e); // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_is_ok")] public static extern bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_is_ok")] public static extern bool CResultGossipTimestampFilterDecodeErrorZIsOk(long _o); // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_free")] public static extern void CResult_GossipTimestampFilterDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_free")] public static extern void CResultGossipTimestampFilterDecodeErrorZFree(long __res); // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr")] public static extern long CResultGossipTimestampFilterDecodeErrorZClonePtr(long _arg); // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_clone")] public static extern long CResult_GossipTimestampFilterDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_GossipTimestampFilterDecodeErrorZ_clone")] public static extern long CResultGossipTimestampFilterDecodeErrorZClone(long _orig); // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PhantomRouteHintsZ_free")] public static extern void CVec_PhantomRouteHintsZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PhantomRouteHintsZ_free")] public static extern void CVecPhantomRouteHintsZFree(long __res); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_ok")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_ok")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZOk(long _o); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_err")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_err")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZErr(long _e); // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok")] public static extern bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok")] public static extern bool CResultBolt11InvoiceSignOrCreationErrorZIsOk(long _o); // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_free")] public static extern void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_free")] public static extern void CResultBolt11InvoiceSignOrCreationErrorZFree(long __res); // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZClonePtr(long _arg); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_clone")] public static extern long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceSignOrCreationErrorZ_clone")] public static extern long CResultBolt11InvoiceSignOrCreationErrorZClone(long _orig); // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_FutureZ_free")] public static extern void CVec_FutureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_FutureZ_free")] public static extern void CVecFutureZFree(long __res); // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_ok")] public static extern long CResult_OffersMessageDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_ok")] public static extern long CResultOffersMessageDecodeErrorZOk(long _o); // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_err")] public static extern long CResult_OffersMessageDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_err")] public static extern long CResultOffersMessageDecodeErrorZErr(long _e); // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_is_ok")] public static extern bool CResult_OffersMessageDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_is_ok")] public static extern bool CResultOffersMessageDecodeErrorZIsOk(long _o); // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_free")] public static extern void CResult_OffersMessageDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_free")] public static extern void CResultOffersMessageDecodeErrorZFree(long __res); // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_clone_ptr")] public static extern long CResult_OffersMessageDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_clone_ptr")] public static extern long CResultOffersMessageDecodeErrorZClonePtr(long _arg); // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_clone")] public static extern long CResult_OffersMessageDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OffersMessageDecodeErrorZ_clone")] public static extern long CResultOffersMessageDecodeErrorZClone(long _orig); // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_some")] public static extern long COption_HTLCClaimZ_some(HTLCClaim _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_some")] public static extern long COptionHTLCClaimZSome(HTLCClaim _o); // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_none")] public static extern long COption_HTLCClaimZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_none")] public static extern long COptionHTLCClaimZNone(); // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_free")] public static extern void COption_HTLCClaimZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCClaimZ_free")] public static extern void COptionHTLCClaimZFree(long __res); // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZOk(long _o); // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZErr(long _e); // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok")] public static extern bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok")] public static extern bool CResultCounterpartyCommitmentSecretsDecodeErrorZIsOk(long _o); // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free")] public static extern void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free")] public static extern void CResultCounterpartyCommitmentSecretsDecodeErrorZFree(long __res); // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone")] public static extern long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone")] public static extern long CResultCounterpartyCommitmentSecretsDecodeErrorZClone(long _orig); // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_ok")] public static extern long CResult_TxCreationKeysDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_ok")] public static extern long CResultTxCreationKeysDecodeErrorZOk(long _o); // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_err")] public static extern long CResult_TxCreationKeysDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_err")] public static extern long CResultTxCreationKeysDecodeErrorZErr(long _e); // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_is_ok")] public static extern bool CResult_TxCreationKeysDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_is_ok")] public static extern bool CResultTxCreationKeysDecodeErrorZIsOk(long _o); // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_free")] public static extern void CResult_TxCreationKeysDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_free")] public static extern void CResultTxCreationKeysDecodeErrorZFree(long __res); // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_clone_ptr")] public static extern long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_clone_ptr")] public static extern long CResultTxCreationKeysDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_clone")] public static extern long CResult_TxCreationKeysDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxCreationKeysDecodeErrorZ_clone")] public static extern long CResultTxCreationKeysDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_ok")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_ok")] public static extern long CResultChannelPublicKeysDecodeErrorZOk(long _o); // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_err")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_err")] public static extern long CResultChannelPublicKeysDecodeErrorZErr(long _e); // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_is_ok")] public static extern bool CResultChannelPublicKeysDecodeErrorZIsOk(long _o); // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_free")] public static extern void CResult_ChannelPublicKeysDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_free")] public static extern void CResultChannelPublicKeysDecodeErrorZFree(long __res); // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr")] public static extern long CResultChannelPublicKeysDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_clone")] public static extern long CResult_ChannelPublicKeysDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelPublicKeysDecodeErrorZ_clone")] public static extern long CResultChannelPublicKeysDecodeErrorZClone(long _orig); // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZOk(long _o); // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_err")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_err")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZErr(long _e); // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok")] public static extern bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok")] public static extern bool CResultHTLCOutputInCommitmentDecodeErrorZIsOk(long _o); // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_free")] public static extern void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_free")] public static extern void CResultHTLCOutputInCommitmentDecodeErrorZFree(long __res); // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone")] public static extern long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone")] public static extern long CResultHTLCOutputInCommitmentDecodeErrorZClone(long _orig); // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZOk(long _o); // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZErr(long _e); // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok")] public static extern bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok")] public static extern bool CResultCounterpartyChannelTransactionParametersDecodeErrorZIsOk(long _o); // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free")] public static extern void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free")] public static extern void CResultCounterpartyChannelTransactionParametersDecodeErrorZFree(long __res); // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZClonePtr(long _arg); // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone")] public static extern long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone")] public static extern long CResultCounterpartyChannelTransactionParametersDecodeErrorZClone(long _orig); // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_ok")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_ok")] public static extern long CResultChannelTransactionParametersDecodeErrorZOk(long _o); // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_err")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_err")] public static extern long CResultChannelTransactionParametersDecodeErrorZErr(long _e); // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok")] public static extern bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok")] public static extern bool CResultChannelTransactionParametersDecodeErrorZIsOk(long _o); // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_free")] public static extern void CResult_ChannelTransactionParametersDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_free")] public static extern void CResultChannelTransactionParametersDecodeErrorZFree(long __res); // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr")] public static extern long CResultChannelTransactionParametersDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_clone")] public static extern long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ChannelTransactionParametersDecodeErrorZ_clone")] public static extern long CResultChannelTransactionParametersDecodeErrorZClone(long _orig); // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_ok")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_ok")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZOk(long _o); // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_err")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_err")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZErr(long _e); // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResultHolderCommitmentTransactionDecodeErrorZIsOk(long _o); // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_free")] public static extern void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_free")] public static extern void CResultHolderCommitmentTransactionDecodeErrorZFree(long __res); // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_clone")] public static extern long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HolderCommitmentTransactionDecodeErrorZ_clone")] public static extern long CResultHolderCommitmentTransactionDecodeErrorZClone(long _orig); // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZOk(long _o); // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_err")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_err")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZErr(long _e); // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResultBuiltCommitmentTransactionDecodeErrorZIsOk(long _o); // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_free")] public static extern void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_free")] public static extern void CResultBuiltCommitmentTransactionDecodeErrorZFree(long __res); // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone")] public static extern long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone")] public static extern long CResultBuiltCommitmentTransactionDecodeErrorZClone(long _orig); // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_ok")] public static extern long CResult_TrustedClosingTransactionNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_ok")] public static extern long CResultTrustedClosingTransactionNoneZOk(long _o); // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_err")] public static extern long CResult_TrustedClosingTransactionNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_err")] public static extern long CResultTrustedClosingTransactionNoneZErr(); // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_is_ok")] public static extern bool CResult_TrustedClosingTransactionNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_is_ok")] public static extern bool CResultTrustedClosingTransactionNoneZIsOk(long _o); // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_free")] public static extern void CResult_TrustedClosingTransactionNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedClosingTransactionNoneZ_free")] public static extern void CResultTrustedClosingTransactionNoneZFree(long __res); // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_ok")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_ok")] public static extern long CResultCommitmentTransactionDecodeErrorZOk(long _o); // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_err")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_err")] public static extern long CResultCommitmentTransactionDecodeErrorZErr(long _e); // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_is_ok")] public static extern bool CResultCommitmentTransactionDecodeErrorZIsOk(long _o); // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_free")] public static extern void CResult_CommitmentTransactionDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_free")] public static extern void CResultCommitmentTransactionDecodeErrorZFree(long __res); // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr")] public static extern long CResultCommitmentTransactionDecodeErrorZClonePtr(long _arg); // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_clone")] public static extern long CResult_CommitmentTransactionDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CommitmentTransactionDecodeErrorZ_clone")] public static extern long CResultCommitmentTransactionDecodeErrorZClone(long _orig); // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_ok")] public static extern long CResult_TrustedCommitmentTransactionNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_ok")] public static extern long CResultTrustedCommitmentTransactionNoneZOk(long _o); // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_err")] public static extern long CResult_TrustedCommitmentTransactionNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_err")] public static extern long CResultTrustedCommitmentTransactionNoneZErr(); // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_is_ok")] public static extern bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_is_ok")] public static extern bool CResultTrustedCommitmentTransactionNoneZIsOk(long _o); // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_free")] public static extern void CResult_TrustedCommitmentTransactionNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TrustedCommitmentTransactionNoneZ_free")] public static extern void CResultTrustedCommitmentTransactionNoneZFree(long __res); // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_ok")] public static extern long CResult_CVec_ECDSASignatureZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_ok")] public static extern long CResultCVecECDSASignatureZNoneZOk(long _o); // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_err")] public static extern long CResult_CVec_ECDSASignatureZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_err")] public static extern long CResultCVecECDSASignatureZNoneZErr(); // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_is_ok")] public static extern bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_is_ok")] public static extern bool CResultCVecECDSASignatureZNoneZIsOk(long _o); // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_free")] public static extern void CResult_CVec_ECDSASignatureZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_free")] public static extern void CResultCVecECDSASignatureZNoneZFree(long __res); // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_clone_ptr")] public static extern long CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_clone_ptr")] public static extern long CResultCVecECDSASignatureZNoneZClonePtr(long _arg); // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_clone")] public static extern long CResult_CVec_ECDSASignatureZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_CVec_ECDSASignatureZNoneZ_clone")] public static extern long CResultCVecECDSASignatureZNoneZClone(long _orig); // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_some")] public static extern long COption_usizeZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_some")] public static extern long COptionUsizezSome(long _o); // struct LDKCOption_usizeZ COption_usizeZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_none")] public static extern long COption_usizeZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_none")] public static extern long COptionUsizezNone(); // void COption_usizeZ_free(struct LDKCOption_usizeZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_free")] public static extern void COption_usizeZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_free")] public static extern void COptionUsizezFree(long __res); // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_clone_ptr")] public static extern long COption_usizeZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_clone_ptr")] public static extern long COptionUsizezClonePtr(long _arg); // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_clone")] public static extern long COption_usizeZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_usizeZ_clone")] public static extern long COptionUsizezClone(long _orig); // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_ok")] public static extern long CResult_ShutdownScriptDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_ok")] public static extern long CResultShutdownScriptDecodeErrorZOk(long _o); // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_err")] public static extern long CResult_ShutdownScriptDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_err")] public static extern long CResultShutdownScriptDecodeErrorZErr(long _e); // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_is_ok")] public static extern bool CResult_ShutdownScriptDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_is_ok")] public static extern bool CResultShutdownScriptDecodeErrorZIsOk(long _o); // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_free")] public static extern void CResult_ShutdownScriptDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_free")] public static extern void CResultShutdownScriptDecodeErrorZFree(long __res); // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_clone_ptr")] public static extern long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_clone_ptr")] public static extern long CResultShutdownScriptDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_clone")] public static extern long CResult_ShutdownScriptDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptDecodeErrorZ_clone")] public static extern long CResultShutdownScriptDecodeErrorZClone(long _orig); // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_ok")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_ok")] public static extern long CResultShutdownScriptInvalidShutdownScriptZOk(long _o); // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_err")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_err")] public static extern long CResultShutdownScriptInvalidShutdownScriptZErr(long _e); // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok")] public static extern bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok")] public static extern bool CResultShutdownScriptInvalidShutdownScriptZIsOk(long _o); // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_free")] public static extern void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_free")] public static extern void CResultShutdownScriptInvalidShutdownScriptZFree(long __res); // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr")] public static extern long CResultShutdownScriptInvalidShutdownScriptZClonePtr(long _arg); // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_clone")] public static extern long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ShutdownScriptInvalidShutdownScriptZ_clone")] public static extern long CResultShutdownScriptInvalidShutdownScriptZClone(long _orig); // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_ok")] public static extern long CResult_PaymentPurposeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_ok")] public static extern long CResultPaymentPurposeDecodeErrorZOk(long _o); // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_err")] public static extern long CResult_PaymentPurposeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_err")] public static extern long CResultPaymentPurposeDecodeErrorZErr(long _e); // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_is_ok")] public static extern bool CResult_PaymentPurposeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_is_ok")] public static extern bool CResultPaymentPurposeDecodeErrorZIsOk(long _o); // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_free")] public static extern void CResult_PaymentPurposeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_free")] public static extern void CResultPaymentPurposeDecodeErrorZFree(long __res); // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_clone_ptr")] public static extern long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_clone_ptr")] public static extern long CResultPaymentPurposeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_clone")] public static extern long CResult_PaymentPurposeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentPurposeDecodeErrorZ_clone")] public static extern long CResultPaymentPurposeDecodeErrorZClone(long _orig); // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_ok")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_ok")] public static extern long CResultClaimedHTLCDecodeErrorZOk(long _o); // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_err")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_err")] public static extern long CResultClaimedHTLCDecodeErrorZErr(long _e); // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_is_ok")] public static extern bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_is_ok")] public static extern bool CResultClaimedHTLCDecodeErrorZIsOk(long _o); // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_free")] public static extern void CResult_ClaimedHTLCDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_free")] public static extern void CResultClaimedHTLCDecodeErrorZFree(long __res); // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_clone_ptr")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_clone_ptr")] public static extern long CResultClaimedHTLCDecodeErrorZClonePtr(long _arg); // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_clone")] public static extern long CResult_ClaimedHTLCDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_ClaimedHTLCDecodeErrorZ_clone")] public static extern long CResultClaimedHTLCDecodeErrorZClone(long _orig); // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_some")] public static extern long COption_PathFailureZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_some")] public static extern long COptionPathFailureZSome(long _o); // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_none")] public static extern long COption_PathFailureZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_none")] public static extern long COptionPathFailureZNone(); // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_free")] public static extern void COption_PathFailureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_free")] public static extern void COptionPathFailureZFree(long __res); // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_clone_ptr")] public static extern long COption_PathFailureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_clone_ptr")] public static extern long COptionPathFailureZClonePtr(long _arg); // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_clone")] public static extern long COption_PathFailureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PathFailureZ_clone")] public static extern long COptionPathFailureZClone(long _orig); // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_ok")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_ok")] public static extern long CResultCOptionPathFailureZDecodeErrorZOk(long _o); // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_err")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_err")] public static extern long CResultCOptionPathFailureZDecodeErrorZErr(long _e); // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionPathFailureZDecodeErrorZIsOk(long _o); // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_free")] public static extern void CResult_COption_PathFailureZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_free")] public static extern void CResultCOptionPathFailureZDecodeErrorZFree(long __res); // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionPathFailureZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_clone")] public static extern long CResult_COption_PathFailureZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_PathFailureZDecodeErrorZ_clone")] public static extern long CResultCOptionPathFailureZDecodeErrorZClone(long _orig); // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_some")] public static extern long COption_ClosureReasonZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_some")] public static extern long COptionClosureReasonZSome(long _o); // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_none")] public static extern long COption_ClosureReasonZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_none")] public static extern long COptionClosureReasonZNone(); // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_free")] public static extern void COption_ClosureReasonZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_free")] public static extern void COptionClosureReasonZFree(long __res); // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_clone_ptr")] public static extern long COption_ClosureReasonZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_clone_ptr")] public static extern long COptionClosureReasonZClonePtr(long _arg); // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_clone")] public static extern long COption_ClosureReasonZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_ClosureReasonZ_clone")] public static extern long COptionClosureReasonZClone(long _orig); // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_ok")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_ok")] public static extern long CResultCOptionClosureReasonZDecodeErrorZOk(long _o); // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_err")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_err")] public static extern long CResultCOptionClosureReasonZDecodeErrorZErr(long _e); // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionClosureReasonZDecodeErrorZIsOk(long _o); // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_free")] public static extern void CResult_COption_ClosureReasonZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_free")] public static extern void CResultCOptionClosureReasonZDecodeErrorZFree(long __res); // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionClosureReasonZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_clone")] public static extern long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_ClosureReasonZDecodeErrorZ_clone")] public static extern long CResultCOptionClosureReasonZDecodeErrorZClone(long _orig); // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_some")] public static extern long COption_HTLCDestinationZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_some")] public static extern long COptionHTLCDestinationZSome(long _o); // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_none")] public static extern long COption_HTLCDestinationZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_none")] public static extern long COptionHTLCDestinationZNone(); // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_free")] public static extern void COption_HTLCDestinationZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_free")] public static extern void COptionHTLCDestinationZFree(long __res); // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_clone_ptr")] public static extern long COption_HTLCDestinationZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_clone_ptr")] public static extern long COptionHTLCDestinationZClonePtr(long _arg); // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_clone")] public static extern long COption_HTLCDestinationZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_HTLCDestinationZ_clone")] public static extern long COptionHTLCDestinationZClone(long _orig); // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_ok")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_ok")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZOk(long _o); // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_err")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_err")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZErr(long _e); // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionHTLCDestinationZDecodeErrorZIsOk(long _o); // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_free")] public static extern void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_free")] public static extern void CResultCOptionHTLCDestinationZDecodeErrorZFree(long __res); // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_clone")] public static extern long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_HTLCDestinationZDecodeErrorZ_clone")] public static extern long CResultCOptionHTLCDestinationZDecodeErrorZClone(long _orig); // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_ok")] public static extern long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_ok")] public static extern long CResultPaymentFailureReasonDecodeErrorZOk(PaymentFailureReason _o); // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_err")] public static extern long CResult_PaymentFailureReasonDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_err")] public static extern long CResultPaymentFailureReasonDecodeErrorZErr(long _e); // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_is_ok")] public static extern bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_is_ok")] public static extern bool CResultPaymentFailureReasonDecodeErrorZIsOk(long _o); // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_free")] public static extern void CResult_PaymentFailureReasonDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_free")] public static extern void CResultPaymentFailureReasonDecodeErrorZFree(long __res); // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr")] public static extern long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr")] public static extern long CResultPaymentFailureReasonDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_clone")] public static extern long CResult_PaymentFailureReasonDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentFailureReasonDecodeErrorZ_clone")] public static extern long CResultPaymentFailureReasonDecodeErrorZClone(long _orig); // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_some")] public static extern long COption_U128Z_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_some")] public static extern long COptionU128ZSome(long _o); // struct LDKCOption_U128Z COption_U128Z_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_none")] public static extern long COption_U128Z_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_none")] public static extern long COptionU128ZNone(); // void COption_U128Z_free(struct LDKCOption_U128Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_free")] public static extern void COption_U128Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_free")] public static extern void COptionU128ZFree(long __res); // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_clone_ptr")] public static extern long COption_U128Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_clone_ptr")] public static extern long COptionU128ZClonePtr(long _arg); // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_clone")] public static extern long COption_U128Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_U128Z_clone")] public static extern long COptionU128ZClone(long _orig); // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ClaimedHTLCZ_free")] public static extern void CVec_ClaimedHTLCZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ClaimedHTLCZ_free")] public static extern void CVecClaimedHTLCZFree(long __res); // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_some")] public static extern long COption_PaymentFailureReasonZ_some(PaymentFailureReason _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_some")] public static extern long COptionPaymentFailureReasonZSome(PaymentFailureReason _o); // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_none")] public static extern long COption_PaymentFailureReasonZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_none")] public static extern long COptionPaymentFailureReasonZNone(); // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_free")] public static extern void COption_PaymentFailureReasonZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_free")] public static extern void COptionPaymentFailureReasonZFree(long __res); // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_clone_ptr")] public static extern long COption_PaymentFailureReasonZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_clone_ptr")] public static extern long COptionPaymentFailureReasonZClonePtr(long _arg); // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_clone")] public static extern long COption_PaymentFailureReasonZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_PaymentFailureReasonZ_clone")] public static extern long COptionPaymentFailureReasonZClone(long _orig); // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_some")] public static extern long COption_EventZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_some")] public static extern long COptionEventZSome(long _o); // struct LDKCOption_EventZ COption_EventZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_none")] public static extern long COption_EventZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_none")] public static extern long COptionEventZNone(); // void COption_EventZ_free(struct LDKCOption_EventZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_free")] public static extern void COption_EventZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_free")] public static extern void COptionEventZFree(long __res); // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_clone_ptr")] public static extern long COption_EventZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_clone_ptr")] public static extern long COptionEventZClonePtr(long _arg); // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_clone")] public static extern long COption_EventZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_EventZ_clone")] public static extern long COptionEventZClone(long _orig); // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_ok")] public static extern long CResult_COption_EventZDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_ok")] public static extern long CResultCOptionEventZDecodeErrorZOk(long _o); // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_err")] public static extern long CResult_COption_EventZDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_err")] public static extern long CResultCOptionEventZDecodeErrorZErr(long _e); // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_is_ok")] public static extern bool CResult_COption_EventZDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_is_ok")] public static extern bool CResultCOptionEventZDecodeErrorZIsOk(long _o); // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_free")] public static extern void CResult_COption_EventZDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_free")] public static extern void CResultCOptionEventZDecodeErrorZFree(long __res); // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_clone_ptr")] public static extern long CResult_COption_EventZDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_clone_ptr")] public static extern long CResultCOptionEventZDecodeErrorZClonePtr(long _arg); // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_clone")] public static extern long CResult_COption_EventZDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_COption_EventZDecodeErrorZ_clone")] public static extern long CResultCOptionEventZDecodeErrorZClone(long _orig); // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_ok")] public static extern long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_ok")] public static extern long CResultSiPrefixBolt11ParseErrorZOk(SiPrefix _o); // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_err")] public static extern long CResult_SiPrefixBolt11ParseErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_err")] public static extern long CResultSiPrefixBolt11ParseErrorZErr(long _e); // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_is_ok")] public static extern bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_is_ok")] public static extern bool CResultSiPrefixBolt11ParseErrorZIsOk(long _o); // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_free")] public static extern void CResult_SiPrefixBolt11ParseErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_free")] public static extern void CResultSiPrefixBolt11ParseErrorZFree(long __res); // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_clone_ptr")] public static extern long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_clone_ptr")] public static extern long CResultSiPrefixBolt11ParseErrorZClonePtr(long _arg); // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_clone")] public static extern long CResult_SiPrefixBolt11ParseErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SiPrefixBolt11ParseErrorZ_clone")] public static extern long CResultSiPrefixBolt11ParseErrorZClone(long _orig); // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZOk(long _o); // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_err")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_err")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZErr(long _e); // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok")] public static extern bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok")] public static extern bool CResultBolt11InvoiceParseOrSemanticErrorZIsOk(long _o); // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_free")] public static extern void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_free")] public static extern void CResultBolt11InvoiceParseOrSemanticErrorZFree(long __res); // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZClonePtr(long _arg); // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone")] public static extern long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone")] public static extern long CResultBolt11InvoiceParseOrSemanticErrorZClone(long _orig); // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZOk(long _o); // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZErr(long _e); // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok")] public static extern bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok")] public static extern bool CResultSignedRawBolt11InvoiceBolt11ParseErrorZIsOk(long _o); // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free")] public static extern void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free")] public static extern void CResultSignedRawBolt11InvoiceBolt11ParseErrorZFree(long __res); // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZClonePtr(long _arg); // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone")] public static extern long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone")] public static extern long CResultSignedRawBolt11InvoiceBolt11ParseErrorZClone(long _orig); // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezClonePtr(long _arg); // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezClone(long _orig); // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new")] public static extern long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new")] public static extern long C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezNew(long _a, long _b, long _c); // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free")] public static extern void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free")] public static extern void C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezFree(long __res); // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_ok")] public static extern long CResult_PayeePubKeySecp256k1ErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_ok")] public static extern long CResultPayeePubKeySecp256k1ErrorZOk(long _o); // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_err")] public static extern long CResult_PayeePubKeySecp256k1ErrorZ_err(Secp256k1Error _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_err")] public static extern long CResultPayeePubKeySecp256k1ErrorZErr(Secp256k1Error _e); // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_is_ok")] public static extern bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_is_ok")] public static extern bool CResultPayeePubKeySecp256k1ErrorZIsOk(long _o); // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_free")] public static extern void CResult_PayeePubKeySecp256k1ErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_free")] public static extern void CResultPayeePubKeySecp256k1ErrorZFree(long __res); // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr")] public static extern long CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr")] public static extern long CResultPayeePubKeySecp256k1ErrorZClonePtr(long _arg); // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_clone")] public static extern long CResult_PayeePubKeySecp256k1ErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PayeePubKeySecp256k1ErrorZ_clone")] public static extern long CResultPayeePubKeySecp256k1ErrorZClone(long _orig); // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PrivateRouteZ_free")] public static extern void CVec_PrivateRouteZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_PrivateRouteZ_free")] public static extern void CVecPrivateRouteZFree(long __res); // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_ok")] public static extern long CResult_PositiveTimestampCreationErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_ok")] public static extern long CResultPositiveTimestampCreationErrorZOk(long _o); // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_err")] public static extern long CResult_PositiveTimestampCreationErrorZ_err(CreationError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_err")] public static extern long CResultPositiveTimestampCreationErrorZErr(CreationError _e); // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_is_ok")] public static extern bool CResult_PositiveTimestampCreationErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_is_ok")] public static extern bool CResultPositiveTimestampCreationErrorZIsOk(long _o); // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_free")] public static extern void CResult_PositiveTimestampCreationErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_free")] public static extern void CResultPositiveTimestampCreationErrorZFree(long __res); // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_clone_ptr")] public static extern long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_clone_ptr")] public static extern long CResultPositiveTimestampCreationErrorZClonePtr(long _arg); // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_clone")] public static extern long CResult_PositiveTimestampCreationErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PositiveTimestampCreationErrorZ_clone")] public static extern long CResultPositiveTimestampCreationErrorZClone(long _orig); // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_ok")] public static extern long CResult_NoneBolt11SemanticErrorZ_ok(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_ok")] public static extern long CResultNoneBolt11SemanticErrorZOk(); // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_err")] public static extern long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_err")] public static extern long CResultNoneBolt11SemanticErrorZErr(Bolt11SemanticError _e); // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_is_ok")] public static extern bool CResult_NoneBolt11SemanticErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_is_ok")] public static extern bool CResultNoneBolt11SemanticErrorZIsOk(long _o); // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_free")] public static extern void CResult_NoneBolt11SemanticErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_free")] public static extern void CResultNoneBolt11SemanticErrorZFree(long __res); // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_clone_ptr")] public static extern long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_clone_ptr")] public static extern long CResultNoneBolt11SemanticErrorZClonePtr(long _arg); // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_clone")] public static extern long CResult_NoneBolt11SemanticErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_NoneBolt11SemanticErrorZ_clone")] public static extern long CResultNoneBolt11SemanticErrorZClone(long _orig); // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok")] public static extern long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok")] public static extern long CResultBolt11InvoiceBolt11SemanticErrorZOk(long _o); // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_err")] public static extern long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_err")] public static extern long CResultBolt11InvoiceBolt11SemanticErrorZErr(Bolt11SemanticError _e); // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok")] public static extern bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok")] public static extern bool CResultBolt11InvoiceBolt11SemanticErrorZIsOk(long _o); // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_free")] public static extern void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_free")] public static extern void CResultBolt11InvoiceBolt11SemanticErrorZFree(long __res); // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr")] public static extern long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr")] public static extern long CResultBolt11InvoiceBolt11SemanticErrorZClonePtr(long _arg); // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone")] public static extern long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone")] public static extern long CResultBolt11InvoiceBolt11SemanticErrorZClone(long _orig); // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_ok")] public static extern long CResult_DescriptionCreationErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_ok")] public static extern long CResultDescriptionCreationErrorZOk(long _o); // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_err")] public static extern long CResult_DescriptionCreationErrorZ_err(CreationError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_err")] public static extern long CResultDescriptionCreationErrorZErr(CreationError _e); // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_is_ok")] public static extern bool CResult_DescriptionCreationErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_is_ok")] public static extern bool CResultDescriptionCreationErrorZIsOk(long _o); // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_free")] public static extern void CResult_DescriptionCreationErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_free")] public static extern void CResultDescriptionCreationErrorZFree(long __res); // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_clone_ptr")] public static extern long CResult_DescriptionCreationErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_clone_ptr")] public static extern long CResultDescriptionCreationErrorZClonePtr(long _arg); // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_clone")] public static extern long CResult_DescriptionCreationErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DescriptionCreationErrorZ_clone")] public static extern long CResultDescriptionCreationErrorZClone(long _orig); // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_ok")] public static extern long CResult_PrivateRouteCreationErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_ok")] public static extern long CResultPrivateRouteCreationErrorZOk(long _o); // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_err")] public static extern long CResult_PrivateRouteCreationErrorZ_err(CreationError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_err")] public static extern long CResultPrivateRouteCreationErrorZErr(CreationError _e); // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_is_ok")] public static extern bool CResult_PrivateRouteCreationErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_is_ok")] public static extern bool CResultPrivateRouteCreationErrorZIsOk(long _o); // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_free")] public static extern void CResult_PrivateRouteCreationErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_free")] public static extern void CResultPrivateRouteCreationErrorZFree(long __res); // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_clone_ptr")] public static extern long CResult_PrivateRouteCreationErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_clone_ptr")] public static extern long CResultPrivateRouteCreationErrorZClonePtr(long _arg); // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_clone")] public static extern long CResult_PrivateRouteCreationErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PrivateRouteCreationErrorZ_clone")] public static extern long CResultPrivateRouteCreationErrorZClone(long _orig); // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_ok")] public static extern long CResult_OutPointDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_ok")] public static extern long CResultOutPointDecodeErrorZOk(long _o); // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_err")] public static extern long CResult_OutPointDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_err")] public static extern long CResultOutPointDecodeErrorZErr(long _e); // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_is_ok")] public static extern bool CResult_OutPointDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_is_ok")] public static extern bool CResultOutPointDecodeErrorZIsOk(long _o); // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_free")] public static extern void CResult_OutPointDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_free")] public static extern void CResultOutPointDecodeErrorZFree(long __res); // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_clone_ptr")] public static extern long CResult_OutPointDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_clone_ptr")] public static extern long CResultOutPointDecodeErrorZClonePtr(long _arg); // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_clone")] public static extern long CResult_OutPointDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_OutPointDecodeErrorZ_clone")] public static extern long CResultOutPointDecodeErrorZClone(long _orig); // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_ok")] public static extern long CResult_BigSizeDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_ok")] public static extern long CResultBigSizeDecodeErrorZOk(long _o); // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_err")] public static extern long CResult_BigSizeDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_err")] public static extern long CResultBigSizeDecodeErrorZErr(long _e); // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_is_ok")] public static extern bool CResult_BigSizeDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_is_ok")] public static extern bool CResultBigSizeDecodeErrorZIsOk(long _o); // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_free")] public static extern void CResult_BigSizeDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_free")] public static extern void CResultBigSizeDecodeErrorZFree(long __res); // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_clone_ptr")] public static extern long CResult_BigSizeDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_clone_ptr")] public static extern long CResultBigSizeDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_clone")] public static extern long CResult_BigSizeDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BigSizeDecodeErrorZ_clone")] public static extern long CResultBigSizeDecodeErrorZClone(long _orig); // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_ok")] public static extern long CResult_HostnameDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_ok")] public static extern long CResultHostnameDecodeErrorZOk(long _o); // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_err")] public static extern long CResult_HostnameDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_err")] public static extern long CResultHostnameDecodeErrorZErr(long _e); // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_is_ok")] public static extern bool CResult_HostnameDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_is_ok")] public static extern bool CResultHostnameDecodeErrorZIsOk(long _o); // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_free")] public static extern void CResult_HostnameDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_free")] public static extern void CResultHostnameDecodeErrorZFree(long __res); // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_clone_ptr")] public static extern long CResult_HostnameDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_clone_ptr")] public static extern long CResultHostnameDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_clone")] public static extern long CResult_HostnameDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HostnameDecodeErrorZ_clone")] public static extern long CResultHostnameDecodeErrorZClone(long _orig); // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_ok")] public static extern long CResult_TransactionU16LenLimitedNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_ok")] public static extern long CResultTransactionU16LenLimitedNoneZOk(long _o); // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_err")] public static extern long CResult_TransactionU16LenLimitedNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_err")] public static extern long CResultTransactionU16LenLimitedNoneZErr(); // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_is_ok")] public static extern bool CResult_TransactionU16LenLimitedNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_is_ok")] public static extern bool CResultTransactionU16LenLimitedNoneZIsOk(long _o); // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_free")] public static extern void CResult_TransactionU16LenLimitedNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_free")] public static extern void CResultTransactionU16LenLimitedNoneZFree(long __res); // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_clone_ptr")] public static extern long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_clone_ptr")] public static extern long CResultTransactionU16LenLimitedNoneZClonePtr(long _arg); // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_clone")] public static extern long CResult_TransactionU16LenLimitedNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedNoneZ_clone")] public static extern long CResultTransactionU16LenLimitedNoneZClone(long _orig); // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_ok")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_ok")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZOk(long _o); // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_err")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_err")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZErr(long _e); // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok")] public static extern bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok")] public static extern bool CResultTransactionU16LenLimitedDecodeErrorZIsOk(long _o); // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_free")] public static extern void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_free")] public static extern void CResultTransactionU16LenLimitedDecodeErrorZFree(long __res); // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZClonePtr(long _arg); // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_clone")] public static extern long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TransactionU16LenLimitedDecodeErrorZ_clone")] public static extern long CResultTransactionU16LenLimitedDecodeErrorZClone(long _orig); // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_ok")] public static extern long CResult_UntrustedStringDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_ok")] public static extern long CResultUntrustedStringDecodeErrorZOk(long _o); // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_err")] public static extern long CResult_UntrustedStringDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_err")] public static extern long CResultUntrustedStringDecodeErrorZErr(long _e); // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_is_ok")] public static extern bool CResult_UntrustedStringDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_is_ok")] public static extern bool CResultUntrustedStringDecodeErrorZIsOk(long _o); // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_free")] public static extern void CResult_UntrustedStringDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_free")] public static extern void CResultUntrustedStringDecodeErrorZFree(long __res); // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_clone_ptr")] public static extern long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_clone_ptr")] public static extern long CResultUntrustedStringDecodeErrorZClonePtr(long _arg); // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_clone")] public static extern long CResult_UntrustedStringDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_UntrustedStringDecodeErrorZ_clone")] public static extern long CResultUntrustedStringDecodeErrorZClone(long _orig); // uint64_t C2Tuple__u832u16Z_clone_ptr(LDKC2Tuple__u832u16Z *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_clone_ptr")] public static extern long C2Tuple__u832u16Z_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_clone_ptr")] public static extern long C2TupleU832U16ZClonePtr(long _arg); // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_clone(const struct LDKC2Tuple__u832u16Z *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_clone")] public static extern long C2Tuple__u832u16Z_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_clone")] public static extern long C2TupleU832U16ZClone(long _orig); // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_new(struct LDKThirtyTwoBytes a, uint16_t b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_new")] public static extern long C2Tuple__u832u16Z_new(long _a, short _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_new")] public static extern long C2TupleU832U16ZNew(long _a, short _b); // void C2Tuple__u832u16Z_free(struct LDKC2Tuple__u832u16Z _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_free")] public static extern void C2Tuple__u832u16Z_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple__u832u16Z_free")] public static extern void C2TupleU832U16ZFree(long __res); // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_ok")] public static extern long CResult_PaymentRelayDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_ok")] public static extern long CResultPaymentRelayDecodeErrorZOk(long _o); // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_err")] public static extern long CResult_PaymentRelayDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_err")] public static extern long CResultPaymentRelayDecodeErrorZErr(long _e); // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_is_ok")] public static extern bool CResult_PaymentRelayDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_is_ok")] public static extern bool CResultPaymentRelayDecodeErrorZIsOk(long _o); // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_free")] public static extern void CResult_PaymentRelayDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_free")] public static extern void CResultPaymentRelayDecodeErrorZFree(long __res); // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_clone_ptr")] public static extern long CResult_PaymentRelayDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_clone_ptr")] public static extern long CResultPaymentRelayDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_clone")] public static extern long CResult_PaymentRelayDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentRelayDecodeErrorZ_clone")] public static extern long CResultPaymentRelayDecodeErrorZClone(long _orig); // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_ok")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_ok")] public static extern long CResultPaymentConstraintsDecodeErrorZOk(long _o); // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_err")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_err")] public static extern long CResultPaymentConstraintsDecodeErrorZErr(long _e); // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_is_ok")] public static extern bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_is_ok")] public static extern bool CResultPaymentConstraintsDecodeErrorZIsOk(long _o); // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_free")] public static extern void CResult_PaymentConstraintsDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_free")] public static extern void CResultPaymentConstraintsDecodeErrorZFree(long __res); // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_clone_ptr")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_clone_ptr")] public static extern long CResultPaymentConstraintsDecodeErrorZClonePtr(long _arg); // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_clone")] public static extern long CResult_PaymentConstraintsDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PaymentConstraintsDecodeErrorZ_clone")] public static extern long CResultPaymentConstraintsDecodeErrorZClone(long _orig); // uint64_t C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZClonePtr(long _arg); // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZClone(long _orig); // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(struct LDKThirtyTwoBytes a, struct LDKRecipientOnionFields b, struct LDKRouteParameters c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new")] public static extern long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new")] public static extern long C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNew(long _a, long _b, long _c); // void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free")] public static extern void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free")] public static extern void C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZFree(long __res); // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok")] public static extern long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok")] public static extern long CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZOk(long _o); // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err")] public static extern long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err")] public static extern long CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZErr(); // bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok")] public static extern bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok")] public static extern bool CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZIsOk(long _o); // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free")] public static extern void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free")] public static extern void CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZFree(long __res); // uint64_t CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr")] public static extern long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr")] public static extern long CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZClonePtr(long _arg); // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone")] public static extern long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone")] public static extern long CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZClone(long _orig); // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_ok")] public static extern long CResult_StrSecp256k1ErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_ok")] public static extern long CResultStrSecp256k1ErrorZOk(long _o); // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_err")] public static extern long CResult_StrSecp256k1ErrorZ_err(Secp256k1Error _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_err")] public static extern long CResultStrSecp256k1ErrorZErr(Secp256k1Error _e); // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_is_ok")] public static extern bool CResult_StrSecp256k1ErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_is_ok")] public static extern bool CResultStrSecp256k1ErrorZIsOk(long _o); // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_free")] public static extern void CResult_StrSecp256k1ErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_free")] public static extern void CResultStrSecp256k1ErrorZFree(long __res); // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_clone_ptr")] public static extern long CResult_StrSecp256k1ErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_clone_ptr")] public static extern long CResultStrSecp256k1ErrorZClonePtr(long _arg); // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_clone")] public static extern long CResult_StrSecp256k1ErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_StrSecp256k1ErrorZ_clone")] public static extern long CResultStrSecp256k1ErrorZClone(long _orig); // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_ok")] public static extern long CResult_TxOutUtxoLookupErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_ok")] public static extern long CResultTxOutUtxoLookupErrorZOk(long _o); // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_err")] public static extern long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_err")] public static extern long CResultTxOutUtxoLookupErrorZErr(UtxoLookupError _e); // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_is_ok")] public static extern bool CResult_TxOutUtxoLookupErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_is_ok")] public static extern bool CResultTxOutUtxoLookupErrorZIsOk(long _o); // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_free")] public static extern void CResult_TxOutUtxoLookupErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_free")] public static extern void CResultTxOutUtxoLookupErrorZFree(long __res); // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_clone_ptr")] public static extern long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_clone_ptr")] public static extern long CResultTxOutUtxoLookupErrorZClonePtr(long _arg); // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_clone")] public static extern long CResult_TxOutUtxoLookupErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_TxOutUtxoLookupErrorZ_clone")] public static extern long CResultTxOutUtxoLookupErrorZClone(long _orig); // uint64_t C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZClonePtr(long _arg); // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(const struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZClone(long _orig); // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(struct LDKPublicKey a, struct LDKOnionMessage b, struct LDKCOption_CVec_SocketAddressZZ c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new")] public static extern long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new")] public static extern long C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZNew(long _a, long _b, long _c); // void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free")] public static extern void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free")] public static extern void C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZFree(long __res); // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok")] public static extern long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok")] public static extern long CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZOk(long _o); // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(struct LDKSendError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err")] public static extern long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err")] public static extern long CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZErr(long _e); // bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok")] public static extern bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok")] public static extern bool CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZIsOk(long _o); // void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free")] public static extern void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free")] public static extern void CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZFree(long __res); // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_ok")] public static extern long CResult_PeeledOnionNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_ok")] public static extern long CResultPeeledOnionNoneZOk(long _o); // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_err")] public static extern long CResult_PeeledOnionNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_err")] public static extern long CResultPeeledOnionNoneZErr(); // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_is_ok")] public static extern bool CResult_PeeledOnionNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_is_ok")] public static extern bool CResultPeeledOnionNoneZIsOk(long _o); // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_free")] public static extern void CResult_PeeledOnionNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_PeeledOnionNoneZ_free")] public static extern void CResultPeeledOnionNoneZFree(long __res); // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_ok(struct LDKSendSuccess o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_ok")] public static extern long CResult_SendSuccessSendErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_ok")] public static extern long CResultSendSuccessSendErrorZOk(long _o); // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_err(struct LDKSendError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_err")] public static extern long CResult_SendSuccessSendErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_err")] public static extern long CResultSendSuccessSendErrorZErr(long _e); // bool CResult_SendSuccessSendErrorZ_is_ok(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_is_ok")] public static extern bool CResult_SendSuccessSendErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_is_ok")] public static extern bool CResultSendSuccessSendErrorZIsOk(long _o); // void CResult_SendSuccessSendErrorZ_free(struct LDKCResult_SendSuccessSendErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_free")] public static extern void CResult_SendSuccessSendErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_SendSuccessSendErrorZ_free")] public static extern void CResultSendSuccessSendErrorZFree(long __res); // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_ok")] public static extern long CResult_BlindedPathNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_ok")] public static extern long CResultBlindedPathNoneZOk(long _o); // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_err")] public static extern long CResult_BlindedPathNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_err")] public static extern long CResultBlindedPathNoneZErr(); // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_is_ok")] public static extern bool CResult_BlindedPathNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_is_ok")] public static extern bool CResultBlindedPathNoneZIsOk(long _o); // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_free")] public static extern void CResult_BlindedPathNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_free")] public static extern void CResultBlindedPathNoneZFree(long __res); // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_clone_ptr")] public static extern long CResult_BlindedPathNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_clone_ptr")] public static extern long CResultBlindedPathNoneZClonePtr(long _arg); // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_clone")] public static extern long CResult_BlindedPathNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathNoneZ_clone")] public static extern long CResultBlindedPathNoneZClone(long _orig); // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok")] public static extern long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok")] public static extern long CResultC2TupleBlindedPayInfoBlindedPathZNoneZOk(long _o); // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err")] public static extern long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err")] public static extern long CResultC2TupleBlindedPayInfoBlindedPathZNoneZErr(); // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok")] public static extern bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok")] public static extern bool CResultC2TupleBlindedPayInfoBlindedPathZNoneZIsOk(long _o); // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free")] public static extern void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free")] public static extern void CResultC2TupleBlindedPayInfoBlindedPathZNoneZFree(long __res); // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr")] public static extern long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr")] public static extern long CResultC2TupleBlindedPayInfoBlindedPathZNoneZClonePtr(long _arg); // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone")] public static extern long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone")] public static extern long CResultC2TupleBlindedPayInfoBlindedPathZNoneZClone(long _orig); // void CVec_ForwardNodeZ_free(struct LDKCVec_ForwardNodeZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ForwardNodeZ_free")] public static extern void CVec_ForwardNodeZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_ForwardNodeZ_free")] public static extern void CVecForwardNodeZFree(long __res); // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_ok")] public static extern long CResult_BlindedPathDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_ok")] public static extern long CResultBlindedPathDecodeErrorZOk(long _o); // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_err")] public static extern long CResult_BlindedPathDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_err")] public static extern long CResultBlindedPathDecodeErrorZErr(long _e); // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedPathDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_is_ok")] public static extern bool CResultBlindedPathDecodeErrorZIsOk(long _o); // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_free")] public static extern void CResult_BlindedPathDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_free")] public static extern void CResultBlindedPathDecodeErrorZFree(long __res); // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedPathDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedPathDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_clone")] public static extern long CResult_BlindedPathDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedPathDecodeErrorZ_clone")] public static extern long CResultBlindedPathDecodeErrorZClone(long _orig); // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_ok")] public static extern long CResult_BlindedHopDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_ok")] public static extern long CResultBlindedHopDecodeErrorZOk(long _o); // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_err")] public static extern long CResult_BlindedHopDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_err")] public static extern long CResultBlindedHopDecodeErrorZErr(long _e); // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_is_ok")] public static extern bool CResult_BlindedHopDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_is_ok")] public static extern bool CResultBlindedHopDecodeErrorZIsOk(long _o); // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_free")] public static extern void CResult_BlindedHopDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_free")] public static extern void CResultBlindedHopDecodeErrorZFree(long __res); // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_clone_ptr")] public static extern long CResult_BlindedHopDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_clone_ptr")] public static extern long CResultBlindedHopDecodeErrorZClonePtr(long _arg); // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_clone")] public static extern long CResult_BlindedHopDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_BlindedHopDecodeErrorZ_clone")] public static extern long CResultBlindedHopDecodeErrorZClone(long _orig); // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_ok")] public static extern long CResult_InvoiceErrorDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_ok")] public static extern long CResultInvoiceErrorDecodeErrorZOk(long _o); // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_err")] public static extern long CResult_InvoiceErrorDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_err")] public static extern long CResultInvoiceErrorDecodeErrorZErr(long _e); // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_is_ok")] public static extern bool CResult_InvoiceErrorDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_is_ok")] public static extern bool CResultInvoiceErrorDecodeErrorZIsOk(long _o); // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_free")] public static extern void CResult_InvoiceErrorDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_free")] public static extern void CResultInvoiceErrorDecodeErrorZFree(long __res); // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_clone_ptr")] public static extern long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_clone_ptr")] public static extern long CResultInvoiceErrorDecodeErrorZClonePtr(long _arg); // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_clone")] public static extern long CResult_InvoiceErrorDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_InvoiceErrorDecodeErrorZ_clone")] public static extern long CResultInvoiceErrorDecodeErrorZClone(long _orig); // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_ok(struct LDKDelayedPaymentBasepoint o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_ok")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_ok")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZOk(long _o); // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_err")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_err")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZErr(long _e); // bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok")] public static extern bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok")] public static extern bool CResultDelayedPaymentBasepointDecodeErrorZIsOk(long _o); // void CResult_DelayedPaymentBasepointDecodeErrorZ_free(struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_free")] public static extern void CResult_DelayedPaymentBasepointDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_free")] public static extern void CResultDelayedPaymentBasepointDecodeErrorZFree(long __res); // uint64_t CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZClonePtr(long _arg); // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_clone")] public static extern long CResult_DelayedPaymentBasepointDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentBasepointDecodeErrorZ_clone")] public static extern long CResultDelayedPaymentBasepointDecodeErrorZClone(long _orig); // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_ok(struct LDKDelayedPaymentKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_ok")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_ok")] public static extern long CResultDelayedPaymentKeyDecodeErrorZOk(long _o); // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_err")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_err")] public static extern long CResultDelayedPaymentKeyDecodeErrorZErr(long _e); // bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_is_ok")] public static extern bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_is_ok")] public static extern bool CResultDelayedPaymentKeyDecodeErrorZIsOk(long _o); // void CResult_DelayedPaymentKeyDecodeErrorZ_free(struct LDKCResult_DelayedPaymentKeyDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_free")] public static extern void CResult_DelayedPaymentKeyDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_free")] public static extern void CResultDelayedPaymentKeyDecodeErrorZFree(long __res); // uint64_t CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr")] public static extern long CResultDelayedPaymentKeyDecodeErrorZClonePtr(long _arg); // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_clone")] public static extern long CResult_DelayedPaymentKeyDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_DelayedPaymentKeyDecodeErrorZ_clone")] public static extern long CResultDelayedPaymentKeyDecodeErrorZClone(long _orig); // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_ok(struct LDKHtlcBasepoint o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_ok")] public static extern long CResult_HtlcBasepointDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_ok")] public static extern long CResultHtlcBasepointDecodeErrorZOk(long _o); // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_err")] public static extern long CResult_HtlcBasepointDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_err")] public static extern long CResultHtlcBasepointDecodeErrorZErr(long _e); // bool CResult_HtlcBasepointDecodeErrorZ_is_ok(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_is_ok")] public static extern bool CResult_HtlcBasepointDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_is_ok")] public static extern bool CResultHtlcBasepointDecodeErrorZIsOk(long _o); // void CResult_HtlcBasepointDecodeErrorZ_free(struct LDKCResult_HtlcBasepointDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_free")] public static extern void CResult_HtlcBasepointDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_free")] public static extern void CResultHtlcBasepointDecodeErrorZFree(long __res); // uint64_t CResult_HtlcBasepointDecodeErrorZ_clone_ptr(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_clone_ptr")] public static extern long CResult_HtlcBasepointDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_clone_ptr")] public static extern long CResultHtlcBasepointDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_clone(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_clone")] public static extern long CResult_HtlcBasepointDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcBasepointDecodeErrorZ_clone")] public static extern long CResultHtlcBasepointDecodeErrorZClone(long _orig); // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_ok(struct LDKHtlcKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_ok")] public static extern long CResult_HtlcKeyDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_ok")] public static extern long CResultHtlcKeyDecodeErrorZOk(long _o); // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_err")] public static extern long CResult_HtlcKeyDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_err")] public static extern long CResultHtlcKeyDecodeErrorZErr(long _e); // bool CResult_HtlcKeyDecodeErrorZ_is_ok(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_is_ok")] public static extern bool CResult_HtlcKeyDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_is_ok")] public static extern bool CResultHtlcKeyDecodeErrorZIsOk(long _o); // void CResult_HtlcKeyDecodeErrorZ_free(struct LDKCResult_HtlcKeyDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_free")] public static extern void CResult_HtlcKeyDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_free")] public static extern void CResultHtlcKeyDecodeErrorZFree(long __res); // uint64_t CResult_HtlcKeyDecodeErrorZ_clone_ptr(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_clone_ptr")] public static extern long CResult_HtlcKeyDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_clone_ptr")] public static extern long CResultHtlcKeyDecodeErrorZClonePtr(long _arg); // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_clone(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_clone")] public static extern long CResult_HtlcKeyDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_HtlcKeyDecodeErrorZ_clone")] public static extern long CResultHtlcKeyDecodeErrorZClone(long _orig); // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_ok(struct LDKRevocationBasepoint o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_ok")] public static extern long CResult_RevocationBasepointDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_ok")] public static extern long CResultRevocationBasepointDecodeErrorZOk(long _o); // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_err")] public static extern long CResult_RevocationBasepointDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_err")] public static extern long CResultRevocationBasepointDecodeErrorZErr(long _e); // bool CResult_RevocationBasepointDecodeErrorZ_is_ok(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_is_ok")] public static extern bool CResult_RevocationBasepointDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_is_ok")] public static extern bool CResultRevocationBasepointDecodeErrorZIsOk(long _o); // void CResult_RevocationBasepointDecodeErrorZ_free(struct LDKCResult_RevocationBasepointDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_free")] public static extern void CResult_RevocationBasepointDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_free")] public static extern void CResultRevocationBasepointDecodeErrorZFree(long __res); // uint64_t CResult_RevocationBasepointDecodeErrorZ_clone_ptr(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_clone_ptr")] public static extern long CResult_RevocationBasepointDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_clone_ptr")] public static extern long CResultRevocationBasepointDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_clone(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_clone")] public static extern long CResult_RevocationBasepointDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationBasepointDecodeErrorZ_clone")] public static extern long CResultRevocationBasepointDecodeErrorZClone(long _orig); // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_ok(struct LDKRevocationKey o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_ok")] public static extern long CResult_RevocationKeyDecodeErrorZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_ok")] public static extern long CResultRevocationKeyDecodeErrorZOk(long _o); // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_err(struct LDKDecodeError e); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_err")] public static extern long CResult_RevocationKeyDecodeErrorZ_err(long _e); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_err")] public static extern long CResultRevocationKeyDecodeErrorZErr(long _e); // bool CResult_RevocationKeyDecodeErrorZ_is_ok(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_is_ok")] public static extern bool CResult_RevocationKeyDecodeErrorZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_is_ok")] public static extern bool CResultRevocationKeyDecodeErrorZIsOk(long _o); // void CResult_RevocationKeyDecodeErrorZ_free(struct LDKCResult_RevocationKeyDecodeErrorZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_free")] public static extern void CResult_RevocationKeyDecodeErrorZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_free")] public static extern void CResultRevocationKeyDecodeErrorZFree(long __res); // uint64_t CResult_RevocationKeyDecodeErrorZ_clone_ptr(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_clone_ptr")] public static extern long CResult_RevocationKeyDecodeErrorZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_clone_ptr")] public static extern long CResultRevocationKeyDecodeErrorZClonePtr(long _arg); // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_clone(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_clone")] public static extern long CResult_RevocationKeyDecodeErrorZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_RevocationKeyDecodeErrorZ_clone")] public static extern long CResultRevocationKeyDecodeErrorZClone(long _orig); // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_some")] public static extern long COption_FilterZ_some(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_some")] public static extern long COptionFilterZSome(long _o); // struct LDKCOption_FilterZ COption_FilterZ_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_none")] public static extern long COption_FilterZ_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_none")] public static extern long COptionFilterZNone(); // void COption_FilterZ_free(struct LDKCOption_FilterZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_free")] public static extern void COption_FilterZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_COption_FilterZ_free")] public static extern void COptionFilterZFree(long __res); // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_ok")] public static extern long CResult_LockedChannelMonitorNoneZ_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_ok")] public static extern long CResultLockedChannelMonitorNoneZOk(long _o); // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_err")] public static extern long CResult_LockedChannelMonitorNoneZ_err(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_err")] public static extern long CResultLockedChannelMonitorNoneZErr(); // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_is_ok")] public static extern bool CResult_LockedChannelMonitorNoneZ_is_ok(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_is_ok")] public static extern bool CResultLockedChannelMonitorNoneZIsOk(long _o); // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_free")] public static extern void CResult_LockedChannelMonitorNoneZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CResult_LockedChannelMonitorNoneZ_free")] public static extern void CResultLockedChannelMonitorNoneZFree(long __res); // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_OutPointZ_free")] public static extern void CVec_OutPointZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_OutPointZ_free")] public static extern void CVecOutPointZFree(long __res); // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MonitorUpdateIdZ_free")] public static extern void CVec_MonitorUpdateIdZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_MonitorUpdateIdZ_free")] public static extern void CVecMonitorUpdateIdZFree(long __res); // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr")] public static extern long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr")] public static extern long C2TupleOutPointCVecMonitorUpdateIdZZClonePtr(long _arg); // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone")] public static extern long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone")] public static extern long C2TupleOutPointCVecMonitorUpdateIdZZClone(long _orig); // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new")] public static extern long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new")] public static extern long C2TupleOutPointCVecMonitorUpdateIdZZNew(long _a, long _b); // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free")] public static extern void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free")] public static extern void C2TupleOutPointCVecMonitorUpdateIdZZFree(long __res); // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free")] public static extern void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long __res); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free")] public static extern void CVecC2TupleOutPointCVecMonitorUpdateIdZZZFree(long __res); // void APIError_free(struct LDKAPIError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_free")] public static extern void APIError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_free")] public static extern void APIErrorFree(long _this_ptr); // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_clone_ptr")] public static extern long APIError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_clone_ptr")] public static extern long APIErrorClonePtr(long _arg); // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_clone")] public static extern long APIError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_clone")] public static extern long APIErrorClone(long _orig); // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_apimisuse_error")] public static extern long APIError_apimisuse_error(long _err); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_apimisuse_error")] public static extern long APIErrorApimisuseError(long _err); // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_fee_rate_too_high")] public static extern long APIError_fee_rate_too_high(long _err, int _feerate); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_fee_rate_too_high")] public static extern long APIErrorFeeRateTooHigh(long _err, int _feerate); // struct LDKAPIError APIError_invalid_route(struct LDKStr err); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_invalid_route")] public static extern long APIError_invalid_route(long _err); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_invalid_route")] public static extern long APIErrorInvalidRoute(long _err); // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_channel_unavailable")] public static extern long APIError_channel_unavailable(long _err); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_channel_unavailable")] public static extern long APIErrorChannelUnavailable(long _err); // struct LDKAPIError APIError_monitor_update_in_progress(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_monitor_update_in_progress")] public static extern long APIError_monitor_update_in_progress(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_monitor_update_in_progress")] public static extern long APIErrorMonitorUpdateInProgress(); // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_incompatible_shutdown_script")] public static extern long APIError_incompatible_shutdown_script(long _script); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_incompatible_shutdown_script")] public static extern long APIErrorIncompatibleShutdownScript(long _script); // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_eq")] public static extern bool APIError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_eq")] public static extern bool APIErrorEq(long _a, long _b); // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_write")] public static extern long APIError_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_write")] public static extern long APIErrorWrite(long _obj); // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_read")] public static extern long APIError_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_APIError_read")] public static extern long APIErrorRead(long _ser); // void BigSize_free(struct LDKBigSize this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_free")] public static extern void BigSize_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_free")] public static extern void BigSizeFree(long _this_obj); // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_get_a")] public static extern long BigSize_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_get_a")] public static extern long BigSizeGetA(long _this_ptr); // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_set_a")] public static extern void BigSize_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_set_a")] public static extern void BigSizeSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_new")] public static extern long BigSize_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_new")] public static extern long BigSizeNew(long _a_arg); // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_clone_ptr")] public static extern long BigSize_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_clone_ptr")] public static extern long BigSizeClonePtr(long _arg); // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_clone")] public static extern long BigSize_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_clone")] public static extern long BigSizeClone(long _orig); // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_hash")] public static extern long BigSize_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_hash")] public static extern long BigSizeHash(long _o); // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_eq")] public static extern bool BigSize_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_eq")] public static extern bool BigSizeEq(long _a, long _b); // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_write")] public static extern long BigSize_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_write")] public static extern long BigSizeWrite(long _obj); // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_read")] public static extern long BigSize_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BigSize_read")] public static extern long BigSizeRead(long _ser); // void Hostname_free(struct LDKHostname this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_free")] public static extern void Hostname_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_free")] public static extern void HostnameFree(long _this_obj); // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_clone_ptr")] public static extern long Hostname_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_clone_ptr")] public static extern long HostnameClonePtr(long _arg); // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_clone")] public static extern long Hostname_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_clone")] public static extern long HostnameClone(long _orig); // uint64_t Hostname_hash(const struct LDKHostname *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_hash")] public static extern long Hostname_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_hash")] public static extern long HostnameHash(long _o); // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_eq")] public static extern bool Hostname_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_eq")] public static extern bool HostnameEq(long _a, long _b); // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_len")] public static extern byte Hostname_len(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_len")] public static extern byte HostnameLen(long _this_arg); // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_write")] public static extern long Hostname_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_write")] public static extern long HostnameWrite(long _obj); // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_read")] public static extern long Hostname_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Hostname_read")] public static extern long HostnameRead(long _ser); // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_free")] public static extern void TransactionU16LenLimited_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_free")] public static extern void TransactionU16LenLimitedFree(long _this_obj); // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_clone_ptr")] public static extern long TransactionU16LenLimited_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_clone_ptr")] public static extern long TransactionU16LenLimitedClonePtr(long _arg); // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_clone")] public static extern long TransactionU16LenLimited_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_clone")] public static extern long TransactionU16LenLimitedClone(long _orig); // uint64_t TransactionU16LenLimited_hash(const struct LDKTransactionU16LenLimited *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_hash")] public static extern long TransactionU16LenLimited_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_hash")] public static extern long TransactionU16LenLimitedHash(long _o); // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_eq")] public static extern bool TransactionU16LenLimited_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_eq")] public static extern bool TransactionU16LenLimitedEq(long _a, long _b); // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_new")] public static extern long TransactionU16LenLimited_new(long _transaction); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_new")] public static extern long TransactionU16LenLimitedNew(long _transaction); // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_into_transaction")] public static extern long TransactionU16LenLimited_into_transaction(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_into_transaction")] public static extern long TransactionU16LenLimitedIntoTransaction(long _this_arg); // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_write")] public static extern long TransactionU16LenLimited_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_write")] public static extern long TransactionU16LenLimitedWrite(long _obj); // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_read")] public static extern long TransactionU16LenLimited_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TransactionU16LenLimited_read")] public static extern long TransactionU16LenLimitedRead(long _ser); // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_sign")] public static extern long sign(long _msg, long _sk); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_sign")] public static extern long Sign(long _msg, long _sk); // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_recover_pk")] public static extern long recover_pk(long _msg, long _sig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_recover_pk")] public static extern long RecoverPk(long _msg, long _sig); // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify")] public static extern bool verify(long _msg, long _sig, long _pk); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify")] public static extern bool Verify(long _msg, long _sig, long _pk); // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_construct_invoice_preimage")] public static extern long construct_invoice_preimage(long _hrp_bytes, long _data_without_signature); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_construct_invoice_preimage")] public static extern long ConstructInvoicePreimage(long _hrp_bytes, long _data_without_signature); // void KVStore_free(struct LDKKVStore this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_free")] public static extern void KVStore_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KVStore_free")] public static extern void KVStoreFree(long _this_ptr); // void Persister_free(struct LDKPersister this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_free")] public static extern void Persister_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persister_free")] public static extern void PersisterFree(long _this_ptr); // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_read_channel_monitors")] public static extern long read_channel_monitors(long _kv_store, long _entropy_source, long _signer_provider); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_read_channel_monitors")] public static extern long ReadChannelMonitors(long _kv_store, long _entropy_source, long _signer_provider); // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_free")] public static extern void MonitorUpdatingPersister_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_free")] public static extern void MonitorUpdatingPersisterFree(long _this_obj); // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_new")] public static extern long MonitorUpdatingPersister_new(long _kv_store, long _logger, long _maximum_pending_updates, long _entropy_source, long _signer_provider); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_new")] public static extern long MonitorUpdatingPersisterNew(long _kv_store, long _logger, long _maximum_pending_updates, long _entropy_source, long _signer_provider); // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_read_all_channel_monitors_with_updates")] public static extern long MonitorUpdatingPersister_read_all_channel_monitors_with_updates(long _this_arg, long _broadcaster, long _fee_estimator); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_read_all_channel_monitors_with_updates")] public static extern long MonitorUpdatingPersisterReadAllChannelMonitorsWithUpdates(long _this_arg, long _broadcaster, long _fee_estimator); // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_read_channel_monitor_with_updates")] public static extern long MonitorUpdatingPersister_read_channel_monitor_with_updates(long _this_arg, long _broadcaster, long _fee_estimator, long _monitor_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_read_channel_monitor_with_updates")] public static extern long MonitorUpdatingPersisterReadChannelMonitorWithUpdates(long _this_arg, long _broadcaster, long _fee_estimator, long _monitor_key); // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_cleanup_stale_updates")] public static extern long MonitorUpdatingPersister_cleanup_stale_updates(long _this_arg, bool _lazy); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_cleanup_stale_updates")] public static extern long MonitorUpdatingPersisterCleanupStaleUpdates(long _this_arg, bool _lazy); // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_as_Persist")] public static extern long MonitorUpdatingPersister_as_Persist(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdatingPersister_as_Persist")] public static extern long MonitorUpdatingPersisterAsPersist(long _this_arg); // void UntrustedString_free(struct LDKUntrustedString this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_free")] public static extern void UntrustedString_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_free")] public static extern void UntrustedStringFree(long _this_obj); // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_get_a")] public static extern long UntrustedString_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_get_a")] public static extern long UntrustedStringGetA(long _this_ptr); // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_set_a")] public static extern void UntrustedString_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_set_a")] public static extern void UntrustedStringSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_new")] public static extern long UntrustedString_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_new")] public static extern long UntrustedStringNew(long _a_arg); // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_clone_ptr")] public static extern long UntrustedString_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_clone_ptr")] public static extern long UntrustedStringClonePtr(long _arg); // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_clone")] public static extern long UntrustedString_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_clone")] public static extern long UntrustedStringClone(long _orig); // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_eq")] public static extern bool UntrustedString_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_eq")] public static extern bool UntrustedStringEq(long _a, long _b); // uint64_t UntrustedString_hash(const struct LDKUntrustedString *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_hash")] public static extern long UntrustedString_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_hash")] public static extern long UntrustedStringHash(long _o); // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_write")] public static extern long UntrustedString_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_write")] public static extern long UntrustedStringWrite(long _obj); // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_read")] public static extern long UntrustedString_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UntrustedString_read")] public static extern long UntrustedStringRead(long _ser); // void PrintableString_free(struct LDKPrintableString this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_free")] public static extern void PrintableString_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_free")] public static extern void PrintableStringFree(long _this_obj); // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_get_a")] public static extern long PrintableString_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_get_a")] public static extern long PrintableStringGetA(long _this_ptr); // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_set_a")] public static extern void PrintableString_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_set_a")] public static extern void PrintableStringSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_new")] public static extern long PrintableString_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrintableString_new")] public static extern long PrintableStringNew(long _a_arg); // void FutureCallback_free(struct LDKFutureCallback this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FutureCallback_free")] public static extern void FutureCallback_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FutureCallback_free")] public static extern void FutureCallbackFree(long _this_ptr); // void Future_free(struct LDKFuture this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_free")] public static extern void Future_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_free")] public static extern void FutureFree(long _this_obj); // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_clone_ptr")] public static extern long Future_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_clone_ptr")] public static extern long FutureClonePtr(long _arg); // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_clone")] public static extern long Future_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_clone")] public static extern long FutureClone(long _orig); // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_register_callback_fn")] public static extern void Future_register_callback_fn(long _this_arg, long _callback); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_register_callback_fn")] public static extern void FutureRegisterCallbackFn(long _this_arg, long _callback); // void Future_wait(struct LDKFuture this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_wait")] public static extern void Future_wait(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_wait")] public static extern void FutureWait(long _this_arg); // MUST_USE_RES bool Future_wait_timeout(struct LDKFuture this_arg, uint64_t max_wait); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_wait_timeout")] public static extern bool Future_wait_timeout(long _this_arg, long _max_wait); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Future_wait_timeout")] public static extern bool FutureWaitTimeout(long _this_arg, long _max_wait); // void Sleeper_free(struct LDKSleeper this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_free")] public static extern void Sleeper_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_free")] public static extern void SleeperFree(long _this_obj); // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(struct LDKFuture future); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_from_single_future")] public static extern long Sleeper_from_single_future(long _future); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_from_single_future")] public static extern long SleeperFromSingleFuture(long _future); // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(struct LDKFuture fut_a, struct LDKFuture fut_b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_from_two_futures")] public static extern long Sleeper_from_two_futures(long _fut_a, long _fut_b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_from_two_futures")] public static extern long SleeperFromTwoFutures(long _fut_a, long _fut_b); // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_new")] public static extern long Sleeper_new(long _futures); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_new")] public static extern long SleeperNew(long _futures); // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_wait")] public static extern void Sleeper_wait(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_wait")] public static extern void SleeperWait(long _this_arg); // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_wait_timeout")] public static extern bool Sleeper_wait_timeout(long _this_arg, long _max_wait); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sleeper_wait_timeout")] public static extern bool SleeperWaitTimeout(long _this_arg, long _max_wait); // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_clone")] public static extern Level Level_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_clone")] public static extern Level LevelClone(long _orig); // enum LDKLevel Level_gossip(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_gossip")] public static extern Level Level_gossip(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_gossip")] public static extern Level LevelGossip(); // enum LDKLevel Level_trace(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_trace")] public static extern Level Level_trace(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_trace")] public static extern Level LevelTrace(); // enum LDKLevel Level_debug(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_debug")] public static extern Level Level_debug(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_debug")] public static extern Level LevelDebug(); // enum LDKLevel Level_info(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_info")] public static extern Level Level_info(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_info")] public static extern Level LevelInfo(); // enum LDKLevel Level_warn(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_warn")] public static extern Level Level_warn(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_warn")] public static extern Level LevelWarn(); // enum LDKLevel Level_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_error")] public static extern Level Level_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_error")] public static extern Level LevelError(); // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_eq")] public static extern bool Level_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_eq")] public static extern bool LevelEq(long _a, long _b); // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_hash")] public static extern long Level_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_hash")] public static extern long LevelHash(long _o); // MUST_USE_RES enum LDKLevel Level_max(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_max")] public static extern Level Level_max(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Level_max")] public static extern Level LevelMax(); // void Record_free(struct LDKRecord this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_free")] public static extern void Record_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_free")] public static extern void RecordFree(long _this_obj); // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_level")] public static extern Level Record_get_level(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_level")] public static extern Level RecordGetLevel(long _this_ptr); // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_level")] public static extern void Record_set_level(long _this_ptr, Level _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_level")] public static extern void RecordSetLevel(long _this_ptr, Level _val); // struct LDKPublicKey Record_get_peer_id(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_peer_id")] public static extern long Record_get_peer_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_peer_id")] public static extern long RecordGetPeerId(long _this_ptr); // void Record_set_peer_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_peer_id")] public static extern void Record_set_peer_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_peer_id")] public static extern void RecordSetPeerId(long _this_ptr, long _val); // struct LDKCOption_ThirtyTwoBytesZ Record_get_channel_id(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_channel_id")] public static extern long Record_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_channel_id")] public static extern long RecordGetChannelId(long _this_ptr); // void Record_set_channel_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_channel_id")] public static extern void Record_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_channel_id")] public static extern void RecordSetChannelId(long _this_ptr, long _val); // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_args")] public static extern long Record_get_args(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_args")] public static extern long RecordGetArgs(long _this_ptr); // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_args")] public static extern void Record_set_args(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_args")] public static extern void RecordSetArgs(long _this_ptr, long _val); // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_module_path")] public static extern long Record_get_module_path(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_module_path")] public static extern long RecordGetModulePath(long _this_ptr); // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_module_path")] public static extern void Record_set_module_path(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_module_path")] public static extern void RecordSetModulePath(long _this_ptr, long _val); // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_file")] public static extern long Record_get_file(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_file")] public static extern long RecordGetFile(long _this_ptr); // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_file")] public static extern void Record_set_file(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_file")] public static extern void RecordSetFile(long _this_ptr, long _val); // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_line")] public static extern int Record_get_line(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_get_line")] public static extern int RecordGetLine(long _this_ptr); // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_line")] public static extern void Record_set_line(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_set_line")] public static extern void RecordSetLine(long _this_ptr, int _val); // MUST_USE_RES struct LDKRecord Record_new(enum LDKLevel level_arg, struct LDKPublicKey peer_id_arg, struct LDKCOption_ThirtyTwoBytesZ channel_id_arg, struct LDKStr args_arg, struct LDKStr module_path_arg, struct LDKStr file_arg, uint32_t line_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_new")] public static extern long Record_new(Level _level_arg, long _peer_id_arg, long _channel_id_arg, long _args_arg, long _module_path_arg, long _file_arg, int _line_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_new")] public static extern long RecordNew(Level _level_arg, long _peer_id_arg, long _channel_id_arg, long _args_arg, long _module_path_arg, long _file_arg, int _line_arg); // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_clone_ptr")] public static extern long Record_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_clone_ptr")] public static extern long RecordClonePtr(long _arg); // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_clone")] public static extern long Record_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Record_clone")] public static extern long RecordClone(long _orig); // void Logger_free(struct LDKLogger this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Logger_free")] public static extern void Logger_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Logger_free")] public static extern void LoggerFree(long _this_ptr); // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_free")] public static extern void ChannelHandshakeConfig_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_free")] public static extern void ChannelHandshakeConfigFree(long _this_obj); // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_minimum_depth")] public static extern int ChannelHandshakeConfig_get_minimum_depth(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_minimum_depth")] public static extern int ChannelHandshakeConfigGetMinimumDepth(long _this_ptr); // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_minimum_depth")] public static extern void ChannelHandshakeConfig_set_minimum_depth(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_minimum_depth")] public static extern void ChannelHandshakeConfigSetMinimumDepth(long _this_ptr, int _val); // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_to_self_delay")] public static extern short ChannelHandshakeConfig_get_our_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_to_self_delay")] public static extern short ChannelHandshakeConfigGetOurToSelfDelay(long _this_ptr); // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_to_self_delay")] public static extern void ChannelHandshakeConfig_set_our_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_to_self_delay")] public static extern void ChannelHandshakeConfigSetOurToSelfDelay(long _this_ptr, short _val); // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_htlc_minimum_msat")] public static extern long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_htlc_minimum_msat")] public static extern long ChannelHandshakeConfigGetOurHtlcMinimumMsat(long _this_ptr); // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_htlc_minimum_msat")] public static extern void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_htlc_minimum_msat")] public static extern void ChannelHandshakeConfigSetOurHtlcMinimumMsat(long _this_ptr, long _val); // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel")] public static extern byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel")] public static extern byte ChannelHandshakeConfigGetMaxInboundHtlcValueInFlightPercentOfChannel(long _this_ptr); // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel")] public static extern void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel")] public static extern void ChannelHandshakeConfigSetMaxInboundHtlcValueInFlightPercentOfChannel(long _this_ptr, byte _val); // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_negotiate_scid_privacy")] public static extern bool ChannelHandshakeConfig_get_negotiate_scid_privacy(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_negotiate_scid_privacy")] public static extern bool ChannelHandshakeConfigGetNegotiateScidPrivacy(long _this_ptr); // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_negotiate_scid_privacy")] public static extern void ChannelHandshakeConfig_set_negotiate_scid_privacy(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_negotiate_scid_privacy")] public static extern void ChannelHandshakeConfigSetNegotiateScidPrivacy(long _this_ptr, bool _val); // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_announced_channel")] public static extern bool ChannelHandshakeConfig_get_announced_channel(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_announced_channel")] public static extern bool ChannelHandshakeConfigGetAnnouncedChannel(long _this_ptr); // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_announced_channel")] public static extern void ChannelHandshakeConfig_set_announced_channel(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_announced_channel")] public static extern void ChannelHandshakeConfigSetAnnouncedChannel(long _this_ptr, bool _val); // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey")] public static extern bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey")] public static extern bool ChannelHandshakeConfigGetCommitUpfrontShutdownPubkey(long _this_ptr); // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey")] public static extern void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey")] public static extern void ChannelHandshakeConfigSetCommitUpfrontShutdownPubkey(long _this_ptr, bool _val); // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths")] public static extern int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths")] public static extern int ChannelHandshakeConfigGetTheirChannelReserveProportionalMillionths(long _this_ptr); // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths")] public static extern void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths")] public static extern void ChannelHandshakeConfigSetTheirChannelReserveProportionalMillionths(long _this_ptr, int _val); // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx")] public static extern bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx")] public static extern bool ChannelHandshakeConfigGetNegotiateAnchorsZeroFeeHtlcTx(long _this_ptr); // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx")] public static extern void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx")] public static extern void ChannelHandshakeConfigSetNegotiateAnchorsZeroFeeHtlcTx(long _this_ptr, bool _val); // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_max_accepted_htlcs")] public static extern short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_get_our_max_accepted_htlcs")] public static extern short ChannelHandshakeConfigGetOurMaxAcceptedHtlcs(long _this_ptr); // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_max_accepted_htlcs")] public static extern void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_set_our_max_accepted_htlcs")] public static extern void ChannelHandshakeConfigSetOurMaxAcceptedHtlcs(long _this_ptr, short _val); // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, uint16_t our_max_accepted_htlcs_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_new")] public static extern long ChannelHandshakeConfig_new(int _minimum_depth_arg, short _our_to_self_delay_arg, long _our_htlc_minimum_msat_arg, byte _max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool _negotiate_scid_privacy_arg, bool _announced_channel_arg, bool _commit_upfront_shutdown_pubkey_arg, int _their_channel_reserve_proportional_millionths_arg, bool _negotiate_anchors_zero_fee_htlc_tx_arg, short _our_max_accepted_htlcs_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_new")] public static extern long ChannelHandshakeConfigNew(int _minimum_depth_arg, short _our_to_self_delay_arg, long _our_htlc_minimum_msat_arg, byte _max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool _negotiate_scid_privacy_arg, bool _announced_channel_arg, bool _commit_upfront_shutdown_pubkey_arg, int _their_channel_reserve_proportional_millionths_arg, bool _negotiate_anchors_zero_fee_htlc_tx_arg, short _our_max_accepted_htlcs_arg); // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_clone_ptr")] public static extern long ChannelHandshakeConfig_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_clone_ptr")] public static extern long ChannelHandshakeConfigClonePtr(long _arg); // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_clone")] public static extern long ChannelHandshakeConfig_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_clone")] public static extern long ChannelHandshakeConfigClone(long _orig); // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_default")] public static extern long ChannelHandshakeConfig_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeConfig_default")] public static extern long ChannelHandshakeConfigDefault(); // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_free")] public static extern void ChannelHandshakeLimits_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_free")] public static extern void ChannelHandshakeLimitsFree(long _this_obj); // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_funding_satoshis")] public static extern long ChannelHandshakeLimits_get_min_funding_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_funding_satoshis")] public static extern long ChannelHandshakeLimitsGetMinFundingSatoshis(long _this_ptr); // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_funding_satoshis")] public static extern void ChannelHandshakeLimits_set_min_funding_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_funding_satoshis")] public static extern void ChannelHandshakeLimitsSetMinFundingSatoshis(long _this_ptr, long _val); // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_funding_satoshis")] public static extern long ChannelHandshakeLimits_get_max_funding_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_funding_satoshis")] public static extern long ChannelHandshakeLimitsGetMaxFundingSatoshis(long _this_ptr); // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_funding_satoshis")] public static extern void ChannelHandshakeLimits_set_max_funding_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_funding_satoshis")] public static extern void ChannelHandshakeLimitsSetMaxFundingSatoshis(long _this_ptr, long _val); // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_htlc_minimum_msat")] public static extern long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_htlc_minimum_msat")] public static extern long ChannelHandshakeLimitsGetMaxHtlcMinimumMsat(long _this_ptr); // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_htlc_minimum_msat")] public static extern void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_htlc_minimum_msat")] public static extern void ChannelHandshakeLimitsSetMaxHtlcMinimumMsat(long _this_ptr, long _val); // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat")] public static extern long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat")] public static extern long ChannelHandshakeLimitsGetMinMaxHtlcValueInFlightMsat(long _this_ptr); // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat")] public static extern void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat")] public static extern void ChannelHandshakeLimitsSetMinMaxHtlcValueInFlightMsat(long _this_ptr, long _val); // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_channel_reserve_satoshis")] public static extern long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_channel_reserve_satoshis")] public static extern long ChannelHandshakeLimitsGetMaxChannelReserveSatoshis(long _this_ptr); // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_channel_reserve_satoshis")] public static extern void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_channel_reserve_satoshis")] public static extern void ChannelHandshakeLimitsSetMaxChannelReserveSatoshis(long _this_ptr, long _val); // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_max_accepted_htlcs")] public static extern short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_min_max_accepted_htlcs")] public static extern short ChannelHandshakeLimitsGetMinMaxAcceptedHtlcs(long _this_ptr); // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_max_accepted_htlcs")] public static extern void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_min_max_accepted_htlcs")] public static extern void ChannelHandshakeLimitsSetMinMaxAcceptedHtlcs(long _this_ptr, short _val); // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_minimum_depth")] public static extern int ChannelHandshakeLimits_get_max_minimum_depth(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_max_minimum_depth")] public static extern int ChannelHandshakeLimitsGetMaxMinimumDepth(long _this_ptr); // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_minimum_depth")] public static extern void ChannelHandshakeLimits_set_max_minimum_depth(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_max_minimum_depth")] public static extern void ChannelHandshakeLimitsSetMaxMinimumDepth(long _this_ptr, int _val); // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_trust_own_funding_0conf")] public static extern bool ChannelHandshakeLimits_get_trust_own_funding_0conf(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_trust_own_funding_0conf")] public static extern bool ChannelHandshakeLimitsGetTrustOwnFunding0Conf(long _this_ptr); // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_trust_own_funding_0conf")] public static extern void ChannelHandshakeLimits_set_trust_own_funding_0conf(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_trust_own_funding_0conf")] public static extern void ChannelHandshakeLimitsSetTrustOwnFunding0Conf(long _this_ptr, bool _val); // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_force_announced_channel_preference")] public static extern bool ChannelHandshakeLimits_get_force_announced_channel_preference(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_force_announced_channel_preference")] public static extern bool ChannelHandshakeLimitsGetForceAnnouncedChannelPreference(long _this_ptr); // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_force_announced_channel_preference")] public static extern void ChannelHandshakeLimits_set_force_announced_channel_preference(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_force_announced_channel_preference")] public static extern void ChannelHandshakeLimitsSetForceAnnouncedChannelPreference(long _this_ptr, bool _val); // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_their_to_self_delay")] public static extern short ChannelHandshakeLimits_get_their_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_get_their_to_self_delay")] public static extern short ChannelHandshakeLimitsGetTheirToSelfDelay(long _this_ptr); // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_their_to_self_delay")] public static extern void ChannelHandshakeLimits_set_their_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_set_their_to_self_delay")] public static extern void ChannelHandshakeLimitsSetTheirToSelfDelay(long _this_ptr, short _val); // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_new")] public static extern long ChannelHandshakeLimits_new(long _min_funding_satoshis_arg, long _max_funding_satoshis_arg, long _max_htlc_minimum_msat_arg, long _min_max_htlc_value_in_flight_msat_arg, long _max_channel_reserve_satoshis_arg, short _min_max_accepted_htlcs_arg, int _max_minimum_depth_arg, bool _trust_own_funding_0conf_arg, bool _force_announced_channel_preference_arg, short _their_to_self_delay_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_new")] public static extern long ChannelHandshakeLimitsNew(long _min_funding_satoshis_arg, long _max_funding_satoshis_arg, long _max_htlc_minimum_msat_arg, long _min_max_htlc_value_in_flight_msat_arg, long _max_channel_reserve_satoshis_arg, short _min_max_accepted_htlcs_arg, int _max_minimum_depth_arg, bool _trust_own_funding_0conf_arg, bool _force_announced_channel_preference_arg, short _their_to_self_delay_arg); // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_clone_ptr")] public static extern long ChannelHandshakeLimits_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_clone_ptr")] public static extern long ChannelHandshakeLimitsClonePtr(long _arg); // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_clone")] public static extern long ChannelHandshakeLimits_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_clone")] public static extern long ChannelHandshakeLimitsClone(long _orig); // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_default")] public static extern long ChannelHandshakeLimits_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelHandshakeLimits_default")] public static extern long ChannelHandshakeLimitsDefault(); // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_free")] public static extern void MaxDustHTLCExposure_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_free")] public static extern void MaxDustHTLCExposureFree(long _this_ptr); // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_clone_ptr")] public static extern long MaxDustHTLCExposure_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_clone_ptr")] public static extern long MaxDustHTLCExposureClonePtr(long _arg); // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_clone")] public static extern long MaxDustHTLCExposure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_clone")] public static extern long MaxDustHTLCExposureClone(long _orig); // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_fixed_limit_msat")] public static extern long MaxDustHTLCExposure_fixed_limit_msat(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_fixed_limit_msat")] public static extern long MaxDustHTLCExposureFixedLimitMsat(long _a); // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_fee_rate_multiplier")] public static extern long MaxDustHTLCExposure_fee_rate_multiplier(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_fee_rate_multiplier")] public static extern long MaxDustHTLCExposureFeeRateMultiplier(long _a); // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_eq")] public static extern bool MaxDustHTLCExposure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_eq")] public static extern bool MaxDustHTLCExposureEq(long _a, long _b); // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_write")] public static extern long MaxDustHTLCExposure_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_write")] public static extern long MaxDustHTLCExposureWrite(long _obj); // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_read")] public static extern long MaxDustHTLCExposure_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MaxDustHTLCExposure_read")] public static extern long MaxDustHTLCExposureRead(long _ser); // void ChannelConfig_free(struct LDKChannelConfig this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_free")] public static extern void ChannelConfig_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_free")] public static extern void ChannelConfigFree(long _this_obj); // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_forwarding_fee_proportional_millionths")] public static extern int ChannelConfig_get_forwarding_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_forwarding_fee_proportional_millionths")] public static extern int ChannelConfigGetForwardingFeeProportionalMillionths(long _this_ptr); // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_forwarding_fee_proportional_millionths")] public static extern void ChannelConfig_set_forwarding_fee_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_forwarding_fee_proportional_millionths")] public static extern void ChannelConfigSetForwardingFeeProportionalMillionths(long _this_ptr, int _val); // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_forwarding_fee_base_msat")] public static extern int ChannelConfig_get_forwarding_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_forwarding_fee_base_msat")] public static extern int ChannelConfigGetForwardingFeeBaseMsat(long _this_ptr); // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_forwarding_fee_base_msat")] public static extern void ChannelConfig_set_forwarding_fee_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_forwarding_fee_base_msat")] public static extern void ChannelConfigSetForwardingFeeBaseMsat(long _this_ptr, int _val); // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_cltv_expiry_delta")] public static extern short ChannelConfig_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_cltv_expiry_delta")] public static extern short ChannelConfigGetCltvExpiryDelta(long _this_ptr); // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_cltv_expiry_delta")] public static extern void ChannelConfig_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_cltv_expiry_delta")] public static extern void ChannelConfigSetCltvExpiryDelta(long _this_ptr, short _val); // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_max_dust_htlc_exposure")] public static extern long ChannelConfig_get_max_dust_htlc_exposure(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_max_dust_htlc_exposure")] public static extern long ChannelConfigGetMaxDustHtlcExposure(long _this_ptr); // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_max_dust_htlc_exposure")] public static extern void ChannelConfig_set_max_dust_htlc_exposure(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_max_dust_htlc_exposure")] public static extern void ChannelConfigSetMaxDustHtlcExposure(long _this_ptr, long _val); // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_force_close_avoidance_max_fee_satoshis")] public static extern long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_force_close_avoidance_max_fee_satoshis")] public static extern long ChannelConfigGetForceCloseAvoidanceMaxFeeSatoshis(long _this_ptr); // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_force_close_avoidance_max_fee_satoshis")] public static extern void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_force_close_avoidance_max_fee_satoshis")] public static extern void ChannelConfigSetForceCloseAvoidanceMaxFeeSatoshis(long _this_ptr, long _val); // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_accept_underpaying_htlcs")] public static extern bool ChannelConfig_get_accept_underpaying_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_get_accept_underpaying_htlcs")] public static extern bool ChannelConfigGetAcceptUnderpayingHtlcs(long _this_ptr); // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_accept_underpaying_htlcs")] public static extern void ChannelConfig_set_accept_underpaying_htlcs(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_set_accept_underpaying_htlcs")] public static extern void ChannelConfigSetAcceptUnderpayingHtlcs(long _this_ptr, bool _val); // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, struct LDKMaxDustHTLCExposure max_dust_htlc_exposure_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_new")] public static extern long ChannelConfig_new(int _forwarding_fee_proportional_millionths_arg, int _forwarding_fee_base_msat_arg, short _cltv_expiry_delta_arg, long _max_dust_htlc_exposure_arg, long _force_close_avoidance_max_fee_satoshis_arg, bool _accept_underpaying_htlcs_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_new")] public static extern long ChannelConfigNew(int _forwarding_fee_proportional_millionths_arg, int _forwarding_fee_base_msat_arg, short _cltv_expiry_delta_arg, long _max_dust_htlc_exposure_arg, long _force_close_avoidance_max_fee_satoshis_arg, bool _accept_underpaying_htlcs_arg); // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_clone_ptr")] public static extern long ChannelConfig_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_clone_ptr")] public static extern long ChannelConfigClonePtr(long _arg); // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_clone")] public static extern long ChannelConfig_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_clone")] public static extern long ChannelConfigClone(long _orig); // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_eq")] public static extern bool ChannelConfig_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_eq")] public static extern bool ChannelConfigEq(long _a, long _b); // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_apply")] public static extern void ChannelConfig_apply(long _this_arg, long _update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_apply")] public static extern void ChannelConfigApply(long _this_arg, long _update); // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_default")] public static extern long ChannelConfig_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_default")] public static extern long ChannelConfigDefault(); // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_write")] public static extern long ChannelConfig_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_write")] public static extern long ChannelConfigWrite(long _obj); // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_read")] public static extern long ChannelConfig_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfig_read")] public static extern long ChannelConfigRead(long _ser); // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_free")] public static extern void ChannelConfigUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_free")] public static extern void ChannelConfigUpdateFree(long _this_obj); // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_forwarding_fee_proportional_millionths")] public static extern long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_forwarding_fee_proportional_millionths")] public static extern long ChannelConfigUpdateGetForwardingFeeProportionalMillionths(long _this_ptr); // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_forwarding_fee_proportional_millionths")] public static extern void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_forwarding_fee_proportional_millionths")] public static extern void ChannelConfigUpdateSetForwardingFeeProportionalMillionths(long _this_ptr, long _val); // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_forwarding_fee_base_msat")] public static extern long ChannelConfigUpdate_get_forwarding_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_forwarding_fee_base_msat")] public static extern long ChannelConfigUpdateGetForwardingFeeBaseMsat(long _this_ptr); // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_forwarding_fee_base_msat")] public static extern void ChannelConfigUpdate_set_forwarding_fee_base_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_forwarding_fee_base_msat")] public static extern void ChannelConfigUpdateSetForwardingFeeBaseMsat(long _this_ptr, long _val); // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_cltv_expiry_delta")] public static extern long ChannelConfigUpdate_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_cltv_expiry_delta")] public static extern long ChannelConfigUpdateGetCltvExpiryDelta(long _this_ptr); // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_cltv_expiry_delta")] public static extern void ChannelConfigUpdate_set_cltv_expiry_delta(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_cltv_expiry_delta")] public static extern void ChannelConfigUpdateSetCltvExpiryDelta(long _this_ptr, long _val); // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_max_dust_htlc_exposure_msat")] public static extern long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_max_dust_htlc_exposure_msat")] public static extern long ChannelConfigUpdateGetMaxDustHtlcExposureMsat(long _this_ptr); // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_max_dust_htlc_exposure_msat")] public static extern void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_max_dust_htlc_exposure_msat")] public static extern void ChannelConfigUpdateSetMaxDustHtlcExposureMsat(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis")] public static extern long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis")] public static extern long ChannelConfigUpdateGetForceCloseAvoidanceMaxFeeSatoshis(long _this_ptr); // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis")] public static extern void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis")] public static extern void ChannelConfigUpdateSetForceCloseAvoidanceMaxFeeSatoshis(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_new(struct LDKCOption_u32Z forwarding_fee_proportional_millionths_arg, struct LDKCOption_u32Z forwarding_fee_base_msat_arg, struct LDKCOption_u16Z cltv_expiry_delta_arg, struct LDKCOption_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, struct LDKCOption_u64Z force_close_avoidance_max_fee_satoshis_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_new")] public static extern long ChannelConfigUpdate_new(long _forwarding_fee_proportional_millionths_arg, long _forwarding_fee_base_msat_arg, long _cltv_expiry_delta_arg, long _max_dust_htlc_exposure_msat_arg, long _force_close_avoidance_max_fee_satoshis_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_new")] public static extern long ChannelConfigUpdateNew(long _forwarding_fee_proportional_millionths_arg, long _forwarding_fee_base_msat_arg, long _cltv_expiry_delta_arg, long _max_dust_htlc_exposure_msat_arg, long _force_close_avoidance_max_fee_satoshis_arg); // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_default")] public static extern long ChannelConfigUpdate_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelConfigUpdate_default")] public static extern long ChannelConfigUpdateDefault(); // void UserConfig_free(struct LDKUserConfig this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_free")] public static extern void UserConfig_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_free")] public static extern void UserConfigFree(long _this_obj); // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_handshake_config")] public static extern long UserConfig_get_channel_handshake_config(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_handshake_config")] public static extern long UserConfigGetChannelHandshakeConfig(long _this_ptr); // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_handshake_config")] public static extern void UserConfig_set_channel_handshake_config(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_handshake_config")] public static extern void UserConfigSetChannelHandshakeConfig(long _this_ptr, long _val); // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_handshake_limits")] public static extern long UserConfig_get_channel_handshake_limits(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_handshake_limits")] public static extern long UserConfigGetChannelHandshakeLimits(long _this_ptr); // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_handshake_limits")] public static extern void UserConfig_set_channel_handshake_limits(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_handshake_limits")] public static extern void UserConfigSetChannelHandshakeLimits(long _this_ptr, long _val); // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_config")] public static extern long UserConfig_get_channel_config(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_channel_config")] public static extern long UserConfigGetChannelConfig(long _this_ptr); // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_config")] public static extern void UserConfig_set_channel_config(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_channel_config")] public static extern void UserConfigSetChannelConfig(long _this_ptr, long _val); // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_forwards_to_priv_channels")] public static extern bool UserConfig_get_accept_forwards_to_priv_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_forwards_to_priv_channels")] public static extern bool UserConfigGetAcceptForwardsToPrivChannels(long _this_ptr); // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_forwards_to_priv_channels")] public static extern void UserConfig_set_accept_forwards_to_priv_channels(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_forwards_to_priv_channels")] public static extern void UserConfigSetAcceptForwardsToPrivChannels(long _this_ptr, bool _val); // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_inbound_channels")] public static extern bool UserConfig_get_accept_inbound_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_inbound_channels")] public static extern bool UserConfigGetAcceptInboundChannels(long _this_ptr); // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_inbound_channels")] public static extern void UserConfig_set_accept_inbound_channels(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_inbound_channels")] public static extern void UserConfigSetAcceptInboundChannels(long _this_ptr, bool _val); // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_manually_accept_inbound_channels")] public static extern bool UserConfig_get_manually_accept_inbound_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_manually_accept_inbound_channels")] public static extern bool UserConfigGetManuallyAcceptInboundChannels(long _this_ptr); // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_manually_accept_inbound_channels")] public static extern void UserConfig_set_manually_accept_inbound_channels(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_manually_accept_inbound_channels")] public static extern void UserConfigSetManuallyAcceptInboundChannels(long _this_ptr, bool _val); // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_intercept_htlcs")] public static extern bool UserConfig_get_accept_intercept_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_intercept_htlcs")] public static extern bool UserConfigGetAcceptInterceptHtlcs(long _this_ptr); // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_intercept_htlcs")] public static extern void UserConfig_set_accept_intercept_htlcs(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_intercept_htlcs")] public static extern void UserConfigSetAcceptInterceptHtlcs(long _this_ptr, bool _val); // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_mpp_keysend")] public static extern bool UserConfig_get_accept_mpp_keysend(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_get_accept_mpp_keysend")] public static extern bool UserConfigGetAcceptMppKeysend(long _this_ptr); // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_mpp_keysend")] public static extern void UserConfig_set_accept_mpp_keysend(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_set_accept_mpp_keysend")] public static extern void UserConfigSetAcceptMppKeysend(long _this_ptr, bool _val); // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_new")] public static extern long UserConfig_new(long _channel_handshake_config_arg, long _channel_handshake_limits_arg, long _channel_config_arg, bool _accept_forwards_to_priv_channels_arg, bool _accept_inbound_channels_arg, bool _manually_accept_inbound_channels_arg, bool _accept_intercept_htlcs_arg, bool _accept_mpp_keysend_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_new")] public static extern long UserConfigNew(long _channel_handshake_config_arg, long _channel_handshake_limits_arg, long _channel_config_arg, bool _accept_forwards_to_priv_channels_arg, bool _accept_inbound_channels_arg, bool _manually_accept_inbound_channels_arg, bool _accept_intercept_htlcs_arg, bool _accept_mpp_keysend_arg); // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_clone_ptr")] public static extern long UserConfig_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_clone_ptr")] public static extern long UserConfigClonePtr(long _arg); // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_clone")] public static extern long UserConfig_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_clone")] public static extern long UserConfigClone(long _orig); // MUST_USE_RES struct LDKUserConfig UserConfig_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_default")] public static extern long UserConfig_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UserConfig_default")] public static extern long UserConfigDefault(); // void BestBlock_free(struct LDKBestBlock this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_free")] public static extern void BestBlock_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_free")] public static extern void BestBlockFree(long _this_obj); // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_clone_ptr")] public static extern long BestBlock_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_clone_ptr")] public static extern long BestBlockClonePtr(long _arg); // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_clone")] public static extern long BestBlock_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_clone")] public static extern long BestBlockClone(long _orig); // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_eq")] public static extern bool BestBlock_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_eq")] public static extern bool BestBlockEq(long _a, long _b); // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_from_network")] public static extern long BestBlock_from_network(Network _network); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_from_network")] public static extern long BestBlockFromNetwork(Network _network); // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_new")] public static extern long BestBlock_new(long _block_hash, int _height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_new")] public static extern long BestBlockNew(long _block_hash, int _height); // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_block_hash")] public static extern long BestBlock_block_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_block_hash")] public static extern long BestBlockBlockHash(long _this_arg); // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_height")] public static extern int BestBlock_height(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BestBlock_height")] public static extern int BestBlockHeight(long _this_arg); // void Listen_free(struct LDKListen this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_free")] public static extern void Listen_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Listen_free")] public static extern void ListenFree(long _this_ptr); // void Confirm_free(struct LDKConfirm this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_free")] public static extern void Confirm_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Confirm_free")] public static extern void ConfirmFree(long _this_ptr); // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_clone")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_clone")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusClone(long _orig); // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_completed")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_completed")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusCompleted(); // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_in_progress")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_in_progress")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusInProgress(); // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_unrecoverable_error")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_unrecoverable_error")] public static extern ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusUnrecoverableError(); // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_eq")] public static extern bool ChannelMonitorUpdateStatus_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdateStatus_eq")] public static extern bool ChannelMonitorUpdateStatusEq(long _a, long _b); // void Watch_free(struct LDKWatch this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_free")] public static extern void Watch_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Watch_free")] public static extern void WatchFree(long _this_ptr); // void Filter_free(struct LDKFilter this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_free")] public static extern void Filter_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Filter_free")] public static extern void FilterFree(long _this_ptr); // void WatchedOutput_free(struct LDKWatchedOutput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_free")] public static extern void WatchedOutput_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_free")] public static extern void WatchedOutputFree(long _this_obj); // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_block_hash")] public static extern long WatchedOutput_get_block_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_block_hash")] public static extern long WatchedOutputGetBlockHash(long _this_ptr); // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_block_hash")] public static extern void WatchedOutput_set_block_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_block_hash")] public static extern void WatchedOutputSetBlockHash(long _this_ptr, long _val); // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_outpoint")] public static extern long WatchedOutput_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_outpoint")] public static extern long WatchedOutputGetOutpoint(long _this_ptr); // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_outpoint")] public static extern void WatchedOutput_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_outpoint")] public static extern void WatchedOutputSetOutpoint(long _this_ptr, long _val); // struct LDKCVec_u8Z WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_script_pubkey")] public static extern long WatchedOutput_get_script_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_get_script_pubkey")] public static extern long WatchedOutputGetScriptPubkey(long _this_ptr); // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_script_pubkey")] public static extern void WatchedOutput_set_script_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_set_script_pubkey")] public static extern void WatchedOutputSetScriptPubkey(long _this_ptr, long _val); // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_new")] public static extern long WatchedOutput_new(long _block_hash_arg, long _outpoint_arg, long _script_pubkey_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_new")] public static extern long WatchedOutputNew(long _block_hash_arg, long _outpoint_arg, long _script_pubkey_arg); // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_clone_ptr")] public static extern long WatchedOutput_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_clone_ptr")] public static extern long WatchedOutputClonePtr(long _arg); // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_clone")] public static extern long WatchedOutput_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_clone")] public static extern long WatchedOutputClone(long _orig); // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_eq")] public static extern bool WatchedOutput_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_eq")] public static extern bool WatchedOutputEq(long _a, long _b); // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_hash")] public static extern long WatchedOutput_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WatchedOutput_hash")] public static extern long WatchedOutputHash(long _o); // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BroadcasterInterface_free")] public static extern void BroadcasterInterface_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BroadcasterInterface_free")] public static extern void BroadcasterInterfaceFree(long _this_ptr); // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_clone")] public static extern ConfirmationTarget ConfirmationTarget_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_clone")] public static extern ConfirmationTarget ConfirmationTargetClone(long _orig); // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_on_chain_sweep")] public static extern ConfirmationTarget ConfirmationTarget_on_chain_sweep(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_on_chain_sweep")] public static extern ConfirmationTarget ConfirmationTargetOnChainSweep(); // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_min_allowed_anchor_channel_remote_fee")] public static extern ConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_min_allowed_anchor_channel_remote_fee")] public static extern ConfirmationTarget ConfirmationTargetMinAllowedAnchorChannelRemoteFee(); // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee")] public static extern ConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee")] public static extern ConfirmationTarget ConfirmationTargetMinAllowedNonAnchorChannelRemoteFee(); // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_anchor_channel_fee")] public static extern ConfirmationTarget ConfirmationTarget_anchor_channel_fee(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_anchor_channel_fee")] public static extern ConfirmationTarget ConfirmationTargetAnchorChannelFee(); // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_non_anchor_channel_fee")] public static extern ConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_non_anchor_channel_fee")] public static extern ConfirmationTarget ConfirmationTargetNonAnchorChannelFee(); // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_channel_close_minimum")] public static extern ConfirmationTarget ConfirmationTarget_channel_close_minimum(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_channel_close_minimum")] public static extern ConfirmationTarget ConfirmationTargetChannelCloseMinimum(); // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_hash")] public static extern long ConfirmationTarget_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_hash")] public static extern long ConfirmationTargetHash(long _o); // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_eq")] public static extern bool ConfirmationTarget_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ConfirmationTarget_eq")] public static extern bool ConfirmationTargetEq(long _a, long _b); // void FeeEstimator_free(struct LDKFeeEstimator this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FeeEstimator_free")] public static extern void FeeEstimator_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FeeEstimator_free")] public static extern void FeeEstimatorFree(long _this_ptr); // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_free")] public static extern void MonitorUpdateId_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_free")] public static extern void MonitorUpdateIdFree(long _this_obj); // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_clone_ptr")] public static extern long MonitorUpdateId_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_clone_ptr")] public static extern long MonitorUpdateIdClonePtr(long _arg); // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_clone")] public static extern long MonitorUpdateId_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_clone")] public static extern long MonitorUpdateIdClone(long _orig); // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_hash")] public static extern long MonitorUpdateId_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_hash")] public static extern long MonitorUpdateIdHash(long _o); // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_eq")] public static extern bool MonitorUpdateId_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorUpdateId_eq")] public static extern bool MonitorUpdateIdEq(long _a, long _b); // void Persist_free(struct LDKPersist this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_free")] public static extern void Persist_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Persist_free")] public static extern void PersistFree(long _this_ptr); // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockedChannelMonitor_free")] public static extern void LockedChannelMonitor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockedChannelMonitor_free")] public static extern void LockedChannelMonitorFree(long _this_obj); // void ChainMonitor_free(struct LDKChainMonitor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_free")] public static extern void ChainMonitor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_free")] public static extern void ChainMonitorFree(long _this_obj); // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_new")] public static extern long ChainMonitor_new(long _chain_source, long _broadcaster, long _logger, long _feeest, long _persister); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_new")] public static extern long ChainMonitorNew(long _chain_source, long _broadcaster, long _logger, long _feeest, long _persister); // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_claimable_balances")] public static extern long ChainMonitor_get_claimable_balances(long _this_arg, long _ignored_channels); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_claimable_balances")] public static extern long ChainMonitorGetClaimableBalances(long _this_arg, long _ignored_channels); // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_monitor")] public static extern long ChainMonitor_get_monitor(long _this_arg, long _funding_txo); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_monitor")] public static extern long ChainMonitorGetMonitor(long _this_arg, long _funding_txo); // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_list_monitors")] public static extern long ChainMonitor_list_monitors(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_list_monitors")] public static extern long ChainMonitorListMonitors(long _this_arg); // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_list_pending_monitor_updates")] public static extern long ChainMonitor_list_pending_monitor_updates(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_list_pending_monitor_updates")] public static extern long ChainMonitorListPendingMonitorUpdates(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_channel_monitor_updated")] public static extern long ChainMonitor_channel_monitor_updated(long _this_arg, long _funding_txo, long _completed_update_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_channel_monitor_updated")] public static extern long ChainMonitorChannelMonitorUpdated(long _this_arg, long _funding_txo, long _completed_update_id); // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_update_future")] public static extern long ChainMonitor_get_update_future(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_get_update_future")] public static extern long ChainMonitorGetUpdateFuture(long _this_arg); // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_rebroadcast_pending_claims")] public static extern void ChainMonitor_rebroadcast_pending_claims(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_rebroadcast_pending_claims")] public static extern void ChainMonitorRebroadcastPendingClaims(long _this_arg); // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Listen")] public static extern long ChainMonitor_as_Listen(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Listen")] public static extern long ChainMonitorAsListen(long _this_arg); // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Confirm")] public static extern long ChainMonitor_as_Confirm(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Confirm")] public static extern long ChainMonitorAsConfirm(long _this_arg); // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Watch")] public static extern long ChainMonitor_as_Watch(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_Watch")] public static extern long ChainMonitorAsWatch(long _this_arg); // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_EventsProvider")] public static extern long ChainMonitor_as_EventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainMonitor_as_EventsProvider")] public static extern long ChainMonitorAsEventsProvider(long _this_arg); // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_free")] public static extern void ChannelMonitorUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_free")] public static extern void ChannelMonitorUpdateFree(long _this_obj); // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_get_update_id")] public static extern long ChannelMonitorUpdate_get_update_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_get_update_id")] public static extern long ChannelMonitorUpdateGetUpdateId(long _this_ptr); // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_set_update_id")] public static extern void ChannelMonitorUpdate_set_update_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_set_update_id")] public static extern void ChannelMonitorUpdateSetUpdateId(long _this_ptr, long _val); // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_clone_ptr")] public static extern long ChannelMonitorUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_clone_ptr")] public static extern long ChannelMonitorUpdateClonePtr(long _arg); // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_clone")] public static extern long ChannelMonitorUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_clone")] public static extern long ChannelMonitorUpdateClone(long _orig); // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_eq")] public static extern bool ChannelMonitorUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_eq")] public static extern bool ChannelMonitorUpdateEq(long _a, long _b); // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_write")] public static extern long ChannelMonitorUpdate_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_write")] public static extern long ChannelMonitorUpdateWrite(long _obj); // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_read")] public static extern long ChannelMonitorUpdate_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitorUpdate_read")] public static extern long ChannelMonitorUpdateRead(long _ser); // void MonitorEvent_free(struct LDKMonitorEvent this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_free")] public static extern void MonitorEvent_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_free")] public static extern void MonitorEventFree(long _this_ptr); // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_clone_ptr")] public static extern long MonitorEvent_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_clone_ptr")] public static extern long MonitorEventClonePtr(long _arg); // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_clone")] public static extern long MonitorEvent_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_clone")] public static extern long MonitorEventClone(long _orig); // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_htlcevent")] public static extern long MonitorEvent_htlcevent(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_htlcevent")] public static extern long MonitorEventHtlcevent(long _a); // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_holder_force_closed")] public static extern long MonitorEvent_holder_force_closed(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_holder_force_closed")] public static extern long MonitorEventHolderForceClosed(long _a); // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_completed")] public static extern long MonitorEvent_completed(long _funding_txo, long _monitor_update_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_completed")] public static extern long MonitorEventCompleted(long _funding_txo, long _monitor_update_id); // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_eq")] public static extern bool MonitorEvent_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_eq")] public static extern bool MonitorEventEq(long _a, long _b); // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_write")] public static extern long MonitorEvent_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_write")] public static extern long MonitorEventWrite(long _obj); // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_read")] public static extern long MonitorEvent_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MonitorEvent_read")] public static extern long MonitorEventRead(long _ser); // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_free")] public static extern void HTLCUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_free")] public static extern void HTLCUpdateFree(long _this_obj); // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_clone_ptr")] public static extern long HTLCUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_clone_ptr")] public static extern long HTLCUpdateClonePtr(long _arg); // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_clone")] public static extern long HTLCUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_clone")] public static extern long HTLCUpdateClone(long _orig); // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_eq")] public static extern bool HTLCUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_eq")] public static extern bool HTLCUpdateEq(long _a, long _b); // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_write")] public static extern long HTLCUpdate_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_write")] public static extern long HTLCUpdateWrite(long _obj); // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_read")] public static extern long HTLCUpdate_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCUpdate_read")] public static extern long HTLCUpdateRead(long _ser); // void Balance_free(struct LDKBalance this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_free")] public static extern void Balance_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_free")] public static extern void BalanceFree(long _this_ptr); // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_clone_ptr")] public static extern long Balance_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_clone_ptr")] public static extern long BalanceClonePtr(long _arg); // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_clone")] public static extern long Balance_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_clone")] public static extern long BalanceClone(long _orig); // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_on_channel_close")] public static extern long Balance_claimable_on_channel_close(long _amount_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_on_channel_close")] public static extern long BalanceClaimableOnChannelClose(long _amount_satoshis); // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_awaiting_confirmations")] public static extern long Balance_claimable_awaiting_confirmations(long _amount_satoshis, int _confirmation_height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_awaiting_confirmations")] public static extern long BalanceClaimableAwaitingConfirmations(long _amount_satoshis, int _confirmation_height); // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_contentious_claimable")] public static extern long Balance_contentious_claimable(long _amount_satoshis, int _timeout_height, long _payment_hash, long _payment_preimage); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_contentious_claimable")] public static extern long BalanceContentiousClaimable(long _amount_satoshis, int _timeout_height, long _payment_hash, long _payment_preimage); // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_maybe_timeout_claimable_htlc")] public static extern long Balance_maybe_timeout_claimable_htlc(long _amount_satoshis, int _claimable_height, long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_maybe_timeout_claimable_htlc")] public static extern long BalanceMaybeTimeoutClaimableHtlc(long _amount_satoshis, int _claimable_height, long _payment_hash); // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_maybe_preimage_claimable_htlc")] public static extern long Balance_maybe_preimage_claimable_htlc(long _amount_satoshis, int _expiry_height, long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_maybe_preimage_claimable_htlc")] public static extern long BalanceMaybePreimageClaimableHtlc(long _amount_satoshis, int _expiry_height, long _payment_hash); // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_counterparty_revoked_output_claimable")] public static extern long Balance_counterparty_revoked_output_claimable(long _amount_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_counterparty_revoked_output_claimable")] public static extern long BalanceCounterpartyRevokedOutputClaimable(long _amount_satoshis); // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_eq")] public static extern bool Balance_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_eq")] public static extern bool BalanceEq(long _a, long _b); // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_amount_satoshis")] public static extern long Balance_claimable_amount_satoshis(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Balance_claimable_amount_satoshis")] public static extern long BalanceClaimableAmountSatoshis(long _this_arg); // void ChannelMonitor_free(struct LDKChannelMonitor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_free")] public static extern void ChannelMonitor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_free")] public static extern void ChannelMonitorFree(long _this_obj); // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_clone_ptr")] public static extern long ChannelMonitor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_clone_ptr")] public static extern long ChannelMonitorClonePtr(long _arg); // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_clone")] public static extern long ChannelMonitor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_clone")] public static extern long ChannelMonitorClone(long _orig); // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_write")] public static extern long ChannelMonitor_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_write")] public static extern long ChannelMonitorWrite(long _obj); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_update_monitor")] public static extern long ChannelMonitor_update_monitor(long _this_arg, long _updates, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_update_monitor")] public static extern long ChannelMonitorUpdateMonitor(long _this_arg, long _updates, long _broadcaster, long _fee_estimator, long _logger); // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_latest_update_id")] public static extern long ChannelMonitor_get_latest_update_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_latest_update_id")] public static extern long ChannelMonitorGetLatestUpdateId(long _this_arg); // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_funding_txo")] public static extern long ChannelMonitor_get_funding_txo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_funding_txo")] public static extern long ChannelMonitorGetFundingTxo(long _this_arg); // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_outputs_to_watch")] public static extern long ChannelMonitor_get_outputs_to_watch(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_outputs_to_watch")] public static extern long ChannelMonitorGetOutputsToWatch(long _this_arg); // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_load_outputs_to_watch")] public static extern void ChannelMonitor_load_outputs_to_watch(long _this_arg, long _filter, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_load_outputs_to_watch")] public static extern void ChannelMonitorLoadOutputsToWatch(long _this_arg, long _filter, long _logger); // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_and_clear_pending_monitor_events")] public static extern long ChannelMonitor_get_and_clear_pending_monitor_events(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_and_clear_pending_monitor_events")] public static extern long ChannelMonitorGetAndClearPendingMonitorEvents(long _this_arg); // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_process_pending_events")] public static extern void ChannelMonitor_process_pending_events(long _this_arg, long _handler); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_process_pending_events")] public static extern void ChannelMonitorProcessPendingEvents(long _this_arg, long _handler); // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_initial_counterparty_commitment_tx")] public static extern long ChannelMonitor_initial_counterparty_commitment_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_initial_counterparty_commitment_tx")] public static extern long ChannelMonitorInitialCounterpartyCommitmentTx(long _this_arg); // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_counterparty_commitment_txs_from_update")] public static extern long ChannelMonitor_counterparty_commitment_txs_from_update(long _this_arg, long _update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_counterparty_commitment_txs_from_update")] public static extern long ChannelMonitorCounterpartyCommitmentTxsFromUpdate(long _this_arg, long _update); // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_sign_to_local_justice_tx")] public static extern long ChannelMonitor_sign_to_local_justice_tx(long _this_arg, long _justice_tx, long _input_idx, long _value, long _commitment_number); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_sign_to_local_justice_tx")] public static extern long ChannelMonitorSignToLocalJusticeTx(long _this_arg, long _justice_tx, long _input_idx, long _value, long _commitment_number); // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_counterparty_node_id")] public static extern long ChannelMonitor_get_counterparty_node_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_counterparty_node_id")] public static extern long ChannelMonitorGetCounterpartyNodeId(long _this_arg); // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_latest_holder_commitment_txn")] public static extern long ChannelMonitor_get_latest_holder_commitment_txn(long _this_arg, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_latest_holder_commitment_txn")] public static extern long ChannelMonitorGetLatestHolderCommitmentTxn(long _this_arg, long _logger); // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_block_connected")] public static extern long ChannelMonitor_block_connected(long _this_arg, long _header, long _txdata, int _height, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_block_connected")] public static extern long ChannelMonitorBlockConnected(long _this_arg, long _header, long _txdata, int _height, long _broadcaster, long _fee_estimator, long _logger); // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_block_disconnected")] public static extern void ChannelMonitor_block_disconnected(long _this_arg, long _header, int _height, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_block_disconnected")] public static extern void ChannelMonitorBlockDisconnected(long _this_arg, long _header, int _height, long _broadcaster, long _fee_estimator, long _logger); // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_transactions_confirmed")] public static extern long ChannelMonitor_transactions_confirmed(long _this_arg, long _header, long _txdata, int _height, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_transactions_confirmed")] public static extern long ChannelMonitorTransactionsConfirmed(long _this_arg, long _header, long _txdata, int _height, long _broadcaster, long _fee_estimator, long _logger); // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_transaction_unconfirmed")] public static extern void ChannelMonitor_transaction_unconfirmed(long _this_arg, long _txid, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_transaction_unconfirmed")] public static extern void ChannelMonitorTransactionUnconfirmed(long _this_arg, long _txid, long _broadcaster, long _fee_estimator, long _logger); // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_best_block_updated")] public static extern long ChannelMonitor_best_block_updated(long _this_arg, long _header, int _height, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_best_block_updated")] public static extern long ChannelMonitorBestBlockUpdated(long _this_arg, long _header, int _height, long _broadcaster, long _fee_estimator, long _logger); // MUST_USE_RES struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_relevant_txids")] public static extern long ChannelMonitor_get_relevant_txids(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_relevant_txids")] public static extern long ChannelMonitorGetRelevantTxids(long _this_arg); // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_current_best_block")] public static extern long ChannelMonitor_current_best_block(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_current_best_block")] public static extern long ChannelMonitorCurrentBestBlock(long _this_arg); // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_rebroadcast_pending_claims")] public static extern void ChannelMonitor_rebroadcast_pending_claims(long _this_arg, long _broadcaster, long _fee_estimator, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_rebroadcast_pending_claims")] public static extern void ChannelMonitorRebroadcastPendingClaims(long _this_arg, long _broadcaster, long _fee_estimator, long _logger); // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_spendable_outputs")] public static extern long ChannelMonitor_get_spendable_outputs(long _this_arg, long _tx, int _confirmation_height); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_spendable_outputs")] public static extern long ChannelMonitorGetSpendableOutputs(long _this_arg, long _tx, int _confirmation_height); // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_claimable_balances")] public static extern long ChannelMonitor_get_claimable_balances(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMonitor_get_claimable_balances")] public static extern long ChannelMonitorGetClaimableBalances(long _this_arg); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_read")] public static extern long C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(long _ser, long _arg_a, long _arg_b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelMonitorZ_read")] public static extern long C2TupleThirtyTwoBytesChannelMonitorZRead(long _ser, long _arg_a, long _arg_b); // void OutPoint_free(struct LDKOutPoint this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_free")] public static extern void OutPoint_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_free")] public static extern void OutPointFree(long _this_obj); // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_get_txid")] public static extern long OutPoint_get_txid(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_get_txid")] public static extern long OutPointGetTxid(long _this_ptr); // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_set_txid")] public static extern void OutPoint_set_txid(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_set_txid")] public static extern void OutPointSetTxid(long _this_ptr, long _val); // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_get_index")] public static extern short OutPoint_get_index(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_get_index")] public static extern short OutPointGetIndex(long _this_ptr); // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_set_index")] public static extern void OutPoint_set_index(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_set_index")] public static extern void OutPointSetIndex(long _this_ptr, short _val); // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_new")] public static extern long OutPoint_new(long _txid_arg, short _index_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_new")] public static extern long OutPointNew(long _txid_arg, short _index_arg); // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_clone_ptr")] public static extern long OutPoint_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_clone_ptr")] public static extern long OutPointClonePtr(long _arg); // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_clone")] public static extern long OutPoint_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_clone")] public static extern long OutPointClone(long _orig); // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_eq")] public static extern bool OutPoint_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_eq")] public static extern bool OutPointEq(long _a, long _b); // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_hash")] public static extern long OutPoint_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_hash")] public static extern long OutPointHash(long _o); // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_to_channel_id")] public static extern long OutPoint_to_channel_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_to_channel_id")] public static extern long OutPointToChannelId(long _this_arg); // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_write")] public static extern long OutPoint_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_write")] public static extern long OutPointWrite(long _obj); // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_read")] public static extern long OutPoint_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OutPoint_read")] public static extern long OutPointRead(long _ser); // void InboundHTLCErr_free(struct LDKInboundHTLCErr this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_free")] public static extern void InboundHTLCErr_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_free")] public static extern void InboundHTLCErrFree(long _this_obj); // uint16_t InboundHTLCErr_get_err_code(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_err_code")] public static extern short InboundHTLCErr_get_err_code(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_err_code")] public static extern short InboundHTLCErrGetErrCode(long _this_ptr); // void InboundHTLCErr_set_err_code(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_err_code")] public static extern void InboundHTLCErr_set_err_code(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_err_code")] public static extern void InboundHTLCErrSetErrCode(long _this_ptr, short _val); // struct LDKCVec_u8Z InboundHTLCErr_get_err_data(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_err_data")] public static extern long InboundHTLCErr_get_err_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_err_data")] public static extern long InboundHTLCErrGetErrData(long _this_ptr); // void InboundHTLCErr_set_err_data(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_err_data")] public static extern void InboundHTLCErr_set_err_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_err_data")] public static extern void InboundHTLCErrSetErrData(long _this_ptr, long _val); // struct LDKStr InboundHTLCErr_get_msg(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_msg")] public static extern long InboundHTLCErr_get_msg(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_get_msg")] public static extern long InboundHTLCErrGetMsg(long _this_ptr); // void InboundHTLCErr_set_msg(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_msg")] public static extern void InboundHTLCErr_set_msg(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_set_msg")] public static extern void InboundHTLCErrSetMsg(long _this_ptr, long _val); // MUST_USE_RES struct LDKInboundHTLCErr InboundHTLCErr_new(uint16_t err_code_arg, struct LDKCVec_u8Z err_data_arg, struct LDKStr msg_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_new")] public static extern long InboundHTLCErr_new(short _err_code_arg, long _err_data_arg, long _msg_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InboundHTLCErr_new")] public static extern long InboundHTLCErrNew(short _err_code_arg, long _err_data_arg, long _msg_arg); // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(const struct LDKUpdateAddHTLC *NONNULL_PTR msg, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKLogger *NONNULL_PTR logger, uint32_t cur_height, bool accept_mpp_keysend, bool allow_skimmed_fees); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_peel_payment_onion")] public static extern long peel_payment_onion(long _msg, long _node_signer, long _logger, int _cur_height, bool _accept_mpp_keysend, bool _allow_skimmed_fees); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_peel_payment_onion")] public static extern long PeelPaymentOnion(long _msg, long _node_signer, long _logger, int _cur_height, bool _accept_mpp_keysend, bool _allow_skimmed_fees); // void PendingHTLCRouting_free(struct LDKPendingHTLCRouting this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_free")] public static extern void PendingHTLCRouting_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_free")] public static extern void PendingHTLCRoutingFree(long _this_ptr); // uint64_t PendingHTLCRouting_clone_ptr(LDKPendingHTLCRouting *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_clone_ptr")] public static extern long PendingHTLCRouting_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_clone_ptr")] public static extern long PendingHTLCRoutingClonePtr(long _arg); // struct LDKPendingHTLCRouting PendingHTLCRouting_clone(const struct LDKPendingHTLCRouting *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_clone")] public static extern long PendingHTLCRouting_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_clone")] public static extern long PendingHTLCRoutingClone(long _orig); // struct LDKPendingHTLCRouting PendingHTLCRouting_forward(struct LDKOnionPacket onion_packet, uint64_t short_channel_id, struct LDKBlindedForward blinded); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_forward")] public static extern long PendingHTLCRouting_forward(long _onion_packet, long _short_channel_id, long _blinded); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_forward")] public static extern long PendingHTLCRoutingForward(long _onion_packet, long _short_channel_id, long _blinded); // struct LDKPendingHTLCRouting PendingHTLCRouting_receive(struct LDKFinalOnionHopData payment_data, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKThirtyTwoBytes phantom_shared_secret, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_receive")] public static extern long PendingHTLCRouting_receive(long _payment_data, long _payment_metadata, int _incoming_cltv_expiry, long _phantom_shared_secret, long _custom_tlvs, bool _requires_blinded_error); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_receive")] public static extern long PendingHTLCRoutingReceive(long _payment_data, long _payment_metadata, int _incoming_cltv_expiry, long _phantom_shared_secret, long _custom_tlvs, bool _requires_blinded_error); // struct LDKPendingHTLCRouting PendingHTLCRouting_receive_keysend(struct LDKFinalOnionHopData payment_data, struct LDKThirtyTwoBytes payment_preimage, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_receive_keysend")] public static extern long PendingHTLCRouting_receive_keysend(long _payment_data, long _payment_preimage, long _payment_metadata, int _incoming_cltv_expiry, long _custom_tlvs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_receive_keysend")] public static extern long PendingHTLCRoutingReceiveKeysend(long _payment_data, long _payment_preimage, long _payment_metadata, int _incoming_cltv_expiry, long _custom_tlvs); // void BlindedForward_free(struct LDKBlindedForward this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_free")] public static extern void BlindedForward_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_free")] public static extern void BlindedForwardFree(long _this_obj); // struct LDKPublicKey BlindedForward_get_inbound_blinding_point(const struct LDKBlindedForward *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_get_inbound_blinding_point")] public static extern long BlindedForward_get_inbound_blinding_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_get_inbound_blinding_point")] public static extern long BlindedForwardGetInboundBlindingPoint(long _this_ptr); // void BlindedForward_set_inbound_blinding_point(struct LDKBlindedForward *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_set_inbound_blinding_point")] public static extern void BlindedForward_set_inbound_blinding_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_set_inbound_blinding_point")] public static extern void BlindedForwardSetInboundBlindingPoint(long _this_ptr, long _val); // enum LDKBlindedFailure BlindedForward_get_failure(const struct LDKBlindedForward *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_get_failure")] public static extern BlindedFailure BlindedForward_get_failure(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_get_failure")] public static extern BlindedFailure BlindedForwardGetFailure(long _this_ptr); // void BlindedForward_set_failure(struct LDKBlindedForward *NONNULL_PTR this_ptr, enum LDKBlindedFailure val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_set_failure")] public static extern void BlindedForward_set_failure(long _this_ptr, BlindedFailure _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_set_failure")] public static extern void BlindedForwardSetFailure(long _this_ptr, BlindedFailure _val); // MUST_USE_RES struct LDKBlindedForward BlindedForward_new(struct LDKPublicKey inbound_blinding_point_arg, enum LDKBlindedFailure failure_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_new")] public static extern long BlindedForward_new(long _inbound_blinding_point_arg, BlindedFailure _failure_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_new")] public static extern long BlindedForwardNew(long _inbound_blinding_point_arg, BlindedFailure _failure_arg); // uint64_t BlindedForward_clone_ptr(LDKBlindedForward *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_clone_ptr")] public static extern long BlindedForward_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_clone_ptr")] public static extern long BlindedForwardClonePtr(long _arg); // struct LDKBlindedForward BlindedForward_clone(const struct LDKBlindedForward *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_clone")] public static extern long BlindedForward_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_clone")] public static extern long BlindedForwardClone(long _orig); // uint64_t BlindedForward_hash(const struct LDKBlindedForward *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_hash")] public static extern long BlindedForward_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_hash")] public static extern long BlindedForwardHash(long _o); // bool BlindedForward_eq(const struct LDKBlindedForward *NONNULL_PTR a, const struct LDKBlindedForward *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_eq")] public static extern bool BlindedForward_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_eq")] public static extern bool BlindedForwardEq(long _a, long _b); // void PendingHTLCInfo_free(struct LDKPendingHTLCInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_free")] public static extern void PendingHTLCInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_free")] public static extern void PendingHTLCInfoFree(long _this_obj); // struct LDKPendingHTLCRouting PendingHTLCInfo_get_routing(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_routing")] public static extern long PendingHTLCInfo_get_routing(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_routing")] public static extern long PendingHTLCInfoGetRouting(long _this_ptr); // void PendingHTLCInfo_set_routing(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKPendingHTLCRouting val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_routing")] public static extern void PendingHTLCInfo_set_routing(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_routing")] public static extern void PendingHTLCInfoSetRouting(long _this_ptr, long _val); // const uint8_t (*PendingHTLCInfo_get_incoming_shared_secret(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_incoming_shared_secret")] public static extern long PendingHTLCInfo_get_incoming_shared_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_incoming_shared_secret")] public static extern long PendingHTLCInfoGetIncomingSharedSecret(long _this_ptr); // void PendingHTLCInfo_set_incoming_shared_secret(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_incoming_shared_secret")] public static extern void PendingHTLCInfo_set_incoming_shared_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_incoming_shared_secret")] public static extern void PendingHTLCInfoSetIncomingSharedSecret(long _this_ptr, long _val); // const uint8_t (*PendingHTLCInfo_get_payment_hash(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_payment_hash")] public static extern long PendingHTLCInfo_get_payment_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_payment_hash")] public static extern long PendingHTLCInfoGetPaymentHash(long _this_ptr); // void PendingHTLCInfo_set_payment_hash(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_payment_hash")] public static extern void PendingHTLCInfo_set_payment_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_payment_hash")] public static extern void PendingHTLCInfoSetPaymentHash(long _this_ptr, long _val); // struct LDKCOption_u64Z PendingHTLCInfo_get_incoming_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_incoming_amt_msat")] public static extern long PendingHTLCInfo_get_incoming_amt_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_incoming_amt_msat")] public static extern long PendingHTLCInfoGetIncomingAmtMsat(long _this_ptr); // void PendingHTLCInfo_set_incoming_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_incoming_amt_msat")] public static extern void PendingHTLCInfo_set_incoming_amt_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_incoming_amt_msat")] public static extern void PendingHTLCInfoSetIncomingAmtMsat(long _this_ptr, long _val); // uint64_t PendingHTLCInfo_get_outgoing_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_outgoing_amt_msat")] public static extern long PendingHTLCInfo_get_outgoing_amt_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_outgoing_amt_msat")] public static extern long PendingHTLCInfoGetOutgoingAmtMsat(long _this_ptr); // void PendingHTLCInfo_set_outgoing_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_outgoing_amt_msat")] public static extern void PendingHTLCInfo_set_outgoing_amt_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_outgoing_amt_msat")] public static extern void PendingHTLCInfoSetOutgoingAmtMsat(long _this_ptr, long _val); // uint32_t PendingHTLCInfo_get_outgoing_cltv_value(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_outgoing_cltv_value")] public static extern int PendingHTLCInfo_get_outgoing_cltv_value(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_outgoing_cltv_value")] public static extern int PendingHTLCInfoGetOutgoingCltvValue(long _this_ptr); // void PendingHTLCInfo_set_outgoing_cltv_value(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_outgoing_cltv_value")] public static extern void PendingHTLCInfo_set_outgoing_cltv_value(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_outgoing_cltv_value")] public static extern void PendingHTLCInfoSetOutgoingCltvValue(long _this_ptr, int _val); // struct LDKCOption_u64Z PendingHTLCInfo_get_skimmed_fee_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_skimmed_fee_msat")] public static extern long PendingHTLCInfo_get_skimmed_fee_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_get_skimmed_fee_msat")] public static extern long PendingHTLCInfoGetSkimmedFeeMsat(long _this_ptr); // void PendingHTLCInfo_set_skimmed_fee_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_skimmed_fee_msat")] public static extern void PendingHTLCInfo_set_skimmed_fee_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_set_skimmed_fee_msat")] public static extern void PendingHTLCInfoSetSkimmedFeeMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKPendingHTLCInfo PendingHTLCInfo_new(struct LDKPendingHTLCRouting routing_arg, struct LDKThirtyTwoBytes incoming_shared_secret_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u64Z incoming_amt_msat_arg, uint64_t outgoing_amt_msat_arg, uint32_t outgoing_cltv_value_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_new")] public static extern long PendingHTLCInfo_new(long _routing_arg, long _incoming_shared_secret_arg, long _payment_hash_arg, long _incoming_amt_msat_arg, long _outgoing_amt_msat_arg, int _outgoing_cltv_value_arg, long _skimmed_fee_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_new")] public static extern long PendingHTLCInfoNew(long _routing_arg, long _incoming_shared_secret_arg, long _payment_hash_arg, long _incoming_amt_msat_arg, long _outgoing_amt_msat_arg, int _outgoing_cltv_value_arg, long _skimmed_fee_msat_arg); // uint64_t PendingHTLCInfo_clone_ptr(LDKPendingHTLCInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_clone_ptr")] public static extern long PendingHTLCInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_clone_ptr")] public static extern long PendingHTLCInfoClonePtr(long _arg); // struct LDKPendingHTLCInfo PendingHTLCInfo_clone(const struct LDKPendingHTLCInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_clone")] public static extern long PendingHTLCInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_clone")] public static extern long PendingHTLCInfoClone(long _orig); // enum LDKBlindedFailure BlindedFailure_clone(const enum LDKBlindedFailure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_clone")] public static extern BlindedFailure BlindedFailure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_clone")] public static extern BlindedFailure BlindedFailureClone(long _orig); // enum LDKBlindedFailure BlindedFailure_from_introduction_node(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_from_introduction_node")] public static extern BlindedFailure BlindedFailure_from_introduction_node(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_from_introduction_node")] public static extern BlindedFailure BlindedFailureFromIntroductionNode(); // enum LDKBlindedFailure BlindedFailure_from_blinded_node(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_from_blinded_node")] public static extern BlindedFailure BlindedFailure_from_blinded_node(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_from_blinded_node")] public static extern BlindedFailure BlindedFailureFromBlindedNode(); // uint64_t BlindedFailure_hash(const enum LDKBlindedFailure *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_hash")] public static extern long BlindedFailure_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_hash")] public static extern long BlindedFailureHash(long _o); // bool BlindedFailure_eq(const enum LDKBlindedFailure *NONNULL_PTR a, const enum LDKBlindedFailure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_eq")] public static extern bool BlindedFailure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_eq")] public static extern bool BlindedFailureEq(long _a, long _b); // void FailureCode_free(struct LDKFailureCode this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_free")] public static extern void FailureCode_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_free")] public static extern void FailureCodeFree(long _this_ptr); // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_clone_ptr")] public static extern long FailureCode_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_clone_ptr")] public static extern long FailureCodeClonePtr(long _arg); // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_clone")] public static extern long FailureCode_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_clone")] public static extern long FailureCodeClone(long _orig); // struct LDKFailureCode FailureCode_temporary_node_failure(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_temporary_node_failure")] public static extern long FailureCode_temporary_node_failure(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_temporary_node_failure")] public static extern long FailureCodeTemporaryNodeFailure(); // struct LDKFailureCode FailureCode_required_node_feature_missing(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_required_node_feature_missing")] public static extern long FailureCode_required_node_feature_missing(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_required_node_feature_missing")] public static extern long FailureCodeRequiredNodeFeatureMissing(); // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_incorrect_or_unknown_payment_details")] public static extern long FailureCode_incorrect_or_unknown_payment_details(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_incorrect_or_unknown_payment_details")] public static extern long FailureCodeIncorrectOrUnknownPaymentDetails(); // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_invalid_onion_payload")] public static extern long FailureCode_invalid_onion_payload(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FailureCode_invalid_onion_payload")] public static extern long FailureCodeInvalidOnionPayload(long _a); // void ChannelManager_free(struct LDKChannelManager this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_free")] public static extern void ChannelManager_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_free")] public static extern void ChannelManagerFree(long _this_obj); // void ChainParameters_free(struct LDKChainParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_free")] public static extern void ChainParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_free")] public static extern void ChainParametersFree(long _this_obj); // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_get_network")] public static extern Network ChainParameters_get_network(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_get_network")] public static extern Network ChainParametersGetNetwork(long _this_ptr); // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_set_network")] public static extern void ChainParameters_set_network(long _this_ptr, Network _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_set_network")] public static extern void ChainParametersSetNetwork(long _this_ptr, Network _val); // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_get_best_block")] public static extern long ChainParameters_get_best_block(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_get_best_block")] public static extern long ChainParametersGetBestBlock(long _this_ptr); // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_set_best_block")] public static extern void ChainParameters_set_best_block(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_set_best_block")] public static extern void ChainParametersSetBestBlock(long _this_ptr, long _val); // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_new")] public static extern long ChainParameters_new(Network _network_arg, long _best_block_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_new")] public static extern long ChainParametersNew(Network _network_arg, long _best_block_arg); // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_clone_ptr")] public static extern long ChainParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_clone_ptr")] public static extern long ChainParametersClonePtr(long _arg); // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_clone")] public static extern long ChainParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChainParameters_clone")] public static extern long ChainParametersClone(long _orig); // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_free")] public static extern void CounterpartyForwardingInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_free")] public static extern void CounterpartyForwardingInfoFree(long _this_obj); // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_fee_base_msat")] public static extern int CounterpartyForwardingInfo_get_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_fee_base_msat")] public static extern int CounterpartyForwardingInfoGetFeeBaseMsat(long _this_ptr); // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_fee_base_msat")] public static extern void CounterpartyForwardingInfo_set_fee_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_fee_base_msat")] public static extern void CounterpartyForwardingInfoSetFeeBaseMsat(long _this_ptr, int _val); // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_fee_proportional_millionths")] public static extern int CounterpartyForwardingInfo_get_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_fee_proportional_millionths")] public static extern int CounterpartyForwardingInfoGetFeeProportionalMillionths(long _this_ptr); // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_fee_proportional_millionths")] public static extern void CounterpartyForwardingInfo_set_fee_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_fee_proportional_millionths")] public static extern void CounterpartyForwardingInfoSetFeeProportionalMillionths(long _this_ptr, int _val); // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_cltv_expiry_delta")] public static extern short CounterpartyForwardingInfo_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_get_cltv_expiry_delta")] public static extern short CounterpartyForwardingInfoGetCltvExpiryDelta(long _this_ptr); // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_cltv_expiry_delta")] public static extern void CounterpartyForwardingInfo_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_set_cltv_expiry_delta")] public static extern void CounterpartyForwardingInfoSetCltvExpiryDelta(long _this_ptr, short _val); // MUST_USE_RES struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_new")] public static extern long CounterpartyForwardingInfo_new(int _fee_base_msat_arg, int _fee_proportional_millionths_arg, short _cltv_expiry_delta_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_new")] public static extern long CounterpartyForwardingInfoNew(int _fee_base_msat_arg, int _fee_proportional_millionths_arg, short _cltv_expiry_delta_arg); // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_clone_ptr")] public static extern long CounterpartyForwardingInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_clone_ptr")] public static extern long CounterpartyForwardingInfoClonePtr(long _arg); // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_clone")] public static extern long CounterpartyForwardingInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_clone")] public static extern long CounterpartyForwardingInfoClone(long _orig); // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_free")] public static extern void ChannelCounterparty_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_free")] public static extern void ChannelCounterpartyFree(long _this_obj); // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_node_id")] public static extern long ChannelCounterparty_get_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_node_id")] public static extern long ChannelCounterpartyGetNodeId(long _this_ptr); // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_node_id")] public static extern void ChannelCounterparty_set_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_node_id")] public static extern void ChannelCounterpartySetNodeId(long _this_ptr, long _val); // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_features")] public static extern long ChannelCounterparty_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_features")] public static extern long ChannelCounterpartyGetFeatures(long _this_ptr); // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_features")] public static extern void ChannelCounterparty_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_features")] public static extern void ChannelCounterpartySetFeatures(long _this_ptr, long _val); // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_unspendable_punishment_reserve")] public static extern long ChannelCounterparty_get_unspendable_punishment_reserve(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_unspendable_punishment_reserve")] public static extern long ChannelCounterpartyGetUnspendablePunishmentReserve(long _this_ptr); // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_unspendable_punishment_reserve")] public static extern void ChannelCounterparty_set_unspendable_punishment_reserve(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_unspendable_punishment_reserve")] public static extern void ChannelCounterpartySetUnspendablePunishmentReserve(long _this_ptr, long _val); // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_forwarding_info")] public static extern long ChannelCounterparty_get_forwarding_info(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_forwarding_info")] public static extern long ChannelCounterpartyGetForwardingInfo(long _this_ptr); // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_forwarding_info")] public static extern void ChannelCounterparty_set_forwarding_info(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_forwarding_info")] public static extern void ChannelCounterpartySetForwardingInfo(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_outbound_htlc_minimum_msat")] public static extern long ChannelCounterparty_get_outbound_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_outbound_htlc_minimum_msat")] public static extern long ChannelCounterpartyGetOutboundHtlcMinimumMsat(long _this_ptr); // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_outbound_htlc_minimum_msat")] public static extern void ChannelCounterparty_set_outbound_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_outbound_htlc_minimum_msat")] public static extern void ChannelCounterpartySetOutboundHtlcMinimumMsat(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_outbound_htlc_maximum_msat")] public static extern long ChannelCounterparty_get_outbound_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_get_outbound_htlc_maximum_msat")] public static extern long ChannelCounterpartyGetOutboundHtlcMaximumMsat(long _this_ptr); // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_outbound_htlc_maximum_msat")] public static extern void ChannelCounterparty_set_outbound_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_set_outbound_htlc_maximum_msat")] public static extern void ChannelCounterpartySetOutboundHtlcMaximumMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_new")] public static extern long ChannelCounterparty_new(long _node_id_arg, long _features_arg, long _unspendable_punishment_reserve_arg, long _forwarding_info_arg, long _outbound_htlc_minimum_msat_arg, long _outbound_htlc_maximum_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_new")] public static extern long ChannelCounterpartyNew(long _node_id_arg, long _features_arg, long _unspendable_punishment_reserve_arg, long _forwarding_info_arg, long _outbound_htlc_minimum_msat_arg, long _outbound_htlc_maximum_msat_arg); // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_clone_ptr")] public static extern long ChannelCounterparty_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_clone_ptr")] public static extern long ChannelCounterpartyClonePtr(long _arg); // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_clone")] public static extern long ChannelCounterparty_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_clone")] public static extern long ChannelCounterpartyClone(long _orig); // void ChannelDetails_free(struct LDKChannelDetails this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_free")] public static extern void ChannelDetails_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_free")] public static extern void ChannelDetailsFree(long _this_obj); // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_id")] public static extern long ChannelDetails_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_id")] public static extern long ChannelDetailsGetChannelId(long _this_ptr); // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_id")] public static extern void ChannelDetails_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_id")] public static extern void ChannelDetailsSetChannelId(long _this_ptr, long _val); // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_counterparty")] public static extern long ChannelDetails_get_counterparty(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_counterparty")] public static extern long ChannelDetailsGetCounterparty(long _this_ptr); // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_counterparty")] public static extern void ChannelDetails_set_counterparty(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_counterparty")] public static extern void ChannelDetailsSetCounterparty(long _this_ptr, long _val); // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_funding_txo")] public static extern long ChannelDetails_get_funding_txo(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_funding_txo")] public static extern long ChannelDetailsGetFundingTxo(long _this_ptr); // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_funding_txo")] public static extern void ChannelDetails_set_funding_txo(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_funding_txo")] public static extern void ChannelDetailsSetFundingTxo(long _this_ptr, long _val); // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_type")] public static extern long ChannelDetails_get_channel_type(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_type")] public static extern long ChannelDetailsGetChannelType(long _this_ptr); // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_type")] public static extern void ChannelDetails_set_channel_type(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_type")] public static extern void ChannelDetailsSetChannelType(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_short_channel_id")] public static extern long ChannelDetails_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_short_channel_id")] public static extern long ChannelDetailsGetShortChannelId(long _this_ptr); // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_short_channel_id")] public static extern void ChannelDetails_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_short_channel_id")] public static extern void ChannelDetailsSetShortChannelId(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_scid_alias")] public static extern long ChannelDetails_get_outbound_scid_alias(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_scid_alias")] public static extern long ChannelDetailsGetOutboundScidAlias(long _this_ptr); // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_outbound_scid_alias")] public static extern void ChannelDetails_set_outbound_scid_alias(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_outbound_scid_alias")] public static extern void ChannelDetailsSetOutboundScidAlias(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_scid_alias")] public static extern long ChannelDetails_get_inbound_scid_alias(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_scid_alias")] public static extern long ChannelDetailsGetInboundScidAlias(long _this_ptr); // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_scid_alias")] public static extern void ChannelDetails_set_inbound_scid_alias(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_scid_alias")] public static extern void ChannelDetailsSetInboundScidAlias(long _this_ptr, long _val); // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_value_satoshis")] public static extern long ChannelDetails_get_channel_value_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_value_satoshis")] public static extern long ChannelDetailsGetChannelValueSatoshis(long _this_ptr); // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_value_satoshis")] public static extern void ChannelDetails_set_channel_value_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_value_satoshis")] public static extern void ChannelDetailsSetChannelValueSatoshis(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_unspendable_punishment_reserve")] public static extern long ChannelDetails_get_unspendable_punishment_reserve(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_unspendable_punishment_reserve")] public static extern long ChannelDetailsGetUnspendablePunishmentReserve(long _this_ptr); // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_unspendable_punishment_reserve")] public static extern void ChannelDetails_set_unspendable_punishment_reserve(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_unspendable_punishment_reserve")] public static extern void ChannelDetailsSetUnspendablePunishmentReserve(long _this_ptr, long _val); // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_user_channel_id")] public static extern long ChannelDetails_get_user_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_user_channel_id")] public static extern long ChannelDetailsGetUserChannelId(long _this_ptr); // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_user_channel_id")] public static extern void ChannelDetails_set_user_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_user_channel_id")] public static extern void ChannelDetailsSetUserChannelId(long _this_ptr, long _val); // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_feerate_sat_per_1000_weight")] public static extern long ChannelDetails_get_feerate_sat_per_1000_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_feerate_sat_per_1000_weight")] public static extern long ChannelDetailsGetFeerateSatPer1000Weight(long _this_ptr); // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_feerate_sat_per_1000_weight")] public static extern void ChannelDetails_set_feerate_sat_per_1000_weight(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_feerate_sat_per_1000_weight")] public static extern void ChannelDetailsSetFeerateSatPer1000Weight(long _this_ptr, long _val); // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_balance_msat")] public static extern long ChannelDetails_get_balance_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_balance_msat")] public static extern long ChannelDetailsGetBalanceMsat(long _this_ptr); // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_balance_msat")] public static extern void ChannelDetails_set_balance_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_balance_msat")] public static extern void ChannelDetailsSetBalanceMsat(long _this_ptr, long _val); // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_capacity_msat")] public static extern long ChannelDetails_get_outbound_capacity_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_capacity_msat")] public static extern long ChannelDetailsGetOutboundCapacityMsat(long _this_ptr); // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_outbound_capacity_msat")] public static extern void ChannelDetails_set_outbound_capacity_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_outbound_capacity_msat")] public static extern void ChannelDetailsSetOutboundCapacityMsat(long _this_ptr, long _val); // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_next_outbound_htlc_limit_msat")] public static extern long ChannelDetails_get_next_outbound_htlc_limit_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_next_outbound_htlc_limit_msat")] public static extern long ChannelDetailsGetNextOutboundHtlcLimitMsat(long _this_ptr); // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_next_outbound_htlc_limit_msat")] public static extern void ChannelDetails_set_next_outbound_htlc_limit_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_next_outbound_htlc_limit_msat")] public static extern void ChannelDetailsSetNextOutboundHtlcLimitMsat(long _this_ptr, long _val); // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_next_outbound_htlc_minimum_msat")] public static extern long ChannelDetails_get_next_outbound_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_next_outbound_htlc_minimum_msat")] public static extern long ChannelDetailsGetNextOutboundHtlcMinimumMsat(long _this_ptr); // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_next_outbound_htlc_minimum_msat")] public static extern void ChannelDetails_set_next_outbound_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_next_outbound_htlc_minimum_msat")] public static extern void ChannelDetailsSetNextOutboundHtlcMinimumMsat(long _this_ptr, long _val); // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_capacity_msat")] public static extern long ChannelDetails_get_inbound_capacity_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_capacity_msat")] public static extern long ChannelDetailsGetInboundCapacityMsat(long _this_ptr); // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_capacity_msat")] public static extern void ChannelDetails_set_inbound_capacity_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_capacity_msat")] public static extern void ChannelDetailsSetInboundCapacityMsat(long _this_ptr, long _val); // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_confirmations_required")] public static extern long ChannelDetails_get_confirmations_required(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_confirmations_required")] public static extern long ChannelDetailsGetConfirmationsRequired(long _this_ptr); // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_confirmations_required")] public static extern void ChannelDetails_set_confirmations_required(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_confirmations_required")] public static extern void ChannelDetailsSetConfirmationsRequired(long _this_ptr, long _val); // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_confirmations")] public static extern long ChannelDetails_get_confirmations(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_confirmations")] public static extern long ChannelDetailsGetConfirmations(long _this_ptr); // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_confirmations")] public static extern void ChannelDetails_set_confirmations(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_confirmations")] public static extern void ChannelDetailsSetConfirmations(long _this_ptr, long _val); // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_force_close_spend_delay")] public static extern long ChannelDetails_get_force_close_spend_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_force_close_spend_delay")] public static extern long ChannelDetailsGetForceCloseSpendDelay(long _this_ptr); // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_force_close_spend_delay")] public static extern void ChannelDetails_set_force_close_spend_delay(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_force_close_spend_delay")] public static extern void ChannelDetailsSetForceCloseSpendDelay(long _this_ptr, long _val); // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_outbound")] public static extern bool ChannelDetails_get_is_outbound(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_outbound")] public static extern bool ChannelDetailsGetIsOutbound(long _this_ptr); // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_outbound")] public static extern void ChannelDetails_set_is_outbound(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_outbound")] public static extern void ChannelDetailsSetIsOutbound(long _this_ptr, bool _val); // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_channel_ready")] public static extern bool ChannelDetails_get_is_channel_ready(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_channel_ready")] public static extern bool ChannelDetailsGetIsChannelReady(long _this_ptr); // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_channel_ready")] public static extern void ChannelDetails_set_is_channel_ready(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_channel_ready")] public static extern void ChannelDetailsSetIsChannelReady(long _this_ptr, bool _val); // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_shutdown_state")] public static extern long ChannelDetails_get_channel_shutdown_state(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_channel_shutdown_state")] public static extern long ChannelDetailsGetChannelShutdownState(long _this_ptr); // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_shutdown_state")] public static extern void ChannelDetails_set_channel_shutdown_state(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_channel_shutdown_state")] public static extern void ChannelDetailsSetChannelShutdownState(long _this_ptr, long _val); // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_usable")] public static extern bool ChannelDetails_get_is_usable(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_usable")] public static extern bool ChannelDetailsGetIsUsable(long _this_ptr); // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_usable")] public static extern void ChannelDetails_set_is_usable(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_usable")] public static extern void ChannelDetailsSetIsUsable(long _this_ptr, bool _val); // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_public")] public static extern bool ChannelDetails_get_is_public(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_is_public")] public static extern bool ChannelDetailsGetIsPublic(long _this_ptr); // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_public")] public static extern void ChannelDetails_set_is_public(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_is_public")] public static extern void ChannelDetailsSetIsPublic(long _this_ptr, bool _val); // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_htlc_minimum_msat")] public static extern long ChannelDetails_get_inbound_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_htlc_minimum_msat")] public static extern long ChannelDetailsGetInboundHtlcMinimumMsat(long _this_ptr); // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_htlc_minimum_msat")] public static extern void ChannelDetails_set_inbound_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_htlc_minimum_msat")] public static extern void ChannelDetailsSetInboundHtlcMinimumMsat(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_htlc_maximum_msat")] public static extern long ChannelDetails_get_inbound_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_htlc_maximum_msat")] public static extern long ChannelDetailsGetInboundHtlcMaximumMsat(long _this_ptr); // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_htlc_maximum_msat")] public static extern void ChannelDetails_set_inbound_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_inbound_htlc_maximum_msat")] public static extern void ChannelDetailsSetInboundHtlcMaximumMsat(long _this_ptr, long _val); // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_config")] public static extern long ChannelDetails_get_config(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_config")] public static extern long ChannelDetailsGetConfig(long _this_ptr); // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_config")] public static extern void ChannelDetails_set_config(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_set_config")] public static extern void ChannelDetailsSetConfig(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_new")] public static extern long ChannelDetails_new(long _channel_id_arg, long _counterparty_arg, long _funding_txo_arg, long _channel_type_arg, long _short_channel_id_arg, long _outbound_scid_alias_arg, long _inbound_scid_alias_arg, long _channel_value_satoshis_arg, long _unspendable_punishment_reserve_arg, long _user_channel_id_arg, long _feerate_sat_per_1000_weight_arg, long _balance_msat_arg, long _outbound_capacity_msat_arg, long _next_outbound_htlc_limit_msat_arg, long _next_outbound_htlc_minimum_msat_arg, long _inbound_capacity_msat_arg, long _confirmations_required_arg, long _confirmations_arg, long _force_close_spend_delay_arg, bool _is_outbound_arg, bool _is_channel_ready_arg, long _channel_shutdown_state_arg, bool _is_usable_arg, bool _is_public_arg, long _inbound_htlc_minimum_msat_arg, long _inbound_htlc_maximum_msat_arg, long _config_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_new")] public static extern long ChannelDetailsNew(long _channel_id_arg, long _counterparty_arg, long _funding_txo_arg, long _channel_type_arg, long _short_channel_id_arg, long _outbound_scid_alias_arg, long _inbound_scid_alias_arg, long _channel_value_satoshis_arg, long _unspendable_punishment_reserve_arg, long _user_channel_id_arg, long _feerate_sat_per_1000_weight_arg, long _balance_msat_arg, long _outbound_capacity_msat_arg, long _next_outbound_htlc_limit_msat_arg, long _next_outbound_htlc_minimum_msat_arg, long _inbound_capacity_msat_arg, long _confirmations_required_arg, long _confirmations_arg, long _force_close_spend_delay_arg, bool _is_outbound_arg, bool _is_channel_ready_arg, long _channel_shutdown_state_arg, bool _is_usable_arg, bool _is_public_arg, long _inbound_htlc_minimum_msat_arg, long _inbound_htlc_maximum_msat_arg, long _config_arg); // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_clone_ptr")] public static extern long ChannelDetails_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_clone_ptr")] public static extern long ChannelDetailsClonePtr(long _arg); // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_clone")] public static extern long ChannelDetails_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_clone")] public static extern long ChannelDetailsClone(long _orig); // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_payment_scid")] public static extern long ChannelDetails_get_inbound_payment_scid(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_inbound_payment_scid")] public static extern long ChannelDetailsGetInboundPaymentScid(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_payment_scid")] public static extern long ChannelDetails_get_outbound_payment_scid(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_get_outbound_payment_scid")] public static extern long ChannelDetailsGetOutboundPaymentScid(long _this_arg); // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_clone")] public static extern ChannelShutdownState ChannelShutdownState_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_clone")] public static extern ChannelShutdownState ChannelShutdownStateClone(long _orig); // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_not_shutting_down")] public static extern ChannelShutdownState ChannelShutdownState_not_shutting_down(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_not_shutting_down")] public static extern ChannelShutdownState ChannelShutdownStateNotShuttingDown(); // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_shutdown_initiated")] public static extern ChannelShutdownState ChannelShutdownState_shutdown_initiated(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_shutdown_initiated")] public static extern ChannelShutdownState ChannelShutdownStateShutdownInitiated(); // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_resolving_htlcs")] public static extern ChannelShutdownState ChannelShutdownState_resolving_htlcs(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_resolving_htlcs")] public static extern ChannelShutdownState ChannelShutdownStateResolvingHtlcs(); // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_negotiating_closing_fee")] public static extern ChannelShutdownState ChannelShutdownState_negotiating_closing_fee(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_negotiating_closing_fee")] public static extern ChannelShutdownState ChannelShutdownStateNegotiatingClosingFee(); // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_shutdown_complete")] public static extern ChannelShutdownState ChannelShutdownState_shutdown_complete(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_shutdown_complete")] public static extern ChannelShutdownState ChannelShutdownStateShutdownComplete(); // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_eq")] public static extern bool ChannelShutdownState_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_eq")] public static extern bool ChannelShutdownStateEq(long _a, long _b); // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_free")] public static extern void RecentPaymentDetails_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_free")] public static extern void RecentPaymentDetailsFree(long _this_ptr); // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_clone_ptr")] public static extern long RecentPaymentDetails_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_clone_ptr")] public static extern long RecentPaymentDetailsClonePtr(long _arg); // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_clone")] public static extern long RecentPaymentDetails_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_clone")] public static extern long RecentPaymentDetailsClone(long _orig); // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_awaiting_invoice")] public static extern long RecentPaymentDetails_awaiting_invoice(long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_awaiting_invoice")] public static extern long RecentPaymentDetailsAwaitingInvoice(long _payment_id); // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_pending")] public static extern long RecentPaymentDetails_pending(long _payment_id, long _payment_hash, long _total_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_pending")] public static extern long RecentPaymentDetailsPending(long _payment_id, long _payment_hash, long _total_msat); // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_fulfilled")] public static extern long RecentPaymentDetails_fulfilled(long _payment_id, long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_fulfilled")] public static extern long RecentPaymentDetailsFulfilled(long _payment_id, long _payment_hash); // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_abandoned")] public static extern long RecentPaymentDetails_abandoned(long _payment_id, long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecentPaymentDetails_abandoned")] public static extern long RecentPaymentDetailsAbandoned(long _payment_id, long _payment_hash); // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_free")] public static extern void PhantomRouteHints_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_free")] public static extern void PhantomRouteHintsFree(long _this_obj); // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_channels")] public static extern long PhantomRouteHints_get_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_channels")] public static extern long PhantomRouteHintsGetChannels(long _this_ptr); // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_channels")] public static extern void PhantomRouteHints_set_channels(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_channels")] public static extern void PhantomRouteHintsSetChannels(long _this_ptr, long _val); // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_phantom_scid")] public static extern long PhantomRouteHints_get_phantom_scid(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_phantom_scid")] public static extern long PhantomRouteHintsGetPhantomScid(long _this_ptr); // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_phantom_scid")] public static extern void PhantomRouteHints_set_phantom_scid(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_phantom_scid")] public static extern void PhantomRouteHintsSetPhantomScid(long _this_ptr, long _val); // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_real_node_pubkey")] public static extern long PhantomRouteHints_get_real_node_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_get_real_node_pubkey")] public static extern long PhantomRouteHintsGetRealNodePubkey(long _this_ptr); // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_real_node_pubkey")] public static extern void PhantomRouteHints_set_real_node_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_set_real_node_pubkey")] public static extern void PhantomRouteHintsSetRealNodePubkey(long _this_ptr, long _val); // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_new")] public static extern long PhantomRouteHints_new(long _channels_arg, long _phantom_scid_arg, long _real_node_pubkey_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_new")] public static extern long PhantomRouteHintsNew(long _channels_arg, long _phantom_scid_arg, long _real_node_pubkey_arg); // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_clone_ptr")] public static extern long PhantomRouteHints_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_clone_ptr")] public static extern long PhantomRouteHintsClonePtr(long _arg); // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_clone")] public static extern long PhantomRouteHints_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_clone")] public static extern long PhantomRouteHintsClone(long _orig); // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKUserConfig config, struct LDKChainParameters params, uint32_t current_timestamp); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_new")] public static extern long ChannelManager_new(long _fee_est, long _chain_monitor, long _tx_broadcaster, long _router, long _logger, long _entropy_source, long _node_signer, long _signer_provider, long _config, long _params, int _current_timestamp); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_new")] public static extern long ChannelManagerNew(long _fee_est, long _chain_monitor, long _tx_broadcaster, long _router, long _logger, long _entropy_source, long _node_signer, long _signer_provider, long _config, long _params, int _current_timestamp); // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_current_default_configuration")] public static extern long ChannelManager_get_current_default_configuration(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_current_default_configuration")] public static extern long ChannelManagerGetCurrentDefaultConfiguration(long _this_arg); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ temporary_channel_id, struct LDKUserConfig override_config); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_channel")] public static extern long ChannelManager_create_channel(long _this_arg, long _their_network_key, long _channel_value_satoshis, long _push_msat, long _user_channel_id, long _temporary_channel_id, long _override_config); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_channel")] public static extern long ChannelManagerCreateChannel(long _this_arg, long _their_network_key, long _channel_value_satoshis, long _push_msat, long _user_channel_id, long _temporary_channel_id, long _override_config); // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_channels")] public static extern long ChannelManager_list_channels(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_channels")] public static extern long ChannelManagerListChannels(long _this_arg); // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_usable_channels")] public static extern long ChannelManager_list_usable_channels(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_usable_channels")] public static extern long ChannelManagerListUsableChannels(long _this_arg); // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_channels_with_counterparty")] public static extern long ChannelManager_list_channels_with_counterparty(long _this_arg, long _counterparty_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_channels_with_counterparty")] public static extern long ChannelManagerListChannelsWithCounterparty(long _this_arg, long _counterparty_node_id); // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_recent_payments")] public static extern long ChannelManager_list_recent_payments(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_list_recent_payments")] public static extern long ChannelManagerListRecentPayments(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_close_channel")] public static extern long ChannelManager_close_channel(long _this_arg, long _channel_id, long _counterparty_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_close_channel")] public static extern long ChannelManagerCloseChannel(long _this_arg, long _channel_id, long _counterparty_node_id); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_close_channel_with_feerate_and_script")] public static extern long ChannelManager_close_channel_with_feerate_and_script(long _this_arg, long _channel_id, long _counterparty_node_id, long _target_feerate_sats_per_1000_weight, long _shutdown_script); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_close_channel_with_feerate_and_script")] public static extern long ChannelManagerCloseChannelWithFeerateAndScript(long _this_arg, long _channel_id, long _counterparty_node_id, long _target_feerate_sats_per_1000_weight, long _shutdown_script); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_broadcasting_latest_txn")] public static extern long ChannelManager_force_close_broadcasting_latest_txn(long _this_arg, long _channel_id, long _counterparty_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_broadcasting_latest_txn")] public static extern long ChannelManagerForceCloseBroadcastingLatestTxn(long _this_arg, long _channel_id, long _counterparty_node_id); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_without_broadcasting_txn")] public static extern long ChannelManager_force_close_without_broadcasting_txn(long _this_arg, long _channel_id, long _counterparty_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_without_broadcasting_txn")] public static extern long ChannelManagerForceCloseWithoutBroadcastingTxn(long _this_arg, long _channel_id, long _counterparty_node_id); // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_all_channels_broadcasting_latest_txn")] public static extern void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_all_channels_broadcasting_latest_txn")] public static extern void ChannelManagerForceCloseAllChannelsBroadcastingLatestTxn(long _this_arg); // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_all_channels_without_broadcasting_txn")] public static extern void ChannelManager_force_close_all_channels_without_broadcasting_txn(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_force_close_all_channels_without_broadcasting_txn")] public static extern void ChannelManagerForceCloseAllChannelsWithoutBroadcastingTxn(long _this_arg); // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment_with_route(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_payment_with_route")] public static extern long ChannelManager_send_payment_with_route(long _this_arg, long _route, long _payment_hash, long _recipient_onion, long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_payment_with_route")] public static extern long ChannelManagerSendPaymentWithRoute(long _this_arg, long _route, long _payment_hash, long _recipient_onion, long _payment_id); // MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_payment")] public static extern long ChannelManager_send_payment(long _this_arg, long _payment_hash, long _recipient_onion, long _payment_id, long _route_params, long _retry_strategy); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_payment")] public static extern long ChannelManagerSendPayment(long _this_arg, long _payment_hash, long _recipient_onion, long _payment_id, long _route_params, long _retry_strategy); // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_abandon_payment")] public static extern void ChannelManager_abandon_payment(long _this_arg, long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_abandon_payment")] public static extern void ChannelManagerAbandonPayment(long _this_arg, long _payment_id); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_payment")] public static extern long ChannelManager_send_spontaneous_payment(long _this_arg, long _route, long _payment_preimage, long _recipient_onion, long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_payment")] public static extern long ChannelManagerSendSpontaneousPayment(long _this_arg, long _route, long _payment_preimage, long _recipient_onion, long _payment_id); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_payment_with_retry")] public static extern long ChannelManager_send_spontaneous_payment_with_retry(long _this_arg, long _payment_preimage, long _recipient_onion, long _payment_id, long _route_params, long _retry_strategy); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_payment_with_retry")] public static extern long ChannelManagerSendSpontaneousPaymentWithRetry(long _this_arg, long _payment_preimage, long _recipient_onion, long _payment_id, long _route_params, long _retry_strategy); // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_probe")] public static extern long ChannelManager_send_probe(long _this_arg, long _path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_probe")] public static extern long ChannelManagerSendProbe(long _this_arg, long _path); // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_preflight_probes")] public static extern long ChannelManager_send_spontaneous_preflight_probes(long _this_arg, long _node_id, long _amount_msat, int _final_cltv_expiry_delta, long _liquidity_limit_multiplier); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_spontaneous_preflight_probes")] public static extern long ChannelManagerSendSpontaneousPreflightProbes(long _this_arg, long _node_id, long _amount_msat, int _final_cltv_expiry_delta, long _liquidity_limit_multiplier); // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_preflight_probes")] public static extern long ChannelManager_send_preflight_probes(long _this_arg, long _route_params, long _liquidity_limit_multiplier); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_send_preflight_probes")] public static extern long ChannelManagerSendPreflightProbes(long _this_arg, long _route_params, long _liquidity_limit_multiplier); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_funding_transaction_generated")] public static extern long ChannelManager_funding_transaction_generated(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _funding_transaction); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_funding_transaction_generated")] public static extern long ChannelManagerFundingTransactionGenerated(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _funding_transaction); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_batch_funding_transaction_generated")] public static extern long ChannelManager_batch_funding_transaction_generated(long _this_arg, long _temporary_channels, long _funding_transaction); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_batch_funding_transaction_generated")] public static extern long ChannelManagerBatchFundingTransactionGenerated(long _this_arg, long _temporary_channels, long _funding_transaction); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_partial_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_update_partial_channel_config")] public static extern long ChannelManager_update_partial_channel_config(long _this_arg, long _counterparty_node_id, long _channel_ids, long _config_update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_update_partial_channel_config")] public static extern long ChannelManagerUpdatePartialChannelConfig(long _this_arg, long _counterparty_node_id, long _channel_ids, long _config_update); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_update_channel_config")] public static extern long ChannelManager_update_channel_config(long _this_arg, long _counterparty_node_id, long _channel_ids, long _config); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_update_channel_config")] public static extern long ChannelManagerUpdateChannelConfig(long _this_arg, long _counterparty_node_id, long _channel_ids, long _config); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const uint8_t (*next_hop_channel_id)[32], struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_forward_intercepted_htlc")] public static extern long ChannelManager_forward_intercepted_htlc(long _this_arg, long _intercept_id, long _next_hop_channel_id, long _next_node_id, long _amt_to_forward_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_forward_intercepted_htlc")] public static extern long ChannelManagerForwardInterceptedHtlc(long _this_arg, long _intercept_id, long _next_hop_channel_id, long _next_node_id, long _amt_to_forward_msat); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_intercepted_htlc")] public static extern long ChannelManager_fail_intercepted_htlc(long _this_arg, long _intercept_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_intercepted_htlc")] public static extern long ChannelManagerFailInterceptedHtlc(long _this_arg, long _intercept_id); // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_process_pending_htlc_forwards")] public static extern void ChannelManager_process_pending_htlc_forwards(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_process_pending_htlc_forwards")] public static extern void ChannelManagerProcessPendingHtlcForwards(long _this_arg); // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_timer_tick_occurred")] public static extern void ChannelManager_timer_tick_occurred(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_timer_tick_occurred")] public static extern void ChannelManagerTimerTickOccurred(long _this_arg); // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_htlc_backwards")] public static extern void ChannelManager_fail_htlc_backwards(long _this_arg, long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_htlc_backwards")] public static extern void ChannelManagerFailHtlcBackwards(long _this_arg, long _payment_hash); // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_htlc_backwards_with_reason")] public static extern void ChannelManager_fail_htlc_backwards_with_reason(long _this_arg, long _payment_hash, long _failure_code); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_fail_htlc_backwards_with_reason")] public static extern void ChannelManagerFailHtlcBackwardsWithReason(long _this_arg, long _payment_hash, long _failure_code); // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_claim_funds")] public static extern void ChannelManager_claim_funds(long _this_arg, long _payment_preimage); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_claim_funds")] public static extern void ChannelManagerClaimFunds(long _this_arg, long _payment_preimage); // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_claim_funds_with_known_custom_tlvs")] public static extern void ChannelManager_claim_funds_with_known_custom_tlvs(long _this_arg, long _payment_preimage); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_claim_funds_with_known_custom_tlvs")] public static extern void ChannelManagerClaimFundsWithKnownCustomTlvs(long _this_arg, long _payment_preimage); // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_our_node_id")] public static extern long ChannelManager_get_our_node_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_our_node_id")] public static extern long ChannelManagerGetOurNodeId(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_accept_inbound_channel")] public static extern long ChannelManager_accept_inbound_channel(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _user_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_accept_inbound_channel")] public static extern long ChannelManagerAcceptInboundChannel(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _user_channel_id); // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf")] public static extern long ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _user_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf")] public static extern long ChannelManagerAcceptInboundChannelFromTrustedPeer0Conf(long _this_arg, long _temporary_channel_id, long _counterparty_node_id, long _user_channel_id); // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_pay_for_offer(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOffer *NONNULL_PTR offer, struct LDKCOption_u64Z quantity, struct LDKCOption_u64Z amount_msats, struct LDKCOption_StrZ payer_note, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_pay_for_offer")] public static extern long ChannelManager_pay_for_offer(long _this_arg, long _offer, long _quantity, long _amount_msats, long _payer_note, long _payment_id, long _retry_strategy, long _max_total_routing_fee_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_pay_for_offer")] public static extern long ChannelManagerPayForOffer(long _this_arg, long _offer, long _quantity, long _amount_msats, long _payer_note, long _payment_id, long _retry_strategy, long _max_total_routing_fee_msat); // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_request_refund_payment")] public static extern long ChannelManager_request_refund_payment(long _this_arg, long _refund); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_request_refund_payment")] public static extern long ChannelManagerRequestRefundPayment(long _this_arg, long _refund); // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_inbound_payment")] public static extern long ChannelManager_create_inbound_payment(long _this_arg, long _min_value_msat, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_inbound_payment")] public static extern long ChannelManagerCreateInboundPayment(long _this_arg, long _min_value_msat, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_inbound_payment_for_hash")] public static extern long ChannelManager_create_inbound_payment_for_hash(long _this_arg, long _payment_hash, long _min_value_msat, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_create_inbound_payment_for_hash")] public static extern long ChannelManagerCreateInboundPaymentForHash(long _this_arg, long _payment_hash, long _min_value_msat, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_payment_preimage")] public static extern long ChannelManager_get_payment_preimage(long _this_arg, long _payment_hash, long _payment_secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_payment_preimage")] public static extern long ChannelManagerGetPaymentPreimage(long _this_arg, long _payment_hash, long _payment_secret); // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_phantom_scid")] public static extern long ChannelManager_get_phantom_scid(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_phantom_scid")] public static extern long ChannelManagerGetPhantomScid(long _this_arg); // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_phantom_route_hints")] public static extern long ChannelManager_get_phantom_route_hints(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_phantom_route_hints")] public static extern long ChannelManagerGetPhantomRouteHints(long _this_arg); // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_intercept_scid")] public static extern long ChannelManager_get_intercept_scid(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_intercept_scid")] public static extern long ChannelManagerGetInterceptScid(long _this_arg); // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_compute_inflight_htlcs")] public static extern long ChannelManager_compute_inflight_htlcs(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_compute_inflight_htlcs")] public static extern long ChannelManagerComputeInflightHtlcs(long _this_arg); // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_MessageSendEventsProvider")] public static extern long ChannelManager_as_MessageSendEventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_MessageSendEventsProvider")] public static extern long ChannelManagerAsMessageSendEventsProvider(long _this_arg); // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_EventsProvider")] public static extern long ChannelManager_as_EventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_EventsProvider")] public static extern long ChannelManagerAsEventsProvider(long _this_arg); // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_Listen")] public static extern long ChannelManager_as_Listen(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_Listen")] public static extern long ChannelManagerAsListen(long _this_arg); // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_Confirm")] public static extern long ChannelManager_as_Confirm(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_Confirm")] public static extern long ChannelManagerAsConfirm(long _this_arg); // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_event_or_persistence_needed_future")] public static extern long ChannelManager_get_event_or_persistence_needed_future(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_event_or_persistence_needed_future")] public static extern long ChannelManagerGetEventOrPersistenceNeededFuture(long _this_arg); // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_and_clear_needs_persistence")] public static extern bool ChannelManager_get_and_clear_needs_persistence(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_get_and_clear_needs_persistence")] public static extern bool ChannelManagerGetAndClearNeedsPersistence(long _this_arg); // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_current_best_block")] public static extern long ChannelManager_current_best_block(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_current_best_block")] public static extern long ChannelManagerCurrentBestBlock(long _this_arg); // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_node_features")] public static extern long ChannelManager_node_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_node_features")] public static extern long ChannelManagerNodeFeatures(long _this_arg); // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_channel_features")] public static extern long ChannelManager_channel_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_channel_features")] public static extern long ChannelManagerChannelFeatures(long _this_arg); // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_channel_type_features")] public static extern long ChannelManager_channel_type_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_channel_type_features")] public static extern long ChannelManagerChannelTypeFeatures(long _this_arg); // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_init_features")] public static extern long ChannelManager_init_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_init_features")] public static extern long ChannelManagerInitFeatures(long _this_arg); // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_ChannelMessageHandler")] public static extern long ChannelManager_as_ChannelMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_ChannelMessageHandler")] public static extern long ChannelManagerAsChannelMessageHandler(long _this_arg); // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_OffersMessageHandler")] public static extern long ChannelManager_as_OffersMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_as_OffersMessageHandler")] public static extern long ChannelManagerAsOffersMessageHandler(long _this_arg); // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_provided_init_features")] public static extern long provided_init_features(long _config); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_provided_init_features")] public static extern long ProvidedInitFeatures(long _config); // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_write")] public static extern long CounterpartyForwardingInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_write")] public static extern long CounterpartyForwardingInfoWrite(long _obj); // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_read")] public static extern long CounterpartyForwardingInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyForwardingInfo_read")] public static extern long CounterpartyForwardingInfoRead(long _ser); // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_write")] public static extern long ChannelCounterparty_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_write")] public static extern long ChannelCounterpartyWrite(long _obj); // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_read")] public static extern long ChannelCounterparty_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelCounterparty_read")] public static extern long ChannelCounterpartyRead(long _ser); // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_write")] public static extern long ChannelDetails_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_write")] public static extern long ChannelDetailsWrite(long _obj); // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_read")] public static extern long ChannelDetails_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDetails_read")] public static extern long ChannelDetailsRead(long _ser); // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_write")] public static extern long PhantomRouteHints_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_write")] public static extern long PhantomRouteHintsWrite(long _obj); // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_read")] public static extern long PhantomRouteHints_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomRouteHints_read")] public static extern long PhantomRouteHintsRead(long _ser); // struct LDKCVec_u8Z BlindedForward_write(const struct LDKBlindedForward *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_write")] public static extern long BlindedForward_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_write")] public static extern long BlindedForwardWrite(long _obj); // struct LDKCResult_BlindedForwardDecodeErrorZ BlindedForward_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_read")] public static extern long BlindedForward_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedForward_read")] public static extern long BlindedForwardRead(long _ser); // struct LDKCVec_u8Z PendingHTLCRouting_write(const struct LDKPendingHTLCRouting *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_write")] public static extern long PendingHTLCRouting_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_write")] public static extern long PendingHTLCRoutingWrite(long _obj); // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ PendingHTLCRouting_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_read")] public static extern long PendingHTLCRouting_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCRouting_read")] public static extern long PendingHTLCRoutingRead(long _ser); // struct LDKCVec_u8Z PendingHTLCInfo_write(const struct LDKPendingHTLCInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_write")] public static extern long PendingHTLCInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_write")] public static extern long PendingHTLCInfoWrite(long _obj); // struct LDKCResult_PendingHTLCInfoDecodeErrorZ PendingHTLCInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_read")] public static extern long PendingHTLCInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PendingHTLCInfo_read")] public static extern long PendingHTLCInfoRead(long _ser); // struct LDKCVec_u8Z BlindedFailure_write(const enum LDKBlindedFailure *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_write")] public static extern long BlindedFailure_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_write")] public static extern long BlindedFailureWrite(long _obj); // struct LDKCResult_BlindedFailureDecodeErrorZ BlindedFailure_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_read")] public static extern long BlindedFailure_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedFailure_read")] public static extern long BlindedFailureRead(long _ser); // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_write")] public static extern long ChannelManager_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManager_write")] public static extern long ChannelManagerWrite(long _obj); // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_write")] public static extern long ChannelShutdownState_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_write")] public static extern long ChannelShutdownStateWrite(long _obj); // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_read")] public static extern long ChannelShutdownState_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelShutdownState_read")] public static extern long ChannelShutdownStateRead(long _ser); // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_free")] public static extern void ChannelManagerReadArgs_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_free")] public static extern void ChannelManagerReadArgsFree(long _this_obj); // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_entropy_source")] public static extern long ChannelManagerReadArgs_get_entropy_source(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_entropy_source")] public static extern long ChannelManagerReadArgsGetEntropySource(long _this_ptr); // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_entropy_source")] public static extern void ChannelManagerReadArgs_set_entropy_source(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_entropy_source")] public static extern void ChannelManagerReadArgsSetEntropySource(long _this_ptr, long _val); // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_node_signer")] public static extern long ChannelManagerReadArgs_get_node_signer(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_node_signer")] public static extern long ChannelManagerReadArgsGetNodeSigner(long _this_ptr); // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_node_signer")] public static extern void ChannelManagerReadArgs_set_node_signer(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_node_signer")] public static extern void ChannelManagerReadArgsSetNodeSigner(long _this_ptr, long _val); // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_signer_provider")] public static extern long ChannelManagerReadArgs_get_signer_provider(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_signer_provider")] public static extern long ChannelManagerReadArgsGetSignerProvider(long _this_ptr); // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_signer_provider")] public static extern void ChannelManagerReadArgs_set_signer_provider(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_signer_provider")] public static extern void ChannelManagerReadArgsSetSignerProvider(long _this_ptr, long _val); // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_fee_estimator")] public static extern long ChannelManagerReadArgs_get_fee_estimator(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_fee_estimator")] public static extern long ChannelManagerReadArgsGetFeeEstimator(long _this_ptr); // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_fee_estimator")] public static extern void ChannelManagerReadArgs_set_fee_estimator(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_fee_estimator")] public static extern void ChannelManagerReadArgsSetFeeEstimator(long _this_ptr, long _val); // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_chain_monitor")] public static extern long ChannelManagerReadArgs_get_chain_monitor(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_chain_monitor")] public static extern long ChannelManagerReadArgsGetChainMonitor(long _this_ptr); // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_chain_monitor")] public static extern void ChannelManagerReadArgs_set_chain_monitor(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_chain_monitor")] public static extern void ChannelManagerReadArgsSetChainMonitor(long _this_ptr, long _val); // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_tx_broadcaster")] public static extern long ChannelManagerReadArgs_get_tx_broadcaster(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_tx_broadcaster")] public static extern long ChannelManagerReadArgsGetTxBroadcaster(long _this_ptr); // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_tx_broadcaster")] public static extern void ChannelManagerReadArgs_set_tx_broadcaster(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_tx_broadcaster")] public static extern void ChannelManagerReadArgsSetTxBroadcaster(long _this_ptr, long _val); // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_router")] public static extern long ChannelManagerReadArgs_get_router(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_router")] public static extern long ChannelManagerReadArgsGetRouter(long _this_ptr); // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_router")] public static extern void ChannelManagerReadArgs_set_router(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_router")] public static extern void ChannelManagerReadArgsSetRouter(long _this_ptr, long _val); // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_logger")] public static extern long ChannelManagerReadArgs_get_logger(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_logger")] public static extern long ChannelManagerReadArgsGetLogger(long _this_ptr); // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_logger")] public static extern void ChannelManagerReadArgs_set_logger(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_logger")] public static extern void ChannelManagerReadArgsSetLogger(long _this_ptr, long _val); // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_default_config")] public static extern long ChannelManagerReadArgs_get_default_config(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_get_default_config")] public static extern long ChannelManagerReadArgsGetDefaultConfig(long _this_ptr); // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_default_config")] public static extern void ChannelManagerReadArgs_set_default_config(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_set_default_config")] public static extern void ChannelManagerReadArgsSetDefaultConfig(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_new")] public static extern long ChannelManagerReadArgs_new(long _entropy_source, long _node_signer, long _signer_provider, long _fee_estimator, long _chain_monitor, long _tx_broadcaster, long _router, long _logger, long _default_config, long _channel_monitors); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelManagerReadArgs_new")] public static extern long ChannelManagerReadArgsNew(long _entropy_source, long _node_signer, long _signer_provider, long _fee_estimator, long _chain_monitor, long _tx_broadcaster, long _router, long _logger, long _default_config, long _channel_monitors); // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_read")] public static extern long C2Tuple_ThirtyTwoBytesChannelManagerZ_read(long _ser, long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_C2Tuple_ThirtyTwoBytesChannelManagerZ_read")] public static extern long C2TupleThirtyTwoBytesChannelManagerZRead(long _ser, long _arg); // void DelayedPaymentBasepoint_free(struct LDKDelayedPaymentBasepoint this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_free")] public static extern void DelayedPaymentBasepoint_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_free")] public static extern void DelayedPaymentBasepointFree(long _this_obj); // struct LDKPublicKey DelayedPaymentBasepoint_get_a(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_get_a")] public static extern long DelayedPaymentBasepoint_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_get_a")] public static extern long DelayedPaymentBasepointGetA(long _this_ptr); // void DelayedPaymentBasepoint_set_a(struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_set_a")] public static extern void DelayedPaymentBasepoint_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_set_a")] public static extern void DelayedPaymentBasepointSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_new")] public static extern long DelayedPaymentBasepoint_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_new")] public static extern long DelayedPaymentBasepointNew(long _a_arg); // bool DelayedPaymentBasepoint_eq(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR a, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_eq")] public static extern bool DelayedPaymentBasepoint_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_eq")] public static extern bool DelayedPaymentBasepointEq(long _a, long _b); // uint64_t DelayedPaymentBasepoint_clone_ptr(LDKDelayedPaymentBasepoint *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_clone_ptr")] public static extern long DelayedPaymentBasepoint_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_clone_ptr")] public static extern long DelayedPaymentBasepointClonePtr(long _arg); // struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_clone(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_clone")] public static extern long DelayedPaymentBasepoint_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_clone")] public static extern long DelayedPaymentBasepointClone(long _orig); // uint64_t DelayedPaymentBasepoint_hash(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_hash")] public static extern long DelayedPaymentBasepoint_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_hash")] public static extern long DelayedPaymentBasepointHash(long _o); // MUST_USE_RES struct LDKPublicKey DelayedPaymentBasepoint_to_public_key(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_to_public_key")] public static extern long DelayedPaymentBasepoint_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_to_public_key")] public static extern long DelayedPaymentBasepointToPublicKey(long _this_arg); // struct LDKCVec_u8Z DelayedPaymentBasepoint_write(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_write")] public static extern long DelayedPaymentBasepoint_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_write")] public static extern long DelayedPaymentBasepointWrite(long _obj); // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ DelayedPaymentBasepoint_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_read")] public static extern long DelayedPaymentBasepoint_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentBasepoint_read")] public static extern long DelayedPaymentBasepointRead(long _ser); // void DelayedPaymentKey_free(struct LDKDelayedPaymentKey this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_free")] public static extern void DelayedPaymentKey_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_free")] public static extern void DelayedPaymentKeyFree(long _this_obj); // struct LDKPublicKey DelayedPaymentKey_get_a(const struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_get_a")] public static extern long DelayedPaymentKey_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_get_a")] public static extern long DelayedPaymentKeyGetA(long _this_ptr); // void DelayedPaymentKey_set_a(struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_set_a")] public static extern void DelayedPaymentKey_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_set_a")] public static extern void DelayedPaymentKeySetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_new")] public static extern long DelayedPaymentKey_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_new")] public static extern long DelayedPaymentKeyNew(long _a_arg); // bool DelayedPaymentKey_eq(const struct LDKDelayedPaymentKey *NONNULL_PTR a, const struct LDKDelayedPaymentKey *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_eq")] public static extern bool DelayedPaymentKey_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_eq")] public static extern bool DelayedPaymentKeyEq(long _a, long _b); // uint64_t DelayedPaymentKey_clone_ptr(LDKDelayedPaymentKey *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_clone_ptr")] public static extern long DelayedPaymentKey_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_clone_ptr")] public static extern long DelayedPaymentKeyClonePtr(long _arg); // struct LDKDelayedPaymentKey DelayedPaymentKey_clone(const struct LDKDelayedPaymentKey *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_clone")] public static extern long DelayedPaymentKey_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_clone")] public static extern long DelayedPaymentKeyClone(long _orig); // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_basepoint(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_from_basepoint")] public static extern long DelayedPaymentKey_from_basepoint(long _countersignatory_basepoint, long _per_commitment_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_from_basepoint")] public static extern long DelayedPaymentKeyFromBasepoint(long _countersignatory_basepoint, long _per_commitment_point); // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_secret_key(const uint8_t (*sk)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_from_secret_key")] public static extern long DelayedPaymentKey_from_secret_key(long _sk); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_from_secret_key")] public static extern long DelayedPaymentKeyFromSecretKey(long _sk); // MUST_USE_RES struct LDKPublicKey DelayedPaymentKey_to_public_key(const struct LDKDelayedPaymentKey *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_to_public_key")] public static extern long DelayedPaymentKey_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_to_public_key")] public static extern long DelayedPaymentKeyToPublicKey(long _this_arg); // struct LDKCVec_u8Z DelayedPaymentKey_write(const struct LDKDelayedPaymentKey *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_write")] public static extern long DelayedPaymentKey_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_write")] public static extern long DelayedPaymentKeyWrite(long _obj); // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ DelayedPaymentKey_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_read")] public static extern long DelayedPaymentKey_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentKey_read")] public static extern long DelayedPaymentKeyRead(long _ser); // void HtlcBasepoint_free(struct LDKHtlcBasepoint this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_free")] public static extern void HtlcBasepoint_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_free")] public static extern void HtlcBasepointFree(long _this_obj); // struct LDKPublicKey HtlcBasepoint_get_a(const struct LDKHtlcBasepoint *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_get_a")] public static extern long HtlcBasepoint_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_get_a")] public static extern long HtlcBasepointGetA(long _this_ptr); // void HtlcBasepoint_set_a(struct LDKHtlcBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_set_a")] public static extern void HtlcBasepoint_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_set_a")] public static extern void HtlcBasepointSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKHtlcBasepoint HtlcBasepoint_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_new")] public static extern long HtlcBasepoint_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_new")] public static extern long HtlcBasepointNew(long _a_arg); // bool HtlcBasepoint_eq(const struct LDKHtlcBasepoint *NONNULL_PTR a, const struct LDKHtlcBasepoint *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_eq")] public static extern bool HtlcBasepoint_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_eq")] public static extern bool HtlcBasepointEq(long _a, long _b); // uint64_t HtlcBasepoint_clone_ptr(LDKHtlcBasepoint *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_clone_ptr")] public static extern long HtlcBasepoint_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_clone_ptr")] public static extern long HtlcBasepointClonePtr(long _arg); // struct LDKHtlcBasepoint HtlcBasepoint_clone(const struct LDKHtlcBasepoint *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_clone")] public static extern long HtlcBasepoint_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_clone")] public static extern long HtlcBasepointClone(long _orig); // uint64_t HtlcBasepoint_hash(const struct LDKHtlcBasepoint *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_hash")] public static extern long HtlcBasepoint_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_hash")] public static extern long HtlcBasepointHash(long _o); // MUST_USE_RES struct LDKPublicKey HtlcBasepoint_to_public_key(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_to_public_key")] public static extern long HtlcBasepoint_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_to_public_key")] public static extern long HtlcBasepointToPublicKey(long _this_arg); // struct LDKCVec_u8Z HtlcBasepoint_write(const struct LDKHtlcBasepoint *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_write")] public static extern long HtlcBasepoint_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_write")] public static extern long HtlcBasepointWrite(long _obj); // struct LDKCResult_HtlcBasepointDecodeErrorZ HtlcBasepoint_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_read")] public static extern long HtlcBasepoint_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcBasepoint_read")] public static extern long HtlcBasepointRead(long _ser); // void HtlcKey_free(struct LDKHtlcKey this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_free")] public static extern void HtlcKey_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_free")] public static extern void HtlcKeyFree(long _this_obj); // struct LDKPublicKey HtlcKey_get_a(const struct LDKHtlcKey *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_get_a")] public static extern long HtlcKey_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_get_a")] public static extern long HtlcKeyGetA(long _this_ptr); // void HtlcKey_set_a(struct LDKHtlcKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_set_a")] public static extern void HtlcKey_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_set_a")] public static extern void HtlcKeySetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKHtlcKey HtlcKey_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_new")] public static extern long HtlcKey_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_new")] public static extern long HtlcKeyNew(long _a_arg); // bool HtlcKey_eq(const struct LDKHtlcKey *NONNULL_PTR a, const struct LDKHtlcKey *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_eq")] public static extern bool HtlcKey_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_eq")] public static extern bool HtlcKeyEq(long _a, long _b); // uint64_t HtlcKey_clone_ptr(LDKHtlcKey *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_clone_ptr")] public static extern long HtlcKey_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_clone_ptr")] public static extern long HtlcKeyClonePtr(long _arg); // struct LDKHtlcKey HtlcKey_clone(const struct LDKHtlcKey *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_clone")] public static extern long HtlcKey_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_clone")] public static extern long HtlcKeyClone(long _orig); // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_basepoint(const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_from_basepoint")] public static extern long HtlcKey_from_basepoint(long _countersignatory_basepoint, long _per_commitment_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_from_basepoint")] public static extern long HtlcKeyFromBasepoint(long _countersignatory_basepoint, long _per_commitment_point); // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_secret_key(const uint8_t (*sk)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_from_secret_key")] public static extern long HtlcKey_from_secret_key(long _sk); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_from_secret_key")] public static extern long HtlcKeyFromSecretKey(long _sk); // MUST_USE_RES struct LDKPublicKey HtlcKey_to_public_key(const struct LDKHtlcKey *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_to_public_key")] public static extern long HtlcKey_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_to_public_key")] public static extern long HtlcKeyToPublicKey(long _this_arg); // struct LDKCVec_u8Z HtlcKey_write(const struct LDKHtlcKey *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_write")] public static extern long HtlcKey_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_write")] public static extern long HtlcKeyWrite(long _obj); // struct LDKCResult_HtlcKeyDecodeErrorZ HtlcKey_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_read")] public static extern long HtlcKey_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HtlcKey_read")] public static extern long HtlcKeyRead(long _ser); // void RevocationBasepoint_free(struct LDKRevocationBasepoint this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_free")] public static extern void RevocationBasepoint_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_free")] public static extern void RevocationBasepointFree(long _this_obj); // struct LDKPublicKey RevocationBasepoint_get_a(const struct LDKRevocationBasepoint *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_get_a")] public static extern long RevocationBasepoint_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_get_a")] public static extern long RevocationBasepointGetA(long _this_ptr); // void RevocationBasepoint_set_a(struct LDKRevocationBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_set_a")] public static extern void RevocationBasepoint_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_set_a")] public static extern void RevocationBasepointSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKRevocationBasepoint RevocationBasepoint_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_new")] public static extern long RevocationBasepoint_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_new")] public static extern long RevocationBasepointNew(long _a_arg); // bool RevocationBasepoint_eq(const struct LDKRevocationBasepoint *NONNULL_PTR a, const struct LDKRevocationBasepoint *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_eq")] public static extern bool RevocationBasepoint_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_eq")] public static extern bool RevocationBasepointEq(long _a, long _b); // uint64_t RevocationBasepoint_clone_ptr(LDKRevocationBasepoint *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_clone_ptr")] public static extern long RevocationBasepoint_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_clone_ptr")] public static extern long RevocationBasepointClonePtr(long _arg); // struct LDKRevocationBasepoint RevocationBasepoint_clone(const struct LDKRevocationBasepoint *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_clone")] public static extern long RevocationBasepoint_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_clone")] public static extern long RevocationBasepointClone(long _orig); // uint64_t RevocationBasepoint_hash(const struct LDKRevocationBasepoint *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_hash")] public static extern long RevocationBasepoint_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_hash")] public static extern long RevocationBasepointHash(long _o); // MUST_USE_RES struct LDKPublicKey RevocationBasepoint_to_public_key(const struct LDKRevocationBasepoint *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_to_public_key")] public static extern long RevocationBasepoint_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_to_public_key")] public static extern long RevocationBasepointToPublicKey(long _this_arg); // struct LDKCVec_u8Z RevocationBasepoint_write(const struct LDKRevocationBasepoint *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_write")] public static extern long RevocationBasepoint_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_write")] public static extern long RevocationBasepointWrite(long _obj); // struct LDKCResult_RevocationBasepointDecodeErrorZ RevocationBasepoint_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_read")] public static extern long RevocationBasepoint_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationBasepoint_read")] public static extern long RevocationBasepointRead(long _ser); // void RevocationKey_free(struct LDKRevocationKey this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_free")] public static extern void RevocationKey_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_free")] public static extern void RevocationKeyFree(long _this_obj); // struct LDKPublicKey RevocationKey_get_a(const struct LDKRevocationKey *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_get_a")] public static extern long RevocationKey_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_get_a")] public static extern long RevocationKeyGetA(long _this_ptr); // void RevocationKey_set_a(struct LDKRevocationKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_set_a")] public static extern void RevocationKey_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_set_a")] public static extern void RevocationKeySetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKRevocationKey RevocationKey_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_new")] public static extern long RevocationKey_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_new")] public static extern long RevocationKeyNew(long _a_arg); // bool RevocationKey_eq(const struct LDKRevocationKey *NONNULL_PTR a, const struct LDKRevocationKey *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_eq")] public static extern bool RevocationKey_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_eq")] public static extern bool RevocationKeyEq(long _a, long _b); // uint64_t RevocationKey_clone_ptr(LDKRevocationKey *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_clone_ptr")] public static extern long RevocationKey_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_clone_ptr")] public static extern long RevocationKeyClonePtr(long _arg); // struct LDKRevocationKey RevocationKey_clone(const struct LDKRevocationKey *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_clone")] public static extern long RevocationKey_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_clone")] public static extern long RevocationKeyClone(long _orig); // uint64_t RevocationKey_hash(const struct LDKRevocationKey *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_hash")] public static extern long RevocationKey_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_hash")] public static extern long RevocationKeyHash(long _o); // MUST_USE_RES struct LDKRevocationKey RevocationKey_from_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_from_basepoint")] public static extern long RevocationKey_from_basepoint(long _countersignatory_basepoint, long _per_commitment_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_from_basepoint")] public static extern long RevocationKeyFromBasepoint(long _countersignatory_basepoint, long _per_commitment_point); // MUST_USE_RES struct LDKPublicKey RevocationKey_to_public_key(const struct LDKRevocationKey *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_to_public_key")] public static extern long RevocationKey_to_public_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_to_public_key")] public static extern long RevocationKeyToPublicKey(long _this_arg); // struct LDKCVec_u8Z RevocationKey_write(const struct LDKRevocationKey *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_write")] public static extern long RevocationKey_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_write")] public static extern long RevocationKeyWrite(long _obj); // struct LDKCResult_RevocationKeyDecodeErrorZ RevocationKey_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_read")] public static extern long RevocationKey_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevocationKey_read")] public static extern long RevocationKeyRead(long _ser); // void ExpandedKey_free(struct LDKExpandedKey this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpandedKey_free")] public static extern void ExpandedKey_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpandedKey_free")] public static extern void ExpandedKeyFree(long _this_obj); // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpandedKey_new")] public static extern long ExpandedKey_new(long _key_material); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpandedKey_new")] public static extern long ExpandedKeyNew(long _key_material); // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create")] public static extern long create(long _keys, long _min_value_msat, int _invoice_expiry_delta_secs, long _entropy_source, long _current_time, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create")] public static extern long Create(long _keys, long _min_value_msat, int _invoice_expiry_delta_secs, long _entropy_source, long _current_time, long _min_final_cltv_expiry_delta); // struct LDKCResult_ThirtyTwoBytesNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_from_hash")] public static extern long create_from_hash(long _keys, long _min_value_msat, long _payment_hash, int _invoice_expiry_delta_secs, long _current_time, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_from_hash")] public static extern long CreateFromHash(long _keys, long _min_value_msat, long _payment_hash, int _invoice_expiry_delta_secs, long _current_time, long _min_final_cltv_expiry_delta); // void DecodeError_free(struct LDKDecodeError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_free")] public static extern void DecodeError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_free")] public static extern void DecodeErrorFree(long _this_ptr); // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_clone_ptr")] public static extern long DecodeError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_clone_ptr")] public static extern long DecodeErrorClonePtr(long _arg); // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_clone")] public static extern long DecodeError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_clone")] public static extern long DecodeErrorClone(long _orig); // struct LDKDecodeError DecodeError_unknown_version(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unknown_version")] public static extern long DecodeError_unknown_version(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unknown_version")] public static extern long DecodeErrorUnknownVersion(); // struct LDKDecodeError DecodeError_unknown_required_feature(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unknown_required_feature")] public static extern long DecodeError_unknown_required_feature(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unknown_required_feature")] public static extern long DecodeErrorUnknownRequiredFeature(); // struct LDKDecodeError DecodeError_invalid_value(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_invalid_value")] public static extern long DecodeError_invalid_value(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_invalid_value")] public static extern long DecodeErrorInvalidValue(); // struct LDKDecodeError DecodeError_short_read(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_short_read")] public static extern long DecodeError_short_read(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_short_read")] public static extern long DecodeErrorShortRead(); // struct LDKDecodeError DecodeError_bad_length_descriptor(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_bad_length_descriptor")] public static extern long DecodeError_bad_length_descriptor(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_bad_length_descriptor")] public static extern long DecodeErrorBadLengthDescriptor(); // struct LDKDecodeError DecodeError_io(enum LDKIOError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_io")] public static extern long DecodeError_io(IOError _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_io")] public static extern long DecodeErrorIo(IOError _a); // struct LDKDecodeError DecodeError_unsupported_compression(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unsupported_compression")] public static extern long DecodeError_unsupported_compression(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_unsupported_compression")] public static extern long DecodeErrorUnsupportedCompression(); // uint64_t DecodeError_hash(const struct LDKDecodeError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_hash")] public static extern long DecodeError_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_hash")] public static extern long DecodeErrorHash(long _o); // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_eq")] public static extern bool DecodeError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DecodeError_eq")] public static extern bool DecodeErrorEq(long _a, long _b); // void Init_free(struct LDKInit this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_free")] public static extern void Init_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_free")] public static extern void InitFree(long _this_obj); // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_features")] public static extern long Init_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_features")] public static extern long InitGetFeatures(long _this_ptr); // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_features")] public static extern void Init_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_features")] public static extern void InitSetFeatures(long _this_ptr, long _val); // struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_networks")] public static extern long Init_get_networks(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_networks")] public static extern long InitGetNetworks(long _this_ptr); // void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_networks")] public static extern void Init_set_networks(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_networks")] public static extern void InitSetNetworks(long _this_ptr, long _val); // struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_remote_network_address")] public static extern long Init_get_remote_network_address(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_get_remote_network_address")] public static extern long InitGetRemoteNetworkAddress(long _this_ptr); // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_remote_network_address")] public static extern void Init_set_remote_network_address(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_set_remote_network_address")] public static extern void InitSetRemoteNetworkAddress(long _this_ptr, long _val); // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_new")] public static extern long Init_new(long _features_arg, long _networks_arg, long _remote_network_address_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_new")] public static extern long InitNew(long _features_arg, long _networks_arg, long _remote_network_address_arg); // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_clone_ptr")] public static extern long Init_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_clone_ptr")] public static extern long InitClonePtr(long _arg); // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_clone")] public static extern long Init_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_clone")] public static extern long InitClone(long _orig); // uint64_t Init_hash(const struct LDKInit *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_hash")] public static extern long Init_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_hash")] public static extern long InitHash(long _o); // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_eq")] public static extern bool Init_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_eq")] public static extern bool InitEq(long _a, long _b); // void ErrorMessage_free(struct LDKErrorMessage this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_free")] public static extern void ErrorMessage_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_free")] public static extern void ErrorMessageFree(long _this_obj); // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_get_channel_id")] public static extern long ErrorMessage_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_get_channel_id")] public static extern long ErrorMessageGetChannelId(long _this_ptr); // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_set_channel_id")] public static extern void ErrorMessage_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_set_channel_id")] public static extern void ErrorMessageSetChannelId(long _this_ptr, long _val); // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_get_data")] public static extern long ErrorMessage_get_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_get_data")] public static extern long ErrorMessageGetData(long _this_ptr); // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_set_data")] public static extern void ErrorMessage_set_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_set_data")] public static extern void ErrorMessageSetData(long _this_ptr, long _val); // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_new")] public static extern long ErrorMessage_new(long _channel_id_arg, long _data_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_new")] public static extern long ErrorMessageNew(long _channel_id_arg, long _data_arg); // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_clone_ptr")] public static extern long ErrorMessage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_clone_ptr")] public static extern long ErrorMessageClonePtr(long _arg); // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_clone")] public static extern long ErrorMessage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_clone")] public static extern long ErrorMessageClone(long _orig); // uint64_t ErrorMessage_hash(const struct LDKErrorMessage *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_hash")] public static extern long ErrorMessage_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_hash")] public static extern long ErrorMessageHash(long _o); // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_eq")] public static extern bool ErrorMessage_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_eq")] public static extern bool ErrorMessageEq(long _a, long _b); // void WarningMessage_free(struct LDKWarningMessage this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_free")] public static extern void WarningMessage_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_free")] public static extern void WarningMessageFree(long _this_obj); // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_get_channel_id")] public static extern long WarningMessage_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_get_channel_id")] public static extern long WarningMessageGetChannelId(long _this_ptr); // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_set_channel_id")] public static extern void WarningMessage_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_set_channel_id")] public static extern void WarningMessageSetChannelId(long _this_ptr, long _val); // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_get_data")] public static extern long WarningMessage_get_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_get_data")] public static extern long WarningMessageGetData(long _this_ptr); // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_set_data")] public static extern void WarningMessage_set_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_set_data")] public static extern void WarningMessageSetData(long _this_ptr, long _val); // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_new")] public static extern long WarningMessage_new(long _channel_id_arg, long _data_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_new")] public static extern long WarningMessageNew(long _channel_id_arg, long _data_arg); // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_clone_ptr")] public static extern long WarningMessage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_clone_ptr")] public static extern long WarningMessageClonePtr(long _arg); // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_clone")] public static extern long WarningMessage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_clone")] public static extern long WarningMessageClone(long _orig); // uint64_t WarningMessage_hash(const struct LDKWarningMessage *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_hash")] public static extern long WarningMessage_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_hash")] public static extern long WarningMessageHash(long _o); // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_eq")] public static extern bool WarningMessage_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_eq")] public static extern bool WarningMessageEq(long _a, long _b); // void Ping_free(struct LDKPing this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_free")] public static extern void Ping_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_free")] public static extern void PingFree(long _this_obj); // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_get_ponglen")] public static extern short Ping_get_ponglen(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_get_ponglen")] public static extern short PingGetPonglen(long _this_ptr); // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_set_ponglen")] public static extern void Ping_set_ponglen(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_set_ponglen")] public static extern void PingSetPonglen(long _this_ptr, short _val); // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_get_byteslen")] public static extern short Ping_get_byteslen(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_get_byteslen")] public static extern short PingGetByteslen(long _this_ptr); // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_set_byteslen")] public static extern void Ping_set_byteslen(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_set_byteslen")] public static extern void PingSetByteslen(long _this_ptr, short _val); // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_new")] public static extern long Ping_new(short _ponglen_arg, short _byteslen_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_new")] public static extern long PingNew(short _ponglen_arg, short _byteslen_arg); // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_clone_ptr")] public static extern long Ping_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_clone_ptr")] public static extern long PingClonePtr(long _arg); // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_clone")] public static extern long Ping_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_clone")] public static extern long PingClone(long _orig); // uint64_t Ping_hash(const struct LDKPing *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_hash")] public static extern long Ping_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_hash")] public static extern long PingHash(long _o); // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_eq")] public static extern bool Ping_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_eq")] public static extern bool PingEq(long _a, long _b); // void Pong_free(struct LDKPong this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_free")] public static extern void Pong_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_free")] public static extern void PongFree(long _this_obj); // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_get_byteslen")] public static extern short Pong_get_byteslen(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_get_byteslen")] public static extern short PongGetByteslen(long _this_ptr); // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_set_byteslen")] public static extern void Pong_set_byteslen(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_set_byteslen")] public static extern void PongSetByteslen(long _this_ptr, short _val); // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_new")] public static extern long Pong_new(short _byteslen_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_new")] public static extern long PongNew(short _byteslen_arg); // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_clone_ptr")] public static extern long Pong_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_clone_ptr")] public static extern long PongClonePtr(long _arg); // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_clone")] public static extern long Pong_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_clone")] public static extern long PongClone(long _orig); // uint64_t Pong_hash(const struct LDKPong *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_hash")] public static extern long Pong_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_hash")] public static extern long PongHash(long _o); // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_eq")] public static extern bool Pong_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_eq")] public static extern bool PongEq(long _a, long _b); // void OpenChannel_free(struct LDKOpenChannel this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_free")] public static extern void OpenChannel_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_free")] public static extern void OpenChannelFree(long _this_obj); // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_chain_hash")] public static extern long OpenChannel_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_chain_hash")] public static extern long OpenChannelGetChainHash(long _this_ptr); // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_chain_hash")] public static extern void OpenChannel_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_chain_hash")] public static extern void OpenChannelSetChainHash(long _this_ptr, long _val); // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_temporary_channel_id")] public static extern long OpenChannel_get_temporary_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_temporary_channel_id")] public static extern long OpenChannelGetTemporaryChannelId(long _this_ptr); // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_temporary_channel_id")] public static extern void OpenChannel_set_temporary_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_temporary_channel_id")] public static extern void OpenChannelSetTemporaryChannelId(long _this_ptr, long _val); // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_funding_satoshis")] public static extern long OpenChannel_get_funding_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_funding_satoshis")] public static extern long OpenChannelGetFundingSatoshis(long _this_ptr); // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_funding_satoshis")] public static extern void OpenChannel_set_funding_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_funding_satoshis")] public static extern void OpenChannelSetFundingSatoshis(long _this_ptr, long _val); // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_push_msat")] public static extern long OpenChannel_get_push_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_push_msat")] public static extern long OpenChannelGetPushMsat(long _this_ptr); // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_push_msat")] public static extern void OpenChannel_set_push_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_push_msat")] public static extern void OpenChannelSetPushMsat(long _this_ptr, long _val); // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_dust_limit_satoshis")] public static extern long OpenChannel_get_dust_limit_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_dust_limit_satoshis")] public static extern long OpenChannelGetDustLimitSatoshis(long _this_ptr); // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_dust_limit_satoshis")] public static extern void OpenChannel_set_dust_limit_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_dust_limit_satoshis")] public static extern void OpenChannelSetDustLimitSatoshis(long _this_ptr, long _val); // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_max_htlc_value_in_flight_msat")] public static extern long OpenChannel_get_max_htlc_value_in_flight_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_max_htlc_value_in_flight_msat")] public static extern long OpenChannelGetMaxHtlcValueInFlightMsat(long _this_ptr); // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_max_htlc_value_in_flight_msat")] public static extern void OpenChannel_set_max_htlc_value_in_flight_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_max_htlc_value_in_flight_msat")] public static extern void OpenChannelSetMaxHtlcValueInFlightMsat(long _this_ptr, long _val); // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_reserve_satoshis")] public static extern long OpenChannel_get_channel_reserve_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_reserve_satoshis")] public static extern long OpenChannelGetChannelReserveSatoshis(long _this_ptr); // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_reserve_satoshis")] public static extern void OpenChannel_set_channel_reserve_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_reserve_satoshis")] public static extern void OpenChannelSetChannelReserveSatoshis(long _this_ptr, long _val); // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_htlc_minimum_msat")] public static extern long OpenChannel_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_htlc_minimum_msat")] public static extern long OpenChannelGetHtlcMinimumMsat(long _this_ptr); // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_htlc_minimum_msat")] public static extern void OpenChannel_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_htlc_minimum_msat")] public static extern void OpenChannelSetHtlcMinimumMsat(long _this_ptr, long _val); // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_feerate_per_kw")] public static extern int OpenChannel_get_feerate_per_kw(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_feerate_per_kw")] public static extern int OpenChannelGetFeeratePerKw(long _this_ptr); // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_feerate_per_kw")] public static extern void OpenChannel_set_feerate_per_kw(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_feerate_per_kw")] public static extern void OpenChannelSetFeeratePerKw(long _this_ptr, int _val); // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_to_self_delay")] public static extern short OpenChannel_get_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_to_self_delay")] public static extern short OpenChannelGetToSelfDelay(long _this_ptr); // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_to_self_delay")] public static extern void OpenChannel_set_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_to_self_delay")] public static extern void OpenChannelSetToSelfDelay(long _this_ptr, short _val); // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_max_accepted_htlcs")] public static extern short OpenChannel_get_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_max_accepted_htlcs")] public static extern short OpenChannelGetMaxAcceptedHtlcs(long _this_ptr); // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_max_accepted_htlcs")] public static extern void OpenChannel_set_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_max_accepted_htlcs")] public static extern void OpenChannelSetMaxAcceptedHtlcs(long _this_ptr, short _val); // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_funding_pubkey")] public static extern long OpenChannel_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_funding_pubkey")] public static extern long OpenChannelGetFundingPubkey(long _this_ptr); // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_funding_pubkey")] public static extern void OpenChannel_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_funding_pubkey")] public static extern void OpenChannelSetFundingPubkey(long _this_ptr, long _val); // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_revocation_basepoint")] public static extern long OpenChannel_get_revocation_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_revocation_basepoint")] public static extern long OpenChannelGetRevocationBasepoint(long _this_ptr); // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_revocation_basepoint")] public static extern void OpenChannel_set_revocation_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_revocation_basepoint")] public static extern void OpenChannelSetRevocationBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_payment_point")] public static extern long OpenChannel_get_payment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_payment_point")] public static extern long OpenChannelGetPaymentPoint(long _this_ptr); // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_payment_point")] public static extern void OpenChannel_set_payment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_payment_point")] public static extern void OpenChannelSetPaymentPoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_delayed_payment_basepoint")] public static extern long OpenChannel_get_delayed_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_delayed_payment_basepoint")] public static extern long OpenChannelGetDelayedPaymentBasepoint(long _this_ptr); // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_delayed_payment_basepoint")] public static extern void OpenChannel_set_delayed_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_delayed_payment_basepoint")] public static extern void OpenChannelSetDelayedPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_htlc_basepoint")] public static extern long OpenChannel_get_htlc_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_htlc_basepoint")] public static extern long OpenChannelGetHtlcBasepoint(long _this_ptr); // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_htlc_basepoint")] public static extern void OpenChannel_set_htlc_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_htlc_basepoint")] public static extern void OpenChannelSetHtlcBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_first_per_commitment_point")] public static extern long OpenChannel_get_first_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_first_per_commitment_point")] public static extern long OpenChannelGetFirstPerCommitmentPoint(long _this_ptr); // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_first_per_commitment_point")] public static extern void OpenChannel_set_first_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_first_per_commitment_point")] public static extern void OpenChannelSetFirstPerCommitmentPoint(long _this_ptr, long _val); // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_flags")] public static extern byte OpenChannel_get_channel_flags(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_flags")] public static extern byte OpenChannelGetChannelFlags(long _this_ptr); // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_flags")] public static extern void OpenChannel_set_channel_flags(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_flags")] public static extern void OpenChannelSetChannelFlags(long _this_ptr, byte _val); // struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_shutdown_scriptpubkey")] public static extern long OpenChannel_get_shutdown_scriptpubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_shutdown_scriptpubkey")] public static extern long OpenChannelGetShutdownScriptpubkey(long _this_ptr); // void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_shutdown_scriptpubkey")] public static extern void OpenChannel_set_shutdown_scriptpubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_shutdown_scriptpubkey")] public static extern void OpenChannelSetShutdownScriptpubkey(long _this_ptr, long _val); // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_type")] public static extern long OpenChannel_get_channel_type(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_get_channel_type")] public static extern long OpenChannelGetChannelType(long _this_ptr); // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_type")] public static extern void OpenChannel_set_channel_type(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_set_channel_type")] public static extern void OpenChannelSetChannelType(long _this_ptr, long _val); // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_new")] public static extern long OpenChannel_new(long _chain_hash_arg, long _temporary_channel_id_arg, long _funding_satoshis_arg, long _push_msat_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _channel_reserve_satoshis_arg, long _htlc_minimum_msat_arg, int _feerate_per_kw_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, byte _channel_flags_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_new")] public static extern long OpenChannelNew(long _chain_hash_arg, long _temporary_channel_id_arg, long _funding_satoshis_arg, long _push_msat_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _channel_reserve_satoshis_arg, long _htlc_minimum_msat_arg, int _feerate_per_kw_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, byte _channel_flags_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg); // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_clone_ptr")] public static extern long OpenChannel_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_clone_ptr")] public static extern long OpenChannelClonePtr(long _arg); // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_clone")] public static extern long OpenChannel_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_clone")] public static extern long OpenChannelClone(long _orig); // uint64_t OpenChannel_hash(const struct LDKOpenChannel *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_hash")] public static extern long OpenChannel_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_hash")] public static extern long OpenChannelHash(long _o); // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_eq")] public static extern bool OpenChannel_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_eq")] public static extern bool OpenChannelEq(long _a, long _b); // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_free")] public static extern void OpenChannelV2_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_free")] public static extern void OpenChannelV2Free(long _this_obj); // const uint8_t (*OpenChannelV2_get_chain_hash(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_chain_hash")] public static extern long OpenChannelV2_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_chain_hash")] public static extern long OpenChannelV2GetChainHash(long _this_ptr); // void OpenChannelV2_set_chain_hash(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_chain_hash")] public static extern void OpenChannelV2_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_chain_hash")] public static extern void OpenChannelV2SetChainHash(long _this_ptr, long _val); // const uint8_t (*OpenChannelV2_get_temporary_channel_id(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_temporary_channel_id")] public static extern long OpenChannelV2_get_temporary_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_temporary_channel_id")] public static extern long OpenChannelV2GetTemporaryChannelId(long _this_ptr); // void OpenChannelV2_set_temporary_channel_id(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_temporary_channel_id")] public static extern void OpenChannelV2_set_temporary_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_temporary_channel_id")] public static extern void OpenChannelV2SetTemporaryChannelId(long _this_ptr, long _val); // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_feerate_sat_per_1000_weight")] public static extern int OpenChannelV2_get_funding_feerate_sat_per_1000_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_feerate_sat_per_1000_weight")] public static extern int OpenChannelV2GetFundingFeerateSatPer1000Weight(long _this_ptr); // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_feerate_sat_per_1000_weight")] public static extern void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_feerate_sat_per_1000_weight")] public static extern void OpenChannelV2SetFundingFeerateSatPer1000Weight(long _this_ptr, int _val); // uint32_t OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_commitment_feerate_sat_per_1000_weight")] public static extern int OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_commitment_feerate_sat_per_1000_weight")] public static extern int OpenChannelV2GetCommitmentFeerateSatPer1000Weight(long _this_ptr); // void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_commitment_feerate_sat_per_1000_weight")] public static extern void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_commitment_feerate_sat_per_1000_weight")] public static extern void OpenChannelV2SetCommitmentFeerateSatPer1000Weight(long _this_ptr, int _val); // uint64_t OpenChannelV2_get_funding_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_satoshis")] public static extern long OpenChannelV2_get_funding_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_satoshis")] public static extern long OpenChannelV2GetFundingSatoshis(long _this_ptr); // void OpenChannelV2_set_funding_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_satoshis")] public static extern void OpenChannelV2_set_funding_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_satoshis")] public static extern void OpenChannelV2SetFundingSatoshis(long _this_ptr, long _val); // uint64_t OpenChannelV2_get_dust_limit_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_dust_limit_satoshis")] public static extern long OpenChannelV2_get_dust_limit_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_dust_limit_satoshis")] public static extern long OpenChannelV2GetDustLimitSatoshis(long _this_ptr); // void OpenChannelV2_set_dust_limit_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_dust_limit_satoshis")] public static extern void OpenChannelV2_set_dust_limit_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_dust_limit_satoshis")] public static extern void OpenChannelV2SetDustLimitSatoshis(long _this_ptr, long _val); // uint64_t OpenChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_max_htlc_value_in_flight_msat")] public static extern long OpenChannelV2_get_max_htlc_value_in_flight_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_max_htlc_value_in_flight_msat")] public static extern long OpenChannelV2GetMaxHtlcValueInFlightMsat(long _this_ptr); // void OpenChannelV2_set_max_htlc_value_in_flight_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_max_htlc_value_in_flight_msat")] public static extern void OpenChannelV2_set_max_htlc_value_in_flight_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_max_htlc_value_in_flight_msat")] public static extern void OpenChannelV2SetMaxHtlcValueInFlightMsat(long _this_ptr, long _val); // uint64_t OpenChannelV2_get_htlc_minimum_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_htlc_minimum_msat")] public static extern long OpenChannelV2_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_htlc_minimum_msat")] public static extern long OpenChannelV2GetHtlcMinimumMsat(long _this_ptr); // void OpenChannelV2_set_htlc_minimum_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_htlc_minimum_msat")] public static extern void OpenChannelV2_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_htlc_minimum_msat")] public static extern void OpenChannelV2SetHtlcMinimumMsat(long _this_ptr, long _val); // uint16_t OpenChannelV2_get_to_self_delay(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_to_self_delay")] public static extern short OpenChannelV2_get_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_to_self_delay")] public static extern short OpenChannelV2GetToSelfDelay(long _this_ptr); // void OpenChannelV2_set_to_self_delay(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_to_self_delay")] public static extern void OpenChannelV2_set_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_to_self_delay")] public static extern void OpenChannelV2SetToSelfDelay(long _this_ptr, short _val); // uint16_t OpenChannelV2_get_max_accepted_htlcs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_max_accepted_htlcs")] public static extern short OpenChannelV2_get_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_max_accepted_htlcs")] public static extern short OpenChannelV2GetMaxAcceptedHtlcs(long _this_ptr); // void OpenChannelV2_set_max_accepted_htlcs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_max_accepted_htlcs")] public static extern void OpenChannelV2_set_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_max_accepted_htlcs")] public static extern void OpenChannelV2SetMaxAcceptedHtlcs(long _this_ptr, short _val); // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_locktime")] public static extern int OpenChannelV2_get_locktime(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_locktime")] public static extern int OpenChannelV2GetLocktime(long _this_ptr); // void OpenChannelV2_set_locktime(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_locktime")] public static extern void OpenChannelV2_set_locktime(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_locktime")] public static extern void OpenChannelV2SetLocktime(long _this_ptr, int _val); // struct LDKPublicKey OpenChannelV2_get_funding_pubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_pubkey")] public static extern long OpenChannelV2_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_funding_pubkey")] public static extern long OpenChannelV2GetFundingPubkey(long _this_ptr); // void OpenChannelV2_set_funding_pubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_pubkey")] public static extern void OpenChannelV2_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_funding_pubkey")] public static extern void OpenChannelV2SetFundingPubkey(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_revocation_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_revocation_basepoint")] public static extern long OpenChannelV2_get_revocation_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_revocation_basepoint")] public static extern long OpenChannelV2GetRevocationBasepoint(long _this_ptr); // void OpenChannelV2_set_revocation_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_revocation_basepoint")] public static extern void OpenChannelV2_set_revocation_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_revocation_basepoint")] public static extern void OpenChannelV2SetRevocationBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_payment_basepoint")] public static extern long OpenChannelV2_get_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_payment_basepoint")] public static extern long OpenChannelV2GetPaymentBasepoint(long _this_ptr); // void OpenChannelV2_set_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_payment_basepoint")] public static extern void OpenChannelV2_set_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_payment_basepoint")] public static extern void OpenChannelV2SetPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_delayed_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_delayed_payment_basepoint")] public static extern long OpenChannelV2_get_delayed_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_delayed_payment_basepoint")] public static extern long OpenChannelV2GetDelayedPaymentBasepoint(long _this_ptr); // void OpenChannelV2_set_delayed_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_delayed_payment_basepoint")] public static extern void OpenChannelV2_set_delayed_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_delayed_payment_basepoint")] public static extern void OpenChannelV2SetDelayedPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_htlc_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_htlc_basepoint")] public static extern long OpenChannelV2_get_htlc_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_htlc_basepoint")] public static extern long OpenChannelV2GetHtlcBasepoint(long _this_ptr); // void OpenChannelV2_set_htlc_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_htlc_basepoint")] public static extern void OpenChannelV2_set_htlc_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_htlc_basepoint")] public static extern void OpenChannelV2SetHtlcBasepoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_first_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_first_per_commitment_point")] public static extern long OpenChannelV2_get_first_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_first_per_commitment_point")] public static extern long OpenChannelV2GetFirstPerCommitmentPoint(long _this_ptr); // void OpenChannelV2_set_first_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_first_per_commitment_point")] public static extern void OpenChannelV2_set_first_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_first_per_commitment_point")] public static extern void OpenChannelV2SetFirstPerCommitmentPoint(long _this_ptr, long _val); // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_second_per_commitment_point")] public static extern long OpenChannelV2_get_second_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_second_per_commitment_point")] public static extern long OpenChannelV2GetSecondPerCommitmentPoint(long _this_ptr); // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_second_per_commitment_point")] public static extern void OpenChannelV2_set_second_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_second_per_commitment_point")] public static extern void OpenChannelV2SetSecondPerCommitmentPoint(long _this_ptr, long _val); // uint8_t OpenChannelV2_get_channel_flags(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_channel_flags")] public static extern byte OpenChannelV2_get_channel_flags(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_channel_flags")] public static extern byte OpenChannelV2GetChannelFlags(long _this_ptr); // void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_channel_flags")] public static extern void OpenChannelV2_set_channel_flags(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_channel_flags")] public static extern void OpenChannelV2SetChannelFlags(long _this_ptr, byte _val); // struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_shutdown_scriptpubkey")] public static extern long OpenChannelV2_get_shutdown_scriptpubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_shutdown_scriptpubkey")] public static extern long OpenChannelV2GetShutdownScriptpubkey(long _this_ptr); // void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_shutdown_scriptpubkey")] public static extern void OpenChannelV2_set_shutdown_scriptpubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_shutdown_scriptpubkey")] public static extern void OpenChannelV2SetShutdownScriptpubkey(long _this_ptr, long _val); // struct LDKChannelTypeFeatures OpenChannelV2_get_channel_type(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_channel_type")] public static extern long OpenChannelV2_get_channel_type(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_channel_type")] public static extern long OpenChannelV2GetChannelType(long _this_ptr); // void OpenChannelV2_set_channel_type(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_channel_type")] public static extern void OpenChannelV2_set_channel_type(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_channel_type")] public static extern void OpenChannelV2SetChannelType(long _this_ptr, long _val); // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_require_confirmed_inputs")] public static extern COption_NoneZ OpenChannelV2_get_require_confirmed_inputs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_get_require_confirmed_inputs")] public static extern COption_NoneZ OpenChannelV2GetRequireConfirmedInputs(long _this_ptr); // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_require_confirmed_inputs")] public static extern void OpenChannelV2_set_require_confirmed_inputs(long _this_ptr, COption_NoneZ _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_set_require_confirmed_inputs")] public static extern void OpenChannelV2SetRequireConfirmedInputs(long _this_ptr, COption_NoneZ _val); // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_new")] public static extern long OpenChannelV2_new(long _chain_hash_arg, long _temporary_channel_id_arg, int _funding_feerate_sat_per_1000_weight_arg, int _commitment_feerate_sat_per_1000_weight_arg, long _funding_satoshis_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _htlc_minimum_msat_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, int _locktime_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_basepoint_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _second_per_commitment_point_arg, byte _channel_flags_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg, COption_NoneZ _require_confirmed_inputs_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_new")] public static extern long OpenChannelV2New(long _chain_hash_arg, long _temporary_channel_id_arg, int _funding_feerate_sat_per_1000_weight_arg, int _commitment_feerate_sat_per_1000_weight_arg, long _funding_satoshis_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _htlc_minimum_msat_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, int _locktime_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_basepoint_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _second_per_commitment_point_arg, byte _channel_flags_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg, COption_NoneZ _require_confirmed_inputs_arg); // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_clone_ptr")] public static extern long OpenChannelV2_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_clone_ptr")] public static extern long OpenChannelV2ClonePtr(long _arg); // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_clone")] public static extern long OpenChannelV2_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_clone")] public static extern long OpenChannelV2Clone(long _orig); // uint64_t OpenChannelV2_hash(const struct LDKOpenChannelV2 *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_hash")] public static extern long OpenChannelV2_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_hash")] public static extern long OpenChannelV2Hash(long _o); // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_eq")] public static extern bool OpenChannelV2_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_eq")] public static extern bool OpenChannelV2Eq(long _a, long _b); // void AcceptChannel_free(struct LDKAcceptChannel this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_free")] public static extern void AcceptChannel_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_free")] public static extern void AcceptChannelFree(long _this_obj); // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_temporary_channel_id")] public static extern long AcceptChannel_get_temporary_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_temporary_channel_id")] public static extern long AcceptChannelGetTemporaryChannelId(long _this_ptr); // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_temporary_channel_id")] public static extern void AcceptChannel_set_temporary_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_temporary_channel_id")] public static extern void AcceptChannelSetTemporaryChannelId(long _this_ptr, long _val); // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_dust_limit_satoshis")] public static extern long AcceptChannel_get_dust_limit_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_dust_limit_satoshis")] public static extern long AcceptChannelGetDustLimitSatoshis(long _this_ptr); // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_dust_limit_satoshis")] public static extern void AcceptChannel_set_dust_limit_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_dust_limit_satoshis")] public static extern void AcceptChannelSetDustLimitSatoshis(long _this_ptr, long _val); // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_max_htlc_value_in_flight_msat")] public static extern long AcceptChannel_get_max_htlc_value_in_flight_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_max_htlc_value_in_flight_msat")] public static extern long AcceptChannelGetMaxHtlcValueInFlightMsat(long _this_ptr); // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_max_htlc_value_in_flight_msat")] public static extern void AcceptChannel_set_max_htlc_value_in_flight_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_max_htlc_value_in_flight_msat")] public static extern void AcceptChannelSetMaxHtlcValueInFlightMsat(long _this_ptr, long _val); // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_channel_reserve_satoshis")] public static extern long AcceptChannel_get_channel_reserve_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_channel_reserve_satoshis")] public static extern long AcceptChannelGetChannelReserveSatoshis(long _this_ptr); // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_channel_reserve_satoshis")] public static extern void AcceptChannel_set_channel_reserve_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_channel_reserve_satoshis")] public static extern void AcceptChannelSetChannelReserveSatoshis(long _this_ptr, long _val); // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_htlc_minimum_msat")] public static extern long AcceptChannel_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_htlc_minimum_msat")] public static extern long AcceptChannelGetHtlcMinimumMsat(long _this_ptr); // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_htlc_minimum_msat")] public static extern void AcceptChannel_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_htlc_minimum_msat")] public static extern void AcceptChannelSetHtlcMinimumMsat(long _this_ptr, long _val); // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_minimum_depth")] public static extern int AcceptChannel_get_minimum_depth(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_minimum_depth")] public static extern int AcceptChannelGetMinimumDepth(long _this_ptr); // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_minimum_depth")] public static extern void AcceptChannel_set_minimum_depth(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_minimum_depth")] public static extern void AcceptChannelSetMinimumDepth(long _this_ptr, int _val); // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_to_self_delay")] public static extern short AcceptChannel_get_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_to_self_delay")] public static extern short AcceptChannelGetToSelfDelay(long _this_ptr); // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_to_self_delay")] public static extern void AcceptChannel_set_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_to_self_delay")] public static extern void AcceptChannelSetToSelfDelay(long _this_ptr, short _val); // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_max_accepted_htlcs")] public static extern short AcceptChannel_get_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_max_accepted_htlcs")] public static extern short AcceptChannelGetMaxAcceptedHtlcs(long _this_ptr); // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_max_accepted_htlcs")] public static extern void AcceptChannel_set_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_max_accepted_htlcs")] public static extern void AcceptChannelSetMaxAcceptedHtlcs(long _this_ptr, short _val); // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_funding_pubkey")] public static extern long AcceptChannel_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_funding_pubkey")] public static extern long AcceptChannelGetFundingPubkey(long _this_ptr); // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_funding_pubkey")] public static extern void AcceptChannel_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_funding_pubkey")] public static extern void AcceptChannelSetFundingPubkey(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_revocation_basepoint")] public static extern long AcceptChannel_get_revocation_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_revocation_basepoint")] public static extern long AcceptChannelGetRevocationBasepoint(long _this_ptr); // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_revocation_basepoint")] public static extern void AcceptChannel_set_revocation_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_revocation_basepoint")] public static extern void AcceptChannelSetRevocationBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_payment_point")] public static extern long AcceptChannel_get_payment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_payment_point")] public static extern long AcceptChannelGetPaymentPoint(long _this_ptr); // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_payment_point")] public static extern void AcceptChannel_set_payment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_payment_point")] public static extern void AcceptChannelSetPaymentPoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_delayed_payment_basepoint")] public static extern long AcceptChannel_get_delayed_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_delayed_payment_basepoint")] public static extern long AcceptChannelGetDelayedPaymentBasepoint(long _this_ptr); // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_delayed_payment_basepoint")] public static extern void AcceptChannel_set_delayed_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_delayed_payment_basepoint")] public static extern void AcceptChannelSetDelayedPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_htlc_basepoint")] public static extern long AcceptChannel_get_htlc_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_htlc_basepoint")] public static extern long AcceptChannelGetHtlcBasepoint(long _this_ptr); // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_htlc_basepoint")] public static extern void AcceptChannel_set_htlc_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_htlc_basepoint")] public static extern void AcceptChannelSetHtlcBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_first_per_commitment_point")] public static extern long AcceptChannel_get_first_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_first_per_commitment_point")] public static extern long AcceptChannelGetFirstPerCommitmentPoint(long _this_ptr); // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_first_per_commitment_point")] public static extern void AcceptChannel_set_first_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_first_per_commitment_point")] public static extern void AcceptChannelSetFirstPerCommitmentPoint(long _this_ptr, long _val); // struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_shutdown_scriptpubkey")] public static extern long AcceptChannel_get_shutdown_scriptpubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_shutdown_scriptpubkey")] public static extern long AcceptChannelGetShutdownScriptpubkey(long _this_ptr); // void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_shutdown_scriptpubkey")] public static extern void AcceptChannel_set_shutdown_scriptpubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_shutdown_scriptpubkey")] public static extern void AcceptChannelSetShutdownScriptpubkey(long _this_ptr, long _val); // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_channel_type")] public static extern long AcceptChannel_get_channel_type(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_get_channel_type")] public static extern long AcceptChannelGetChannelType(long _this_ptr); // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_channel_type")] public static extern void AcceptChannel_set_channel_type(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_set_channel_type")] public static extern void AcceptChannelSetChannelType(long _this_ptr, long _val); // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_new")] public static extern long AcceptChannel_new(long _temporary_channel_id_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _channel_reserve_satoshis_arg, long _htlc_minimum_msat_arg, int _minimum_depth_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_new")] public static extern long AcceptChannelNew(long _temporary_channel_id_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _channel_reserve_satoshis_arg, long _htlc_minimum_msat_arg, int _minimum_depth_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg); // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_clone_ptr")] public static extern long AcceptChannel_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_clone_ptr")] public static extern long AcceptChannelClonePtr(long _arg); // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_clone")] public static extern long AcceptChannel_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_clone")] public static extern long AcceptChannelClone(long _orig); // uint64_t AcceptChannel_hash(const struct LDKAcceptChannel *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_hash")] public static extern long AcceptChannel_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_hash")] public static extern long AcceptChannelHash(long _o); // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_eq")] public static extern bool AcceptChannel_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_eq")] public static extern bool AcceptChannelEq(long _a, long _b); // void AcceptChannelV2_free(struct LDKAcceptChannelV2 this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_free")] public static extern void AcceptChannelV2_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_free")] public static extern void AcceptChannelV2Free(long _this_obj); // const uint8_t (*AcceptChannelV2_get_temporary_channel_id(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_temporary_channel_id")] public static extern long AcceptChannelV2_get_temporary_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_temporary_channel_id")] public static extern long AcceptChannelV2GetTemporaryChannelId(long _this_ptr); // void AcceptChannelV2_set_temporary_channel_id(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_temporary_channel_id")] public static extern void AcceptChannelV2_set_temporary_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_temporary_channel_id")] public static extern void AcceptChannelV2SetTemporaryChannelId(long _this_ptr, long _val); // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_funding_satoshis")] public static extern long AcceptChannelV2_get_funding_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_funding_satoshis")] public static extern long AcceptChannelV2GetFundingSatoshis(long _this_ptr); // void AcceptChannelV2_set_funding_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_funding_satoshis")] public static extern void AcceptChannelV2_set_funding_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_funding_satoshis")] public static extern void AcceptChannelV2SetFundingSatoshis(long _this_ptr, long _val); // uint64_t AcceptChannelV2_get_dust_limit_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_dust_limit_satoshis")] public static extern long AcceptChannelV2_get_dust_limit_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_dust_limit_satoshis")] public static extern long AcceptChannelV2GetDustLimitSatoshis(long _this_ptr); // void AcceptChannelV2_set_dust_limit_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_dust_limit_satoshis")] public static extern void AcceptChannelV2_set_dust_limit_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_dust_limit_satoshis")] public static extern void AcceptChannelV2SetDustLimitSatoshis(long _this_ptr, long _val); // uint64_t AcceptChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_max_htlc_value_in_flight_msat")] public static extern long AcceptChannelV2_get_max_htlc_value_in_flight_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_max_htlc_value_in_flight_msat")] public static extern long AcceptChannelV2GetMaxHtlcValueInFlightMsat(long _this_ptr); // void AcceptChannelV2_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_max_htlc_value_in_flight_msat")] public static extern void AcceptChannelV2_set_max_htlc_value_in_flight_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_max_htlc_value_in_flight_msat")] public static extern void AcceptChannelV2SetMaxHtlcValueInFlightMsat(long _this_ptr, long _val); // uint64_t AcceptChannelV2_get_htlc_minimum_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_htlc_minimum_msat")] public static extern long AcceptChannelV2_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_htlc_minimum_msat")] public static extern long AcceptChannelV2GetHtlcMinimumMsat(long _this_ptr); // void AcceptChannelV2_set_htlc_minimum_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_htlc_minimum_msat")] public static extern void AcceptChannelV2_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_htlc_minimum_msat")] public static extern void AcceptChannelV2SetHtlcMinimumMsat(long _this_ptr, long _val); // uint32_t AcceptChannelV2_get_minimum_depth(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_minimum_depth")] public static extern int AcceptChannelV2_get_minimum_depth(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_minimum_depth")] public static extern int AcceptChannelV2GetMinimumDepth(long _this_ptr); // void AcceptChannelV2_set_minimum_depth(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_minimum_depth")] public static extern void AcceptChannelV2_set_minimum_depth(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_minimum_depth")] public static extern void AcceptChannelV2SetMinimumDepth(long _this_ptr, int _val); // uint16_t AcceptChannelV2_get_to_self_delay(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_to_self_delay")] public static extern short AcceptChannelV2_get_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_to_self_delay")] public static extern short AcceptChannelV2GetToSelfDelay(long _this_ptr); // void AcceptChannelV2_set_to_self_delay(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_to_self_delay")] public static extern void AcceptChannelV2_set_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_to_self_delay")] public static extern void AcceptChannelV2SetToSelfDelay(long _this_ptr, short _val); // uint16_t AcceptChannelV2_get_max_accepted_htlcs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_max_accepted_htlcs")] public static extern short AcceptChannelV2_get_max_accepted_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_max_accepted_htlcs")] public static extern short AcceptChannelV2GetMaxAcceptedHtlcs(long _this_ptr); // void AcceptChannelV2_set_max_accepted_htlcs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_max_accepted_htlcs")] public static extern void AcceptChannelV2_set_max_accepted_htlcs(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_max_accepted_htlcs")] public static extern void AcceptChannelV2SetMaxAcceptedHtlcs(long _this_ptr, short _val); // struct LDKPublicKey AcceptChannelV2_get_funding_pubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_funding_pubkey")] public static extern long AcceptChannelV2_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_funding_pubkey")] public static extern long AcceptChannelV2GetFundingPubkey(long _this_ptr); // void AcceptChannelV2_set_funding_pubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_funding_pubkey")] public static extern void AcceptChannelV2_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_funding_pubkey")] public static extern void AcceptChannelV2SetFundingPubkey(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_revocation_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_revocation_basepoint")] public static extern long AcceptChannelV2_get_revocation_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_revocation_basepoint")] public static extern long AcceptChannelV2GetRevocationBasepoint(long _this_ptr); // void AcceptChannelV2_set_revocation_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_revocation_basepoint")] public static extern void AcceptChannelV2_set_revocation_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_revocation_basepoint")] public static extern void AcceptChannelV2SetRevocationBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_payment_basepoint")] public static extern long AcceptChannelV2_get_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_payment_basepoint")] public static extern long AcceptChannelV2GetPaymentBasepoint(long _this_ptr); // void AcceptChannelV2_set_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_payment_basepoint")] public static extern void AcceptChannelV2_set_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_payment_basepoint")] public static extern void AcceptChannelV2SetPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_delayed_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_delayed_payment_basepoint")] public static extern long AcceptChannelV2_get_delayed_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_delayed_payment_basepoint")] public static extern long AcceptChannelV2GetDelayedPaymentBasepoint(long _this_ptr); // void AcceptChannelV2_set_delayed_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_delayed_payment_basepoint")] public static extern void AcceptChannelV2_set_delayed_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_delayed_payment_basepoint")] public static extern void AcceptChannelV2SetDelayedPaymentBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_htlc_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_htlc_basepoint")] public static extern long AcceptChannelV2_get_htlc_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_htlc_basepoint")] public static extern long AcceptChannelV2GetHtlcBasepoint(long _this_ptr); // void AcceptChannelV2_set_htlc_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_htlc_basepoint")] public static extern void AcceptChannelV2_set_htlc_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_htlc_basepoint")] public static extern void AcceptChannelV2SetHtlcBasepoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_first_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_first_per_commitment_point")] public static extern long AcceptChannelV2_get_first_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_first_per_commitment_point")] public static extern long AcceptChannelV2GetFirstPerCommitmentPoint(long _this_ptr); // void AcceptChannelV2_set_first_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_first_per_commitment_point")] public static extern void AcceptChannelV2_set_first_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_first_per_commitment_point")] public static extern void AcceptChannelV2SetFirstPerCommitmentPoint(long _this_ptr, long _val); // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_second_per_commitment_point")] public static extern long AcceptChannelV2_get_second_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_second_per_commitment_point")] public static extern long AcceptChannelV2GetSecondPerCommitmentPoint(long _this_ptr); // void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_second_per_commitment_point")] public static extern void AcceptChannelV2_set_second_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_second_per_commitment_point")] public static extern void AcceptChannelV2SetSecondPerCommitmentPoint(long _this_ptr, long _val); // struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_shutdown_scriptpubkey")] public static extern long AcceptChannelV2_get_shutdown_scriptpubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_shutdown_scriptpubkey")] public static extern long AcceptChannelV2GetShutdownScriptpubkey(long _this_ptr); // void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_shutdown_scriptpubkey")] public static extern void AcceptChannelV2_set_shutdown_scriptpubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_shutdown_scriptpubkey")] public static extern void AcceptChannelV2SetShutdownScriptpubkey(long _this_ptr, long _val); // struct LDKChannelTypeFeatures AcceptChannelV2_get_channel_type(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_channel_type")] public static extern long AcceptChannelV2_get_channel_type(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_channel_type")] public static extern long AcceptChannelV2GetChannelType(long _this_ptr); // void AcceptChannelV2_set_channel_type(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_channel_type")] public static extern void AcceptChannelV2_set_channel_type(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_channel_type")] public static extern void AcceptChannelV2SetChannelType(long _this_ptr, long _val); // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_require_confirmed_inputs")] public static extern COption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_get_require_confirmed_inputs")] public static extern COption_NoneZ AcceptChannelV2GetRequireConfirmedInputs(long _this_ptr); // void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_require_confirmed_inputs")] public static extern void AcceptChannelV2_set_require_confirmed_inputs(long _this_ptr, COption_NoneZ _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_set_require_confirmed_inputs")] public static extern void AcceptChannelV2SetRequireConfirmedInputs(long _this_ptr, COption_NoneZ _val); // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_new")] public static extern long AcceptChannelV2_new(long _temporary_channel_id_arg, long _funding_satoshis_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _htlc_minimum_msat_arg, int _minimum_depth_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_basepoint_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _second_per_commitment_point_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg, COption_NoneZ _require_confirmed_inputs_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_new")] public static extern long AcceptChannelV2New(long _temporary_channel_id_arg, long _funding_satoshis_arg, long _dust_limit_satoshis_arg, long _max_htlc_value_in_flight_msat_arg, long _htlc_minimum_msat_arg, int _minimum_depth_arg, short _to_self_delay_arg, short _max_accepted_htlcs_arg, long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_basepoint_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg, long _first_per_commitment_point_arg, long _second_per_commitment_point_arg, long _shutdown_scriptpubkey_arg, long _channel_type_arg, COption_NoneZ _require_confirmed_inputs_arg); // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_clone_ptr")] public static extern long AcceptChannelV2_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_clone_ptr")] public static extern long AcceptChannelV2ClonePtr(long _arg); // struct LDKAcceptChannelV2 AcceptChannelV2_clone(const struct LDKAcceptChannelV2 *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_clone")] public static extern long AcceptChannelV2_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_clone")] public static extern long AcceptChannelV2Clone(long _orig); // uint64_t AcceptChannelV2_hash(const struct LDKAcceptChannelV2 *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_hash")] public static extern long AcceptChannelV2_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_hash")] public static extern long AcceptChannelV2Hash(long _o); // bool AcceptChannelV2_eq(const struct LDKAcceptChannelV2 *NONNULL_PTR a, const struct LDKAcceptChannelV2 *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_eq")] public static extern bool AcceptChannelV2_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_eq")] public static extern bool AcceptChannelV2Eq(long _a, long _b); // void FundingCreated_free(struct LDKFundingCreated this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_free")] public static extern void FundingCreated_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_free")] public static extern void FundingCreatedFree(long _this_obj); // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_temporary_channel_id")] public static extern long FundingCreated_get_temporary_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_temporary_channel_id")] public static extern long FundingCreatedGetTemporaryChannelId(long _this_ptr); // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_temporary_channel_id")] public static extern void FundingCreated_set_temporary_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_temporary_channel_id")] public static extern void FundingCreatedSetTemporaryChannelId(long _this_ptr, long _val); // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_funding_txid")] public static extern long FundingCreated_get_funding_txid(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_funding_txid")] public static extern long FundingCreatedGetFundingTxid(long _this_ptr); // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_funding_txid")] public static extern void FundingCreated_set_funding_txid(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_funding_txid")] public static extern void FundingCreatedSetFundingTxid(long _this_ptr, long _val); // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_funding_output_index")] public static extern short FundingCreated_get_funding_output_index(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_funding_output_index")] public static extern short FundingCreatedGetFundingOutputIndex(long _this_ptr); // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_funding_output_index")] public static extern void FundingCreated_set_funding_output_index(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_funding_output_index")] public static extern void FundingCreatedSetFundingOutputIndex(long _this_ptr, short _val); // struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_signature")] public static extern long FundingCreated_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_get_signature")] public static extern long FundingCreatedGetSignature(long _this_ptr); // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_signature")] public static extern void FundingCreated_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_set_signature")] public static extern void FundingCreatedSetSignature(long _this_ptr, long _val); // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_new")] public static extern long FundingCreated_new(long _temporary_channel_id_arg, long _funding_txid_arg, short _funding_output_index_arg, long _signature_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_new")] public static extern long FundingCreatedNew(long _temporary_channel_id_arg, long _funding_txid_arg, short _funding_output_index_arg, long _signature_arg); // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_clone_ptr")] public static extern long FundingCreated_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_clone_ptr")] public static extern long FundingCreatedClonePtr(long _arg); // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_clone")] public static extern long FundingCreated_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_clone")] public static extern long FundingCreatedClone(long _orig); // uint64_t FundingCreated_hash(const struct LDKFundingCreated *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_hash")] public static extern long FundingCreated_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_hash")] public static extern long FundingCreatedHash(long _o); // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_eq")] public static extern bool FundingCreated_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_eq")] public static extern bool FundingCreatedEq(long _a, long _b); // void FundingSigned_free(struct LDKFundingSigned this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_free")] public static extern void FundingSigned_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_free")] public static extern void FundingSignedFree(long _this_obj); // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_get_channel_id")] public static extern long FundingSigned_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_get_channel_id")] public static extern long FundingSignedGetChannelId(long _this_ptr); // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_set_channel_id")] public static extern void FundingSigned_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_set_channel_id")] public static extern void FundingSignedSetChannelId(long _this_ptr, long _val); // struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_get_signature")] public static extern long FundingSigned_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_get_signature")] public static extern long FundingSignedGetSignature(long _this_ptr); // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_set_signature")] public static extern void FundingSigned_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_set_signature")] public static extern void FundingSignedSetSignature(long _this_ptr, long _val); // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_new")] public static extern long FundingSigned_new(long _channel_id_arg, long _signature_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_new")] public static extern long FundingSignedNew(long _channel_id_arg, long _signature_arg); // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_clone_ptr")] public static extern long FundingSigned_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_clone_ptr")] public static extern long FundingSignedClonePtr(long _arg); // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_clone")] public static extern long FundingSigned_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_clone")] public static extern long FundingSignedClone(long _orig); // uint64_t FundingSigned_hash(const struct LDKFundingSigned *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_hash")] public static extern long FundingSigned_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_hash")] public static extern long FundingSignedHash(long _o); // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_eq")] public static extern bool FundingSigned_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_eq")] public static extern bool FundingSignedEq(long _a, long _b); // void ChannelReady_free(struct LDKChannelReady this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_free")] public static extern void ChannelReady_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_free")] public static extern void ChannelReadyFree(long _this_obj); // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_channel_id")] public static extern long ChannelReady_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_channel_id")] public static extern long ChannelReadyGetChannelId(long _this_ptr); // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_channel_id")] public static extern void ChannelReady_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_channel_id")] public static extern void ChannelReadySetChannelId(long _this_ptr, long _val); // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_next_per_commitment_point")] public static extern long ChannelReady_get_next_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_next_per_commitment_point")] public static extern long ChannelReadyGetNextPerCommitmentPoint(long _this_ptr); // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_next_per_commitment_point")] public static extern void ChannelReady_set_next_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_next_per_commitment_point")] public static extern void ChannelReadySetNextPerCommitmentPoint(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_short_channel_id_alias")] public static extern long ChannelReady_get_short_channel_id_alias(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_get_short_channel_id_alias")] public static extern long ChannelReadyGetShortChannelIdAlias(long _this_ptr); // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_short_channel_id_alias")] public static extern void ChannelReady_set_short_channel_id_alias(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_set_short_channel_id_alias")] public static extern void ChannelReadySetShortChannelIdAlias(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_new")] public static extern long ChannelReady_new(long _channel_id_arg, long _next_per_commitment_point_arg, long _short_channel_id_alias_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_new")] public static extern long ChannelReadyNew(long _channel_id_arg, long _next_per_commitment_point_arg, long _short_channel_id_alias_arg); // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_clone_ptr")] public static extern long ChannelReady_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_clone_ptr")] public static extern long ChannelReadyClonePtr(long _arg); // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_clone")] public static extern long ChannelReady_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_clone")] public static extern long ChannelReadyClone(long _orig); // uint64_t ChannelReady_hash(const struct LDKChannelReady *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_hash")] public static extern long ChannelReady_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_hash")] public static extern long ChannelReadyHash(long _o); // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_eq")] public static extern bool ChannelReady_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_eq")] public static extern bool ChannelReadyEq(long _a, long _b); // void Stfu_free(struct LDKStfu this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_free")] public static extern void Stfu_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_free")] public static extern void StfuFree(long _this_obj); // const uint8_t (*Stfu_get_channel_id(const struct LDKStfu *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_get_channel_id")] public static extern long Stfu_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_get_channel_id")] public static extern long StfuGetChannelId(long _this_ptr); // void Stfu_set_channel_id(struct LDKStfu *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_set_channel_id")] public static extern void Stfu_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_set_channel_id")] public static extern void StfuSetChannelId(long _this_ptr, long _val); // uint8_t Stfu_get_initiator(const struct LDKStfu *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_get_initiator")] public static extern byte Stfu_get_initiator(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_get_initiator")] public static extern byte StfuGetInitiator(long _this_ptr); // void Stfu_set_initiator(struct LDKStfu *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_set_initiator")] public static extern void Stfu_set_initiator(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_set_initiator")] public static extern void StfuSetInitiator(long _this_ptr, byte _val); // MUST_USE_RES struct LDKStfu Stfu_new(struct LDKThirtyTwoBytes channel_id_arg, uint8_t initiator_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_new")] public static extern long Stfu_new(long _channel_id_arg, byte _initiator_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_new")] public static extern long StfuNew(long _channel_id_arg, byte _initiator_arg); // uint64_t Stfu_clone_ptr(LDKStfu *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_clone_ptr")] public static extern long Stfu_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_clone_ptr")] public static extern long StfuClonePtr(long _arg); // struct LDKStfu Stfu_clone(const struct LDKStfu *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_clone")] public static extern long Stfu_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_clone")] public static extern long StfuClone(long _orig); // bool Stfu_eq(const struct LDKStfu *NONNULL_PTR a, const struct LDKStfu *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_eq")] public static extern bool Stfu_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_eq")] public static extern bool StfuEq(long _a, long _b); // void Splice_free(struct LDKSplice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_free")] public static extern void Splice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_free")] public static extern void SpliceFree(long _this_obj); // const uint8_t (*Splice_get_channel_id(const struct LDKSplice *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_channel_id")] public static extern long Splice_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_channel_id")] public static extern long SpliceGetChannelId(long _this_ptr); // void Splice_set_channel_id(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_channel_id")] public static extern void Splice_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_channel_id")] public static extern void SpliceSetChannelId(long _this_ptr, long _val); // const uint8_t (*Splice_get_chain_hash(const struct LDKSplice *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_chain_hash")] public static extern long Splice_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_chain_hash")] public static extern long SpliceGetChainHash(long _this_ptr); // void Splice_set_chain_hash(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_chain_hash")] public static extern void Splice_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_chain_hash")] public static extern void SpliceSetChainHash(long _this_ptr, long _val); // int64_t Splice_get_relative_satoshis(const struct LDKSplice *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_relative_satoshis")] public static extern long Splice_get_relative_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_relative_satoshis")] public static extern long SpliceGetRelativeSatoshis(long _this_ptr); // void Splice_set_relative_satoshis(struct LDKSplice *NONNULL_PTR this_ptr, int64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_relative_satoshis")] public static extern void Splice_set_relative_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_relative_satoshis")] public static extern void SpliceSetRelativeSatoshis(long _this_ptr, long _val); // uint32_t Splice_get_funding_feerate_perkw(const struct LDKSplice *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_funding_feerate_perkw")] public static extern int Splice_get_funding_feerate_perkw(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_funding_feerate_perkw")] public static extern int SpliceGetFundingFeeratePerkw(long _this_ptr); // void Splice_set_funding_feerate_perkw(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_funding_feerate_perkw")] public static extern void Splice_set_funding_feerate_perkw(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_funding_feerate_perkw")] public static extern void SpliceSetFundingFeeratePerkw(long _this_ptr, int _val); // uint32_t Splice_get_locktime(const struct LDKSplice *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_locktime")] public static extern int Splice_get_locktime(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_locktime")] public static extern int SpliceGetLocktime(long _this_ptr); // void Splice_set_locktime(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_locktime")] public static extern void Splice_set_locktime(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_locktime")] public static extern void SpliceSetLocktime(long _this_ptr, int _val); // struct LDKPublicKey Splice_get_funding_pubkey(const struct LDKSplice *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_funding_pubkey")] public static extern long Splice_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_get_funding_pubkey")] public static extern long SpliceGetFundingPubkey(long _this_ptr); // void Splice_set_funding_pubkey(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_funding_pubkey")] public static extern void Splice_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_set_funding_pubkey")] public static extern void SpliceSetFundingPubkey(long _this_ptr, long _val); // MUST_USE_RES struct LDKSplice Splice_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, uint32_t funding_feerate_perkw_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_new")] public static extern long Splice_new(long _channel_id_arg, long _chain_hash_arg, long _relative_satoshis_arg, int _funding_feerate_perkw_arg, int _locktime_arg, long _funding_pubkey_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_new")] public static extern long SpliceNew(long _channel_id_arg, long _chain_hash_arg, long _relative_satoshis_arg, int _funding_feerate_perkw_arg, int _locktime_arg, long _funding_pubkey_arg); // uint64_t Splice_clone_ptr(LDKSplice *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_clone_ptr")] public static extern long Splice_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_clone_ptr")] public static extern long SpliceClonePtr(long _arg); // struct LDKSplice Splice_clone(const struct LDKSplice *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_clone")] public static extern long Splice_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_clone")] public static extern long SpliceClone(long _orig); // bool Splice_eq(const struct LDKSplice *NONNULL_PTR a, const struct LDKSplice *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_eq")] public static extern bool Splice_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_eq")] public static extern bool SpliceEq(long _a, long _b); // void SpliceAck_free(struct LDKSpliceAck this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_free")] public static extern void SpliceAck_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_free")] public static extern void SpliceAckFree(long _this_obj); // const uint8_t (*SpliceAck_get_channel_id(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_channel_id")] public static extern long SpliceAck_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_channel_id")] public static extern long SpliceAckGetChannelId(long _this_ptr); // void SpliceAck_set_channel_id(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_channel_id")] public static extern void SpliceAck_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_channel_id")] public static extern void SpliceAckSetChannelId(long _this_ptr, long _val); // const uint8_t (*SpliceAck_get_chain_hash(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_chain_hash")] public static extern long SpliceAck_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_chain_hash")] public static extern long SpliceAckGetChainHash(long _this_ptr); // void SpliceAck_set_chain_hash(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_chain_hash")] public static extern void SpliceAck_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_chain_hash")] public static extern void SpliceAckSetChainHash(long _this_ptr, long _val); // int64_t SpliceAck_get_relative_satoshis(const struct LDKSpliceAck *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_relative_satoshis")] public static extern long SpliceAck_get_relative_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_relative_satoshis")] public static extern long SpliceAckGetRelativeSatoshis(long _this_ptr); // void SpliceAck_set_relative_satoshis(struct LDKSpliceAck *NONNULL_PTR this_ptr, int64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_relative_satoshis")] public static extern void SpliceAck_set_relative_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_relative_satoshis")] public static extern void SpliceAckSetRelativeSatoshis(long _this_ptr, long _val); // struct LDKPublicKey SpliceAck_get_funding_pubkey(const struct LDKSpliceAck *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_funding_pubkey")] public static extern long SpliceAck_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_get_funding_pubkey")] public static extern long SpliceAckGetFundingPubkey(long _this_ptr); // void SpliceAck_set_funding_pubkey(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_funding_pubkey")] public static extern void SpliceAck_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_set_funding_pubkey")] public static extern void SpliceAckSetFundingPubkey(long _this_ptr, long _val); // MUST_USE_RES struct LDKSpliceAck SpliceAck_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, struct LDKPublicKey funding_pubkey_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_new")] public static extern long SpliceAck_new(long _channel_id_arg, long _chain_hash_arg, long _relative_satoshis_arg, long _funding_pubkey_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_new")] public static extern long SpliceAckNew(long _channel_id_arg, long _chain_hash_arg, long _relative_satoshis_arg, long _funding_pubkey_arg); // uint64_t SpliceAck_clone_ptr(LDKSpliceAck *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_clone_ptr")] public static extern long SpliceAck_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_clone_ptr")] public static extern long SpliceAckClonePtr(long _arg); // struct LDKSpliceAck SpliceAck_clone(const struct LDKSpliceAck *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_clone")] public static extern long SpliceAck_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_clone")] public static extern long SpliceAckClone(long _orig); // bool SpliceAck_eq(const struct LDKSpliceAck *NONNULL_PTR a, const struct LDKSpliceAck *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_eq")] public static extern bool SpliceAck_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_eq")] public static extern bool SpliceAckEq(long _a, long _b); // void SpliceLocked_free(struct LDKSpliceLocked this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_free")] public static extern void SpliceLocked_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_free")] public static extern void SpliceLockedFree(long _this_obj); // const uint8_t (*SpliceLocked_get_channel_id(const struct LDKSpliceLocked *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_get_channel_id")] public static extern long SpliceLocked_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_get_channel_id")] public static extern long SpliceLockedGetChannelId(long _this_ptr); // void SpliceLocked_set_channel_id(struct LDKSpliceLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_set_channel_id")] public static extern void SpliceLocked_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_set_channel_id")] public static extern void SpliceLockedSetChannelId(long _this_ptr, long _val); // MUST_USE_RES struct LDKSpliceLocked SpliceLocked_new(struct LDKThirtyTwoBytes channel_id_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_new")] public static extern long SpliceLocked_new(long _channel_id_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_new")] public static extern long SpliceLockedNew(long _channel_id_arg); // uint64_t SpliceLocked_clone_ptr(LDKSpliceLocked *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_clone_ptr")] public static extern long SpliceLocked_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_clone_ptr")] public static extern long SpliceLockedClonePtr(long _arg); // struct LDKSpliceLocked SpliceLocked_clone(const struct LDKSpliceLocked *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_clone")] public static extern long SpliceLocked_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_clone")] public static extern long SpliceLockedClone(long _orig); // bool SpliceLocked_eq(const struct LDKSpliceLocked *NONNULL_PTR a, const struct LDKSpliceLocked *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_eq")] public static extern bool SpliceLocked_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_eq")] public static extern bool SpliceLockedEq(long _a, long _b); // void TxAddInput_free(struct LDKTxAddInput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_free")] public static extern void TxAddInput_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_free")] public static extern void TxAddInputFree(long _this_obj); // const uint8_t (*TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_channel_id")] public static extern long TxAddInput_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_channel_id")] public static extern long TxAddInputGetChannelId(long _this_ptr); // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_channel_id")] public static extern void TxAddInput_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_channel_id")] public static extern void TxAddInputSetChannelId(long _this_ptr, long _val); // uint64_t TxAddInput_get_serial_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_serial_id")] public static extern long TxAddInput_get_serial_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_serial_id")] public static extern long TxAddInputGetSerialId(long _this_ptr); // void TxAddInput_set_serial_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_serial_id")] public static extern void TxAddInput_set_serial_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_serial_id")] public static extern void TxAddInputSetSerialId(long _this_ptr, long _val); // struct LDKTransactionU16LenLimited TxAddInput_get_prevtx(const struct LDKTxAddInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_prevtx")] public static extern long TxAddInput_get_prevtx(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_prevtx")] public static extern long TxAddInputGetPrevtx(long _this_ptr); // void TxAddInput_set_prevtx(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKTransactionU16LenLimited val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_prevtx")] public static extern void TxAddInput_set_prevtx(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_prevtx")] public static extern void TxAddInputSetPrevtx(long _this_ptr, long _val); // uint32_t TxAddInput_get_prevtx_out(const struct LDKTxAddInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_prevtx_out")] public static extern int TxAddInput_get_prevtx_out(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_prevtx_out")] public static extern int TxAddInputGetPrevtxOut(long _this_ptr); // void TxAddInput_set_prevtx_out(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_prevtx_out")] public static extern void TxAddInput_set_prevtx_out(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_prevtx_out")] public static extern void TxAddInputSetPrevtxOut(long _this_ptr, int _val); // uint32_t TxAddInput_get_sequence(const struct LDKTxAddInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_sequence")] public static extern int TxAddInput_get_sequence(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_get_sequence")] public static extern int TxAddInputGetSequence(long _this_ptr); // void TxAddInput_set_sequence(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_sequence")] public static extern void TxAddInput_set_sequence(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_set_sequence")] public static extern void TxAddInputSetSequence(long _this_ptr, int _val); // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_new")] public static extern long TxAddInput_new(long _channel_id_arg, long _serial_id_arg, long _prevtx_arg, int _prevtx_out_arg, int _sequence_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_new")] public static extern long TxAddInputNew(long _channel_id_arg, long _serial_id_arg, long _prevtx_arg, int _prevtx_out_arg, int _sequence_arg); // uint64_t TxAddInput_clone_ptr(LDKTxAddInput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_clone_ptr")] public static extern long TxAddInput_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_clone_ptr")] public static extern long TxAddInputClonePtr(long _arg); // struct LDKTxAddInput TxAddInput_clone(const struct LDKTxAddInput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_clone")] public static extern long TxAddInput_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_clone")] public static extern long TxAddInputClone(long _orig); // uint64_t TxAddInput_hash(const struct LDKTxAddInput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_hash")] public static extern long TxAddInput_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_hash")] public static extern long TxAddInputHash(long _o); // bool TxAddInput_eq(const struct LDKTxAddInput *NONNULL_PTR a, const struct LDKTxAddInput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_eq")] public static extern bool TxAddInput_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_eq")] public static extern bool TxAddInputEq(long _a, long _b); // void TxAddOutput_free(struct LDKTxAddOutput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_free")] public static extern void TxAddOutput_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_free")] public static extern void TxAddOutputFree(long _this_obj); // const uint8_t (*TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_channel_id")] public static extern long TxAddOutput_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_channel_id")] public static extern long TxAddOutputGetChannelId(long _this_ptr); // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_channel_id")] public static extern void TxAddOutput_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_channel_id")] public static extern void TxAddOutputSetChannelId(long _this_ptr, long _val); // uint64_t TxAddOutput_get_serial_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_serial_id")] public static extern long TxAddOutput_get_serial_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_serial_id")] public static extern long TxAddOutputGetSerialId(long _this_ptr); // void TxAddOutput_set_serial_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_serial_id")] public static extern void TxAddOutput_set_serial_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_serial_id")] public static extern void TxAddOutputSetSerialId(long _this_ptr, long _val); // uint64_t TxAddOutput_get_sats(const struct LDKTxAddOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_sats")] public static extern long TxAddOutput_get_sats(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_sats")] public static extern long TxAddOutputGetSats(long _this_ptr); // void TxAddOutput_set_sats(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_sats")] public static extern void TxAddOutput_set_sats(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_sats")] public static extern void TxAddOutputSetSats(long _this_ptr, long _val); // struct LDKCVec_u8Z TxAddOutput_get_script(const struct LDKTxAddOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_script")] public static extern long TxAddOutput_get_script(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_get_script")] public static extern long TxAddOutputGetScript(long _this_ptr); // void TxAddOutput_set_script(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_script")] public static extern void TxAddOutput_set_script(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_set_script")] public static extern void TxAddOutputSetScript(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_new")] public static extern long TxAddOutput_new(long _channel_id_arg, long _serial_id_arg, long _sats_arg, long _script_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_new")] public static extern long TxAddOutputNew(long _channel_id_arg, long _serial_id_arg, long _sats_arg, long _script_arg); // uint64_t TxAddOutput_clone_ptr(LDKTxAddOutput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_clone_ptr")] public static extern long TxAddOutput_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_clone_ptr")] public static extern long TxAddOutputClonePtr(long _arg); // struct LDKTxAddOutput TxAddOutput_clone(const struct LDKTxAddOutput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_clone")] public static extern long TxAddOutput_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_clone")] public static extern long TxAddOutputClone(long _orig); // uint64_t TxAddOutput_hash(const struct LDKTxAddOutput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_hash")] public static extern long TxAddOutput_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_hash")] public static extern long TxAddOutputHash(long _o); // bool TxAddOutput_eq(const struct LDKTxAddOutput *NONNULL_PTR a, const struct LDKTxAddOutput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_eq")] public static extern bool TxAddOutput_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_eq")] public static extern bool TxAddOutputEq(long _a, long _b); // void TxRemoveInput_free(struct LDKTxRemoveInput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_free")] public static extern void TxRemoveInput_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_free")] public static extern void TxRemoveInputFree(long _this_obj); // const uint8_t (*TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_get_channel_id")] public static extern long TxRemoveInput_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_get_channel_id")] public static extern long TxRemoveInputGetChannelId(long _this_ptr); // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_set_channel_id")] public static extern void TxRemoveInput_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_set_channel_id")] public static extern void TxRemoveInputSetChannelId(long _this_ptr, long _val); // uint64_t TxRemoveInput_get_serial_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_get_serial_id")] public static extern long TxRemoveInput_get_serial_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_get_serial_id")] public static extern long TxRemoveInputGetSerialId(long _this_ptr); // void TxRemoveInput_set_serial_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_set_serial_id")] public static extern void TxRemoveInput_set_serial_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_set_serial_id")] public static extern void TxRemoveInputSetSerialId(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_new")] public static extern long TxRemoveInput_new(long _channel_id_arg, long _serial_id_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_new")] public static extern long TxRemoveInputNew(long _channel_id_arg, long _serial_id_arg); // uint64_t TxRemoveInput_clone_ptr(LDKTxRemoveInput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_clone_ptr")] public static extern long TxRemoveInput_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_clone_ptr")] public static extern long TxRemoveInputClonePtr(long _arg); // struct LDKTxRemoveInput TxRemoveInput_clone(const struct LDKTxRemoveInput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_clone")] public static extern long TxRemoveInput_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_clone")] public static extern long TxRemoveInputClone(long _orig); // uint64_t TxRemoveInput_hash(const struct LDKTxRemoveInput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_hash")] public static extern long TxRemoveInput_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_hash")] public static extern long TxRemoveInputHash(long _o); // bool TxRemoveInput_eq(const struct LDKTxRemoveInput *NONNULL_PTR a, const struct LDKTxRemoveInput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_eq")] public static extern bool TxRemoveInput_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_eq")] public static extern bool TxRemoveInputEq(long _a, long _b); // void TxRemoveOutput_free(struct LDKTxRemoveOutput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_free")] public static extern void TxRemoveOutput_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_free")] public static extern void TxRemoveOutputFree(long _this_obj); // const uint8_t (*TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_get_channel_id")] public static extern long TxRemoveOutput_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_get_channel_id")] public static extern long TxRemoveOutputGetChannelId(long _this_ptr); // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_set_channel_id")] public static extern void TxRemoveOutput_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_set_channel_id")] public static extern void TxRemoveOutputSetChannelId(long _this_ptr, long _val); // uint64_t TxRemoveOutput_get_serial_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_get_serial_id")] public static extern long TxRemoveOutput_get_serial_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_get_serial_id")] public static extern long TxRemoveOutputGetSerialId(long _this_ptr); // void TxRemoveOutput_set_serial_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_set_serial_id")] public static extern void TxRemoveOutput_set_serial_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_set_serial_id")] public static extern void TxRemoveOutputSetSerialId(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_new")] public static extern long TxRemoveOutput_new(long _channel_id_arg, long _serial_id_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_new")] public static extern long TxRemoveOutputNew(long _channel_id_arg, long _serial_id_arg); // uint64_t TxRemoveOutput_clone_ptr(LDKTxRemoveOutput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_clone_ptr")] public static extern long TxRemoveOutput_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_clone_ptr")] public static extern long TxRemoveOutputClonePtr(long _arg); // struct LDKTxRemoveOutput TxRemoveOutput_clone(const struct LDKTxRemoveOutput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_clone")] public static extern long TxRemoveOutput_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_clone")] public static extern long TxRemoveOutputClone(long _orig); // uint64_t TxRemoveOutput_hash(const struct LDKTxRemoveOutput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_hash")] public static extern long TxRemoveOutput_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_hash")] public static extern long TxRemoveOutputHash(long _o); // bool TxRemoveOutput_eq(const struct LDKTxRemoveOutput *NONNULL_PTR a, const struct LDKTxRemoveOutput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_eq")] public static extern bool TxRemoveOutput_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_eq")] public static extern bool TxRemoveOutputEq(long _a, long _b); // void TxComplete_free(struct LDKTxComplete this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_free")] public static extern void TxComplete_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_free")] public static extern void TxCompleteFree(long _this_obj); // const uint8_t (*TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_get_channel_id")] public static extern long TxComplete_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_get_channel_id")] public static extern long TxCompleteGetChannelId(long _this_ptr); // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_set_channel_id")] public static extern void TxComplete_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_set_channel_id")] public static extern void TxCompleteSetChannelId(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKThirtyTwoBytes channel_id_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_new")] public static extern long TxComplete_new(long _channel_id_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_new")] public static extern long TxCompleteNew(long _channel_id_arg); // uint64_t TxComplete_clone_ptr(LDKTxComplete *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_clone_ptr")] public static extern long TxComplete_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_clone_ptr")] public static extern long TxCompleteClonePtr(long _arg); // struct LDKTxComplete TxComplete_clone(const struct LDKTxComplete *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_clone")] public static extern long TxComplete_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_clone")] public static extern long TxCompleteClone(long _orig); // uint64_t TxComplete_hash(const struct LDKTxComplete *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_hash")] public static extern long TxComplete_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_hash")] public static extern long TxCompleteHash(long _o); // bool TxComplete_eq(const struct LDKTxComplete *NONNULL_PTR a, const struct LDKTxComplete *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_eq")] public static extern bool TxComplete_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_eq")] public static extern bool TxCompleteEq(long _a, long _b); // void TxSignatures_free(struct LDKTxSignatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_free")] public static extern void TxSignatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_free")] public static extern void TxSignaturesFree(long _this_obj); // const uint8_t (*TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_channel_id")] public static extern long TxSignatures_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_channel_id")] public static extern long TxSignaturesGetChannelId(long _this_ptr); // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_channel_id")] public static extern void TxSignatures_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_channel_id")] public static extern void TxSignaturesSetChannelId(long _this_ptr, long _val); // const uint8_t (*TxSignatures_get_tx_hash(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_tx_hash")] public static extern long TxSignatures_get_tx_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_tx_hash")] public static extern long TxSignaturesGetTxHash(long _this_ptr); // void TxSignatures_set_tx_hash(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_tx_hash")] public static extern void TxSignatures_set_tx_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_tx_hash")] public static extern void TxSignaturesSetTxHash(long _this_ptr, long _val); // struct LDKCVec_WitnessZ TxSignatures_get_witnesses(const struct LDKTxSignatures *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_witnesses")] public static extern long TxSignatures_get_witnesses(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_get_witnesses")] public static extern long TxSignaturesGetWitnesses(long _this_ptr); // void TxSignatures_set_witnesses(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCVec_WitnessZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_witnesses")] public static extern void TxSignatures_set_witnesses(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_set_witnesses")] public static extern void TxSignaturesSetWitnesses(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_new")] public static extern long TxSignatures_new(long _channel_id_arg, long _tx_hash_arg, long _witnesses_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_new")] public static extern long TxSignaturesNew(long _channel_id_arg, long _tx_hash_arg, long _witnesses_arg); // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_clone_ptr")] public static extern long TxSignatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_clone_ptr")] public static extern long TxSignaturesClonePtr(long _arg); // struct LDKTxSignatures TxSignatures_clone(const struct LDKTxSignatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_clone")] public static extern long TxSignatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_clone")] public static extern long TxSignaturesClone(long _orig); // uint64_t TxSignatures_hash(const struct LDKTxSignatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_hash")] public static extern long TxSignatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_hash")] public static extern long TxSignaturesHash(long _o); // bool TxSignatures_eq(const struct LDKTxSignatures *NONNULL_PTR a, const struct LDKTxSignatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_eq")] public static extern bool TxSignatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_eq")] public static extern bool TxSignaturesEq(long _a, long _b); // void TxInitRbf_free(struct LDKTxInitRbf this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_free")] public static extern void TxInitRbf_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_free")] public static extern void TxInitRbfFree(long _this_obj); // const uint8_t (*TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_channel_id")] public static extern long TxInitRbf_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_channel_id")] public static extern long TxInitRbfGetChannelId(long _this_ptr); // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_channel_id")] public static extern void TxInitRbf_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_channel_id")] public static extern void TxInitRbfSetChannelId(long _this_ptr, long _val); // uint32_t TxInitRbf_get_locktime(const struct LDKTxInitRbf *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_locktime")] public static extern int TxInitRbf_get_locktime(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_locktime")] public static extern int TxInitRbfGetLocktime(long _this_ptr); // void TxInitRbf_set_locktime(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_locktime")] public static extern void TxInitRbf_set_locktime(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_locktime")] public static extern void TxInitRbfSetLocktime(long _this_ptr, int _val); // uint32_t TxInitRbf_get_feerate_sat_per_1000_weight(const struct LDKTxInitRbf *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_feerate_sat_per_1000_weight")] public static extern int TxInitRbf_get_feerate_sat_per_1000_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_feerate_sat_per_1000_weight")] public static extern int TxInitRbfGetFeerateSatPer1000Weight(long _this_ptr); // void TxInitRbf_set_feerate_sat_per_1000_weight(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_feerate_sat_per_1000_weight")] public static extern void TxInitRbf_set_feerate_sat_per_1000_weight(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_feerate_sat_per_1000_weight")] public static extern void TxInitRbfSetFeerateSatPer1000Weight(long _this_ptr, int _val); // struct LDKCOption_i64Z TxInitRbf_get_funding_output_contribution(const struct LDKTxInitRbf *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_funding_output_contribution")] public static extern long TxInitRbf_get_funding_output_contribution(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_get_funding_output_contribution")] public static extern long TxInitRbfGetFundingOutputContribution(long _this_ptr); // void TxInitRbf_set_funding_output_contribution(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_funding_output_contribution")] public static extern void TxInitRbf_set_funding_output_contribution(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_set_funding_output_contribution")] public static extern void TxInitRbfSetFundingOutputContribution(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_new")] public static extern long TxInitRbf_new(long _channel_id_arg, int _locktime_arg, int _feerate_sat_per_1000_weight_arg, long _funding_output_contribution_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_new")] public static extern long TxInitRbfNew(long _channel_id_arg, int _locktime_arg, int _feerate_sat_per_1000_weight_arg, long _funding_output_contribution_arg); // uint64_t TxInitRbf_clone_ptr(LDKTxInitRbf *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_clone_ptr")] public static extern long TxInitRbf_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_clone_ptr")] public static extern long TxInitRbfClonePtr(long _arg); // struct LDKTxInitRbf TxInitRbf_clone(const struct LDKTxInitRbf *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_clone")] public static extern long TxInitRbf_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_clone")] public static extern long TxInitRbfClone(long _orig); // uint64_t TxInitRbf_hash(const struct LDKTxInitRbf *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_hash")] public static extern long TxInitRbf_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_hash")] public static extern long TxInitRbfHash(long _o); // bool TxInitRbf_eq(const struct LDKTxInitRbf *NONNULL_PTR a, const struct LDKTxInitRbf *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_eq")] public static extern bool TxInitRbf_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_eq")] public static extern bool TxInitRbfEq(long _a, long _b); // void TxAckRbf_free(struct LDKTxAckRbf this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_free")] public static extern void TxAckRbf_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_free")] public static extern void TxAckRbfFree(long _this_obj); // const uint8_t (*TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_get_channel_id")] public static extern long TxAckRbf_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_get_channel_id")] public static extern long TxAckRbfGetChannelId(long _this_ptr); // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_set_channel_id")] public static extern void TxAckRbf_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_set_channel_id")] public static extern void TxAckRbfSetChannelId(long _this_ptr, long _val); // struct LDKCOption_i64Z TxAckRbf_get_funding_output_contribution(const struct LDKTxAckRbf *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_get_funding_output_contribution")] public static extern long TxAckRbf_get_funding_output_contribution(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_get_funding_output_contribution")] public static extern long TxAckRbfGetFundingOutputContribution(long _this_ptr); // void TxAckRbf_set_funding_output_contribution(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_set_funding_output_contribution")] public static extern void TxAckRbf_set_funding_output_contribution(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_set_funding_output_contribution")] public static extern void TxAckRbfSetFundingOutputContribution(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_new")] public static extern long TxAckRbf_new(long _channel_id_arg, long _funding_output_contribution_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_new")] public static extern long TxAckRbfNew(long _channel_id_arg, long _funding_output_contribution_arg); // uint64_t TxAckRbf_clone_ptr(LDKTxAckRbf *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_clone_ptr")] public static extern long TxAckRbf_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_clone_ptr")] public static extern long TxAckRbfClonePtr(long _arg); // struct LDKTxAckRbf TxAckRbf_clone(const struct LDKTxAckRbf *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_clone")] public static extern long TxAckRbf_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_clone")] public static extern long TxAckRbfClone(long _orig); // uint64_t TxAckRbf_hash(const struct LDKTxAckRbf *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_hash")] public static extern long TxAckRbf_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_hash")] public static extern long TxAckRbfHash(long _o); // bool TxAckRbf_eq(const struct LDKTxAckRbf *NONNULL_PTR a, const struct LDKTxAckRbf *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_eq")] public static extern bool TxAckRbf_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_eq")] public static extern bool TxAckRbfEq(long _a, long _b); // void TxAbort_free(struct LDKTxAbort this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_free")] public static extern void TxAbort_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_free")] public static extern void TxAbortFree(long _this_obj); // const uint8_t (*TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_get_channel_id")] public static extern long TxAbort_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_get_channel_id")] public static extern long TxAbortGetChannelId(long _this_ptr); // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_set_channel_id")] public static extern void TxAbort_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_set_channel_id")] public static extern void TxAbortSetChannelId(long _this_ptr, long _val); // struct LDKCVec_u8Z TxAbort_get_data(const struct LDKTxAbort *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_get_data")] public static extern long TxAbort_get_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_get_data")] public static extern long TxAbortGetData(long _this_ptr); // void TxAbort_set_data(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_set_data")] public static extern void TxAbort_set_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_set_data")] public static extern void TxAbortSetData(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_new")] public static extern long TxAbort_new(long _channel_id_arg, long _data_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_new")] public static extern long TxAbortNew(long _channel_id_arg, long _data_arg); // uint64_t TxAbort_clone_ptr(LDKTxAbort *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_clone_ptr")] public static extern long TxAbort_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_clone_ptr")] public static extern long TxAbortClonePtr(long _arg); // struct LDKTxAbort TxAbort_clone(const struct LDKTxAbort *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_clone")] public static extern long TxAbort_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_clone")] public static extern long TxAbortClone(long _orig); // uint64_t TxAbort_hash(const struct LDKTxAbort *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_hash")] public static extern long TxAbort_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_hash")] public static extern long TxAbortHash(long _o); // bool TxAbort_eq(const struct LDKTxAbort *NONNULL_PTR a, const struct LDKTxAbort *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_eq")] public static extern bool TxAbort_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_eq")] public static extern bool TxAbortEq(long _a, long _b); // void Shutdown_free(struct LDKShutdown this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_free")] public static extern void Shutdown_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_free")] public static extern void ShutdownFree(long _this_obj); // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_get_channel_id")] public static extern long Shutdown_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_get_channel_id")] public static extern long ShutdownGetChannelId(long _this_ptr); // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_set_channel_id")] public static extern void Shutdown_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_set_channel_id")] public static extern void ShutdownSetChannelId(long _this_ptr, long _val); // struct LDKCVec_u8Z Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_get_scriptpubkey")] public static extern long Shutdown_get_scriptpubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_get_scriptpubkey")] public static extern long ShutdownGetScriptpubkey(long _this_ptr); // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_set_scriptpubkey")] public static extern void Shutdown_set_scriptpubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_set_scriptpubkey")] public static extern void ShutdownSetScriptpubkey(long _this_ptr, long _val); // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_new")] public static extern long Shutdown_new(long _channel_id_arg, long _scriptpubkey_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_new")] public static extern long ShutdownNew(long _channel_id_arg, long _scriptpubkey_arg); // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_clone_ptr")] public static extern long Shutdown_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_clone_ptr")] public static extern long ShutdownClonePtr(long _arg); // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_clone")] public static extern long Shutdown_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_clone")] public static extern long ShutdownClone(long _orig); // uint64_t Shutdown_hash(const struct LDKShutdown *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_hash")] public static extern long Shutdown_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_hash")] public static extern long ShutdownHash(long _o); // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_eq")] public static extern bool Shutdown_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_eq")] public static extern bool ShutdownEq(long _a, long _b); // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_free")] public static extern void ClosingSignedFeeRange_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_free")] public static extern void ClosingSignedFeeRangeFree(long _this_obj); // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_get_min_fee_satoshis")] public static extern long ClosingSignedFeeRange_get_min_fee_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_get_min_fee_satoshis")] public static extern long ClosingSignedFeeRangeGetMinFeeSatoshis(long _this_ptr); // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_set_min_fee_satoshis")] public static extern void ClosingSignedFeeRange_set_min_fee_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_set_min_fee_satoshis")] public static extern void ClosingSignedFeeRangeSetMinFeeSatoshis(long _this_ptr, long _val); // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_get_max_fee_satoshis")] public static extern long ClosingSignedFeeRange_get_max_fee_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_get_max_fee_satoshis")] public static extern long ClosingSignedFeeRangeGetMaxFeeSatoshis(long _this_ptr); // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_set_max_fee_satoshis")] public static extern void ClosingSignedFeeRange_set_max_fee_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_set_max_fee_satoshis")] public static extern void ClosingSignedFeeRangeSetMaxFeeSatoshis(long _this_ptr, long _val); // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_new")] public static extern long ClosingSignedFeeRange_new(long _min_fee_satoshis_arg, long _max_fee_satoshis_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_new")] public static extern long ClosingSignedFeeRangeNew(long _min_fee_satoshis_arg, long _max_fee_satoshis_arg); // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_clone_ptr")] public static extern long ClosingSignedFeeRange_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_clone_ptr")] public static extern long ClosingSignedFeeRangeClonePtr(long _arg); // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_clone")] public static extern long ClosingSignedFeeRange_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_clone")] public static extern long ClosingSignedFeeRangeClone(long _orig); // uint64_t ClosingSignedFeeRange_hash(const struct LDKClosingSignedFeeRange *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_hash")] public static extern long ClosingSignedFeeRange_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_hash")] public static extern long ClosingSignedFeeRangeHash(long _o); // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_eq")] public static extern bool ClosingSignedFeeRange_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_eq")] public static extern bool ClosingSignedFeeRangeEq(long _a, long _b); // void ClosingSigned_free(struct LDKClosingSigned this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_free")] public static extern void ClosingSigned_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_free")] public static extern void ClosingSignedFree(long _this_obj); // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_channel_id")] public static extern long ClosingSigned_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_channel_id")] public static extern long ClosingSignedGetChannelId(long _this_ptr); // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_channel_id")] public static extern void ClosingSigned_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_channel_id")] public static extern void ClosingSignedSetChannelId(long _this_ptr, long _val); // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_fee_satoshis")] public static extern long ClosingSigned_get_fee_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_fee_satoshis")] public static extern long ClosingSignedGetFeeSatoshis(long _this_ptr); // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_fee_satoshis")] public static extern void ClosingSigned_set_fee_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_fee_satoshis")] public static extern void ClosingSignedSetFeeSatoshis(long _this_ptr, long _val); // struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_signature")] public static extern long ClosingSigned_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_signature")] public static extern long ClosingSignedGetSignature(long _this_ptr); // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_signature")] public static extern void ClosingSigned_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_signature")] public static extern void ClosingSignedSetSignature(long _this_ptr, long _val); // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_fee_range")] public static extern long ClosingSigned_get_fee_range(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_get_fee_range")] public static extern long ClosingSignedGetFeeRange(long _this_ptr); // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_fee_range")] public static extern void ClosingSigned_set_fee_range(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_set_fee_range")] public static extern void ClosingSignedSetFeeRange(long _this_ptr, long _val); // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_new")] public static extern long ClosingSigned_new(long _channel_id_arg, long _fee_satoshis_arg, long _signature_arg, long _fee_range_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_new")] public static extern long ClosingSignedNew(long _channel_id_arg, long _fee_satoshis_arg, long _signature_arg, long _fee_range_arg); // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_clone_ptr")] public static extern long ClosingSigned_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_clone_ptr")] public static extern long ClosingSignedClonePtr(long _arg); // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_clone")] public static extern long ClosingSigned_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_clone")] public static extern long ClosingSignedClone(long _orig); // uint64_t ClosingSigned_hash(const struct LDKClosingSigned *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_hash")] public static extern long ClosingSigned_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_hash")] public static extern long ClosingSignedHash(long _o); // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_eq")] public static extern bool ClosingSigned_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_eq")] public static extern bool ClosingSignedEq(long _a, long _b); // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_free")] public static extern void UpdateAddHTLC_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_free")] public static extern void UpdateAddHTLCFree(long _this_obj); // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_channel_id")] public static extern long UpdateAddHTLC_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_channel_id")] public static extern long UpdateAddHTLCGetChannelId(long _this_ptr); // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_channel_id")] public static extern void UpdateAddHTLC_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_channel_id")] public static extern void UpdateAddHTLCSetChannelId(long _this_ptr, long _val); // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_htlc_id")] public static extern long UpdateAddHTLC_get_htlc_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_htlc_id")] public static extern long UpdateAddHTLCGetHtlcId(long _this_ptr); // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_htlc_id")] public static extern void UpdateAddHTLC_set_htlc_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_htlc_id")] public static extern void UpdateAddHTLCSetHtlcId(long _this_ptr, long _val); // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_amount_msat")] public static extern long UpdateAddHTLC_get_amount_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_amount_msat")] public static extern long UpdateAddHTLCGetAmountMsat(long _this_ptr); // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_amount_msat")] public static extern void UpdateAddHTLC_set_amount_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_amount_msat")] public static extern void UpdateAddHTLCSetAmountMsat(long _this_ptr, long _val); // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_payment_hash")] public static extern long UpdateAddHTLC_get_payment_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_payment_hash")] public static extern long UpdateAddHTLCGetPaymentHash(long _this_ptr); // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_payment_hash")] public static extern void UpdateAddHTLC_set_payment_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_payment_hash")] public static extern void UpdateAddHTLCSetPaymentHash(long _this_ptr, long _val); // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_cltv_expiry")] public static extern int UpdateAddHTLC_get_cltv_expiry(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_cltv_expiry")] public static extern int UpdateAddHTLCGetCltvExpiry(long _this_ptr); // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_cltv_expiry")] public static extern void UpdateAddHTLC_set_cltv_expiry(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_cltv_expiry")] public static extern void UpdateAddHTLCSetCltvExpiry(long _this_ptr, int _val); // struct LDKCOption_u64Z UpdateAddHTLC_get_skimmed_fee_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_skimmed_fee_msat")] public static extern long UpdateAddHTLC_get_skimmed_fee_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_skimmed_fee_msat")] public static extern long UpdateAddHTLCGetSkimmedFeeMsat(long _this_ptr); // void UpdateAddHTLC_set_skimmed_fee_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_skimmed_fee_msat")] public static extern void UpdateAddHTLC_set_skimmed_fee_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_skimmed_fee_msat")] public static extern void UpdateAddHTLCSetSkimmedFeeMsat(long _this_ptr, long _val); // struct LDKOnionPacket UpdateAddHTLC_get_onion_routing_packet(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_onion_routing_packet")] public static extern long UpdateAddHTLC_get_onion_routing_packet(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_onion_routing_packet")] public static extern long UpdateAddHTLCGetOnionRoutingPacket(long _this_ptr); // void UpdateAddHTLC_set_onion_routing_packet(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKOnionPacket val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_onion_routing_packet")] public static extern void UpdateAddHTLC_set_onion_routing_packet(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_onion_routing_packet")] public static extern void UpdateAddHTLCSetOnionRoutingPacket(long _this_ptr, long _val); // struct LDKPublicKey UpdateAddHTLC_get_blinding_point(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_blinding_point")] public static extern long UpdateAddHTLC_get_blinding_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_get_blinding_point")] public static extern long UpdateAddHTLCGetBlindingPoint(long _this_ptr); // void UpdateAddHTLC_set_blinding_point(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_blinding_point")] public static extern void UpdateAddHTLC_set_blinding_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_set_blinding_point")] public static extern void UpdateAddHTLCSetBlindingPoint(long _this_ptr, long _val); // MUST_USE_RES struct LDKUpdateAddHTLC UpdateAddHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, uint64_t amount_msat_arg, struct LDKThirtyTwoBytes payment_hash_arg, uint32_t cltv_expiry_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, struct LDKOnionPacket onion_routing_packet_arg, struct LDKPublicKey blinding_point_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_new")] public static extern long UpdateAddHTLC_new(long _channel_id_arg, long _htlc_id_arg, long _amount_msat_arg, long _payment_hash_arg, int _cltv_expiry_arg, long _skimmed_fee_msat_arg, long _onion_routing_packet_arg, long _blinding_point_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_new")] public static extern long UpdateAddHTLCNew(long _channel_id_arg, long _htlc_id_arg, long _amount_msat_arg, long _payment_hash_arg, int _cltv_expiry_arg, long _skimmed_fee_msat_arg, long _onion_routing_packet_arg, long _blinding_point_arg); // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_clone_ptr")] public static extern long UpdateAddHTLC_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_clone_ptr")] public static extern long UpdateAddHTLCClonePtr(long _arg); // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_clone")] public static extern long UpdateAddHTLC_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_clone")] public static extern long UpdateAddHTLCClone(long _orig); // uint64_t UpdateAddHTLC_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_hash")] public static extern long UpdateAddHTLC_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_hash")] public static extern long UpdateAddHTLCHash(long _o); // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_eq")] public static extern bool UpdateAddHTLC_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_eq")] public static extern bool UpdateAddHTLCEq(long _a, long _b); // void OnionMessage_free(struct LDKOnionMessage this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_free")] public static extern void OnionMessage_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_free")] public static extern void OnionMessageFree(long _this_obj); // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_get_blinding_point")] public static extern long OnionMessage_get_blinding_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_get_blinding_point")] public static extern long OnionMessageGetBlindingPoint(long _this_ptr); // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_set_blinding_point")] public static extern void OnionMessage_set_blinding_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_set_blinding_point")] public static extern void OnionMessageSetBlindingPoint(long _this_ptr, long _val); // struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_get_onion_routing_packet")] public static extern long OnionMessage_get_onion_routing_packet(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_get_onion_routing_packet")] public static extern long OnionMessageGetOnionRoutingPacket(long _this_ptr); // void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_set_onion_routing_packet")] public static extern void OnionMessage_set_onion_routing_packet(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_set_onion_routing_packet")] public static extern void OnionMessageSetOnionRoutingPacket(long _this_ptr, long _val); // MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_new")] public static extern long OnionMessage_new(long _blinding_point_arg, long _onion_routing_packet_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_new")] public static extern long OnionMessageNew(long _blinding_point_arg, long _onion_routing_packet_arg); // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_clone_ptr")] public static extern long OnionMessage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_clone_ptr")] public static extern long OnionMessageClonePtr(long _arg); // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_clone")] public static extern long OnionMessage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_clone")] public static extern long OnionMessageClone(long _orig); // uint64_t OnionMessage_hash(const struct LDKOnionMessage *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_hash")] public static extern long OnionMessage_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_hash")] public static extern long OnionMessageHash(long _o); // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_eq")] public static extern bool OnionMessage_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_eq")] public static extern bool OnionMessageEq(long _a, long _b); // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_free")] public static extern void UpdateFulfillHTLC_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_free")] public static extern void UpdateFulfillHTLCFree(long _this_obj); // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_channel_id")] public static extern long UpdateFulfillHTLC_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_channel_id")] public static extern long UpdateFulfillHTLCGetChannelId(long _this_ptr); // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_channel_id")] public static extern void UpdateFulfillHTLC_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_channel_id")] public static extern void UpdateFulfillHTLCSetChannelId(long _this_ptr, long _val); // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_htlc_id")] public static extern long UpdateFulfillHTLC_get_htlc_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_htlc_id")] public static extern long UpdateFulfillHTLCGetHtlcId(long _this_ptr); // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_htlc_id")] public static extern void UpdateFulfillHTLC_set_htlc_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_htlc_id")] public static extern void UpdateFulfillHTLCSetHtlcId(long _this_ptr, long _val); // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_payment_preimage")] public static extern long UpdateFulfillHTLC_get_payment_preimage(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_get_payment_preimage")] public static extern long UpdateFulfillHTLCGetPaymentPreimage(long _this_ptr); // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_payment_preimage")] public static extern void UpdateFulfillHTLC_set_payment_preimage(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_set_payment_preimage")] public static extern void UpdateFulfillHTLCSetPaymentPreimage(long _this_ptr, long _val); // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_new")] public static extern long UpdateFulfillHTLC_new(long _channel_id_arg, long _htlc_id_arg, long _payment_preimage_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_new")] public static extern long UpdateFulfillHTLCNew(long _channel_id_arg, long _htlc_id_arg, long _payment_preimage_arg); // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_clone_ptr")] public static extern long UpdateFulfillHTLC_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_clone_ptr")] public static extern long UpdateFulfillHTLCClonePtr(long _arg); // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_clone")] public static extern long UpdateFulfillHTLC_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_clone")] public static extern long UpdateFulfillHTLCClone(long _orig); // uint64_t UpdateFulfillHTLC_hash(const struct LDKUpdateFulfillHTLC *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_hash")] public static extern long UpdateFulfillHTLC_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_hash")] public static extern long UpdateFulfillHTLCHash(long _o); // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_eq")] public static extern bool UpdateFulfillHTLC_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_eq")] public static extern bool UpdateFulfillHTLCEq(long _a, long _b); // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_free")] public static extern void UpdateFailHTLC_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_free")] public static extern void UpdateFailHTLCFree(long _this_obj); // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_get_channel_id")] public static extern long UpdateFailHTLC_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_get_channel_id")] public static extern long UpdateFailHTLCGetChannelId(long _this_ptr); // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_set_channel_id")] public static extern void UpdateFailHTLC_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_set_channel_id")] public static extern void UpdateFailHTLCSetChannelId(long _this_ptr, long _val); // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_get_htlc_id")] public static extern long UpdateFailHTLC_get_htlc_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_get_htlc_id")] public static extern long UpdateFailHTLCGetHtlcId(long _this_ptr); // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_set_htlc_id")] public static extern void UpdateFailHTLC_set_htlc_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_set_htlc_id")] public static extern void UpdateFailHTLCSetHtlcId(long _this_ptr, long _val); // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_clone_ptr")] public static extern long UpdateFailHTLC_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_clone_ptr")] public static extern long UpdateFailHTLCClonePtr(long _arg); // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_clone")] public static extern long UpdateFailHTLC_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_clone")] public static extern long UpdateFailHTLCClone(long _orig); // uint64_t UpdateFailHTLC_hash(const struct LDKUpdateFailHTLC *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_hash")] public static extern long UpdateFailHTLC_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_hash")] public static extern long UpdateFailHTLCHash(long _o); // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_eq")] public static extern bool UpdateFailHTLC_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_eq")] public static extern bool UpdateFailHTLCEq(long _a, long _b); // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_free")] public static extern void UpdateFailMalformedHTLC_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_free")] public static extern void UpdateFailMalformedHTLCFree(long _this_obj); // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_channel_id")] public static extern long UpdateFailMalformedHTLC_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_channel_id")] public static extern long UpdateFailMalformedHTLCGetChannelId(long _this_ptr); // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_channel_id")] public static extern void UpdateFailMalformedHTLC_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_channel_id")] public static extern void UpdateFailMalformedHTLCSetChannelId(long _this_ptr, long _val); // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_htlc_id")] public static extern long UpdateFailMalformedHTLC_get_htlc_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_htlc_id")] public static extern long UpdateFailMalformedHTLCGetHtlcId(long _this_ptr); // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_htlc_id")] public static extern void UpdateFailMalformedHTLC_set_htlc_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_htlc_id")] public static extern void UpdateFailMalformedHTLCSetHtlcId(long _this_ptr, long _val); // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_failure_code")] public static extern short UpdateFailMalformedHTLC_get_failure_code(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_get_failure_code")] public static extern short UpdateFailMalformedHTLCGetFailureCode(long _this_ptr); // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_failure_code")] public static extern void UpdateFailMalformedHTLC_set_failure_code(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_set_failure_code")] public static extern void UpdateFailMalformedHTLCSetFailureCode(long _this_ptr, short _val); // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_clone_ptr")] public static extern long UpdateFailMalformedHTLC_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_clone_ptr")] public static extern long UpdateFailMalformedHTLCClonePtr(long _arg); // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_clone")] public static extern long UpdateFailMalformedHTLC_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_clone")] public static extern long UpdateFailMalformedHTLCClone(long _orig); // uint64_t UpdateFailMalformedHTLC_hash(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_hash")] public static extern long UpdateFailMalformedHTLC_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_hash")] public static extern long UpdateFailMalformedHTLCHash(long _o); // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_eq")] public static extern bool UpdateFailMalformedHTLC_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_eq")] public static extern bool UpdateFailMalformedHTLCEq(long _a, long _b); // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_free")] public static extern void CommitmentSigned_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_free")] public static extern void CommitmentSignedFree(long _this_obj); // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_channel_id")] public static extern long CommitmentSigned_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_channel_id")] public static extern long CommitmentSignedGetChannelId(long _this_ptr); // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_channel_id")] public static extern void CommitmentSigned_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_channel_id")] public static extern void CommitmentSignedSetChannelId(long _this_ptr, long _val); // struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_signature")] public static extern long CommitmentSigned_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_signature")] public static extern long CommitmentSignedGetSignature(long _this_ptr); // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_signature")] public static extern void CommitmentSigned_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_signature")] public static extern void CommitmentSignedSetSignature(long _this_ptr, long _val); // struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_htlc_signatures")] public static extern long CommitmentSigned_get_htlc_signatures(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_get_htlc_signatures")] public static extern long CommitmentSignedGetHtlcSignatures(long _this_ptr); // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_htlc_signatures")] public static extern void CommitmentSigned_set_htlc_signatures(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_set_htlc_signatures")] public static extern void CommitmentSignedSetHtlcSignatures(long _this_ptr, long _val); // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_new")] public static extern long CommitmentSigned_new(long _channel_id_arg, long _signature_arg, long _htlc_signatures_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_new")] public static extern long CommitmentSignedNew(long _channel_id_arg, long _signature_arg, long _htlc_signatures_arg); // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_clone_ptr")] public static extern long CommitmentSigned_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_clone_ptr")] public static extern long CommitmentSignedClonePtr(long _arg); // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_clone")] public static extern long CommitmentSigned_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_clone")] public static extern long CommitmentSignedClone(long _orig); // uint64_t CommitmentSigned_hash(const struct LDKCommitmentSigned *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_hash")] public static extern long CommitmentSigned_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_hash")] public static extern long CommitmentSignedHash(long _o); // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_eq")] public static extern bool CommitmentSigned_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_eq")] public static extern bool CommitmentSignedEq(long _a, long _b); // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_free")] public static extern void RevokeAndACK_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_free")] public static extern void RevokeAndACKFree(long _this_obj); // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_channel_id")] public static extern long RevokeAndACK_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_channel_id")] public static extern long RevokeAndACKGetChannelId(long _this_ptr); // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_channel_id")] public static extern void RevokeAndACK_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_channel_id")] public static extern void RevokeAndACKSetChannelId(long _this_ptr, long _val); // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_per_commitment_secret")] public static extern long RevokeAndACK_get_per_commitment_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_per_commitment_secret")] public static extern long RevokeAndACKGetPerCommitmentSecret(long _this_ptr); // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_per_commitment_secret")] public static extern void RevokeAndACK_set_per_commitment_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_per_commitment_secret")] public static extern void RevokeAndACKSetPerCommitmentSecret(long _this_ptr, long _val); // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_next_per_commitment_point")] public static extern long RevokeAndACK_get_next_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_get_next_per_commitment_point")] public static extern long RevokeAndACKGetNextPerCommitmentPoint(long _this_ptr); // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_next_per_commitment_point")] public static extern void RevokeAndACK_set_next_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_set_next_per_commitment_point")] public static extern void RevokeAndACKSetNextPerCommitmentPoint(long _this_ptr, long _val); // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_new")] public static extern long RevokeAndACK_new(long _channel_id_arg, long _per_commitment_secret_arg, long _next_per_commitment_point_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_new")] public static extern long RevokeAndACKNew(long _channel_id_arg, long _per_commitment_secret_arg, long _next_per_commitment_point_arg); // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_clone_ptr")] public static extern long RevokeAndACK_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_clone_ptr")] public static extern long RevokeAndACKClonePtr(long _arg); // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_clone")] public static extern long RevokeAndACK_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_clone")] public static extern long RevokeAndACKClone(long _orig); // uint64_t RevokeAndACK_hash(const struct LDKRevokeAndACK *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_hash")] public static extern long RevokeAndACK_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_hash")] public static extern long RevokeAndACKHash(long _o); // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_eq")] public static extern bool RevokeAndACK_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_eq")] public static extern bool RevokeAndACKEq(long _a, long _b); // void UpdateFee_free(struct LDKUpdateFee this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_free")] public static extern void UpdateFee_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_free")] public static extern void UpdateFeeFree(long _this_obj); // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_get_channel_id")] public static extern long UpdateFee_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_get_channel_id")] public static extern long UpdateFeeGetChannelId(long _this_ptr); // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_set_channel_id")] public static extern void UpdateFee_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_set_channel_id")] public static extern void UpdateFeeSetChannelId(long _this_ptr, long _val); // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_get_feerate_per_kw")] public static extern int UpdateFee_get_feerate_per_kw(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_get_feerate_per_kw")] public static extern int UpdateFeeGetFeeratePerKw(long _this_ptr); // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_set_feerate_per_kw")] public static extern void UpdateFee_set_feerate_per_kw(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_set_feerate_per_kw")] public static extern void UpdateFeeSetFeeratePerKw(long _this_ptr, int _val); // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_new")] public static extern long UpdateFee_new(long _channel_id_arg, int _feerate_per_kw_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_new")] public static extern long UpdateFeeNew(long _channel_id_arg, int _feerate_per_kw_arg); // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_clone_ptr")] public static extern long UpdateFee_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_clone_ptr")] public static extern long UpdateFeeClonePtr(long _arg); // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_clone")] public static extern long UpdateFee_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_clone")] public static extern long UpdateFeeClone(long _orig); // uint64_t UpdateFee_hash(const struct LDKUpdateFee *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_hash")] public static extern long UpdateFee_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_hash")] public static extern long UpdateFeeHash(long _o); // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_eq")] public static extern bool UpdateFee_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_eq")] public static extern bool UpdateFeeEq(long _a, long _b); // void ChannelReestablish_free(struct LDKChannelReestablish this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_free")] public static extern void ChannelReestablish_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_free")] public static extern void ChannelReestablishFree(long _this_obj); // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_channel_id")] public static extern long ChannelReestablish_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_channel_id")] public static extern long ChannelReestablishGetChannelId(long _this_ptr); // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_channel_id")] public static extern void ChannelReestablish_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_channel_id")] public static extern void ChannelReestablishSetChannelId(long _this_ptr, long _val); // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_local_commitment_number")] public static extern long ChannelReestablish_get_next_local_commitment_number(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_local_commitment_number")] public static extern long ChannelReestablishGetNextLocalCommitmentNumber(long _this_ptr); // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_local_commitment_number")] public static extern void ChannelReestablish_set_next_local_commitment_number(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_local_commitment_number")] public static extern void ChannelReestablishSetNextLocalCommitmentNumber(long _this_ptr, long _val); // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_remote_commitment_number")] public static extern long ChannelReestablish_get_next_remote_commitment_number(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_remote_commitment_number")] public static extern long ChannelReestablishGetNextRemoteCommitmentNumber(long _this_ptr); // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_remote_commitment_number")] public static extern void ChannelReestablish_set_next_remote_commitment_number(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_remote_commitment_number")] public static extern void ChannelReestablishSetNextRemoteCommitmentNumber(long _this_ptr, long _val); // const uint8_t (*ChannelReestablish_get_your_last_per_commitment_secret(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_your_last_per_commitment_secret")] public static extern long ChannelReestablish_get_your_last_per_commitment_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_your_last_per_commitment_secret")] public static extern long ChannelReestablishGetYourLastPerCommitmentSecret(long _this_ptr); // void ChannelReestablish_set_your_last_per_commitment_secret(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_your_last_per_commitment_secret")] public static extern void ChannelReestablish_set_your_last_per_commitment_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_your_last_per_commitment_secret")] public static extern void ChannelReestablishSetYourLastPerCommitmentSecret(long _this_ptr, long _val); // struct LDKPublicKey ChannelReestablish_get_my_current_per_commitment_point(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_my_current_per_commitment_point")] public static extern long ChannelReestablish_get_my_current_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_my_current_per_commitment_point")] public static extern long ChannelReestablishGetMyCurrentPerCommitmentPoint(long _this_ptr); // void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_my_current_per_commitment_point")] public static extern void ChannelReestablish_set_my_current_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_my_current_per_commitment_point")] public static extern void ChannelReestablishSetMyCurrentPerCommitmentPoint(long _this_ptr, long _val); // struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_funding_txid")] public static extern long ChannelReestablish_get_next_funding_txid(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_get_next_funding_txid")] public static extern long ChannelReestablishGetNextFundingTxid(long _this_ptr); // void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_funding_txid")] public static extern void ChannelReestablish_set_next_funding_txid(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_set_next_funding_txid")] public static extern void ChannelReestablishSetNextFundingTxid(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_new")] public static extern long ChannelReestablish_new(long _channel_id_arg, long _next_local_commitment_number_arg, long _next_remote_commitment_number_arg, long _your_last_per_commitment_secret_arg, long _my_current_per_commitment_point_arg, long _next_funding_txid_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_new")] public static extern long ChannelReestablishNew(long _channel_id_arg, long _next_local_commitment_number_arg, long _next_remote_commitment_number_arg, long _your_last_per_commitment_secret_arg, long _my_current_per_commitment_point_arg, long _next_funding_txid_arg); // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_clone_ptr")] public static extern long ChannelReestablish_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_clone_ptr")] public static extern long ChannelReestablishClonePtr(long _arg); // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_clone")] public static extern long ChannelReestablish_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_clone")] public static extern long ChannelReestablishClone(long _orig); // uint64_t ChannelReestablish_hash(const struct LDKChannelReestablish *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_hash")] public static extern long ChannelReestablish_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_hash")] public static extern long ChannelReestablishHash(long _o); // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_eq")] public static extern bool ChannelReestablish_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_eq")] public static extern bool ChannelReestablishEq(long _a, long _b); // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_free")] public static extern void AnnouncementSignatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_free")] public static extern void AnnouncementSignaturesFree(long _this_obj); // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_channel_id")] public static extern long AnnouncementSignatures_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_channel_id")] public static extern long AnnouncementSignaturesGetChannelId(long _this_ptr); // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_channel_id")] public static extern void AnnouncementSignatures_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_channel_id")] public static extern void AnnouncementSignaturesSetChannelId(long _this_ptr, long _val); // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_short_channel_id")] public static extern long AnnouncementSignatures_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_short_channel_id")] public static extern long AnnouncementSignaturesGetShortChannelId(long _this_ptr); // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_short_channel_id")] public static extern void AnnouncementSignatures_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_short_channel_id")] public static extern void AnnouncementSignaturesSetShortChannelId(long _this_ptr, long _val); // struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_node_signature")] public static extern long AnnouncementSignatures_get_node_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_node_signature")] public static extern long AnnouncementSignaturesGetNodeSignature(long _this_ptr); // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_node_signature")] public static extern void AnnouncementSignatures_set_node_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_node_signature")] public static extern void AnnouncementSignaturesSetNodeSignature(long _this_ptr, long _val); // struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_bitcoin_signature")] public static extern long AnnouncementSignatures_get_bitcoin_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_get_bitcoin_signature")] public static extern long AnnouncementSignaturesGetBitcoinSignature(long _this_ptr); // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_bitcoin_signature")] public static extern void AnnouncementSignatures_set_bitcoin_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_set_bitcoin_signature")] public static extern void AnnouncementSignaturesSetBitcoinSignature(long _this_ptr, long _val); // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_new")] public static extern long AnnouncementSignatures_new(long _channel_id_arg, long _short_channel_id_arg, long _node_signature_arg, long _bitcoin_signature_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_new")] public static extern long AnnouncementSignaturesNew(long _channel_id_arg, long _short_channel_id_arg, long _node_signature_arg, long _bitcoin_signature_arg); // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_clone_ptr")] public static extern long AnnouncementSignatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_clone_ptr")] public static extern long AnnouncementSignaturesClonePtr(long _arg); // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_clone")] public static extern long AnnouncementSignatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_clone")] public static extern long AnnouncementSignaturesClone(long _orig); // uint64_t AnnouncementSignatures_hash(const struct LDKAnnouncementSignatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_hash")] public static extern long AnnouncementSignatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_hash")] public static extern long AnnouncementSignaturesHash(long _o); // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_eq")] public static extern bool AnnouncementSignatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_eq")] public static extern bool AnnouncementSignaturesEq(long _a, long _b); // void SocketAddress_free(struct LDKSocketAddress this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_free")] public static extern void SocketAddress_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_free")] public static extern void SocketAddressFree(long _this_ptr); // uint64_t SocketAddress_clone_ptr(LDKSocketAddress *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_clone_ptr")] public static extern long SocketAddress_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_clone_ptr")] public static extern long SocketAddressClonePtr(long _arg); // struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_clone")] public static extern long SocketAddress_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_clone")] public static extern long SocketAddressClone(long _orig); // struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_tcp_ip_v4")] public static extern long SocketAddress_tcp_ip_v4(long _addr, short _port); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_tcp_ip_v4")] public static extern long SocketAddressTcpIpV4(long _addr, short _port); // struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_tcp_ip_v6")] public static extern long SocketAddress_tcp_ip_v6(long _addr, short _port); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_tcp_ip_v6")] public static extern long SocketAddressTcpIpV6(long _addr, short _port); // struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_onion_v2")] public static extern long SocketAddress_onion_v2(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_onion_v2")] public static extern long SocketAddressOnionV2(long _a); // struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_onion_v3")] public static extern long SocketAddress_onion_v3(long _ed25519_pubkey, short _checksum, byte _version, short _port); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_onion_v3")] public static extern long SocketAddressOnionV3(long _ed25519_pubkey, short _checksum, byte _version, short _port); // struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_hostname")] public static extern long SocketAddress_hostname(long _hostname, short _port); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_hostname")] public static extern long SocketAddressHostname(long _hostname, short _port); // uint64_t SocketAddress_hash(const struct LDKSocketAddress *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_hash")] public static extern long SocketAddress_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_hash")] public static extern long SocketAddressHash(long _o); // bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_eq")] public static extern bool SocketAddress_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_eq")] public static extern bool SocketAddressEq(long _a, long _b); // struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_write")] public static extern long SocketAddress_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_write")] public static extern long SocketAddressWrite(long _obj); // struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_read")] public static extern long SocketAddress_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_read")] public static extern long SocketAddressRead(long _ser); // enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_clone")] public static extern SocketAddressParseError SocketAddressParseError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_clone")] public static extern SocketAddressParseError SocketAddressParseErrorClone(long _orig); // enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_socket_addr_parse")] public static extern SocketAddressParseError SocketAddressParseError_socket_addr_parse(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_socket_addr_parse")] public static extern SocketAddressParseError SocketAddressParseErrorSocketAddrParse(); // enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_input")] public static extern SocketAddressParseError SocketAddressParseError_invalid_input(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_input")] public static extern SocketAddressParseError SocketAddressParseErrorInvalidInput(); // enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_port")] public static extern SocketAddressParseError SocketAddressParseError_invalid_port(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_port")] public static extern SocketAddressParseError SocketAddressParseErrorInvalidPort(); // enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_onion_v3")] public static extern SocketAddressParseError SocketAddressParseError_invalid_onion_v3(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_invalid_onion_v3")] public static extern SocketAddressParseError SocketAddressParseErrorInvalidOnionV3(); // uint64_t SocketAddressParseError_hash(const enum LDKSocketAddressParseError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_hash")] public static extern long SocketAddressParseError_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_hash")] public static extern long SocketAddressParseErrorHash(long _o); // bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_eq")] public static extern bool SocketAddressParseError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddressParseError_eq")] public static extern bool SocketAddressParseErrorEq(long _a, long _b); // struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_parse_onion_address")] public static extern long parse_onion_address(long _host, short _port); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_parse_onion_address")] public static extern long ParseOnionAddress(long _host, short _port); // struct LDKStr SocketAddress_to_str(const struct LDKSocketAddress *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_to_str")] public static extern long SocketAddress_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_to_str")] public static extern long SocketAddressToStr(long _o); // struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_from_str")] public static extern long SocketAddress_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketAddress_from_str")] public static extern long SocketAddressFromStr(long _s); // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_free")] public static extern void UnsignedGossipMessage_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_free")] public static extern void UnsignedGossipMessageFree(long _this_ptr); // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_clone_ptr")] public static extern long UnsignedGossipMessage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_clone_ptr")] public static extern long UnsignedGossipMessageClonePtr(long _arg); // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_clone")] public static extern long UnsignedGossipMessage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_clone")] public static extern long UnsignedGossipMessageClone(long _orig); // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_channel_announcement")] public static extern long UnsignedGossipMessage_channel_announcement(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_channel_announcement")] public static extern long UnsignedGossipMessageChannelAnnouncement(long _a); // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_channel_update")] public static extern long UnsignedGossipMessage_channel_update(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_channel_update")] public static extern long UnsignedGossipMessageChannelUpdate(long _a); // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_node_announcement")] public static extern long UnsignedGossipMessage_node_announcement(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_node_announcement")] public static extern long UnsignedGossipMessageNodeAnnouncement(long _a); // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_write")] public static extern long UnsignedGossipMessage_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedGossipMessage_write")] public static extern long UnsignedGossipMessageWrite(long _obj); // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_free")] public static extern void UnsignedNodeAnnouncement_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_free")] public static extern void UnsignedNodeAnnouncementFree(long _this_obj); // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_features")] public static extern long UnsignedNodeAnnouncement_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_features")] public static extern long UnsignedNodeAnnouncementGetFeatures(long _this_ptr); // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_features")] public static extern void UnsignedNodeAnnouncement_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_features")] public static extern void UnsignedNodeAnnouncementSetFeatures(long _this_ptr, long _val); // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_timestamp")] public static extern int UnsignedNodeAnnouncement_get_timestamp(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_timestamp")] public static extern int UnsignedNodeAnnouncementGetTimestamp(long _this_ptr); // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_timestamp")] public static extern void UnsignedNodeAnnouncement_set_timestamp(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_timestamp")] public static extern void UnsignedNodeAnnouncementSetTimestamp(long _this_ptr, int _val); // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_node_id")] public static extern long UnsignedNodeAnnouncement_get_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_node_id")] public static extern long UnsignedNodeAnnouncementGetNodeId(long _this_ptr); // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_node_id")] public static extern void UnsignedNodeAnnouncement_set_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_node_id")] public static extern void UnsignedNodeAnnouncementSetNodeId(long _this_ptr, long _val); // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_rgb")] public static extern long UnsignedNodeAnnouncement_get_rgb(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_rgb")] public static extern long UnsignedNodeAnnouncementGetRgb(long _this_ptr); // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_rgb")] public static extern void UnsignedNodeAnnouncement_set_rgb(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_rgb")] public static extern void UnsignedNodeAnnouncementSetRgb(long _this_ptr, long _val); // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_alias")] public static extern long UnsignedNodeAnnouncement_get_alias(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_alias")] public static extern long UnsignedNodeAnnouncementGetAlias(long _this_ptr); // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_alias")] public static extern void UnsignedNodeAnnouncement_set_alias(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_alias")] public static extern void UnsignedNodeAnnouncementSetAlias(long _this_ptr, long _val); // struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_addresses")] public static extern long UnsignedNodeAnnouncement_get_addresses(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_get_addresses")] public static extern long UnsignedNodeAnnouncementGetAddresses(long _this_ptr); // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_addresses")] public static extern void UnsignedNodeAnnouncement_set_addresses(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_set_addresses")] public static extern void UnsignedNodeAnnouncementSetAddresses(long _this_ptr, long _val); // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_clone_ptr")] public static extern long UnsignedNodeAnnouncement_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_clone_ptr")] public static extern long UnsignedNodeAnnouncementClonePtr(long _arg); // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_clone")] public static extern long UnsignedNodeAnnouncement_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_clone")] public static extern long UnsignedNodeAnnouncementClone(long _orig); // uint64_t UnsignedNodeAnnouncement_hash(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_hash")] public static extern long UnsignedNodeAnnouncement_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_hash")] public static extern long UnsignedNodeAnnouncementHash(long _o); // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_eq")] public static extern bool UnsignedNodeAnnouncement_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_eq")] public static extern bool UnsignedNodeAnnouncementEq(long _a, long _b); // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_free")] public static extern void NodeAnnouncement_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_free")] public static extern void NodeAnnouncementFree(long _this_obj); // struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_get_signature")] public static extern long NodeAnnouncement_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_get_signature")] public static extern long NodeAnnouncementGetSignature(long _this_ptr); // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_set_signature")] public static extern void NodeAnnouncement_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_set_signature")] public static extern void NodeAnnouncementSetSignature(long _this_ptr, long _val); // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_get_contents")] public static extern long NodeAnnouncement_get_contents(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_get_contents")] public static extern long NodeAnnouncementGetContents(long _this_ptr); // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_set_contents")] public static extern void NodeAnnouncement_set_contents(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_set_contents")] public static extern void NodeAnnouncementSetContents(long _this_ptr, long _val); // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_new")] public static extern long NodeAnnouncement_new(long _signature_arg, long _contents_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_new")] public static extern long NodeAnnouncementNew(long _signature_arg, long _contents_arg); // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_clone_ptr")] public static extern long NodeAnnouncement_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_clone_ptr")] public static extern long NodeAnnouncementClonePtr(long _arg); // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_clone")] public static extern long NodeAnnouncement_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_clone")] public static extern long NodeAnnouncementClone(long _orig); // uint64_t NodeAnnouncement_hash(const struct LDKNodeAnnouncement *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_hash")] public static extern long NodeAnnouncement_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_hash")] public static extern long NodeAnnouncementHash(long _o); // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_eq")] public static extern bool NodeAnnouncement_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_eq")] public static extern bool NodeAnnouncementEq(long _a, long _b); // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_free")] public static extern void UnsignedChannelAnnouncement_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_free")] public static extern void UnsignedChannelAnnouncementFree(long _this_obj); // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_features")] public static extern long UnsignedChannelAnnouncement_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_features")] public static extern long UnsignedChannelAnnouncementGetFeatures(long _this_ptr); // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_features")] public static extern void UnsignedChannelAnnouncement_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_features")] public static extern void UnsignedChannelAnnouncementSetFeatures(long _this_ptr, long _val); // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_chain_hash")] public static extern long UnsignedChannelAnnouncement_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_chain_hash")] public static extern long UnsignedChannelAnnouncementGetChainHash(long _this_ptr); // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_chain_hash")] public static extern void UnsignedChannelAnnouncement_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_chain_hash")] public static extern void UnsignedChannelAnnouncementSetChainHash(long _this_ptr, long _val); // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_short_channel_id")] public static extern long UnsignedChannelAnnouncement_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_short_channel_id")] public static extern long UnsignedChannelAnnouncementGetShortChannelId(long _this_ptr); // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_short_channel_id")] public static extern void UnsignedChannelAnnouncement_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_short_channel_id")] public static extern void UnsignedChannelAnnouncementSetShortChannelId(long _this_ptr, long _val); // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_node_id_1")] public static extern long UnsignedChannelAnnouncement_get_node_id_1(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_node_id_1")] public static extern long UnsignedChannelAnnouncementGetNodeId1(long _this_ptr); // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_node_id_1")] public static extern void UnsignedChannelAnnouncement_set_node_id_1(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_node_id_1")] public static extern void UnsignedChannelAnnouncementSetNodeId1(long _this_ptr, long _val); // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_node_id_2")] public static extern long UnsignedChannelAnnouncement_get_node_id_2(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_node_id_2")] public static extern long UnsignedChannelAnnouncementGetNodeId2(long _this_ptr); // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_node_id_2")] public static extern void UnsignedChannelAnnouncement_set_node_id_2(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_node_id_2")] public static extern void UnsignedChannelAnnouncementSetNodeId2(long _this_ptr, long _val); // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_bitcoin_key_1")] public static extern long UnsignedChannelAnnouncement_get_bitcoin_key_1(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_bitcoin_key_1")] public static extern long UnsignedChannelAnnouncementGetBitcoinKey1(long _this_ptr); // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_bitcoin_key_1")] public static extern void UnsignedChannelAnnouncement_set_bitcoin_key_1(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_bitcoin_key_1")] public static extern void UnsignedChannelAnnouncementSetBitcoinKey1(long _this_ptr, long _val); // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_bitcoin_key_2")] public static extern long UnsignedChannelAnnouncement_get_bitcoin_key_2(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_bitcoin_key_2")] public static extern long UnsignedChannelAnnouncementGetBitcoinKey2(long _this_ptr); // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_bitcoin_key_2")] public static extern void UnsignedChannelAnnouncement_set_bitcoin_key_2(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_bitcoin_key_2")] public static extern void UnsignedChannelAnnouncementSetBitcoinKey2(long _this_ptr, long _val); // struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_excess_data")] public static extern long UnsignedChannelAnnouncement_get_excess_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_get_excess_data")] public static extern long UnsignedChannelAnnouncementGetExcessData(long _this_ptr); // void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_excess_data")] public static extern void UnsignedChannelAnnouncement_set_excess_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_set_excess_data")] public static extern void UnsignedChannelAnnouncementSetExcessData(long _this_ptr, long _val); // MUST_USE_RES struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_new(struct LDKChannelFeatures features_arg, struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, struct LDKNodeId node_id_1_arg, struct LDKNodeId node_id_2_arg, struct LDKNodeId bitcoin_key_1_arg, struct LDKNodeId bitcoin_key_2_arg, struct LDKCVec_u8Z excess_data_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_new")] public static extern long UnsignedChannelAnnouncement_new(long _features_arg, long _chain_hash_arg, long _short_channel_id_arg, long _node_id_1_arg, long _node_id_2_arg, long _bitcoin_key_1_arg, long _bitcoin_key_2_arg, long _excess_data_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_new")] public static extern long UnsignedChannelAnnouncementNew(long _features_arg, long _chain_hash_arg, long _short_channel_id_arg, long _node_id_1_arg, long _node_id_2_arg, long _bitcoin_key_1_arg, long _bitcoin_key_2_arg, long _excess_data_arg); // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_clone_ptr")] public static extern long UnsignedChannelAnnouncement_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_clone_ptr")] public static extern long UnsignedChannelAnnouncementClonePtr(long _arg); // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_clone")] public static extern long UnsignedChannelAnnouncement_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_clone")] public static extern long UnsignedChannelAnnouncementClone(long _orig); // uint64_t UnsignedChannelAnnouncement_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_hash")] public static extern long UnsignedChannelAnnouncement_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_hash")] public static extern long UnsignedChannelAnnouncementHash(long _o); // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_eq")] public static extern bool UnsignedChannelAnnouncement_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_eq")] public static extern bool UnsignedChannelAnnouncementEq(long _a, long _b); // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_free")] public static extern void ChannelAnnouncement_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_free")] public static extern void ChannelAnnouncementFree(long _this_obj); // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_node_signature_1")] public static extern long ChannelAnnouncement_get_node_signature_1(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_node_signature_1")] public static extern long ChannelAnnouncementGetNodeSignature1(long _this_ptr); // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_node_signature_1")] public static extern void ChannelAnnouncement_set_node_signature_1(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_node_signature_1")] public static extern void ChannelAnnouncementSetNodeSignature1(long _this_ptr, long _val); // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_node_signature_2")] public static extern long ChannelAnnouncement_get_node_signature_2(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_node_signature_2")] public static extern long ChannelAnnouncementGetNodeSignature2(long _this_ptr); // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_node_signature_2")] public static extern void ChannelAnnouncement_set_node_signature_2(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_node_signature_2")] public static extern void ChannelAnnouncementSetNodeSignature2(long _this_ptr, long _val); // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_bitcoin_signature_1")] public static extern long ChannelAnnouncement_get_bitcoin_signature_1(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_bitcoin_signature_1")] public static extern long ChannelAnnouncementGetBitcoinSignature1(long _this_ptr); // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_bitcoin_signature_1")] public static extern void ChannelAnnouncement_set_bitcoin_signature_1(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_bitcoin_signature_1")] public static extern void ChannelAnnouncementSetBitcoinSignature1(long _this_ptr, long _val); // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_bitcoin_signature_2")] public static extern long ChannelAnnouncement_get_bitcoin_signature_2(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_bitcoin_signature_2")] public static extern long ChannelAnnouncementGetBitcoinSignature2(long _this_ptr); // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_bitcoin_signature_2")] public static extern void ChannelAnnouncement_set_bitcoin_signature_2(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_bitcoin_signature_2")] public static extern void ChannelAnnouncementSetBitcoinSignature2(long _this_ptr, long _val); // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_contents")] public static extern long ChannelAnnouncement_get_contents(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_get_contents")] public static extern long ChannelAnnouncementGetContents(long _this_ptr); // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_contents")] public static extern void ChannelAnnouncement_set_contents(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_set_contents")] public static extern void ChannelAnnouncementSetContents(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKECDSASignature node_signature_1_arg, struct LDKECDSASignature node_signature_2_arg, struct LDKECDSASignature bitcoin_signature_1_arg, struct LDKECDSASignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_new")] public static extern long ChannelAnnouncement_new(long _node_signature_1_arg, long _node_signature_2_arg, long _bitcoin_signature_1_arg, long _bitcoin_signature_2_arg, long _contents_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_new")] public static extern long ChannelAnnouncementNew(long _node_signature_1_arg, long _node_signature_2_arg, long _bitcoin_signature_1_arg, long _bitcoin_signature_2_arg, long _contents_arg); // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_clone_ptr")] public static extern long ChannelAnnouncement_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_clone_ptr")] public static extern long ChannelAnnouncementClonePtr(long _arg); // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_clone")] public static extern long ChannelAnnouncement_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_clone")] public static extern long ChannelAnnouncementClone(long _orig); // uint64_t ChannelAnnouncement_hash(const struct LDKChannelAnnouncement *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_hash")] public static extern long ChannelAnnouncement_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_hash")] public static extern long ChannelAnnouncementHash(long _o); // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_eq")] public static extern bool ChannelAnnouncement_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_eq")] public static extern bool ChannelAnnouncementEq(long _a, long _b); // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_free")] public static extern void UnsignedChannelUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_free")] public static extern void UnsignedChannelUpdateFree(long _this_obj); // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_chain_hash")] public static extern long UnsignedChannelUpdate_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_chain_hash")] public static extern long UnsignedChannelUpdateGetChainHash(long _this_ptr); // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_chain_hash")] public static extern void UnsignedChannelUpdate_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_chain_hash")] public static extern void UnsignedChannelUpdateSetChainHash(long _this_ptr, long _val); // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_short_channel_id")] public static extern long UnsignedChannelUpdate_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_short_channel_id")] public static extern long UnsignedChannelUpdateGetShortChannelId(long _this_ptr); // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_short_channel_id")] public static extern void UnsignedChannelUpdate_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_short_channel_id")] public static extern void UnsignedChannelUpdateSetShortChannelId(long _this_ptr, long _val); // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_timestamp")] public static extern int UnsignedChannelUpdate_get_timestamp(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_timestamp")] public static extern int UnsignedChannelUpdateGetTimestamp(long _this_ptr); // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_timestamp")] public static extern void UnsignedChannelUpdate_set_timestamp(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_timestamp")] public static extern void UnsignedChannelUpdateSetTimestamp(long _this_ptr, int _val); // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_flags")] public static extern byte UnsignedChannelUpdate_get_flags(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_flags")] public static extern byte UnsignedChannelUpdateGetFlags(long _this_ptr); // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_flags")] public static extern void UnsignedChannelUpdate_set_flags(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_flags")] public static extern void UnsignedChannelUpdateSetFlags(long _this_ptr, byte _val); // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_cltv_expiry_delta")] public static extern short UnsignedChannelUpdate_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_cltv_expiry_delta")] public static extern short UnsignedChannelUpdateGetCltvExpiryDelta(long _this_ptr); // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_cltv_expiry_delta")] public static extern void UnsignedChannelUpdate_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_cltv_expiry_delta")] public static extern void UnsignedChannelUpdateSetCltvExpiryDelta(long _this_ptr, short _val); // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_htlc_minimum_msat")] public static extern long UnsignedChannelUpdate_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_htlc_minimum_msat")] public static extern long UnsignedChannelUpdateGetHtlcMinimumMsat(long _this_ptr); // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_htlc_minimum_msat")] public static extern void UnsignedChannelUpdate_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_htlc_minimum_msat")] public static extern void UnsignedChannelUpdateSetHtlcMinimumMsat(long _this_ptr, long _val); // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_htlc_maximum_msat")] public static extern long UnsignedChannelUpdate_get_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_htlc_maximum_msat")] public static extern long UnsignedChannelUpdateGetHtlcMaximumMsat(long _this_ptr); // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_htlc_maximum_msat")] public static extern void UnsignedChannelUpdate_set_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_htlc_maximum_msat")] public static extern void UnsignedChannelUpdateSetHtlcMaximumMsat(long _this_ptr, long _val); // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_fee_base_msat")] public static extern int UnsignedChannelUpdate_get_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_fee_base_msat")] public static extern int UnsignedChannelUpdateGetFeeBaseMsat(long _this_ptr); // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_fee_base_msat")] public static extern void UnsignedChannelUpdate_set_fee_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_fee_base_msat")] public static extern void UnsignedChannelUpdateSetFeeBaseMsat(long _this_ptr, int _val); // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_fee_proportional_millionths")] public static extern int UnsignedChannelUpdate_get_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_fee_proportional_millionths")] public static extern int UnsignedChannelUpdateGetFeeProportionalMillionths(long _this_ptr); // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_fee_proportional_millionths")] public static extern void UnsignedChannelUpdate_set_fee_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_fee_proportional_millionths")] public static extern void UnsignedChannelUpdateSetFeeProportionalMillionths(long _this_ptr, int _val); // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_excess_data")] public static extern long UnsignedChannelUpdate_get_excess_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_get_excess_data")] public static extern long UnsignedChannelUpdateGetExcessData(long _this_ptr); // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_excess_data")] public static extern void UnsignedChannelUpdate_set_excess_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_set_excess_data")] public static extern void UnsignedChannelUpdateSetExcessData(long _this_ptr, long _val); // MUST_USE_RES struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_new(struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, uint32_t timestamp_arg, uint8_t flags_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, struct LDKCVec_u8Z excess_data_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_new")] public static extern long UnsignedChannelUpdate_new(long _chain_hash_arg, long _short_channel_id_arg, int _timestamp_arg, byte _flags_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, int _fee_base_msat_arg, int _fee_proportional_millionths_arg, long _excess_data_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_new")] public static extern long UnsignedChannelUpdateNew(long _chain_hash_arg, long _short_channel_id_arg, int _timestamp_arg, byte _flags_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, int _fee_base_msat_arg, int _fee_proportional_millionths_arg, long _excess_data_arg); // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_clone_ptr")] public static extern long UnsignedChannelUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_clone_ptr")] public static extern long UnsignedChannelUpdateClonePtr(long _arg); // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_clone")] public static extern long UnsignedChannelUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_clone")] public static extern long UnsignedChannelUpdateClone(long _orig); // uint64_t UnsignedChannelUpdate_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_hash")] public static extern long UnsignedChannelUpdate_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_hash")] public static extern long UnsignedChannelUpdateHash(long _o); // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_eq")] public static extern bool UnsignedChannelUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_eq")] public static extern bool UnsignedChannelUpdateEq(long _a, long _b); // void ChannelUpdate_free(struct LDKChannelUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_free")] public static extern void ChannelUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_free")] public static extern void ChannelUpdateFree(long _this_obj); // struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_get_signature")] public static extern long ChannelUpdate_get_signature(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_get_signature")] public static extern long ChannelUpdateGetSignature(long _this_ptr); // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_set_signature")] public static extern void ChannelUpdate_set_signature(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_set_signature")] public static extern void ChannelUpdateSetSignature(long _this_ptr, long _val); // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_get_contents")] public static extern long ChannelUpdate_get_contents(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_get_contents")] public static extern long ChannelUpdateGetContents(long _this_ptr); // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_set_contents")] public static extern void ChannelUpdate_set_contents(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_set_contents")] public static extern void ChannelUpdateSetContents(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_new")] public static extern long ChannelUpdate_new(long _signature_arg, long _contents_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_new")] public static extern long ChannelUpdateNew(long _signature_arg, long _contents_arg); // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_clone_ptr")] public static extern long ChannelUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_clone_ptr")] public static extern long ChannelUpdateClonePtr(long _arg); // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_clone")] public static extern long ChannelUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_clone")] public static extern long ChannelUpdateClone(long _orig); // uint64_t ChannelUpdate_hash(const struct LDKChannelUpdate *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_hash")] public static extern long ChannelUpdate_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_hash")] public static extern long ChannelUpdateHash(long _o); // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_eq")] public static extern bool ChannelUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_eq")] public static extern bool ChannelUpdateEq(long _a, long _b); // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_free")] public static extern void QueryChannelRange_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_free")] public static extern void QueryChannelRangeFree(long _this_obj); // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_chain_hash")] public static extern long QueryChannelRange_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_chain_hash")] public static extern long QueryChannelRangeGetChainHash(long _this_ptr); // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_chain_hash")] public static extern void QueryChannelRange_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_chain_hash")] public static extern void QueryChannelRangeSetChainHash(long _this_ptr, long _val); // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_first_blocknum")] public static extern int QueryChannelRange_get_first_blocknum(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_first_blocknum")] public static extern int QueryChannelRangeGetFirstBlocknum(long _this_ptr); // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_first_blocknum")] public static extern void QueryChannelRange_set_first_blocknum(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_first_blocknum")] public static extern void QueryChannelRangeSetFirstBlocknum(long _this_ptr, int _val); // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_number_of_blocks")] public static extern int QueryChannelRange_get_number_of_blocks(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_get_number_of_blocks")] public static extern int QueryChannelRangeGetNumberOfBlocks(long _this_ptr); // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_number_of_blocks")] public static extern void QueryChannelRange_set_number_of_blocks(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_set_number_of_blocks")] public static extern void QueryChannelRangeSetNumberOfBlocks(long _this_ptr, int _val); // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_new")] public static extern long QueryChannelRange_new(long _chain_hash_arg, int _first_blocknum_arg, int _number_of_blocks_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_new")] public static extern long QueryChannelRangeNew(long _chain_hash_arg, int _first_blocknum_arg, int _number_of_blocks_arg); // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_clone_ptr")] public static extern long QueryChannelRange_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_clone_ptr")] public static extern long QueryChannelRangeClonePtr(long _arg); // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_clone")] public static extern long QueryChannelRange_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_clone")] public static extern long QueryChannelRangeClone(long _orig); // uint64_t QueryChannelRange_hash(const struct LDKQueryChannelRange *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_hash")] public static extern long QueryChannelRange_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_hash")] public static extern long QueryChannelRangeHash(long _o); // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_eq")] public static extern bool QueryChannelRange_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_eq")] public static extern bool QueryChannelRangeEq(long _a, long _b); // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_free")] public static extern void ReplyChannelRange_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_free")] public static extern void ReplyChannelRangeFree(long _this_obj); // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_chain_hash")] public static extern long ReplyChannelRange_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_chain_hash")] public static extern long ReplyChannelRangeGetChainHash(long _this_ptr); // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_chain_hash")] public static extern void ReplyChannelRange_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_chain_hash")] public static extern void ReplyChannelRangeSetChainHash(long _this_ptr, long _val); // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_first_blocknum")] public static extern int ReplyChannelRange_get_first_blocknum(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_first_blocknum")] public static extern int ReplyChannelRangeGetFirstBlocknum(long _this_ptr); // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_first_blocknum")] public static extern void ReplyChannelRange_set_first_blocknum(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_first_blocknum")] public static extern void ReplyChannelRangeSetFirstBlocknum(long _this_ptr, int _val); // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_number_of_blocks")] public static extern int ReplyChannelRange_get_number_of_blocks(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_number_of_blocks")] public static extern int ReplyChannelRangeGetNumberOfBlocks(long _this_ptr); // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_number_of_blocks")] public static extern void ReplyChannelRange_set_number_of_blocks(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_number_of_blocks")] public static extern void ReplyChannelRangeSetNumberOfBlocks(long _this_ptr, int _val); // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_sync_complete")] public static extern bool ReplyChannelRange_get_sync_complete(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_sync_complete")] public static extern bool ReplyChannelRangeGetSyncComplete(long _this_ptr); // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_sync_complete")] public static extern void ReplyChannelRange_set_sync_complete(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_sync_complete")] public static extern void ReplyChannelRangeSetSyncComplete(long _this_ptr, bool _val); // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_short_channel_ids")] public static extern long ReplyChannelRange_get_short_channel_ids(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_get_short_channel_ids")] public static extern long ReplyChannelRangeGetShortChannelIds(long _this_ptr); // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_short_channel_ids")] public static extern void ReplyChannelRange_set_short_channel_ids(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_set_short_channel_ids")] public static extern void ReplyChannelRangeSetShortChannelIds(long _this_ptr, long _val); // MUST_USE_RES struct LDKReplyChannelRange ReplyChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg, bool sync_complete_arg, struct LDKCVec_u64Z short_channel_ids_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_new")] public static extern long ReplyChannelRange_new(long _chain_hash_arg, int _first_blocknum_arg, int _number_of_blocks_arg, bool _sync_complete_arg, long _short_channel_ids_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_new")] public static extern long ReplyChannelRangeNew(long _chain_hash_arg, int _first_blocknum_arg, int _number_of_blocks_arg, bool _sync_complete_arg, long _short_channel_ids_arg); // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_clone_ptr")] public static extern long ReplyChannelRange_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_clone_ptr")] public static extern long ReplyChannelRangeClonePtr(long _arg); // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_clone")] public static extern long ReplyChannelRange_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_clone")] public static extern long ReplyChannelRangeClone(long _orig); // uint64_t ReplyChannelRange_hash(const struct LDKReplyChannelRange *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_hash")] public static extern long ReplyChannelRange_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_hash")] public static extern long ReplyChannelRangeHash(long _o); // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_eq")] public static extern bool ReplyChannelRange_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_eq")] public static extern bool ReplyChannelRangeEq(long _a, long _b); // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_free")] public static extern void QueryShortChannelIds_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_free")] public static extern void QueryShortChannelIdsFree(long _this_obj); // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_get_chain_hash")] public static extern long QueryShortChannelIds_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_get_chain_hash")] public static extern long QueryShortChannelIdsGetChainHash(long _this_ptr); // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_set_chain_hash")] public static extern void QueryShortChannelIds_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_set_chain_hash")] public static extern void QueryShortChannelIdsSetChainHash(long _this_ptr, long _val); // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_get_short_channel_ids")] public static extern long QueryShortChannelIds_get_short_channel_ids(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_get_short_channel_ids")] public static extern long QueryShortChannelIdsGetShortChannelIds(long _this_ptr); // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_set_short_channel_ids")] public static extern void QueryShortChannelIds_set_short_channel_ids(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_set_short_channel_ids")] public static extern void QueryShortChannelIdsSetShortChannelIds(long _this_ptr, long _val); // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_new")] public static extern long QueryShortChannelIds_new(long _chain_hash_arg, long _short_channel_ids_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_new")] public static extern long QueryShortChannelIdsNew(long _chain_hash_arg, long _short_channel_ids_arg); // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_clone_ptr")] public static extern long QueryShortChannelIds_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_clone_ptr")] public static extern long QueryShortChannelIdsClonePtr(long _arg); // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_clone")] public static extern long QueryShortChannelIds_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_clone")] public static extern long QueryShortChannelIdsClone(long _orig); // uint64_t QueryShortChannelIds_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_hash")] public static extern long QueryShortChannelIds_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_hash")] public static extern long QueryShortChannelIdsHash(long _o); // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_eq")] public static extern bool QueryShortChannelIds_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_eq")] public static extern bool QueryShortChannelIdsEq(long _a, long _b); // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_free")] public static extern void ReplyShortChannelIdsEnd_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_free")] public static extern void ReplyShortChannelIdsEndFree(long _this_obj); // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_get_chain_hash")] public static extern long ReplyShortChannelIdsEnd_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_get_chain_hash")] public static extern long ReplyShortChannelIdsEndGetChainHash(long _this_ptr); // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_set_chain_hash")] public static extern void ReplyShortChannelIdsEnd_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_set_chain_hash")] public static extern void ReplyShortChannelIdsEndSetChainHash(long _this_ptr, long _val); // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_get_full_information")] public static extern bool ReplyShortChannelIdsEnd_get_full_information(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_get_full_information")] public static extern bool ReplyShortChannelIdsEndGetFullInformation(long _this_ptr); // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_set_full_information")] public static extern void ReplyShortChannelIdsEnd_set_full_information(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_set_full_information")] public static extern void ReplyShortChannelIdsEndSetFullInformation(long _this_ptr, bool _val); // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_new")] public static extern long ReplyShortChannelIdsEnd_new(long _chain_hash_arg, bool _full_information_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_new")] public static extern long ReplyShortChannelIdsEndNew(long _chain_hash_arg, bool _full_information_arg); // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_clone_ptr")] public static extern long ReplyShortChannelIdsEnd_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_clone_ptr")] public static extern long ReplyShortChannelIdsEndClonePtr(long _arg); // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_clone")] public static extern long ReplyShortChannelIdsEnd_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_clone")] public static extern long ReplyShortChannelIdsEndClone(long _orig); // uint64_t ReplyShortChannelIdsEnd_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_hash")] public static extern long ReplyShortChannelIdsEnd_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_hash")] public static extern long ReplyShortChannelIdsEndHash(long _o); // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_eq")] public static extern bool ReplyShortChannelIdsEnd_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_eq")] public static extern bool ReplyShortChannelIdsEndEq(long _a, long _b); // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_free")] public static extern void GossipTimestampFilter_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_free")] public static extern void GossipTimestampFilterFree(long _this_obj); // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_chain_hash")] public static extern long GossipTimestampFilter_get_chain_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_chain_hash")] public static extern long GossipTimestampFilterGetChainHash(long _this_ptr); // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_chain_hash")] public static extern void GossipTimestampFilter_set_chain_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_chain_hash")] public static extern void GossipTimestampFilterSetChainHash(long _this_ptr, long _val); // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_first_timestamp")] public static extern int GossipTimestampFilter_get_first_timestamp(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_first_timestamp")] public static extern int GossipTimestampFilterGetFirstTimestamp(long _this_ptr); // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_first_timestamp")] public static extern void GossipTimestampFilter_set_first_timestamp(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_first_timestamp")] public static extern void GossipTimestampFilterSetFirstTimestamp(long _this_ptr, int _val); // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_timestamp_range")] public static extern int GossipTimestampFilter_get_timestamp_range(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_get_timestamp_range")] public static extern int GossipTimestampFilterGetTimestampRange(long _this_ptr); // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_timestamp_range")] public static extern void GossipTimestampFilter_set_timestamp_range(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_set_timestamp_range")] public static extern void GossipTimestampFilterSetTimestampRange(long _this_ptr, int _val); // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_new")] public static extern long GossipTimestampFilter_new(long _chain_hash_arg, int _first_timestamp_arg, int _timestamp_range_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_new")] public static extern long GossipTimestampFilterNew(long _chain_hash_arg, int _first_timestamp_arg, int _timestamp_range_arg); // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_clone_ptr")] public static extern long GossipTimestampFilter_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_clone_ptr")] public static extern long GossipTimestampFilterClonePtr(long _arg); // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_clone")] public static extern long GossipTimestampFilter_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_clone")] public static extern long GossipTimestampFilterClone(long _orig); // uint64_t GossipTimestampFilter_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_hash")] public static extern long GossipTimestampFilter_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_hash")] public static extern long GossipTimestampFilterHash(long _o); // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_eq")] public static extern bool GossipTimestampFilter_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_eq")] public static extern bool GossipTimestampFilterEq(long _a, long _b); // void ErrorAction_free(struct LDKErrorAction this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_free")] public static extern void ErrorAction_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_free")] public static extern void ErrorActionFree(long _this_ptr); // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_clone_ptr")] public static extern long ErrorAction_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_clone_ptr")] public static extern long ErrorActionClonePtr(long _arg); // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_clone")] public static extern long ErrorAction_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_clone")] public static extern long ErrorActionClone(long _orig); // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_disconnect_peer")] public static extern long ErrorAction_disconnect_peer(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_disconnect_peer")] public static extern long ErrorActionDisconnectPeer(long _msg); // struct LDKErrorAction ErrorAction_disconnect_peer_with_warning(struct LDKWarningMessage msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_disconnect_peer_with_warning")] public static extern long ErrorAction_disconnect_peer_with_warning(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_disconnect_peer_with_warning")] public static extern long ErrorActionDisconnectPeerWithWarning(long _msg); // struct LDKErrorAction ErrorAction_ignore_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_error")] public static extern long ErrorAction_ignore_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_error")] public static extern long ErrorActionIgnoreError(); // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_and_log")] public static extern long ErrorAction_ignore_and_log(Level _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_and_log")] public static extern long ErrorActionIgnoreAndLog(Level _a); // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_duplicate_gossip")] public static extern long ErrorAction_ignore_duplicate_gossip(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_ignore_duplicate_gossip")] public static extern long ErrorActionIgnoreDuplicateGossip(); // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_send_error_message")] public static extern long ErrorAction_send_error_message(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_send_error_message")] public static extern long ErrorActionSendErrorMessage(long _msg); // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_send_warning_message")] public static extern long ErrorAction_send_warning_message(long _msg, Level _log_level); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_send_warning_message")] public static extern long ErrorActionSendWarningMessage(long _msg, Level _log_level); // uint64_t ErrorAction_hash(const struct LDKErrorAction *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_hash")] public static extern long ErrorAction_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorAction_hash")] public static extern long ErrorActionHash(long _o); // void LightningError_free(struct LDKLightningError this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_free")] public static extern void LightningError_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_free")] public static extern void LightningErrorFree(long _this_obj); // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_get_err")] public static extern long LightningError_get_err(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_get_err")] public static extern long LightningErrorGetErr(long _this_ptr); // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_set_err")] public static extern void LightningError_set_err(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_set_err")] public static extern void LightningErrorSetErr(long _this_ptr, long _val); // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_get_action")] public static extern long LightningError_get_action(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_get_action")] public static extern long LightningErrorGetAction(long _this_ptr); // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_set_action")] public static extern void LightningError_set_action(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_set_action")] public static extern void LightningErrorSetAction(long _this_ptr, long _val); // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_new")] public static extern long LightningError_new(long _err_arg, long _action_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_new")] public static extern long LightningErrorNew(long _err_arg, long _action_arg); // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_clone_ptr")] public static extern long LightningError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_clone_ptr")] public static extern long LightningErrorClonePtr(long _arg); // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_clone")] public static extern long LightningError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LightningError_clone")] public static extern long LightningErrorClone(long _orig); // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_free")] public static extern void CommitmentUpdate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_free")] public static extern void CommitmentUpdateFree(long _this_obj); // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_add_htlcs")] public static extern long CommitmentUpdate_get_update_add_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_add_htlcs")] public static extern long CommitmentUpdateGetUpdateAddHtlcs(long _this_ptr); // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_add_htlcs")] public static extern void CommitmentUpdate_set_update_add_htlcs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_add_htlcs")] public static extern void CommitmentUpdateSetUpdateAddHtlcs(long _this_ptr, long _val); // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fulfill_htlcs")] public static extern long CommitmentUpdate_get_update_fulfill_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fulfill_htlcs")] public static extern long CommitmentUpdateGetUpdateFulfillHtlcs(long _this_ptr); // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fulfill_htlcs")] public static extern void CommitmentUpdate_set_update_fulfill_htlcs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fulfill_htlcs")] public static extern void CommitmentUpdateSetUpdateFulfillHtlcs(long _this_ptr, long _val); // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fail_htlcs")] public static extern long CommitmentUpdate_get_update_fail_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fail_htlcs")] public static extern long CommitmentUpdateGetUpdateFailHtlcs(long _this_ptr); // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fail_htlcs")] public static extern void CommitmentUpdate_set_update_fail_htlcs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fail_htlcs")] public static extern void CommitmentUpdateSetUpdateFailHtlcs(long _this_ptr, long _val); // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fail_malformed_htlcs")] public static extern long CommitmentUpdate_get_update_fail_malformed_htlcs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fail_malformed_htlcs")] public static extern long CommitmentUpdateGetUpdateFailMalformedHtlcs(long _this_ptr); // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fail_malformed_htlcs")] public static extern void CommitmentUpdate_set_update_fail_malformed_htlcs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fail_malformed_htlcs")] public static extern void CommitmentUpdateSetUpdateFailMalformedHtlcs(long _this_ptr, long _val); // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fee")] public static extern long CommitmentUpdate_get_update_fee(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_update_fee")] public static extern long CommitmentUpdateGetUpdateFee(long _this_ptr); // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fee")] public static extern void CommitmentUpdate_set_update_fee(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_update_fee")] public static extern void CommitmentUpdateSetUpdateFee(long _this_ptr, long _val); // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_commitment_signed")] public static extern long CommitmentUpdate_get_commitment_signed(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_get_commitment_signed")] public static extern long CommitmentUpdateGetCommitmentSigned(long _this_ptr); // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_commitment_signed")] public static extern void CommitmentUpdate_set_commitment_signed(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_set_commitment_signed")] public static extern void CommitmentUpdateSetCommitmentSigned(long _this_ptr, long _val); // MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_new")] public static extern long CommitmentUpdate_new(long _update_add_htlcs_arg, long _update_fulfill_htlcs_arg, long _update_fail_htlcs_arg, long _update_fail_malformed_htlcs_arg, long _update_fee_arg, long _commitment_signed_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_new")] public static extern long CommitmentUpdateNew(long _update_add_htlcs_arg, long _update_fulfill_htlcs_arg, long _update_fail_htlcs_arg, long _update_fail_malformed_htlcs_arg, long _update_fee_arg, long _commitment_signed_arg); // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_clone_ptr")] public static extern long CommitmentUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_clone_ptr")] public static extern long CommitmentUpdateClonePtr(long _arg); // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_clone")] public static extern long CommitmentUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_clone")] public static extern long CommitmentUpdateClone(long _orig); // uint64_t CommitmentUpdate_hash(const struct LDKCommitmentUpdate *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_hash")] public static extern long CommitmentUpdate_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_hash")] public static extern long CommitmentUpdateHash(long _o); // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_eq")] public static extern bool CommitmentUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentUpdate_eq")] public static extern bool CommitmentUpdateEq(long _a, long _b); // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_free")] public static extern void ChannelMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelMessageHandler_free")] public static extern void ChannelMessageHandlerFree(long _this_ptr); // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_free")] public static extern void RoutingMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingMessageHandler_free")] public static extern void RoutingMessageHandlerFree(long _this_ptr); // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_free")] public static extern void OnionMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageHandler_free")] public static extern void OnionMessageHandlerFree(long _this_ptr); // void FinalOnionHopData_free(struct LDKFinalOnionHopData this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_free")] public static extern void FinalOnionHopData_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_free")] public static extern void FinalOnionHopDataFree(long _this_obj); // const uint8_t (*FinalOnionHopData_get_payment_secret(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_get_payment_secret")] public static extern long FinalOnionHopData_get_payment_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_get_payment_secret")] public static extern long FinalOnionHopDataGetPaymentSecret(long _this_ptr); // void FinalOnionHopData_set_payment_secret(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_set_payment_secret")] public static extern void FinalOnionHopData_set_payment_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_set_payment_secret")] public static extern void FinalOnionHopDataSetPaymentSecret(long _this_ptr, long _val); // uint64_t FinalOnionHopData_get_total_msat(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_get_total_msat")] public static extern long FinalOnionHopData_get_total_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_get_total_msat")] public static extern long FinalOnionHopDataGetTotalMsat(long _this_ptr); // void FinalOnionHopData_set_total_msat(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_set_total_msat")] public static extern void FinalOnionHopData_set_total_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_set_total_msat")] public static extern void FinalOnionHopDataSetTotalMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKFinalOnionHopData FinalOnionHopData_new(struct LDKThirtyTwoBytes payment_secret_arg, uint64_t total_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_new")] public static extern long FinalOnionHopData_new(long _payment_secret_arg, long _total_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_new")] public static extern long FinalOnionHopDataNew(long _payment_secret_arg, long _total_msat_arg); // uint64_t FinalOnionHopData_clone_ptr(LDKFinalOnionHopData *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_clone_ptr")] public static extern long FinalOnionHopData_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_clone_ptr")] public static extern long FinalOnionHopDataClonePtr(long _arg); // struct LDKFinalOnionHopData FinalOnionHopData_clone(const struct LDKFinalOnionHopData *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_clone")] public static extern long FinalOnionHopData_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_clone")] public static extern long FinalOnionHopDataClone(long _orig); // void OnionPacket_free(struct LDKOnionPacket this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_free")] public static extern void OnionPacket_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_free")] public static extern void OnionPacketFree(long _this_obj); // uint8_t OnionPacket_get_version(const struct LDKOnionPacket *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_version")] public static extern byte OnionPacket_get_version(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_version")] public static extern byte OnionPacketGetVersion(long _this_ptr); // void OnionPacket_set_version(struct LDKOnionPacket *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_version")] public static extern void OnionPacket_set_version(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_version")] public static extern void OnionPacketSetVersion(long _this_ptr, byte _val); // struct LDKCResult_PublicKeySecp256k1ErrorZ OnionPacket_get_public_key(const struct LDKOnionPacket *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_public_key")] public static extern long OnionPacket_get_public_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_public_key")] public static extern long OnionPacketGetPublicKey(long _this_ptr); // void OnionPacket_set_public_key(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKCResult_PublicKeySecp256k1ErrorZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_public_key")] public static extern void OnionPacket_set_public_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_public_key")] public static extern void OnionPacketSetPublicKey(long _this_ptr, long _val); // const uint8_t (*OnionPacket_get_hmac(const struct LDKOnionPacket *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_hmac")] public static extern long OnionPacket_get_hmac(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_get_hmac")] public static extern long OnionPacketGetHmac(long _this_ptr); // void OnionPacket_set_hmac(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_hmac")] public static extern void OnionPacket_set_hmac(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_set_hmac")] public static extern void OnionPacketSetHmac(long _this_ptr, long _val); // uint64_t OnionPacket_clone_ptr(LDKOnionPacket *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_clone_ptr")] public static extern long OnionPacket_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_clone_ptr")] public static extern long OnionPacketClonePtr(long _arg); // struct LDKOnionPacket OnionPacket_clone(const struct LDKOnionPacket *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_clone")] public static extern long OnionPacket_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_clone")] public static extern long OnionPacketClone(long _orig); // uint64_t OnionPacket_hash(const struct LDKOnionPacket *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_hash")] public static extern long OnionPacket_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_hash")] public static extern long OnionPacketHash(long _o); // bool OnionPacket_eq(const struct LDKOnionPacket *NONNULL_PTR a, const struct LDKOnionPacket *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_eq")] public static extern bool OnionPacket_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_eq")] public static extern bool OnionPacketEq(long _a, long _b); // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_write")] public static extern long AcceptChannel_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_write")] public static extern long AcceptChannelWrite(long _obj); // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_read")] public static extern long AcceptChannel_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannel_read")] public static extern long AcceptChannelRead(long _ser); // struct LDKCVec_u8Z AcceptChannelV2_write(const struct LDKAcceptChannelV2 *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_write")] public static extern long AcceptChannelV2_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_write")] public static extern long AcceptChannelV2Write(long _obj); // struct LDKCResult_AcceptChannelV2DecodeErrorZ AcceptChannelV2_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_read")] public static extern long AcceptChannelV2_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AcceptChannelV2_read")] public static extern long AcceptChannelV2Read(long _ser); // struct LDKCVec_u8Z Stfu_write(const struct LDKStfu *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_write")] public static extern long Stfu_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_write")] public static extern long StfuWrite(long _obj); // struct LDKCResult_StfuDecodeErrorZ Stfu_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_read")] public static extern long Stfu_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Stfu_read")] public static extern long StfuRead(long _ser); // struct LDKCVec_u8Z Splice_write(const struct LDKSplice *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_write")] public static extern long Splice_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_write")] public static extern long SpliceWrite(long _obj); // struct LDKCResult_SpliceDecodeErrorZ Splice_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_read")] public static extern long Splice_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Splice_read")] public static extern long SpliceRead(long _ser); // struct LDKCVec_u8Z SpliceAck_write(const struct LDKSpliceAck *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_write")] public static extern long SpliceAck_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_write")] public static extern long SpliceAckWrite(long _obj); // struct LDKCResult_SpliceAckDecodeErrorZ SpliceAck_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_read")] public static extern long SpliceAck_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceAck_read")] public static extern long SpliceAckRead(long _ser); // struct LDKCVec_u8Z SpliceLocked_write(const struct LDKSpliceLocked *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_write")] public static extern long SpliceLocked_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_write")] public static extern long SpliceLockedWrite(long _obj); // struct LDKCResult_SpliceLockedDecodeErrorZ SpliceLocked_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_read")] public static extern long SpliceLocked_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpliceLocked_read")] public static extern long SpliceLockedRead(long _ser); // struct LDKCVec_u8Z TxAddInput_write(const struct LDKTxAddInput *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_write")] public static extern long TxAddInput_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_write")] public static extern long TxAddInputWrite(long _obj); // struct LDKCResult_TxAddInputDecodeErrorZ TxAddInput_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_read")] public static extern long TxAddInput_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddInput_read")] public static extern long TxAddInputRead(long _ser); // struct LDKCVec_u8Z TxAddOutput_write(const struct LDKTxAddOutput *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_write")] public static extern long TxAddOutput_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_write")] public static extern long TxAddOutputWrite(long _obj); // struct LDKCResult_TxAddOutputDecodeErrorZ TxAddOutput_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_read")] public static extern long TxAddOutput_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAddOutput_read")] public static extern long TxAddOutputRead(long _ser); // struct LDKCVec_u8Z TxRemoveInput_write(const struct LDKTxRemoveInput *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_write")] public static extern long TxRemoveInput_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_write")] public static extern long TxRemoveInputWrite(long _obj); // struct LDKCResult_TxRemoveInputDecodeErrorZ TxRemoveInput_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_read")] public static extern long TxRemoveInput_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveInput_read")] public static extern long TxRemoveInputRead(long _ser); // struct LDKCVec_u8Z TxRemoveOutput_write(const struct LDKTxRemoveOutput *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_write")] public static extern long TxRemoveOutput_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_write")] public static extern long TxRemoveOutputWrite(long _obj); // struct LDKCResult_TxRemoveOutputDecodeErrorZ TxRemoveOutput_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_read")] public static extern long TxRemoveOutput_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxRemoveOutput_read")] public static extern long TxRemoveOutputRead(long _ser); // struct LDKCVec_u8Z TxComplete_write(const struct LDKTxComplete *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_write")] public static extern long TxComplete_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_write")] public static extern long TxCompleteWrite(long _obj); // struct LDKCResult_TxCompleteDecodeErrorZ TxComplete_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_read")] public static extern long TxComplete_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxComplete_read")] public static extern long TxCompleteRead(long _ser); // struct LDKCVec_u8Z TxSignatures_write(const struct LDKTxSignatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_write")] public static extern long TxSignatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_write")] public static extern long TxSignaturesWrite(long _obj); // struct LDKCResult_TxSignaturesDecodeErrorZ TxSignatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_read")] public static extern long TxSignatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxSignatures_read")] public static extern long TxSignaturesRead(long _ser); // struct LDKCVec_u8Z TxInitRbf_write(const struct LDKTxInitRbf *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_write")] public static extern long TxInitRbf_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_write")] public static extern long TxInitRbfWrite(long _obj); // struct LDKCResult_TxInitRbfDecodeErrorZ TxInitRbf_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_read")] public static extern long TxInitRbf_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxInitRbf_read")] public static extern long TxInitRbfRead(long _ser); // struct LDKCVec_u8Z TxAckRbf_write(const struct LDKTxAckRbf *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_write")] public static extern long TxAckRbf_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_write")] public static extern long TxAckRbfWrite(long _obj); // struct LDKCResult_TxAckRbfDecodeErrorZ TxAckRbf_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_read")] public static extern long TxAckRbf_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAckRbf_read")] public static extern long TxAckRbfRead(long _ser); // struct LDKCVec_u8Z TxAbort_write(const struct LDKTxAbort *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_write")] public static extern long TxAbort_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_write")] public static extern long TxAbortWrite(long _obj); // struct LDKCResult_TxAbortDecodeErrorZ TxAbort_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_read")] public static extern long TxAbort_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxAbort_read")] public static extern long TxAbortRead(long _ser); // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_write")] public static extern long AnnouncementSignatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_write")] public static extern long AnnouncementSignaturesWrite(long _obj); // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_read")] public static extern long AnnouncementSignatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnnouncementSignatures_read")] public static extern long AnnouncementSignaturesRead(long _ser); // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_write")] public static extern long ChannelReestablish_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_write")] public static extern long ChannelReestablishWrite(long _obj); // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_read")] public static extern long ChannelReestablish_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReestablish_read")] public static extern long ChannelReestablishRead(long _ser); // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_write")] public static extern long ClosingSigned_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_write")] public static extern long ClosingSignedWrite(long _obj); // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_read")] public static extern long ClosingSigned_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSigned_read")] public static extern long ClosingSignedRead(long _ser); // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_write")] public static extern long ClosingSignedFeeRange_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_write")] public static extern long ClosingSignedFeeRangeWrite(long _obj); // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_read")] public static extern long ClosingSignedFeeRange_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingSignedFeeRange_read")] public static extern long ClosingSignedFeeRangeRead(long _ser); // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_write")] public static extern long CommitmentSigned_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_write")] public static extern long CommitmentSignedWrite(long _obj); // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_read")] public static extern long CommitmentSigned_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentSigned_read")] public static extern long CommitmentSignedRead(long _ser); // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_write")] public static extern long FundingCreated_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_write")] public static extern long FundingCreatedWrite(long _obj); // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_read")] public static extern long FundingCreated_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingCreated_read")] public static extern long FundingCreatedRead(long _ser); // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_write")] public static extern long FundingSigned_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_write")] public static extern long FundingSignedWrite(long _obj); // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_read")] public static extern long FundingSigned_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FundingSigned_read")] public static extern long FundingSignedRead(long _ser); // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_write")] public static extern long ChannelReady_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_write")] public static extern long ChannelReadyWrite(long _obj); // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_read")] public static extern long ChannelReady_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelReady_read")] public static extern long ChannelReadyRead(long _ser); // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_write")] public static extern long Init_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_write")] public static extern long InitWrite(long _obj); // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_read")] public static extern long Init_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Init_read")] public static extern long InitRead(long _ser); // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_write")] public static extern long OpenChannel_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_write")] public static extern long OpenChannelWrite(long _obj); // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_read")] public static extern long OpenChannel_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannel_read")] public static extern long OpenChannelRead(long _ser); // struct LDKCVec_u8Z OpenChannelV2_write(const struct LDKOpenChannelV2 *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_write")] public static extern long OpenChannelV2_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_write")] public static extern long OpenChannelV2Write(long _obj); // struct LDKCResult_OpenChannelV2DecodeErrorZ OpenChannelV2_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_read")] public static extern long OpenChannelV2_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OpenChannelV2_read")] public static extern long OpenChannelV2Read(long _ser); // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_write")] public static extern long RevokeAndACK_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_write")] public static extern long RevokeAndACKWrite(long _obj); // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_read")] public static extern long RevokeAndACK_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RevokeAndACK_read")] public static extern long RevokeAndACKRead(long _ser); // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_write")] public static extern long Shutdown_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_write")] public static extern long ShutdownWrite(long _obj); // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_read")] public static extern long Shutdown_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Shutdown_read")] public static extern long ShutdownRead(long _ser); // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_write")] public static extern long UpdateFailHTLC_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_write")] public static extern long UpdateFailHTLCWrite(long _obj); // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_read")] public static extern long UpdateFailHTLC_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailHTLC_read")] public static extern long UpdateFailHTLCRead(long _ser); // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_write")] public static extern long UpdateFailMalformedHTLC_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_write")] public static extern long UpdateFailMalformedHTLCWrite(long _obj); // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_read")] public static extern long UpdateFailMalformedHTLC_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFailMalformedHTLC_read")] public static extern long UpdateFailMalformedHTLCRead(long _ser); // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_write")] public static extern long UpdateFee_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_write")] public static extern long UpdateFeeWrite(long _obj); // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_read")] public static extern long UpdateFee_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFee_read")] public static extern long UpdateFeeRead(long _ser); // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_write")] public static extern long UpdateFulfillHTLC_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_write")] public static extern long UpdateFulfillHTLCWrite(long _obj); // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_read")] public static extern long UpdateFulfillHTLC_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateFulfillHTLC_read")] public static extern long UpdateFulfillHTLCRead(long _ser); // struct LDKCVec_u8Z OnionPacket_write(const struct LDKOnionPacket *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_write")] public static extern long OnionPacket_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_write")] public static extern long OnionPacketWrite(long _obj); // struct LDKCResult_OnionPacketDecodeErrorZ OnionPacket_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_read")] public static extern long OnionPacket_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionPacket_read")] public static extern long OnionPacketRead(long _ser); // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_write")] public static extern long UpdateAddHTLC_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_write")] public static extern long UpdateAddHTLCWrite(long _obj); // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_read")] public static extern long UpdateAddHTLC_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UpdateAddHTLC_read")] public static extern long UpdateAddHTLCRead(long _ser); // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_read")] public static extern long OnionMessage_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_read")] public static extern long OnionMessageRead(long _ser); // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_write")] public static extern long OnionMessage_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessage_write")] public static extern long OnionMessageWrite(long _obj); // struct LDKCVec_u8Z FinalOnionHopData_write(const struct LDKFinalOnionHopData *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_write")] public static extern long FinalOnionHopData_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_write")] public static extern long FinalOnionHopDataWrite(long _obj); // struct LDKCResult_FinalOnionHopDataDecodeErrorZ FinalOnionHopData_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_read")] public static extern long FinalOnionHopData_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FinalOnionHopData_read")] public static extern long FinalOnionHopDataRead(long _ser); // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_write")] public static extern long Ping_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_write")] public static extern long PingWrite(long _obj); // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_read")] public static extern long Ping_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Ping_read")] public static extern long PingRead(long _ser); // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_write")] public static extern long Pong_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_write")] public static extern long PongWrite(long _obj); // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_read")] public static extern long Pong_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Pong_read")] public static extern long PongRead(long _ser); // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_write")] public static extern long UnsignedChannelAnnouncement_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_write")] public static extern long UnsignedChannelAnnouncementWrite(long _obj); // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_read")] public static extern long UnsignedChannelAnnouncement_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelAnnouncement_read")] public static extern long UnsignedChannelAnnouncementRead(long _ser); // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_write")] public static extern long ChannelAnnouncement_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_write")] public static extern long ChannelAnnouncementWrite(long _obj); // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_read")] public static extern long ChannelAnnouncement_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelAnnouncement_read")] public static extern long ChannelAnnouncementRead(long _ser); // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_write")] public static extern long UnsignedChannelUpdate_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_write")] public static extern long UnsignedChannelUpdateWrite(long _obj); // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_read")] public static extern long UnsignedChannelUpdate_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedChannelUpdate_read")] public static extern long UnsignedChannelUpdateRead(long _ser); // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_write")] public static extern long ChannelUpdate_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_write")] public static extern long ChannelUpdateWrite(long _obj); // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_read")] public static extern long ChannelUpdate_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdate_read")] public static extern long ChannelUpdateRead(long _ser); // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_write")] public static extern long ErrorMessage_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_write")] public static extern long ErrorMessageWrite(long _obj); // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_read")] public static extern long ErrorMessage_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErrorMessage_read")] public static extern long ErrorMessageRead(long _ser); // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_write")] public static extern long WarningMessage_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_write")] public static extern long WarningMessageWrite(long _obj); // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_read")] public static extern long WarningMessage_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WarningMessage_read")] public static extern long WarningMessageRead(long _ser); // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_write")] public static extern long UnsignedNodeAnnouncement_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_write")] public static extern long UnsignedNodeAnnouncementWrite(long _obj); // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_read")] public static extern long UnsignedNodeAnnouncement_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedNodeAnnouncement_read")] public static extern long UnsignedNodeAnnouncementRead(long _ser); // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_write")] public static extern long NodeAnnouncement_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_write")] public static extern long NodeAnnouncementWrite(long _obj); // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_read")] public static extern long NodeAnnouncement_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncement_read")] public static extern long NodeAnnouncementRead(long _ser); // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_read")] public static extern long QueryShortChannelIds_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_read")] public static extern long QueryShortChannelIdsRead(long _ser); // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_write")] public static extern long QueryShortChannelIds_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryShortChannelIds_write")] public static extern long QueryShortChannelIdsWrite(long _obj); // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_write")] public static extern long ReplyShortChannelIdsEnd_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_write")] public static extern long ReplyShortChannelIdsEndWrite(long _obj); // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_read")] public static extern long ReplyShortChannelIdsEnd_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyShortChannelIdsEnd_read")] public static extern long ReplyShortChannelIdsEndRead(long _ser); // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_end_blocknum")] public static extern int QueryChannelRange_end_blocknum(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_end_blocknum")] public static extern int QueryChannelRangeEndBlocknum(long _this_arg); // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_write")] public static extern long QueryChannelRange_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_write")] public static extern long QueryChannelRangeWrite(long _obj); // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_read")] public static extern long QueryChannelRange_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_QueryChannelRange_read")] public static extern long QueryChannelRangeRead(long _ser); // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_read")] public static extern long ReplyChannelRange_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_read")] public static extern long ReplyChannelRangeRead(long _ser); // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_write")] public static extern long ReplyChannelRange_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReplyChannelRange_write")] public static extern long ReplyChannelRangeWrite(long _obj); // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_write")] public static extern long GossipTimestampFilter_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_write")] public static extern long GossipTimestampFilterWrite(long _obj); // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_read")] public static extern long GossipTimestampFilter_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipTimestampFilter_read")] public static extern long GossipTimestampFilterRead(long _ser); // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_free")] public static extern void CustomMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageHandler_free")] public static extern void CustomMessageHandlerFree(long _this_ptr); // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_free")] public static extern void IgnoringMessageHandler_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_free")] public static extern void IgnoringMessageHandlerFree(long _this_obj); // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_new")] public static extern long IgnoringMessageHandler_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_new")] public static extern long IgnoringMessageHandlerNew(); // struct LDKEventsProvider IgnoringMessageHandler_as_EventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_EventsProvider")] public static extern long IgnoringMessageHandler_as_EventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_EventsProvider")] public static extern long IgnoringMessageHandlerAsEventsProvider(long _this_arg); // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_MessageSendEventsProvider")] public static extern long IgnoringMessageHandler_as_MessageSendEventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_MessageSendEventsProvider")] public static extern long IgnoringMessageHandlerAsMessageSendEventsProvider(long _this_arg); // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_RoutingMessageHandler")] public static extern long IgnoringMessageHandler_as_RoutingMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_RoutingMessageHandler")] public static extern long IgnoringMessageHandlerAsRoutingMessageHandler(long _this_arg); // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_OnionMessageHandler")] public static extern long IgnoringMessageHandler_as_OnionMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_OnionMessageHandler")] public static extern long IgnoringMessageHandlerAsOnionMessageHandler(long _this_arg); // struct LDKOffersMessageHandler IgnoringMessageHandler_as_OffersMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_OffersMessageHandler")] public static extern long IgnoringMessageHandler_as_OffersMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_OffersMessageHandler")] public static extern long IgnoringMessageHandlerAsOffersMessageHandler(long _this_arg); // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomOnionMessageHandler")] public static extern long IgnoringMessageHandler_as_CustomOnionMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomOnionMessageHandler")] public static extern long IgnoringMessageHandlerAsCustomOnionMessageHandler(long _this_arg); // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomMessageReader")] public static extern long IgnoringMessageHandler_as_CustomMessageReader(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomMessageReader")] public static extern long IgnoringMessageHandlerAsCustomMessageReader(long _this_arg); // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomMessageHandler")] public static extern long IgnoringMessageHandler_as_CustomMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_IgnoringMessageHandler_as_CustomMessageHandler")] public static extern long IgnoringMessageHandlerAsCustomMessageHandler(long _this_arg); // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_free")] public static extern void ErroringMessageHandler_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_free")] public static extern void ErroringMessageHandlerFree(long _this_obj); // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_new")] public static extern long ErroringMessageHandler_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_new")] public static extern long ErroringMessageHandlerNew(); // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_as_MessageSendEventsProvider")] public static extern long ErroringMessageHandler_as_MessageSendEventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_as_MessageSendEventsProvider")] public static extern long ErroringMessageHandlerAsMessageSendEventsProvider(long _this_arg); // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_as_ChannelMessageHandler")] public static extern long ErroringMessageHandler_as_ChannelMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroringMessageHandler_as_ChannelMessageHandler")] public static extern long ErroringMessageHandlerAsChannelMessageHandler(long _this_arg); // void MessageHandler_free(struct LDKMessageHandler this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_free")] public static extern void MessageHandler_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_free")] public static extern void MessageHandlerFree(long _this_obj); // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_chan_handler")] public static extern long MessageHandler_get_chan_handler(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_chan_handler")] public static extern long MessageHandlerGetChanHandler(long _this_ptr); // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_chan_handler")] public static extern void MessageHandler_set_chan_handler(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_chan_handler")] public static extern void MessageHandlerSetChanHandler(long _this_ptr, long _val); // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_route_handler")] public static extern long MessageHandler_get_route_handler(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_route_handler")] public static extern long MessageHandlerGetRouteHandler(long _this_ptr); // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_route_handler")] public static extern void MessageHandler_set_route_handler(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_route_handler")] public static extern void MessageHandlerSetRouteHandler(long _this_ptr, long _val); // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_onion_message_handler")] public static extern long MessageHandler_get_onion_message_handler(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_onion_message_handler")] public static extern long MessageHandlerGetOnionMessageHandler(long _this_ptr); // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_onion_message_handler")] public static extern void MessageHandler_set_onion_message_handler(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_onion_message_handler")] public static extern void MessageHandlerSetOnionMessageHandler(long _this_ptr, long _val); // const struct LDKCustomMessageHandler *MessageHandler_get_custom_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_custom_message_handler")] public static extern long MessageHandler_get_custom_message_handler(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_get_custom_message_handler")] public static extern long MessageHandlerGetCustomMessageHandler(long _this_ptr); // void MessageHandler_set_custom_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKCustomMessageHandler val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_custom_message_handler")] public static extern void MessageHandler_set_custom_message_handler(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_set_custom_message_handler")] public static extern void MessageHandlerSetCustomMessageHandler(long _this_ptr, long _val); // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg, struct LDKOnionMessageHandler onion_message_handler_arg, struct LDKCustomMessageHandler custom_message_handler_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_new")] public static extern long MessageHandler_new(long _chan_handler_arg, long _route_handler_arg, long _onion_message_handler_arg, long _custom_message_handler_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageHandler_new")] public static extern long MessageHandlerNew(long _chan_handler_arg, long _route_handler_arg, long _onion_message_handler_arg, long _custom_message_handler_arg); // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_clone_ptr")] public static extern long SocketDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_clone_ptr")] public static extern long SocketDescriptorClonePtr(long _arg); // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_clone")] public static extern long SocketDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_clone")] public static extern long SocketDescriptorClone(long _orig); // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_free")] public static extern void SocketDescriptor_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SocketDescriptor_free")] public static extern void SocketDescriptorFree(long _this_ptr); // void PeerHandleError_free(struct LDKPeerHandleError this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_free")] public static extern void PeerHandleError_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_free")] public static extern void PeerHandleErrorFree(long _this_obj); // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_new")] public static extern long PeerHandleError_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_new")] public static extern long PeerHandleErrorNew(); // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_clone_ptr")] public static extern long PeerHandleError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_clone_ptr")] public static extern long PeerHandleErrorClonePtr(long _arg); // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_clone")] public static extern long PeerHandleError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerHandleError_clone")] public static extern long PeerHandleErrorClone(long _orig); // void PeerManager_free(struct LDKPeerManager this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_free")] public static extern void PeerManager_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_free")] public static extern void PeerManagerFree(long _this_obj); // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, uint32_t current_time, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger, struct LDKNodeSigner node_signer); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new")] public static extern long PeerManager_new(long _message_handler, int _current_time, long _ephemeral_random_data, long _logger, long _node_signer); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new")] public static extern long PeerManagerNew(long _message_handler, int _current_time, long _ephemeral_random_data, long _logger, long _node_signer); // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_get_peer_node_ids")] public static extern long PeerManager_get_peer_node_ids(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_get_peer_node_ids")] public static extern long PeerManagerGetPeerNodeIds(long _this_arg); // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new_outbound_connection")] public static extern long PeerManager_new_outbound_connection(long _this_arg, long _their_node_id, long _descriptor, long _remote_network_address); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new_outbound_connection")] public static extern long PeerManagerNewOutboundConnection(long _this_arg, long _their_node_id, long _descriptor, long _remote_network_address); // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new_inbound_connection")] public static extern long PeerManager_new_inbound_connection(long _this_arg, long _descriptor, long _remote_network_address); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_new_inbound_connection")] public static extern long PeerManagerNewInboundConnection(long _this_arg, long _descriptor, long _remote_network_address); // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_write_buffer_space_avail")] public static extern long PeerManager_write_buffer_space_avail(long _this_arg, long _descriptor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_write_buffer_space_avail")] public static extern long PeerManagerWriteBufferSpaceAvail(long _this_arg, long _descriptor); // MUST_USE_RES struct LDKCResult_boolPeerHandleErrorZ PeerManager_read_event(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR peer_descriptor, struct LDKu8slice data); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_read_event")] public static extern long PeerManager_read_event(long _this_arg, long _peer_descriptor, long _data); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_read_event")] public static extern long PeerManagerReadEvent(long _this_arg, long _peer_descriptor, long _data); // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_process_events")] public static extern void PeerManager_process_events(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_process_events")] public static extern void PeerManagerProcessEvents(long _this_arg); // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_socket_disconnected")] public static extern void PeerManager_socket_disconnected(long _this_arg, long _descriptor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_socket_disconnected")] public static extern void PeerManagerSocketDisconnected(long _this_arg, long _descriptor); // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_disconnect_by_node_id")] public static extern void PeerManager_disconnect_by_node_id(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_disconnect_by_node_id")] public static extern void PeerManagerDisconnectByNodeId(long _this_arg, long _node_id); // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_disconnect_all_peers")] public static extern void PeerManager_disconnect_all_peers(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_disconnect_all_peers")] public static extern void PeerManagerDisconnectAllPeers(long _this_arg); // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_timer_tick_occurred")] public static extern void PeerManager_timer_tick_occurred(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_timer_tick_occurred")] public static extern void PeerManagerTimerTickOccurred(long _this_arg); // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_broadcast_node_announcement")] public static extern void PeerManager_broadcast_node_announcement(long _this_arg, long _rgb, long _alias, long _addresses); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeerManager_broadcast_node_announcement")] public static extern void PeerManagerBroadcastNodeAnnouncement(long _this_arg, long _rgb, long _alias, long _addresses); // uint64_t htlc_success_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_htlc_success_tx_weight")] public static extern long htlc_success_tx_weight(long _channel_type_features); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_htlc_success_tx_weight")] public static extern long HtlcSuccessTxWeight(long _channel_type_features); // uint64_t htlc_timeout_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_htlc_timeout_tx_weight")] public static extern long htlc_timeout_tx_weight(long _channel_type_features); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_htlc_timeout_tx_weight")] public static extern long HtlcTimeoutTxWeight(long _channel_type_features); // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_clone")] public static extern HTLCClaim HTLCClaim_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_clone")] public static extern HTLCClaim HTLCClaimClone(long _orig); // enum LDKHTLCClaim HTLCClaim_offered_timeout(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_offered_timeout")] public static extern HTLCClaim HTLCClaim_offered_timeout(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_offered_timeout")] public static extern HTLCClaim HTLCClaimOfferedTimeout(); // enum LDKHTLCClaim HTLCClaim_offered_preimage(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_offered_preimage")] public static extern HTLCClaim HTLCClaim_offered_preimage(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_offered_preimage")] public static extern HTLCClaim HTLCClaimOfferedPreimage(); // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_accepted_timeout")] public static extern HTLCClaim HTLCClaim_accepted_timeout(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_accepted_timeout")] public static extern HTLCClaim HTLCClaimAcceptedTimeout(); // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_accepted_preimage")] public static extern HTLCClaim HTLCClaim_accepted_preimage(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_accepted_preimage")] public static extern HTLCClaim HTLCClaimAcceptedPreimage(); // enum LDKHTLCClaim HTLCClaim_revocation(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_revocation")] public static extern HTLCClaim HTLCClaim_revocation(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_revocation")] public static extern HTLCClaim HTLCClaimRevocation(); // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_eq")] public static extern bool HTLCClaim_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_eq")] public static extern bool HTLCClaimEq(long _a, long _b); // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_from_witness")] public static extern long HTLCClaim_from_witness(long _witness); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCClaim_from_witness")] public static extern long HTLCClaimFromWitness(long _witness); // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_commitment_secret")] public static extern long build_commitment_secret(long _commitment_seed, long _idx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_commitment_secret")] public static extern long BuildCommitmentSecret(long _commitment_seed, long _idx); // struct LDKTransaction build_closing_transaction(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_closing_transaction")] public static extern long build_closing_transaction(long _to_holder_value_sat, long _to_counterparty_value_sat, long _to_holder_script, long _to_counterparty_script, long _funding_outpoint); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_closing_transaction")] public static extern long BuildClosingTransaction(long _to_holder_value_sat, long _to_counterparty_value_sat, long _to_holder_script, long _to_counterparty_script, long _funding_outpoint); // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_free")] public static extern void CounterpartyCommitmentSecrets_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_free")] public static extern void CounterpartyCommitmentSecretsFree(long _this_obj); // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_clone_ptr")] public static extern long CounterpartyCommitmentSecrets_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_clone_ptr")] public static extern long CounterpartyCommitmentSecretsClonePtr(long _arg); // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_clone")] public static extern long CounterpartyCommitmentSecrets_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_clone")] public static extern long CounterpartyCommitmentSecretsClone(long _orig); // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_new")] public static extern long CounterpartyCommitmentSecrets_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_new")] public static extern long CounterpartyCommitmentSecretsNew(); // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_get_min_seen_secret")] public static extern long CounterpartyCommitmentSecrets_get_min_seen_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_get_min_seen_secret")] public static extern long CounterpartyCommitmentSecretsGetMinSeenSecret(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_provide_secret")] public static extern long CounterpartyCommitmentSecrets_provide_secret(long _this_arg, long _idx, long _secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_provide_secret")] public static extern long CounterpartyCommitmentSecretsProvideSecret(long _this_arg, long _idx, long _secret); // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_get_secret")] public static extern long CounterpartyCommitmentSecrets_get_secret(long _this_arg, long _idx); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_get_secret")] public static extern long CounterpartyCommitmentSecretsGetSecret(long _this_arg, long _idx); // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_write")] public static extern long CounterpartyCommitmentSecrets_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_write")] public static extern long CounterpartyCommitmentSecretsWrite(long _obj); // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_read")] public static extern long CounterpartyCommitmentSecrets_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyCommitmentSecrets_read")] public static extern long CounterpartyCommitmentSecretsRead(long _ser); // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_derive_private_key")] public static extern long derive_private_key(long _per_commitment_point, long _base_secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_derive_private_key")] public static extern long DerivePrivateKey(long _per_commitment_point, long _base_secret); // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_derive_private_revocation_key")] public static extern long derive_private_revocation_key(long _per_commitment_secret, long _countersignatory_revocation_base_secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_derive_private_revocation_key")] public static extern long DerivePrivateRevocationKey(long _per_commitment_secret, long _countersignatory_revocation_base_secret); // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_free")] public static extern void TxCreationKeys_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_free")] public static extern void TxCreationKeysFree(long _this_obj); // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_per_commitment_point")] public static extern long TxCreationKeys_get_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_per_commitment_point")] public static extern long TxCreationKeysGetPerCommitmentPoint(long _this_ptr); // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_per_commitment_point")] public static extern void TxCreationKeys_set_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_per_commitment_point")] public static extern void TxCreationKeysSetPerCommitmentPoint(long _this_ptr, long _val); // struct LDKRevocationKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_revocation_key")] public static extern long TxCreationKeys_get_revocation_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_revocation_key")] public static extern long TxCreationKeysGetRevocationKey(long _this_ptr); // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKRevocationKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_revocation_key")] public static extern void TxCreationKeys_set_revocation_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_revocation_key")] public static extern void TxCreationKeysSetRevocationKey(long _this_ptr, long _val); // struct LDKHtlcKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_broadcaster_htlc_key")] public static extern long TxCreationKeys_get_broadcaster_htlc_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_broadcaster_htlc_key")] public static extern long TxCreationKeysGetBroadcasterHtlcKey(long _this_ptr); // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_broadcaster_htlc_key")] public static extern void TxCreationKeys_set_broadcaster_htlc_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_broadcaster_htlc_key")] public static extern void TxCreationKeysSetBroadcasterHtlcKey(long _this_ptr, long _val); // struct LDKHtlcKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_countersignatory_htlc_key")] public static extern long TxCreationKeys_get_countersignatory_htlc_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_countersignatory_htlc_key")] public static extern long TxCreationKeysGetCountersignatoryHtlcKey(long _this_ptr); // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_countersignatory_htlc_key")] public static extern void TxCreationKeys_set_countersignatory_htlc_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_countersignatory_htlc_key")] public static extern void TxCreationKeysSetCountersignatoryHtlcKey(long _this_ptr, long _val); // struct LDKDelayedPaymentKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_broadcaster_delayed_payment_key")] public static extern long TxCreationKeys_get_broadcaster_delayed_payment_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_get_broadcaster_delayed_payment_key")] public static extern long TxCreationKeysGetBroadcasterDelayedPaymentKey(long _this_ptr); // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_broadcaster_delayed_payment_key")] public static extern void TxCreationKeys_set_broadcaster_delayed_payment_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_set_broadcaster_delayed_payment_key")] public static extern void TxCreationKeysSetBroadcasterDelayedPaymentKey(long _this_ptr, long _val); // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKRevocationKey revocation_key_arg, struct LDKHtlcKey broadcaster_htlc_key_arg, struct LDKHtlcKey countersignatory_htlc_key_arg, struct LDKDelayedPaymentKey broadcaster_delayed_payment_key_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_new")] public static extern long TxCreationKeys_new(long _per_commitment_point_arg, long _revocation_key_arg, long _broadcaster_htlc_key_arg, long _countersignatory_htlc_key_arg, long _broadcaster_delayed_payment_key_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_new")] public static extern long TxCreationKeysNew(long _per_commitment_point_arg, long _revocation_key_arg, long _broadcaster_htlc_key_arg, long _countersignatory_htlc_key_arg, long _broadcaster_delayed_payment_key_arg); // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_eq")] public static extern bool TxCreationKeys_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_eq")] public static extern bool TxCreationKeysEq(long _a, long _b); // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_clone_ptr")] public static extern long TxCreationKeys_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_clone_ptr")] public static extern long TxCreationKeysClonePtr(long _arg); // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_clone")] public static extern long TxCreationKeys_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_clone")] public static extern long TxCreationKeysClone(long _orig); // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_write")] public static extern long TxCreationKeys_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_write")] public static extern long TxCreationKeysWrite(long _obj); // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_read")] public static extern long TxCreationKeys_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_read")] public static extern long TxCreationKeysRead(long _ser); // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_free")] public static extern void ChannelPublicKeys_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_free")] public static extern void ChannelPublicKeysFree(long _this_obj); // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_funding_pubkey")] public static extern long ChannelPublicKeys_get_funding_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_funding_pubkey")] public static extern long ChannelPublicKeysGetFundingPubkey(long _this_ptr); // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_funding_pubkey")] public static extern void ChannelPublicKeys_set_funding_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_funding_pubkey")] public static extern void ChannelPublicKeysSetFundingPubkey(long _this_ptr, long _val); // struct LDKRevocationBasepoint ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_revocation_basepoint")] public static extern long ChannelPublicKeys_get_revocation_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_revocation_basepoint")] public static extern long ChannelPublicKeysGetRevocationBasepoint(long _this_ptr); // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKRevocationBasepoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_revocation_basepoint")] public static extern void ChannelPublicKeys_set_revocation_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_revocation_basepoint")] public static extern void ChannelPublicKeysSetRevocationBasepoint(long _this_ptr, long _val); // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_payment_point")] public static extern long ChannelPublicKeys_get_payment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_payment_point")] public static extern long ChannelPublicKeysGetPaymentPoint(long _this_ptr); // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_payment_point")] public static extern void ChannelPublicKeys_set_payment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_payment_point")] public static extern void ChannelPublicKeysSetPaymentPoint(long _this_ptr, long _val); // struct LDKDelayedPaymentBasepoint ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_delayed_payment_basepoint")] public static extern long ChannelPublicKeys_get_delayed_payment_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_delayed_payment_basepoint")] public static extern long ChannelPublicKeysGetDelayedPaymentBasepoint(long _this_ptr); // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentBasepoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_delayed_payment_basepoint")] public static extern void ChannelPublicKeys_set_delayed_payment_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_delayed_payment_basepoint")] public static extern void ChannelPublicKeysSetDelayedPaymentBasepoint(long _this_ptr, long _val); // struct LDKHtlcBasepoint ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_htlc_basepoint")] public static extern long ChannelPublicKeys_get_htlc_basepoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_get_htlc_basepoint")] public static extern long ChannelPublicKeysGetHtlcBasepoint(long _this_ptr); // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKHtlcBasepoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_htlc_basepoint")] public static extern void ChannelPublicKeys_set_htlc_basepoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_set_htlc_basepoint")] public static extern void ChannelPublicKeysSetHtlcBasepoint(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKRevocationBasepoint revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKDelayedPaymentBasepoint delayed_payment_basepoint_arg, struct LDKHtlcBasepoint htlc_basepoint_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_new")] public static extern long ChannelPublicKeys_new(long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_new")] public static extern long ChannelPublicKeysNew(long _funding_pubkey_arg, long _revocation_basepoint_arg, long _payment_point_arg, long _delayed_payment_basepoint_arg, long _htlc_basepoint_arg); // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_clone_ptr")] public static extern long ChannelPublicKeys_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_clone_ptr")] public static extern long ChannelPublicKeysClonePtr(long _arg); // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_clone")] public static extern long ChannelPublicKeys_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_clone")] public static extern long ChannelPublicKeysClone(long _orig); // uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_hash")] public static extern long ChannelPublicKeys_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_hash")] public static extern long ChannelPublicKeysHash(long _o); // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_eq")] public static extern bool ChannelPublicKeys_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_eq")] public static extern bool ChannelPublicKeysEq(long _a, long _b); // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_write")] public static extern long ChannelPublicKeys_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_write")] public static extern long ChannelPublicKeysWrite(long _obj); // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_read")] public static extern long ChannelPublicKeys_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelPublicKeys_read")] public static extern long ChannelPublicKeysRead(long _ser); // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR broadcaster_delayed_payment_base, const struct LDKHtlcBasepoint *NONNULL_PTR broadcaster_htlc_base, const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_revocation_base, const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_htlc_base); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_derive_new")] public static extern long TxCreationKeys_derive_new(long _per_commitment_point, long _broadcaster_delayed_payment_base, long _broadcaster_htlc_base, long _countersignatory_revocation_base, long _countersignatory_htlc_base); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_derive_new")] public static extern long TxCreationKeysDeriveNew(long _per_commitment_point, long _broadcaster_delayed_payment_base, long _broadcaster_htlc_base, long _countersignatory_revocation_base, long _countersignatory_htlc_base); // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_from_channel_static_keys")] public static extern long TxCreationKeys_from_channel_static_keys(long _per_commitment_point, long _broadcaster_keys, long _countersignatory_keys); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TxCreationKeys_from_channel_static_keys")] public static extern long TxCreationKeysFromChannelStaticKeys(long _per_commitment_point, long _broadcaster_keys, long _countersignatory_keys); // struct LDKCVec_u8Z get_revokeable_redeemscript(const struct LDKRevocationKey *NONNULL_PTR revocation_key, uint16_t contest_delay, const struct LDKDelayedPaymentKey *NONNULL_PTR broadcaster_delayed_payment_key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_revokeable_redeemscript")] public static extern long get_revokeable_redeemscript(long _revocation_key, short _contest_delay, long _broadcaster_delayed_payment_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_revokeable_redeemscript")] public static extern long GetRevokeableRedeemscript(long _revocation_key, short _contest_delay, long _broadcaster_delayed_payment_key); // struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_counterparty_payment_script")] public static extern long get_counterparty_payment_script(long _channel_type_features, long _payment_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_counterparty_payment_script")] public static extern long GetCounterpartyPaymentScript(long _channel_type_features, long _payment_key); // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_free")] public static extern void HTLCOutputInCommitment_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_free")] public static extern void HTLCOutputInCommitmentFree(long _this_obj); // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_offered")] public static extern bool HTLCOutputInCommitment_get_offered(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_offered")] public static extern bool HTLCOutputInCommitmentGetOffered(long _this_ptr); // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_offered")] public static extern void HTLCOutputInCommitment_set_offered(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_offered")] public static extern void HTLCOutputInCommitmentSetOffered(long _this_ptr, bool _val); // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_amount_msat")] public static extern long HTLCOutputInCommitment_get_amount_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_amount_msat")] public static extern long HTLCOutputInCommitmentGetAmountMsat(long _this_ptr); // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_amount_msat")] public static extern void HTLCOutputInCommitment_set_amount_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_amount_msat")] public static extern void HTLCOutputInCommitmentSetAmountMsat(long _this_ptr, long _val); // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_cltv_expiry")] public static extern int HTLCOutputInCommitment_get_cltv_expiry(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_cltv_expiry")] public static extern int HTLCOutputInCommitmentGetCltvExpiry(long _this_ptr); // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_cltv_expiry")] public static extern void HTLCOutputInCommitment_set_cltv_expiry(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_cltv_expiry")] public static extern void HTLCOutputInCommitmentSetCltvExpiry(long _this_ptr, int _val); // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_payment_hash")] public static extern long HTLCOutputInCommitment_get_payment_hash(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_payment_hash")] public static extern long HTLCOutputInCommitmentGetPaymentHash(long _this_ptr); // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_payment_hash")] public static extern void HTLCOutputInCommitment_set_payment_hash(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_payment_hash")] public static extern void HTLCOutputInCommitmentSetPaymentHash(long _this_ptr, long _val); // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_transaction_output_index")] public static extern long HTLCOutputInCommitment_get_transaction_output_index(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_get_transaction_output_index")] public static extern long HTLCOutputInCommitmentGetTransactionOutputIndex(long _this_ptr); // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_transaction_output_index")] public static extern void HTLCOutputInCommitment_set_transaction_output_index(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_set_transaction_output_index")] public static extern void HTLCOutputInCommitmentSetTransactionOutputIndex(long _this_ptr, long _val); // MUST_USE_RES struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_new(bool offered_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u32Z transaction_output_index_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_new")] public static extern long HTLCOutputInCommitment_new(bool _offered_arg, long _amount_msat_arg, int _cltv_expiry_arg, long _payment_hash_arg, long _transaction_output_index_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_new")] public static extern long HTLCOutputInCommitmentNew(bool _offered_arg, long _amount_msat_arg, int _cltv_expiry_arg, long _payment_hash_arg, long _transaction_output_index_arg); // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_clone_ptr")] public static extern long HTLCOutputInCommitment_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_clone_ptr")] public static extern long HTLCOutputInCommitmentClonePtr(long _arg); // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_clone")] public static extern long HTLCOutputInCommitment_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_clone")] public static extern long HTLCOutputInCommitmentClone(long _orig); // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_eq")] public static extern bool HTLCOutputInCommitment_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_eq")] public static extern bool HTLCOutputInCommitmentEq(long _a, long _b); // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_write")] public static extern long HTLCOutputInCommitment_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_write")] public static extern long HTLCOutputInCommitmentWrite(long _obj); // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_read")] public static extern long HTLCOutputInCommitment_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCOutputInCommitment_read")] public static extern long HTLCOutputInCommitmentRead(long _ser); // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, const struct LDKTxCreationKeys *NONNULL_PTR keys); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_htlc_redeemscript")] public static extern long get_htlc_redeemscript(long _htlc, long _channel_type_features, long _keys); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_htlc_redeemscript")] public static extern long GetHtlcRedeemscript(long _htlc, long _channel_type_features, long _keys); // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_make_funding_redeemscript")] public static extern long make_funding_redeemscript(long _broadcaster, long _countersignatory); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_make_funding_redeemscript")] public static extern long MakeFundingRedeemscript(long _broadcaster, long _countersignatory); // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, const struct LDKDelayedPaymentKey *NONNULL_PTR broadcaster_delayed_payment_key, const struct LDKRevocationKey *NONNULL_PTR revocation_key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_htlc_transaction")] public static extern long build_htlc_transaction(long _commitment_txid, int _feerate_per_kw, short _contest_delay, long _htlc, long _channel_type_features, long _broadcaster_delayed_payment_key, long _revocation_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_htlc_transaction")] public static extern long BuildHtlcTransaction(long _commitment_txid, int _feerate_per_kw, short _contest_delay, long _htlc, long _channel_type_features, long _broadcaster_delayed_payment_key, long _revocation_key); // struct LDKWitness build_htlc_input_witness(struct LDKECDSASignature local_sig, struct LDKECDSASignature remote_sig, struct LDKCOption_ThirtyTwoBytesZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_htlc_input_witness")] public static extern long build_htlc_input_witness(long _local_sig, long _remote_sig, long _preimage, long _redeem_script, long _channel_type_features); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_htlc_input_witness")] public static extern long BuildHtlcInputWitness(long _local_sig, long _remote_sig, long _preimage, long _redeem_script, long _channel_type_features); // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_to_countersignatory_with_anchors_redeemscript")] public static extern long get_to_countersignatory_with_anchors_redeemscript(long _payment_point); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_to_countersignatory_with_anchors_redeemscript")] public static extern long GetToCountersignatoryWithAnchorsRedeemscript(long _payment_point); // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_anchor_redeemscript")] public static extern long get_anchor_redeemscript(long _funding_pubkey); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_anchor_redeemscript")] public static extern long GetAnchorRedeemscript(long _funding_pubkey); // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_anchor_input_witness")] public static extern long build_anchor_input_witness(long _funding_key, long _funding_sig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_anchor_input_witness")] public static extern long BuildAnchorInputWitness(long _funding_key, long _funding_sig); // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_free")] public static extern void ChannelTransactionParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_free")] public static extern void ChannelTransactionParametersFree(long _this_obj); // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_holder_pubkeys")] public static extern long ChannelTransactionParameters_get_holder_pubkeys(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_holder_pubkeys")] public static extern long ChannelTransactionParametersGetHolderPubkeys(long _this_ptr); // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_holder_pubkeys")] public static extern void ChannelTransactionParameters_set_holder_pubkeys(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_holder_pubkeys")] public static extern void ChannelTransactionParametersSetHolderPubkeys(long _this_ptr, long _val); // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_holder_selected_contest_delay")] public static extern short ChannelTransactionParameters_get_holder_selected_contest_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_holder_selected_contest_delay")] public static extern short ChannelTransactionParametersGetHolderSelectedContestDelay(long _this_ptr); // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_holder_selected_contest_delay")] public static extern void ChannelTransactionParameters_set_holder_selected_contest_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_holder_selected_contest_delay")] public static extern void ChannelTransactionParametersSetHolderSelectedContestDelay(long _this_ptr, short _val); // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_is_outbound_from_holder")] public static extern bool ChannelTransactionParameters_get_is_outbound_from_holder(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_is_outbound_from_holder")] public static extern bool ChannelTransactionParametersGetIsOutboundFromHolder(long _this_ptr); // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_is_outbound_from_holder")] public static extern void ChannelTransactionParameters_set_is_outbound_from_holder(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_is_outbound_from_holder")] public static extern void ChannelTransactionParametersSetIsOutboundFromHolder(long _this_ptr, bool _val); // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_counterparty_parameters")] public static extern long ChannelTransactionParameters_get_counterparty_parameters(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_counterparty_parameters")] public static extern long ChannelTransactionParametersGetCounterpartyParameters(long _this_ptr); // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_counterparty_parameters")] public static extern void ChannelTransactionParameters_set_counterparty_parameters(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_counterparty_parameters")] public static extern void ChannelTransactionParametersSetCounterpartyParameters(long _this_ptr, long _val); // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_funding_outpoint")] public static extern long ChannelTransactionParameters_get_funding_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_funding_outpoint")] public static extern long ChannelTransactionParametersGetFundingOutpoint(long _this_ptr); // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_funding_outpoint")] public static extern void ChannelTransactionParameters_set_funding_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_funding_outpoint")] public static extern void ChannelTransactionParametersSetFundingOutpoint(long _this_ptr, long _val); // struct LDKChannelTypeFeatures ChannelTransactionParameters_get_channel_type_features(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_channel_type_features")] public static extern long ChannelTransactionParameters_get_channel_type_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_get_channel_type_features")] public static extern long ChannelTransactionParametersGetChannelTypeFeatures(long _this_ptr); // void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_channel_type_features")] public static extern void ChannelTransactionParameters_set_channel_type_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_set_channel_type_features")] public static extern void ChannelTransactionParametersSetChannelTypeFeatures(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, struct LDKChannelTypeFeatures channel_type_features_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_new")] public static extern long ChannelTransactionParameters_new(long _holder_pubkeys_arg, short _holder_selected_contest_delay_arg, bool _is_outbound_from_holder_arg, long _counterparty_parameters_arg, long _funding_outpoint_arg, long _channel_type_features_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_new")] public static extern long ChannelTransactionParametersNew(long _holder_pubkeys_arg, short _holder_selected_contest_delay_arg, bool _is_outbound_from_holder_arg, long _counterparty_parameters_arg, long _funding_outpoint_arg, long _channel_type_features_arg); // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_clone_ptr")] public static extern long ChannelTransactionParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_clone_ptr")] public static extern long ChannelTransactionParametersClonePtr(long _arg); // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_clone")] public static extern long ChannelTransactionParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_clone")] public static extern long ChannelTransactionParametersClone(long _orig); // uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_hash")] public static extern long ChannelTransactionParameters_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_hash")] public static extern long ChannelTransactionParametersHash(long _o); // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_eq")] public static extern bool ChannelTransactionParameters_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_eq")] public static extern bool ChannelTransactionParametersEq(long _a, long _b); // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_free")] public static extern void CounterpartyChannelTransactionParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_free")] public static extern void CounterpartyChannelTransactionParametersFree(long _this_obj); // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_get_pubkeys")] public static extern long CounterpartyChannelTransactionParameters_get_pubkeys(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_get_pubkeys")] public static extern long CounterpartyChannelTransactionParametersGetPubkeys(long _this_ptr); // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_set_pubkeys")] public static extern void CounterpartyChannelTransactionParameters_set_pubkeys(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_set_pubkeys")] public static extern void CounterpartyChannelTransactionParametersSetPubkeys(long _this_ptr, long _val); // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_get_selected_contest_delay")] public static extern short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_get_selected_contest_delay")] public static extern short CounterpartyChannelTransactionParametersGetSelectedContestDelay(long _this_ptr); // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_set_selected_contest_delay")] public static extern void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_set_selected_contest_delay")] public static extern void CounterpartyChannelTransactionParametersSetSelectedContestDelay(long _this_ptr, short _val); // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_new")] public static extern long CounterpartyChannelTransactionParameters_new(long _pubkeys_arg, short _selected_contest_delay_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_new")] public static extern long CounterpartyChannelTransactionParametersNew(long _pubkeys_arg, short _selected_contest_delay_arg); // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_clone_ptr")] public static extern long CounterpartyChannelTransactionParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_clone_ptr")] public static extern long CounterpartyChannelTransactionParametersClonePtr(long _arg); // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_clone")] public static extern long CounterpartyChannelTransactionParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_clone")] public static extern long CounterpartyChannelTransactionParametersClone(long _orig); // uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_hash")] public static extern long CounterpartyChannelTransactionParameters_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_hash")] public static extern long CounterpartyChannelTransactionParametersHash(long _o); // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_eq")] public static extern bool CounterpartyChannelTransactionParameters_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_eq")] public static extern bool CounterpartyChannelTransactionParametersEq(long _a, long _b); // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_is_populated")] public static extern bool ChannelTransactionParameters_is_populated(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_is_populated")] public static extern bool ChannelTransactionParametersIsPopulated(long _this_arg); // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_as_holder_broadcastable")] public static extern long ChannelTransactionParameters_as_holder_broadcastable(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_as_holder_broadcastable")] public static extern long ChannelTransactionParametersAsHolderBroadcastable(long _this_arg); // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_as_counterparty_broadcastable")] public static extern long ChannelTransactionParameters_as_counterparty_broadcastable(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_as_counterparty_broadcastable")] public static extern long ChannelTransactionParametersAsCounterpartyBroadcastable(long _this_arg); // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_write")] public static extern long CounterpartyChannelTransactionParameters_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_write")] public static extern long CounterpartyChannelTransactionParametersWrite(long _obj); // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_read")] public static extern long CounterpartyChannelTransactionParameters_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CounterpartyChannelTransactionParameters_read")] public static extern long CounterpartyChannelTransactionParametersRead(long _ser); // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_write")] public static extern long ChannelTransactionParameters_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_write")] public static extern long ChannelTransactionParametersWrite(long _obj); // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_read")] public static extern long ChannelTransactionParameters_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTransactionParameters_read")] public static extern long ChannelTransactionParametersRead(long _ser); // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_free")] public static extern void DirectedChannelTransactionParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_free")] public static extern void DirectedChannelTransactionParametersFree(long _this_obj); // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_broadcaster_pubkeys")] public static extern long DirectedChannelTransactionParameters_broadcaster_pubkeys(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_broadcaster_pubkeys")] public static extern long DirectedChannelTransactionParametersBroadcasterPubkeys(long _this_arg); // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_countersignatory_pubkeys")] public static extern long DirectedChannelTransactionParameters_countersignatory_pubkeys(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_countersignatory_pubkeys")] public static extern long DirectedChannelTransactionParametersCountersignatoryPubkeys(long _this_arg); // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_contest_delay")] public static extern short DirectedChannelTransactionParameters_contest_delay(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_contest_delay")] public static extern short DirectedChannelTransactionParametersContestDelay(long _this_arg); // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_is_outbound")] public static extern bool DirectedChannelTransactionParameters_is_outbound(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_is_outbound")] public static extern bool DirectedChannelTransactionParametersIsOutbound(long _this_arg); // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_funding_outpoint")] public static extern long DirectedChannelTransactionParameters_funding_outpoint(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_funding_outpoint")] public static extern long DirectedChannelTransactionParametersFundingOutpoint(long _this_arg); // MUST_USE_RES struct LDKChannelTypeFeatures DirectedChannelTransactionParameters_channel_type_features(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_channel_type_features")] public static extern long DirectedChannelTransactionParameters_channel_type_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelTransactionParameters_channel_type_features")] public static extern long DirectedChannelTransactionParametersChannelTypeFeatures(long _this_arg); // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_free")] public static extern void HolderCommitmentTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_free")] public static extern void HolderCommitmentTransactionFree(long _this_obj); // struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_get_counterparty_sig")] public static extern long HolderCommitmentTransaction_get_counterparty_sig(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_get_counterparty_sig")] public static extern long HolderCommitmentTransactionGetCounterpartySig(long _this_ptr); // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_set_counterparty_sig")] public static extern void HolderCommitmentTransaction_set_counterparty_sig(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_set_counterparty_sig")] public static extern void HolderCommitmentTransactionSetCounterpartySig(long _this_ptr, long _val); // struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_get_counterparty_htlc_sigs")] public static extern long HolderCommitmentTransaction_get_counterparty_htlc_sigs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_get_counterparty_htlc_sigs")] public static extern long HolderCommitmentTransactionGetCounterpartyHtlcSigs(long _this_ptr); // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_set_counterparty_htlc_sigs")] public static extern void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_set_counterparty_htlc_sigs")] public static extern void HolderCommitmentTransactionSetCounterpartyHtlcSigs(long _this_ptr, long _val); // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_clone_ptr")] public static extern long HolderCommitmentTransaction_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_clone_ptr")] public static extern long HolderCommitmentTransactionClonePtr(long _arg); // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_clone")] public static extern long HolderCommitmentTransaction_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_clone")] public static extern long HolderCommitmentTransactionClone(long _orig); // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_write")] public static extern long HolderCommitmentTransaction_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_write")] public static extern long HolderCommitmentTransactionWrite(long _obj); // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_read")] public static extern long HolderCommitmentTransaction_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_read")] public static extern long HolderCommitmentTransactionRead(long _ser); // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKECDSASignature counterparty_sig, struct LDKCVec_ECDSASignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_new")] public static extern long HolderCommitmentTransaction_new(long _commitment_tx, long _counterparty_sig, long _counterparty_htlc_sigs, long _holder_funding_key, long _counterparty_funding_key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HolderCommitmentTransaction_new")] public static extern long HolderCommitmentTransactionNew(long _commitment_tx, long _counterparty_sig, long _counterparty_htlc_sigs, long _holder_funding_key, long _counterparty_funding_key); // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_free")] public static extern void BuiltCommitmentTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_free")] public static extern void BuiltCommitmentTransactionFree(long _this_obj); // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_transaction")] public static extern long BuiltCommitmentTransaction_get_transaction(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_transaction")] public static extern long BuiltCommitmentTransactionGetTransaction(long _this_ptr); // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_set_transaction")] public static extern void BuiltCommitmentTransaction_set_transaction(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_set_transaction")] public static extern void BuiltCommitmentTransactionSetTransaction(long _this_ptr, long _val); // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_txid")] public static extern long BuiltCommitmentTransaction_get_txid(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_txid")] public static extern long BuiltCommitmentTransactionGetTxid(long _this_ptr); // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_set_txid")] public static extern void BuiltCommitmentTransaction_set_txid(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_set_txid")] public static extern void BuiltCommitmentTransactionSetTxid(long _this_ptr, long _val); // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_new")] public static extern long BuiltCommitmentTransaction_new(long _transaction_arg, long _txid_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_new")] public static extern long BuiltCommitmentTransactionNew(long _transaction_arg, long _txid_arg); // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_clone_ptr")] public static extern long BuiltCommitmentTransaction_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_clone_ptr")] public static extern long BuiltCommitmentTransactionClonePtr(long _arg); // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_clone")] public static extern long BuiltCommitmentTransaction_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_clone")] public static extern long BuiltCommitmentTransactionClone(long _orig); // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_write")] public static extern long BuiltCommitmentTransaction_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_write")] public static extern long BuiltCommitmentTransactionWrite(long _obj); // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_read")] public static extern long BuiltCommitmentTransaction_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_read")] public static extern long BuiltCommitmentTransactionRead(long _ser); // MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_sighash_all")] public static extern long BuiltCommitmentTransaction_get_sighash_all(long _this_arg, long _funding_redeemscript, long _channel_value_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_get_sighash_all")] public static extern long BuiltCommitmentTransactionGetSighashAll(long _this_arg, long _funding_redeemscript, long _channel_value_satoshis); // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_sign_counterparty_commitment")] public static extern long BuiltCommitmentTransaction_sign_counterparty_commitment(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_sign_counterparty_commitment")] public static extern long BuiltCommitmentTransactionSignCounterpartyCommitment(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis); // MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_sign_holder_commitment")] public static extern long BuiltCommitmentTransaction_sign_holder_commitment(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BuiltCommitmentTransaction_sign_holder_commitment")] public static extern long BuiltCommitmentTransactionSignHolderCommitment(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis, long _entropy_source); // void ClosingTransaction_free(struct LDKClosingTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_free")] public static extern void ClosingTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_free")] public static extern void ClosingTransactionFree(long _this_obj); // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_clone_ptr")] public static extern long ClosingTransaction_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_clone_ptr")] public static extern long ClosingTransactionClonePtr(long _arg); // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_clone")] public static extern long ClosingTransaction_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_clone")] public static extern long ClosingTransactionClone(long _orig); // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_hash")] public static extern long ClosingTransaction_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_hash")] public static extern long ClosingTransactionHash(long _o); // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_eq")] public static extern bool ClosingTransaction_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_eq")] public static extern bool ClosingTransactionEq(long _a, long _b); // MUST_USE_RES struct LDKClosingTransaction ClosingTransaction_new(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_new")] public static extern long ClosingTransaction_new(long _to_holder_value_sat, long _to_counterparty_value_sat, long _to_holder_script, long _to_counterparty_script, long _funding_outpoint); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_new")] public static extern long ClosingTransactionNew(long _to_holder_value_sat, long _to_counterparty_value_sat, long _to_holder_script, long _to_counterparty_script, long _funding_outpoint); // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_trust")] public static extern long ClosingTransaction_trust(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_trust")] public static extern long ClosingTransactionTrust(long _this_arg); // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_verify")] public static extern long ClosingTransaction_verify(long _this_arg, long _funding_outpoint); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_verify")] public static extern long ClosingTransactionVerify(long _this_arg, long _funding_outpoint); // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_holder_value_sat")] public static extern long ClosingTransaction_to_holder_value_sat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_holder_value_sat")] public static extern long ClosingTransactionToHolderValueSat(long _this_arg); // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_counterparty_value_sat")] public static extern long ClosingTransaction_to_counterparty_value_sat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_counterparty_value_sat")] public static extern long ClosingTransactionToCounterpartyValueSat(long _this_arg); // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_holder_script")] public static extern long ClosingTransaction_to_holder_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_holder_script")] public static extern long ClosingTransactionToHolderScript(long _this_arg); // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_counterparty_script")] public static extern long ClosingTransaction_to_counterparty_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosingTransaction_to_counterparty_script")] public static extern long ClosingTransactionToCounterpartyScript(long _this_arg); // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_free")] public static extern void TrustedClosingTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_free")] public static extern void TrustedClosingTransactionFree(long _this_obj); // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_built_transaction")] public static extern long TrustedClosingTransaction_built_transaction(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_built_transaction")] public static extern long TrustedClosingTransactionBuiltTransaction(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_get_sighash_all")] public static extern long TrustedClosingTransaction_get_sighash_all(long _this_arg, long _funding_redeemscript, long _channel_value_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_get_sighash_all")] public static extern long TrustedClosingTransactionGetSighashAll(long _this_arg, long _funding_redeemscript, long _channel_value_satoshis); // MUST_USE_RES struct LDKECDSASignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_sign")] public static extern long TrustedClosingTransaction_sign(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedClosingTransaction_sign")] public static extern long TrustedClosingTransactionSign(long _this_arg, long _funding_key, long _funding_redeemscript, long _channel_value_satoshis); // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_free")] public static extern void CommitmentTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_free")] public static extern void CommitmentTransactionFree(long _this_obj); // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_clone_ptr")] public static extern long CommitmentTransaction_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_clone_ptr")] public static extern long CommitmentTransactionClonePtr(long _arg); // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_clone")] public static extern long CommitmentTransaction_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_clone")] public static extern long CommitmentTransactionClone(long _orig); // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_write")] public static extern long CommitmentTransaction_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_write")] public static extern long CommitmentTransactionWrite(long _obj); // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_read")] public static extern long CommitmentTransaction_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_read")] public static extern long CommitmentTransactionRead(long _ser); // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_commitment_number")] public static extern long CommitmentTransaction_commitment_number(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_commitment_number")] public static extern long CommitmentTransactionCommitmentNumber(long _this_arg); // MUST_USE_RES struct LDKPublicKey CommitmentTransaction_per_commitment_point(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_per_commitment_point")] public static extern long CommitmentTransaction_per_commitment_point(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_per_commitment_point")] public static extern long CommitmentTransactionPerCommitmentPoint(long _this_arg); // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_to_broadcaster_value_sat")] public static extern long CommitmentTransaction_to_broadcaster_value_sat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_to_broadcaster_value_sat")] public static extern long CommitmentTransactionToBroadcasterValueSat(long _this_arg); // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_to_countersignatory_value_sat")] public static extern long CommitmentTransaction_to_countersignatory_value_sat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_to_countersignatory_value_sat")] public static extern long CommitmentTransactionToCountersignatoryValueSat(long _this_arg); // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_feerate_per_kw")] public static extern int CommitmentTransaction_feerate_per_kw(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_feerate_per_kw")] public static extern int CommitmentTransactionFeeratePerKw(long _this_arg); // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_trust")] public static extern long CommitmentTransaction_trust(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_trust")] public static extern long CommitmentTransactionTrust(long _this_arg); // MUST_USE_RES struct LDKCResult_TrustedCommitmentTransactionNoneZ CommitmentTransaction_verify(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg, const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_verify")] public static extern long CommitmentTransaction_verify(long _this_arg, long _channel_parameters, long _broadcaster_keys, long _countersignatory_keys); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CommitmentTransaction_verify")] public static extern long CommitmentTransactionVerify(long _this_arg, long _channel_parameters, long _broadcaster_keys, long _countersignatory_keys); // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_free")] public static extern void TrustedCommitmentTransaction_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_free")] public static extern void TrustedCommitmentTransactionFree(long _this_obj); // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_txid")] public static extern long TrustedCommitmentTransaction_txid(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_txid")] public static extern long TrustedCommitmentTransactionTxid(long _this_arg); // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_built_transaction")] public static extern long TrustedCommitmentTransaction_built_transaction(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_built_transaction")] public static extern long TrustedCommitmentTransactionBuiltTransaction(long _this_arg); // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_keys")] public static extern long TrustedCommitmentTransaction_keys(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_keys")] public static extern long TrustedCommitmentTransactionKeys(long _this_arg); // MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_type_features(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_channel_type_features")] public static extern long TrustedCommitmentTransaction_channel_type_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_channel_type_features")] public static extern long TrustedCommitmentTransactionChannelTypeFeatures(long _this_arg); // MUST_USE_RES struct LDKCResult_CVec_ECDSASignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_get_htlc_sigs")] public static extern long TrustedCommitmentTransaction_get_htlc_sigs(long _this_arg, long _htlc_base_key, long _channel_parameters, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_get_htlc_sigs")] public static extern long TrustedCommitmentTransactionGetHtlcSigs(long _this_arg, long _htlc_base_key, long _channel_parameters, long _entropy_source); // MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_revokeable_output_index")] public static extern long TrustedCommitmentTransaction_revokeable_output_index(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_revokeable_output_index")] public static extern long TrustedCommitmentTransactionRevokeableOutputIndex(long _this_arg); // MUST_USE_RES struct LDKCResult_TransactionNoneZ TrustedCommitmentTransaction_build_to_local_justice_tx(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, uint64_t feerate_per_kw, struct LDKCVec_u8Z destination_script); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_build_to_local_justice_tx")] public static extern long TrustedCommitmentTransaction_build_to_local_justice_tx(long _this_arg, long _feerate_per_kw, long _destination_script); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TrustedCommitmentTransaction_build_to_local_justice_tx")] public static extern long TrustedCommitmentTransactionBuildToLocalJusticeTx(long _this_arg, long _feerate_per_kw, long _destination_script); // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_commitment_transaction_number_obscure_factor")] public static extern long get_commitment_transaction_number_obscure_factor(long _broadcaster_payment_basepoint, long _countersignatory_payment_basepoint, bool _outbound_from_broadcaster); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_get_commitment_transaction_number_obscure_factor")] public static extern long GetCommitmentTransactionNumberObscureFactor(long _broadcaster_payment_basepoint, long _countersignatory_payment_basepoint, bool _outbound_from_broadcaster); // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_eq")] public static extern bool InitFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_eq")] public static extern bool InitFeaturesEq(long _a, long _b); // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_eq")] public static extern bool NodeFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_eq")] public static extern bool NodeFeaturesEq(long _a, long _b); // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_eq")] public static extern bool ChannelFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_eq")] public static extern bool ChannelFeaturesEq(long _a, long _b); // bool Bolt11InvoiceFeatures_eq(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_eq")] public static extern bool Bolt11InvoiceFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_eq")] public static extern bool Bolt11InvoiceFeaturesEq(long _a, long _b); // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_eq")] public static extern bool OfferFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_eq")] public static extern bool OfferFeaturesEq(long _a, long _b); // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_eq")] public static extern bool InvoiceRequestFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_eq")] public static extern bool InvoiceRequestFeaturesEq(long _a, long _b); // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_eq")] public static extern bool Bolt12InvoiceFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_eq")] public static extern bool Bolt12InvoiceFeaturesEq(long _a, long _b); // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_eq")] public static extern bool BlindedHopFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_eq")] public static extern bool BlindedHopFeaturesEq(long _a, long _b); // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_eq")] public static extern bool ChannelTypeFeatures_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_eq")] public static extern bool ChannelTypeFeaturesEq(long _a, long _b); // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_clone_ptr")] public static extern long InitFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_clone_ptr")] public static extern long InitFeaturesClonePtr(long _arg); // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_clone")] public static extern long InitFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_clone")] public static extern long InitFeaturesClone(long _orig); // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_clone_ptr")] public static extern long NodeFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_clone_ptr")] public static extern long NodeFeaturesClonePtr(long _arg); // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_clone")] public static extern long NodeFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_clone")] public static extern long NodeFeaturesClone(long _orig); // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_clone_ptr")] public static extern long ChannelFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_clone_ptr")] public static extern long ChannelFeaturesClonePtr(long _arg); // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_clone")] public static extern long ChannelFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_clone")] public static extern long ChannelFeaturesClone(long _orig); // uint64_t Bolt11InvoiceFeatures_clone_ptr(LDKBolt11InvoiceFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_clone_ptr")] public static extern long Bolt11InvoiceFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_clone_ptr")] public static extern long Bolt11InvoiceFeaturesClonePtr(long _arg); // struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_clone(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_clone")] public static extern long Bolt11InvoiceFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_clone")] public static extern long Bolt11InvoiceFeaturesClone(long _orig); // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_clone_ptr")] public static extern long OfferFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_clone_ptr")] public static extern long OfferFeaturesClonePtr(long _arg); // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_clone")] public static extern long OfferFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_clone")] public static extern long OfferFeaturesClone(long _orig); // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_clone_ptr")] public static extern long InvoiceRequestFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_clone_ptr")] public static extern long InvoiceRequestFeaturesClonePtr(long _arg); // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_clone")] public static extern long InvoiceRequestFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_clone")] public static extern long InvoiceRequestFeaturesClone(long _orig); // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_clone_ptr")] public static extern long Bolt12InvoiceFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_clone_ptr")] public static extern long Bolt12InvoiceFeaturesClonePtr(long _arg); // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_clone")] public static extern long Bolt12InvoiceFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_clone")] public static extern long Bolt12InvoiceFeaturesClone(long _orig); // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_clone_ptr")] public static extern long BlindedHopFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_clone_ptr")] public static extern long BlindedHopFeaturesClonePtr(long _arg); // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_clone")] public static extern long BlindedHopFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_clone")] public static extern long BlindedHopFeaturesClone(long _orig); // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_clone_ptr")] public static extern long ChannelTypeFeatures_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_clone_ptr")] public static extern long ChannelTypeFeaturesClonePtr(long _arg); // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_clone")] public static extern long ChannelTypeFeatures_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_clone")] public static extern long ChannelTypeFeaturesClone(long _orig); // uint64_t InitFeatures_hash(const struct LDKInitFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_hash")] public static extern long InitFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_hash")] public static extern long InitFeaturesHash(long _o); // uint64_t NodeFeatures_hash(const struct LDKNodeFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_hash")] public static extern long NodeFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_hash")] public static extern long NodeFeaturesHash(long _o); // uint64_t ChannelFeatures_hash(const struct LDKChannelFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_hash")] public static extern long ChannelFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_hash")] public static extern long ChannelFeaturesHash(long _o); // uint64_t Bolt11InvoiceFeatures_hash(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_hash")] public static extern long Bolt11InvoiceFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_hash")] public static extern long Bolt11InvoiceFeaturesHash(long _o); // uint64_t OfferFeatures_hash(const struct LDKOfferFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_hash")] public static extern long OfferFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_hash")] public static extern long OfferFeaturesHash(long _o); // uint64_t InvoiceRequestFeatures_hash(const struct LDKInvoiceRequestFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_hash")] public static extern long InvoiceRequestFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_hash")] public static extern long InvoiceRequestFeaturesHash(long _o); // uint64_t Bolt12InvoiceFeatures_hash(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_hash")] public static extern long Bolt12InvoiceFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_hash")] public static extern long Bolt12InvoiceFeaturesHash(long _o); // uint64_t BlindedHopFeatures_hash(const struct LDKBlindedHopFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_hash")] public static extern long BlindedHopFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_hash")] public static extern long BlindedHopFeaturesHash(long _o); // uint64_t ChannelTypeFeatures_hash(const struct LDKChannelTypeFeatures *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_hash")] public static extern long ChannelTypeFeatures_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_hash")] public static extern long ChannelTypeFeaturesHash(long _o); // void InitFeatures_free(struct LDKInitFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_free")] public static extern void InitFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_free")] public static extern void InitFeaturesFree(long _this_obj); // void NodeFeatures_free(struct LDKNodeFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_free")] public static extern void NodeFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_free")] public static extern void NodeFeaturesFree(long _this_obj); // void ChannelFeatures_free(struct LDKChannelFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_free")] public static extern void ChannelFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_free")] public static extern void ChannelFeaturesFree(long _this_obj); // void Bolt11InvoiceFeatures_free(struct LDKBolt11InvoiceFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_free")] public static extern void Bolt11InvoiceFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_free")] public static extern void Bolt11InvoiceFeaturesFree(long _this_obj); // void OfferFeatures_free(struct LDKOfferFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_free")] public static extern void OfferFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_free")] public static extern void OfferFeaturesFree(long _this_obj); // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_free")] public static extern void InvoiceRequestFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_free")] public static extern void InvoiceRequestFeaturesFree(long _this_obj); // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_free")] public static extern void Bolt12InvoiceFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_free")] public static extern void Bolt12InvoiceFeaturesFree(long _this_obj); // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_free")] public static extern void BlindedHopFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_free")] public static extern void BlindedHopFeaturesFree(long _this_obj); // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_free")] public static extern void ChannelTypeFeatures_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_free")] public static extern void ChannelTypeFeaturesFree(long _this_obj); // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_empty")] public static extern long InitFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_empty")] public static extern long InitFeaturesEmpty(); // MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFeatures *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_unknown_bits_from")] public static extern bool InitFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_unknown_bits_from")] public static extern bool InitFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_unknown_bits")] public static extern bool InitFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_unknown_bits")] public static extern bool InitFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_required_feature_bit")] public static extern long InitFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_required_feature_bit")] public static extern long InitFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_optional_feature_bit")] public static extern long InitFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_optional_feature_bit")] public static extern long InitFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_required_custom_bit")] public static extern long InitFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_required_custom_bit")] public static extern long InitFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_optional_custom_bit")] public static extern long InitFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_optional_custom_bit")] public static extern long InitFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_empty")] public static extern long NodeFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_empty")] public static extern long NodeFeaturesEmpty(); // MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFeatures *NONNULL_PTR this_arg, const struct LDKNodeFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_unknown_bits_from")] public static extern bool NodeFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_unknown_bits_from")] public static extern bool NodeFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_unknown_bits")] public static extern bool NodeFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_unknown_bits")] public static extern bool NodeFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_required_feature_bit")] public static extern long NodeFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_required_feature_bit")] public static extern long NodeFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_optional_feature_bit")] public static extern long NodeFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_optional_feature_bit")] public static extern long NodeFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_required_custom_bit")] public static extern long NodeFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_required_custom_bit")] public static extern long NodeFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_optional_custom_bit")] public static extern long NodeFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_optional_custom_bit")] public static extern long NodeFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_empty")] public static extern long ChannelFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_empty")] public static extern long ChannelFeaturesEmpty(); // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKChannelFeatures *NONNULL_PTR this_arg, const struct LDKChannelFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_requires_unknown_bits_from")] public static extern bool ChannelFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_requires_unknown_bits_from")] public static extern bool ChannelFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_requires_unknown_bits")] public static extern bool ChannelFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_requires_unknown_bits")] public static extern bool ChannelFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_required_feature_bit")] public static extern long ChannelFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_required_feature_bit")] public static extern long ChannelFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_optional_feature_bit")] public static extern long ChannelFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_optional_feature_bit")] public static extern long ChannelFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_required_custom_bit")] public static extern long ChannelFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_required_custom_bit")] public static extern long ChannelFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_optional_custom_bit")] public static extern long ChannelFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_set_optional_custom_bit")] public static extern long ChannelFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_empty")] public static extern long Bolt11InvoiceFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_empty")] public static extern long Bolt11InvoiceFeaturesEmpty(); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_unknown_bits_from")] public static extern bool Bolt11InvoiceFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_unknown_bits_from")] public static extern bool Bolt11InvoiceFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_unknown_bits")] public static extern bool Bolt11InvoiceFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_unknown_bits")] public static extern bool Bolt11InvoiceFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_required_feature_bit")] public static extern long Bolt11InvoiceFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_required_feature_bit")] public static extern long Bolt11InvoiceFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_optional_feature_bit")] public static extern long Bolt11InvoiceFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_optional_feature_bit")] public static extern long Bolt11InvoiceFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_required_custom_bit")] public static extern long Bolt11InvoiceFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_required_custom_bit")] public static extern long Bolt11InvoiceFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_optional_custom_bit")] public static extern long Bolt11InvoiceFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_optional_custom_bit")] public static extern long Bolt11InvoiceFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_empty")] public static extern long OfferFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_empty")] public static extern long OfferFeaturesEmpty(); // MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOfferFeatures *NONNULL_PTR this_arg, const struct LDKOfferFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_requires_unknown_bits_from")] public static extern bool OfferFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_requires_unknown_bits_from")] public static extern bool OfferFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_requires_unknown_bits")] public static extern bool OfferFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_requires_unknown_bits")] public static extern bool OfferFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_required_feature_bit")] public static extern long OfferFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_required_feature_bit")] public static extern long OfferFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_optional_feature_bit")] public static extern long OfferFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_optional_feature_bit")] public static extern long OfferFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_required_custom_bit")] public static extern long OfferFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_required_custom_bit")] public static extern long OfferFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_optional_custom_bit")] public static extern long OfferFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OfferFeatures_set_optional_custom_bit")] public static extern long OfferFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_empty")] public static extern long InvoiceRequestFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_empty")] public static extern long InvoiceRequestFeaturesEmpty(); // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, const struct LDKInvoiceRequestFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_requires_unknown_bits_from")] public static extern bool InvoiceRequestFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_requires_unknown_bits_from")] public static extern bool InvoiceRequestFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_requires_unknown_bits")] public static extern bool InvoiceRequestFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_requires_unknown_bits")] public static extern bool InvoiceRequestFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_required_feature_bit")] public static extern long InvoiceRequestFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_required_feature_bit")] public static extern long InvoiceRequestFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_optional_feature_bit")] public static extern long InvoiceRequestFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_optional_feature_bit")] public static extern long InvoiceRequestFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_required_custom_bit")] public static extern long InvoiceRequestFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_required_custom_bit")] public static extern long InvoiceRequestFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_optional_custom_bit")] public static extern long InvoiceRequestFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequestFeatures_set_optional_custom_bit")] public static extern long InvoiceRequestFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_empty")] public static extern long Bolt12InvoiceFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_empty")] public static extern long Bolt12InvoiceFeaturesEmpty(); // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_unknown_bits_from")] public static extern bool Bolt12InvoiceFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_unknown_bits_from")] public static extern bool Bolt12InvoiceFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_unknown_bits")] public static extern bool Bolt12InvoiceFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_unknown_bits")] public static extern bool Bolt12InvoiceFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_required_feature_bit")] public static extern long Bolt12InvoiceFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_required_feature_bit")] public static extern long Bolt12InvoiceFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_optional_feature_bit")] public static extern long Bolt12InvoiceFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_optional_feature_bit")] public static extern long Bolt12InvoiceFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_required_custom_bit")] public static extern long Bolt12InvoiceFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_required_custom_bit")] public static extern long Bolt12InvoiceFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_optional_custom_bit")] public static extern long Bolt12InvoiceFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_optional_custom_bit")] public static extern long Bolt12InvoiceFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_empty")] public static extern long BlindedHopFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_empty")] public static extern long BlindedHopFeaturesEmpty(); // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, const struct LDKBlindedHopFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_requires_unknown_bits_from")] public static extern bool BlindedHopFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_requires_unknown_bits_from")] public static extern bool BlindedHopFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_requires_unknown_bits")] public static extern bool BlindedHopFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_requires_unknown_bits")] public static extern bool BlindedHopFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_required_feature_bit")] public static extern long BlindedHopFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_required_feature_bit")] public static extern long BlindedHopFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_optional_feature_bit")] public static extern long BlindedHopFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_optional_feature_bit")] public static extern long BlindedHopFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_required_custom_bit")] public static extern long BlindedHopFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_required_custom_bit")] public static extern long BlindedHopFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_optional_custom_bit")] public static extern long BlindedHopFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_set_optional_custom_bit")] public static extern long BlindedHopFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_empty")] public static extern long ChannelTypeFeatures_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_empty")] public static extern long ChannelTypeFeaturesEmpty(); // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, const struct LDKChannelTypeFeatures *NONNULL_PTR other); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_unknown_bits_from")] public static extern bool ChannelTypeFeatures_requires_unknown_bits_from(long _this_arg, long _other); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_unknown_bits_from")] public static extern bool ChannelTypeFeaturesRequiresUnknownBitsFrom(long _this_arg, long _other); // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_unknown_bits")] public static extern bool ChannelTypeFeatures_requires_unknown_bits(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_unknown_bits")] public static extern bool ChannelTypeFeaturesRequiresUnknownBits(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_required_feature_bit")] public static extern long ChannelTypeFeatures_set_required_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_required_feature_bit")] public static extern long ChannelTypeFeaturesSetRequiredFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_optional_feature_bit")] public static extern long ChannelTypeFeatures_set_optional_feature_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_optional_feature_bit")] public static extern long ChannelTypeFeaturesSetOptionalFeatureBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_required_custom_bit")] public static extern long ChannelTypeFeatures_set_required_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_required_custom_bit")] public static extern long ChannelTypeFeaturesSetRequiredCustomBit(long _this_arg, long _bit); // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_optional_custom_bit")] public static extern long ChannelTypeFeatures_set_optional_custom_bit(long _this_arg, long _bit); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_optional_custom_bit")] public static extern long ChannelTypeFeaturesSetOptionalCustomBit(long _this_arg, long _bit); // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_write")] public static extern long InitFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_write")] public static extern long InitFeaturesWrite(long _obj); // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_read")] public static extern long InitFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_read")] public static extern long InitFeaturesRead(long _ser); // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_write")] public static extern long ChannelFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_write")] public static extern long ChannelFeaturesWrite(long _obj); // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_read")] public static extern long ChannelFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelFeatures_read")] public static extern long ChannelFeaturesRead(long _ser); // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_write")] public static extern long NodeFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_write")] public static extern long NodeFeaturesWrite(long _obj); // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_read")] public static extern long NodeFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_read")] public static extern long NodeFeaturesRead(long _ser); // struct LDKCVec_u8Z Bolt11InvoiceFeatures_write(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_write")] public static extern long Bolt11InvoiceFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_write")] public static extern long Bolt11InvoiceFeaturesWrite(long _obj); // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ Bolt11InvoiceFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_read")] public static extern long Bolt11InvoiceFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_read")] public static extern long Bolt11InvoiceFeaturesRead(long _ser); // struct LDKCVec_u8Z Bolt12InvoiceFeatures_write(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_write")] public static extern long Bolt12InvoiceFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_write")] public static extern long Bolt12InvoiceFeaturesWrite(long _obj); // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ Bolt12InvoiceFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_read")] public static extern long Bolt12InvoiceFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_read")] public static extern long Bolt12InvoiceFeaturesRead(long _ser); // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_write")] public static extern long BlindedHopFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_write")] public static extern long BlindedHopFeaturesWrite(long _obj); // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_read")] public static extern long BlindedHopFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHopFeatures_read")] public static extern long BlindedHopFeaturesRead(long _ser); // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_write")] public static extern long ChannelTypeFeatures_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_write")] public static extern long ChannelTypeFeaturesWrite(long _obj); // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_read")] public static extern long ChannelTypeFeatures_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_read")] public static extern long ChannelTypeFeaturesRead(long _ser); // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_data_loss_protect_optional")] public static extern void InitFeatures_set_data_loss_protect_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_data_loss_protect_optional")] public static extern void InitFeaturesSetDataLossProtectOptional(long _this_arg); // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_data_loss_protect_required")] public static extern void InitFeatures_set_data_loss_protect_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_data_loss_protect_required")] public static extern void InitFeaturesSetDataLossProtectRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_data_loss_protect")] public static extern bool InitFeatures_supports_data_loss_protect(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_data_loss_protect")] public static extern bool InitFeaturesSupportsDataLossProtect(long _this_arg); // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_data_loss_protect_optional")] public static extern void NodeFeatures_set_data_loss_protect_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_data_loss_protect_optional")] public static extern void NodeFeaturesSetDataLossProtectOptional(long _this_arg); // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_data_loss_protect_required")] public static extern void NodeFeatures_set_data_loss_protect_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_data_loss_protect_required")] public static extern void NodeFeaturesSetDataLossProtectRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_data_loss_protect")] public static extern bool NodeFeatures_supports_data_loss_protect(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_data_loss_protect")] public static extern bool NodeFeaturesSupportsDataLossProtect(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_data_loss_protect")] public static extern bool InitFeatures_requires_data_loss_protect(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_data_loss_protect")] public static extern bool InitFeaturesRequiresDataLossProtect(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_data_loss_protect")] public static extern bool NodeFeatures_requires_data_loss_protect(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_data_loss_protect")] public static extern bool NodeFeaturesRequiresDataLossProtect(long _this_arg); // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_initial_routing_sync_optional")] public static extern void InitFeatures_set_initial_routing_sync_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_initial_routing_sync_optional")] public static extern void InitFeaturesSetInitialRoutingSyncOptional(long _this_arg); // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_initial_routing_sync_required")] public static extern void InitFeatures_set_initial_routing_sync_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_initial_routing_sync_required")] public static extern void InitFeaturesSetInitialRoutingSyncRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_initial_routing_sync")] public static extern bool InitFeatures_initial_routing_sync(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_initial_routing_sync")] public static extern bool InitFeaturesInitialRoutingSync(long _this_arg); // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_upfront_shutdown_script_optional")] public static extern void InitFeatures_set_upfront_shutdown_script_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_upfront_shutdown_script_optional")] public static extern void InitFeaturesSetUpfrontShutdownScriptOptional(long _this_arg); // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_upfront_shutdown_script_required")] public static extern void InitFeatures_set_upfront_shutdown_script_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_upfront_shutdown_script_required")] public static extern void InitFeaturesSetUpfrontShutdownScriptRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_upfront_shutdown_script")] public static extern bool InitFeatures_supports_upfront_shutdown_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_upfront_shutdown_script")] public static extern bool InitFeaturesSupportsUpfrontShutdownScript(long _this_arg); // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_upfront_shutdown_script_optional")] public static extern void NodeFeatures_set_upfront_shutdown_script_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_upfront_shutdown_script_optional")] public static extern void NodeFeaturesSetUpfrontShutdownScriptOptional(long _this_arg); // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_upfront_shutdown_script_required")] public static extern void NodeFeatures_set_upfront_shutdown_script_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_upfront_shutdown_script_required")] public static extern void NodeFeaturesSetUpfrontShutdownScriptRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_upfront_shutdown_script")] public static extern bool NodeFeatures_supports_upfront_shutdown_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_upfront_shutdown_script")] public static extern bool NodeFeaturesSupportsUpfrontShutdownScript(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_upfront_shutdown_script")] public static extern bool InitFeatures_requires_upfront_shutdown_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_upfront_shutdown_script")] public static extern bool InitFeaturesRequiresUpfrontShutdownScript(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_upfront_shutdown_script")] public static extern bool NodeFeatures_requires_upfront_shutdown_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_upfront_shutdown_script")] public static extern bool NodeFeaturesRequiresUpfrontShutdownScript(long _this_arg); // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_gossip_queries_optional")] public static extern void InitFeatures_set_gossip_queries_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_gossip_queries_optional")] public static extern void InitFeaturesSetGossipQueriesOptional(long _this_arg); // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_gossip_queries_required")] public static extern void InitFeatures_set_gossip_queries_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_gossip_queries_required")] public static extern void InitFeaturesSetGossipQueriesRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_gossip_queries")] public static extern bool InitFeatures_supports_gossip_queries(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_gossip_queries")] public static extern bool InitFeaturesSupportsGossipQueries(long _this_arg); // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_gossip_queries_optional")] public static extern void NodeFeatures_set_gossip_queries_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_gossip_queries_optional")] public static extern void NodeFeaturesSetGossipQueriesOptional(long _this_arg); // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_gossip_queries_required")] public static extern void NodeFeatures_set_gossip_queries_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_gossip_queries_required")] public static extern void NodeFeaturesSetGossipQueriesRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_gossip_queries")] public static extern bool NodeFeatures_supports_gossip_queries(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_gossip_queries")] public static extern bool NodeFeaturesSupportsGossipQueries(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_gossip_queries")] public static extern bool InitFeatures_requires_gossip_queries(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_gossip_queries")] public static extern bool InitFeaturesRequiresGossipQueries(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_gossip_queries")] public static extern bool NodeFeatures_requires_gossip_queries(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_gossip_queries")] public static extern bool NodeFeaturesRequiresGossipQueries(long _this_arg); // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_variable_length_onion_optional")] public static extern void InitFeatures_set_variable_length_onion_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_variable_length_onion_optional")] public static extern void InitFeaturesSetVariableLengthOnionOptional(long _this_arg); // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_variable_length_onion_required")] public static extern void InitFeatures_set_variable_length_onion_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_variable_length_onion_required")] public static extern void InitFeaturesSetVariableLengthOnionRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_variable_length_onion")] public static extern bool InitFeatures_supports_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_variable_length_onion")] public static extern bool InitFeaturesSupportsVariableLengthOnion(long _this_arg); // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_variable_length_onion_optional")] public static extern void NodeFeatures_set_variable_length_onion_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_variable_length_onion_optional")] public static extern void NodeFeaturesSetVariableLengthOnionOptional(long _this_arg); // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_variable_length_onion_required")] public static extern void NodeFeatures_set_variable_length_onion_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_variable_length_onion_required")] public static extern void NodeFeaturesSetVariableLengthOnionRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_variable_length_onion")] public static extern bool NodeFeatures_supports_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_variable_length_onion")] public static extern bool NodeFeaturesSupportsVariableLengthOnion(long _this_arg); // void Bolt11InvoiceFeatures_set_variable_length_onion_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_variable_length_onion_optional")] public static extern void Bolt11InvoiceFeatures_set_variable_length_onion_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_variable_length_onion_optional")] public static extern void Bolt11InvoiceFeaturesSetVariableLengthOnionOptional(long _this_arg); // void Bolt11InvoiceFeatures_set_variable_length_onion_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_variable_length_onion_required")] public static extern void Bolt11InvoiceFeatures_set_variable_length_onion_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_variable_length_onion_required")] public static extern void Bolt11InvoiceFeaturesSetVariableLengthOnionRequired(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_variable_length_onion")] public static extern bool Bolt11InvoiceFeatures_supports_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_variable_length_onion")] public static extern bool Bolt11InvoiceFeaturesSupportsVariableLengthOnion(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_variable_length_onion")] public static extern bool InitFeatures_requires_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_variable_length_onion")] public static extern bool InitFeaturesRequiresVariableLengthOnion(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_variable_length_onion")] public static extern bool NodeFeatures_requires_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_variable_length_onion")] public static extern bool NodeFeaturesRequiresVariableLengthOnion(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_variable_length_onion")] public static extern bool Bolt11InvoiceFeatures_requires_variable_length_onion(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_variable_length_onion")] public static extern bool Bolt11InvoiceFeaturesRequiresVariableLengthOnion(long _this_arg); // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_static_remote_key_optional")] public static extern void InitFeatures_set_static_remote_key_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_static_remote_key_optional")] public static extern void InitFeaturesSetStaticRemoteKeyOptional(long _this_arg); // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_static_remote_key_required")] public static extern void InitFeatures_set_static_remote_key_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_static_remote_key_required")] public static extern void InitFeaturesSetStaticRemoteKeyRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_static_remote_key")] public static extern bool InitFeatures_supports_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_static_remote_key")] public static extern bool InitFeaturesSupportsStaticRemoteKey(long _this_arg); // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_static_remote_key_optional")] public static extern void NodeFeatures_set_static_remote_key_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_static_remote_key_optional")] public static extern void NodeFeaturesSetStaticRemoteKeyOptional(long _this_arg); // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_static_remote_key_required")] public static extern void NodeFeatures_set_static_remote_key_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_static_remote_key_required")] public static extern void NodeFeaturesSetStaticRemoteKeyRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_static_remote_key")] public static extern bool NodeFeatures_supports_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_static_remote_key")] public static extern bool NodeFeaturesSupportsStaticRemoteKey(long _this_arg); // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_static_remote_key_optional")] public static extern void ChannelTypeFeatures_set_static_remote_key_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_static_remote_key_optional")] public static extern void ChannelTypeFeaturesSetStaticRemoteKeyOptional(long _this_arg); // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_static_remote_key_required")] public static extern void ChannelTypeFeatures_set_static_remote_key_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_static_remote_key_required")] public static extern void ChannelTypeFeaturesSetStaticRemoteKeyRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_static_remote_key")] public static extern bool ChannelTypeFeatures_supports_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_static_remote_key")] public static extern bool ChannelTypeFeaturesSupportsStaticRemoteKey(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_static_remote_key")] public static extern bool InitFeatures_requires_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_static_remote_key")] public static extern bool InitFeaturesRequiresStaticRemoteKey(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_static_remote_key")] public static extern bool NodeFeatures_requires_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_static_remote_key")] public static extern bool NodeFeaturesRequiresStaticRemoteKey(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_static_remote_key")] public static extern bool ChannelTypeFeatures_requires_static_remote_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_static_remote_key")] public static extern bool ChannelTypeFeaturesRequiresStaticRemoteKey(long _this_arg); // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_payment_secret_optional")] public static extern void InitFeatures_set_payment_secret_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_payment_secret_optional")] public static extern void InitFeaturesSetPaymentSecretOptional(long _this_arg); // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_payment_secret_required")] public static extern void InitFeatures_set_payment_secret_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_payment_secret_required")] public static extern void InitFeaturesSetPaymentSecretRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_payment_secret")] public static extern bool InitFeatures_supports_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_payment_secret")] public static extern bool InitFeaturesSupportsPaymentSecret(long _this_arg); // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_payment_secret_optional")] public static extern void NodeFeatures_set_payment_secret_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_payment_secret_optional")] public static extern void NodeFeaturesSetPaymentSecretOptional(long _this_arg); // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_payment_secret_required")] public static extern void NodeFeatures_set_payment_secret_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_payment_secret_required")] public static extern void NodeFeaturesSetPaymentSecretRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_payment_secret")] public static extern bool NodeFeatures_supports_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_payment_secret")] public static extern bool NodeFeaturesSupportsPaymentSecret(long _this_arg); // void Bolt11InvoiceFeatures_set_payment_secret_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_secret_optional")] public static extern void Bolt11InvoiceFeatures_set_payment_secret_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_secret_optional")] public static extern void Bolt11InvoiceFeaturesSetPaymentSecretOptional(long _this_arg); // void Bolt11InvoiceFeatures_set_payment_secret_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_secret_required")] public static extern void Bolt11InvoiceFeatures_set_payment_secret_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_secret_required")] public static extern void Bolt11InvoiceFeaturesSetPaymentSecretRequired(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_payment_secret")] public static extern bool Bolt11InvoiceFeatures_supports_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_payment_secret")] public static extern bool Bolt11InvoiceFeaturesSupportsPaymentSecret(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_payment_secret")] public static extern bool InitFeatures_requires_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_payment_secret")] public static extern bool InitFeaturesRequiresPaymentSecret(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_payment_secret")] public static extern bool NodeFeatures_requires_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_payment_secret")] public static extern bool NodeFeaturesRequiresPaymentSecret(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_payment_secret")] public static extern bool Bolt11InvoiceFeatures_requires_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_payment_secret")] public static extern bool Bolt11InvoiceFeaturesRequiresPaymentSecret(long _this_arg); // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_basic_mpp_optional")] public static extern void InitFeatures_set_basic_mpp_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_basic_mpp_optional")] public static extern void InitFeaturesSetBasicMppOptional(long _this_arg); // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_basic_mpp_required")] public static extern void InitFeatures_set_basic_mpp_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_basic_mpp_required")] public static extern void InitFeaturesSetBasicMppRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_basic_mpp")] public static extern bool InitFeatures_supports_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_basic_mpp")] public static extern bool InitFeaturesSupportsBasicMpp(long _this_arg); // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_basic_mpp_optional")] public static extern void NodeFeatures_set_basic_mpp_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_basic_mpp_optional")] public static extern void NodeFeaturesSetBasicMppOptional(long _this_arg); // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_basic_mpp_required")] public static extern void NodeFeatures_set_basic_mpp_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_basic_mpp_required")] public static extern void NodeFeaturesSetBasicMppRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_basic_mpp")] public static extern bool NodeFeatures_supports_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_basic_mpp")] public static extern bool NodeFeaturesSupportsBasicMpp(long _this_arg); // void Bolt11InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_basic_mpp_optional")] public static extern void Bolt11InvoiceFeatures_set_basic_mpp_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_basic_mpp_optional")] public static extern void Bolt11InvoiceFeaturesSetBasicMppOptional(long _this_arg); // void Bolt11InvoiceFeatures_set_basic_mpp_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_basic_mpp_required")] public static extern void Bolt11InvoiceFeatures_set_basic_mpp_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_basic_mpp_required")] public static extern void Bolt11InvoiceFeaturesSetBasicMppRequired(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_basic_mpp")] public static extern bool Bolt11InvoiceFeatures_supports_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_basic_mpp")] public static extern bool Bolt11InvoiceFeaturesSupportsBasicMpp(long _this_arg); // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_basic_mpp_optional")] public static extern void Bolt12InvoiceFeatures_set_basic_mpp_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_basic_mpp_optional")] public static extern void Bolt12InvoiceFeaturesSetBasicMppOptional(long _this_arg); // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_basic_mpp_required")] public static extern void Bolt12InvoiceFeatures_set_basic_mpp_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_set_basic_mpp_required")] public static extern void Bolt12InvoiceFeaturesSetBasicMppRequired(long _this_arg); // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_supports_basic_mpp")] public static extern bool Bolt12InvoiceFeatures_supports_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_supports_basic_mpp")] public static extern bool Bolt12InvoiceFeaturesSupportsBasicMpp(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_basic_mpp")] public static extern bool InitFeatures_requires_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_basic_mpp")] public static extern bool InitFeaturesRequiresBasicMpp(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_basic_mpp")] public static extern bool NodeFeatures_requires_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_basic_mpp")] public static extern bool NodeFeaturesRequiresBasicMpp(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_basic_mpp")] public static extern bool Bolt11InvoiceFeatures_requires_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_basic_mpp")] public static extern bool Bolt11InvoiceFeaturesRequiresBasicMpp(long _this_arg); // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_basic_mpp")] public static extern bool Bolt12InvoiceFeatures_requires_basic_mpp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12InvoiceFeatures_requires_basic_mpp")] public static extern bool Bolt12InvoiceFeaturesRequiresBasicMpp(long _this_arg); // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_wumbo_optional")] public static extern void InitFeatures_set_wumbo_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_wumbo_optional")] public static extern void InitFeaturesSetWumboOptional(long _this_arg); // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_wumbo_required")] public static extern void InitFeatures_set_wumbo_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_wumbo_required")] public static extern void InitFeaturesSetWumboRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_wumbo")] public static extern bool InitFeatures_supports_wumbo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_wumbo")] public static extern bool InitFeaturesSupportsWumbo(long _this_arg); // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_wumbo_optional")] public static extern void NodeFeatures_set_wumbo_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_wumbo_optional")] public static extern void NodeFeaturesSetWumboOptional(long _this_arg); // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_wumbo_required")] public static extern void NodeFeatures_set_wumbo_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_wumbo_required")] public static extern void NodeFeaturesSetWumboRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_wumbo")] public static extern bool NodeFeatures_supports_wumbo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_wumbo")] public static extern bool NodeFeaturesSupportsWumbo(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_wumbo")] public static extern bool InitFeatures_requires_wumbo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_wumbo")] public static extern bool InitFeaturesRequiresWumbo(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_wumbo")] public static extern bool NodeFeatures_requires_wumbo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_wumbo")] public static extern bool NodeFeaturesRequiresWumbo(long _this_arg); // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void InitFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(long _this_arg); // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void InitFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool InitFeaturesSupportsAnchorsNonzeroFeeHtlcTx(long _this_arg); // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void NodeFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(long _this_arg); // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void NodeFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool NodeFeaturesSupportsAnchorsNonzeroFeeHtlcTx(long _this_arg); // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional")] public static extern void ChannelTypeFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(long _this_arg); // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required")] public static extern void ChannelTypeFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx")] public static extern bool ChannelTypeFeaturesSupportsAnchorsNonzeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool InitFeaturesRequiresAnchorsNonzeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool NodeFeaturesRequiresAnchorsNonzeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx")] public static extern bool ChannelTypeFeaturesRequiresAnchorsNonzeroFeeHtlcTx(long _this_arg); // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void InitFeaturesSetAnchorsZeroFeeHtlcTxOptional(long _this_arg); // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void InitFeaturesSetAnchorsZeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool InitFeatures_supports_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool InitFeaturesSupportsAnchorsZeroFeeHtlcTx(long _this_arg); // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void NodeFeaturesSetAnchorsZeroFeeHtlcTxOptional(long _this_arg); // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void NodeFeaturesSetAnchorsZeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool NodeFeaturesSupportsAnchorsZeroFeeHtlcTx(long _this_arg); // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional")] public static extern void ChannelTypeFeaturesSetAnchorsZeroFeeHtlcTxOptional(long _this_arg); // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required")] public static extern void ChannelTypeFeaturesSetAnchorsZeroFeeHtlcTxRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx")] public static extern bool ChannelTypeFeaturesSupportsAnchorsZeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool InitFeatures_requires_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool InitFeaturesRequiresAnchorsZeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool NodeFeaturesRequiresAnchorsZeroFeeHtlcTx(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx")] public static extern bool ChannelTypeFeaturesRequiresAnchorsZeroFeeHtlcTx(long _this_arg); // void InitFeatures_set_route_blinding_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_route_blinding_optional")] public static extern void InitFeatures_set_route_blinding_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_route_blinding_optional")] public static extern void InitFeaturesSetRouteBlindingOptional(long _this_arg); // void InitFeatures_set_route_blinding_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_route_blinding_required")] public static extern void InitFeatures_set_route_blinding_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_route_blinding_required")] public static extern void InitFeaturesSetRouteBlindingRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_route_blinding")] public static extern bool InitFeatures_supports_route_blinding(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_route_blinding")] public static extern bool InitFeaturesSupportsRouteBlinding(long _this_arg); // void NodeFeatures_set_route_blinding_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_route_blinding_optional")] public static extern void NodeFeatures_set_route_blinding_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_route_blinding_optional")] public static extern void NodeFeaturesSetRouteBlindingOptional(long _this_arg); // void NodeFeatures_set_route_blinding_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_route_blinding_required")] public static extern void NodeFeatures_set_route_blinding_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_route_blinding_required")] public static extern void NodeFeaturesSetRouteBlindingRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_route_blinding")] public static extern bool NodeFeatures_supports_route_blinding(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_route_blinding")] public static extern bool NodeFeaturesSupportsRouteBlinding(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_route_blinding")] public static extern bool InitFeatures_requires_route_blinding(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_route_blinding")] public static extern bool InitFeaturesRequiresRouteBlinding(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_route_blinding")] public static extern bool NodeFeatures_requires_route_blinding(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_route_blinding")] public static extern bool NodeFeaturesRequiresRouteBlinding(long _this_arg); // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_shutdown_any_segwit_optional")] public static extern void InitFeatures_set_shutdown_any_segwit_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_shutdown_any_segwit_optional")] public static extern void InitFeaturesSetShutdownAnySegwitOptional(long _this_arg); // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_shutdown_any_segwit_required")] public static extern void InitFeatures_set_shutdown_any_segwit_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_shutdown_any_segwit_required")] public static extern void InitFeaturesSetShutdownAnySegwitRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_shutdown_anysegwit")] public static extern bool InitFeatures_supports_shutdown_anysegwit(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_shutdown_anysegwit")] public static extern bool InitFeaturesSupportsShutdownAnysegwit(long _this_arg); // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_shutdown_any_segwit_optional")] public static extern void NodeFeatures_set_shutdown_any_segwit_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_shutdown_any_segwit_optional")] public static extern void NodeFeaturesSetShutdownAnySegwitOptional(long _this_arg); // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_shutdown_any_segwit_required")] public static extern void NodeFeatures_set_shutdown_any_segwit_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_shutdown_any_segwit_required")] public static extern void NodeFeaturesSetShutdownAnySegwitRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_shutdown_anysegwit")] public static extern bool NodeFeatures_supports_shutdown_anysegwit(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_shutdown_anysegwit")] public static extern bool NodeFeaturesSupportsShutdownAnysegwit(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_shutdown_anysegwit")] public static extern bool InitFeatures_requires_shutdown_anysegwit(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_shutdown_anysegwit")] public static extern bool InitFeaturesRequiresShutdownAnysegwit(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_shutdown_anysegwit")] public static extern bool NodeFeatures_requires_shutdown_anysegwit(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_shutdown_anysegwit")] public static extern bool NodeFeaturesRequiresShutdownAnysegwit(long _this_arg); // void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_taproot_optional")] public static extern void InitFeatures_set_taproot_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_taproot_optional")] public static extern void InitFeaturesSetTaprootOptional(long _this_arg); // void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_taproot_required")] public static extern void InitFeatures_set_taproot_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_taproot_required")] public static extern void InitFeaturesSetTaprootRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_taproot")] public static extern bool InitFeatures_supports_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_taproot")] public static extern bool InitFeaturesSupportsTaproot(long _this_arg); // void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_taproot_optional")] public static extern void NodeFeatures_set_taproot_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_taproot_optional")] public static extern void NodeFeaturesSetTaprootOptional(long _this_arg); // void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_taproot_required")] public static extern void NodeFeatures_set_taproot_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_taproot_required")] public static extern void NodeFeaturesSetTaprootRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_taproot")] public static extern bool NodeFeatures_supports_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_taproot")] public static extern bool NodeFeaturesSupportsTaproot(long _this_arg); // void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_taproot_optional")] public static extern void ChannelTypeFeatures_set_taproot_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_taproot_optional")] public static extern void ChannelTypeFeaturesSetTaprootOptional(long _this_arg); // void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_taproot_required")] public static extern void ChannelTypeFeatures_set_taproot_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_taproot_required")] public static extern void ChannelTypeFeaturesSetTaprootRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_taproot")] public static extern bool ChannelTypeFeatures_supports_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_taproot")] public static extern bool ChannelTypeFeaturesSupportsTaproot(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_taproot")] public static extern bool InitFeatures_requires_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_taproot")] public static extern bool InitFeaturesRequiresTaproot(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_taproot")] public static extern bool NodeFeatures_requires_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_taproot")] public static extern bool NodeFeaturesRequiresTaproot(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_taproot")] public static extern bool ChannelTypeFeatures_requires_taproot(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_taproot")] public static extern bool ChannelTypeFeaturesRequiresTaproot(long _this_arg); // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_onion_messages_optional")] public static extern void InitFeatures_set_onion_messages_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_onion_messages_optional")] public static extern void InitFeaturesSetOnionMessagesOptional(long _this_arg); // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_onion_messages_required")] public static extern void InitFeatures_set_onion_messages_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_onion_messages_required")] public static extern void InitFeaturesSetOnionMessagesRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_onion_messages")] public static extern bool InitFeatures_supports_onion_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_onion_messages")] public static extern bool InitFeaturesSupportsOnionMessages(long _this_arg); // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_onion_messages_optional")] public static extern void NodeFeatures_set_onion_messages_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_onion_messages_optional")] public static extern void NodeFeaturesSetOnionMessagesOptional(long _this_arg); // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_onion_messages_required")] public static extern void NodeFeatures_set_onion_messages_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_onion_messages_required")] public static extern void NodeFeaturesSetOnionMessagesRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_onion_messages")] public static extern bool NodeFeatures_supports_onion_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_onion_messages")] public static extern bool NodeFeaturesSupportsOnionMessages(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_onion_messages")] public static extern bool InitFeatures_requires_onion_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_onion_messages")] public static extern bool InitFeaturesRequiresOnionMessages(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_onion_messages")] public static extern bool NodeFeatures_requires_onion_messages(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_onion_messages")] public static extern bool NodeFeaturesRequiresOnionMessages(long _this_arg); // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_channel_type_optional")] public static extern void InitFeatures_set_channel_type_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_channel_type_optional")] public static extern void InitFeaturesSetChannelTypeOptional(long _this_arg); // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_channel_type_required")] public static extern void InitFeatures_set_channel_type_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_channel_type_required")] public static extern void InitFeaturesSetChannelTypeRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_channel_type")] public static extern bool InitFeatures_supports_channel_type(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_channel_type")] public static extern bool InitFeaturesSupportsChannelType(long _this_arg); // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_channel_type_optional")] public static extern void NodeFeatures_set_channel_type_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_channel_type_optional")] public static extern void NodeFeaturesSetChannelTypeOptional(long _this_arg); // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_channel_type_required")] public static extern void NodeFeatures_set_channel_type_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_channel_type_required")] public static extern void NodeFeaturesSetChannelTypeRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_channel_type")] public static extern bool NodeFeatures_supports_channel_type(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_channel_type")] public static extern bool NodeFeaturesSupportsChannelType(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_channel_type")] public static extern bool InitFeatures_requires_channel_type(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_channel_type")] public static extern bool InitFeaturesRequiresChannelType(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_channel_type")] public static extern bool NodeFeatures_requires_channel_type(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_channel_type")] public static extern bool NodeFeaturesRequiresChannelType(long _this_arg); // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_scid_privacy_optional")] public static extern void InitFeatures_set_scid_privacy_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_scid_privacy_optional")] public static extern void InitFeaturesSetScidPrivacyOptional(long _this_arg); // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_scid_privacy_required")] public static extern void InitFeatures_set_scid_privacy_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_scid_privacy_required")] public static extern void InitFeaturesSetScidPrivacyRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_scid_privacy")] public static extern bool InitFeatures_supports_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_scid_privacy")] public static extern bool InitFeaturesSupportsScidPrivacy(long _this_arg); // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_scid_privacy_optional")] public static extern void NodeFeatures_set_scid_privacy_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_scid_privacy_optional")] public static extern void NodeFeaturesSetScidPrivacyOptional(long _this_arg); // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_scid_privacy_required")] public static extern void NodeFeatures_set_scid_privacy_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_scid_privacy_required")] public static extern void NodeFeaturesSetScidPrivacyRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_scid_privacy")] public static extern bool NodeFeatures_supports_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_scid_privacy")] public static extern bool NodeFeaturesSupportsScidPrivacy(long _this_arg); // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_scid_privacy_optional")] public static extern void ChannelTypeFeatures_set_scid_privacy_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_scid_privacy_optional")] public static extern void ChannelTypeFeaturesSetScidPrivacyOptional(long _this_arg); // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_scid_privacy_required")] public static extern void ChannelTypeFeatures_set_scid_privacy_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_scid_privacy_required")] public static extern void ChannelTypeFeaturesSetScidPrivacyRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_scid_privacy")] public static extern bool ChannelTypeFeatures_supports_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_scid_privacy")] public static extern bool ChannelTypeFeaturesSupportsScidPrivacy(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_scid_privacy")] public static extern bool InitFeatures_requires_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_scid_privacy")] public static extern bool InitFeaturesRequiresScidPrivacy(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_scid_privacy")] public static extern bool NodeFeatures_requires_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_scid_privacy")] public static extern bool NodeFeaturesRequiresScidPrivacy(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_scid_privacy")] public static extern bool ChannelTypeFeatures_requires_scid_privacy(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_scid_privacy")] public static extern bool ChannelTypeFeaturesRequiresScidPrivacy(long _this_arg); // void Bolt11InvoiceFeatures_set_payment_metadata_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_metadata_optional")] public static extern void Bolt11InvoiceFeatures_set_payment_metadata_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_metadata_optional")] public static extern void Bolt11InvoiceFeaturesSetPaymentMetadataOptional(long _this_arg); // void Bolt11InvoiceFeatures_set_payment_metadata_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_metadata_required")] public static extern void Bolt11InvoiceFeatures_set_payment_metadata_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_set_payment_metadata_required")] public static extern void Bolt11InvoiceFeaturesSetPaymentMetadataRequired(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_payment_metadata")] public static extern bool Bolt11InvoiceFeatures_supports_payment_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_supports_payment_metadata")] public static extern bool Bolt11InvoiceFeaturesSupportsPaymentMetadata(long _this_arg); // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_payment_metadata")] public static extern bool Bolt11InvoiceFeatures_requires_payment_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceFeatures_requires_payment_metadata")] public static extern bool Bolt11InvoiceFeaturesRequiresPaymentMetadata(long _this_arg); // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_zero_conf_optional")] public static extern void InitFeatures_set_zero_conf_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_zero_conf_optional")] public static extern void InitFeaturesSetZeroConfOptional(long _this_arg); // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_zero_conf_required")] public static extern void InitFeatures_set_zero_conf_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_set_zero_conf_required")] public static extern void InitFeaturesSetZeroConfRequired(long _this_arg); // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_zero_conf")] public static extern bool InitFeatures_supports_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_supports_zero_conf")] public static extern bool InitFeaturesSupportsZeroConf(long _this_arg); // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_zero_conf_optional")] public static extern void NodeFeatures_set_zero_conf_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_zero_conf_optional")] public static extern void NodeFeaturesSetZeroConfOptional(long _this_arg); // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_zero_conf_required")] public static extern void NodeFeatures_set_zero_conf_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_zero_conf_required")] public static extern void NodeFeaturesSetZeroConfRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_zero_conf")] public static extern bool NodeFeatures_supports_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_zero_conf")] public static extern bool NodeFeaturesSupportsZeroConf(long _this_arg); // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_zero_conf_optional")] public static extern void ChannelTypeFeatures_set_zero_conf_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_zero_conf_optional")] public static extern void ChannelTypeFeaturesSetZeroConfOptional(long _this_arg); // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_zero_conf_required")] public static extern void ChannelTypeFeatures_set_zero_conf_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_set_zero_conf_required")] public static extern void ChannelTypeFeaturesSetZeroConfRequired(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_zero_conf")] public static extern bool ChannelTypeFeatures_supports_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_supports_zero_conf")] public static extern bool ChannelTypeFeaturesSupportsZeroConf(long _this_arg); // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_zero_conf")] public static extern bool InitFeatures_requires_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InitFeatures_requires_zero_conf")] public static extern bool InitFeaturesRequiresZeroConf(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_zero_conf")] public static extern bool NodeFeatures_requires_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_zero_conf")] public static extern bool NodeFeaturesRequiresZeroConf(long _this_arg); // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_zero_conf")] public static extern bool ChannelTypeFeatures_requires_zero_conf(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelTypeFeatures_requires_zero_conf")] public static extern bool ChannelTypeFeaturesRequiresZeroConf(long _this_arg); // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_keysend_optional")] public static extern void NodeFeatures_set_keysend_optional(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_keysend_optional")] public static extern void NodeFeaturesSetKeysendOptional(long _this_arg); // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_keysend_required")] public static extern void NodeFeatures_set_keysend_required(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_set_keysend_required")] public static extern void NodeFeaturesSetKeysendRequired(long _this_arg); // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_keysend")] public static extern bool NodeFeatures_supports_keysend(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_supports_keysend")] public static extern bool NodeFeaturesSupportsKeysend(long _this_arg); // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_keysend")] public static extern bool NodeFeatures_requires_keysend(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeFeatures_requires_keysend")] public static extern bool NodeFeaturesRequiresKeysend(long _this_arg); // void ShutdownScript_free(struct LDKShutdownScript this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_free")] public static extern void ShutdownScript_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_free")] public static extern void ShutdownScriptFree(long _this_obj); // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_clone_ptr")] public static extern long ShutdownScript_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_clone_ptr")] public static extern long ShutdownScriptClonePtr(long _arg); // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_clone")] public static extern long ShutdownScript_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_clone")] public static extern long ShutdownScriptClone(long _orig); // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_eq")] public static extern bool ShutdownScript_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_eq")] public static extern bool ShutdownScriptEq(long _a, long _b); // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_free")] public static extern void InvalidShutdownScript_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_free")] public static extern void InvalidShutdownScriptFree(long _this_obj); // struct LDKCVec_u8Z InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_get_script")] public static extern long InvalidShutdownScript_get_script(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_get_script")] public static extern long InvalidShutdownScriptGetScript(long _this_ptr); // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_set_script")] public static extern void InvalidShutdownScript_set_script(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_set_script")] public static extern void InvalidShutdownScriptSetScript(long _this_ptr, long _val); // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_new")] public static extern long InvalidShutdownScript_new(long _script_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_new")] public static extern long InvalidShutdownScriptNew(long _script_arg); // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_clone_ptr")] public static extern long InvalidShutdownScript_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_clone_ptr")] public static extern long InvalidShutdownScriptClonePtr(long _arg); // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_clone")] public static extern long InvalidShutdownScript_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvalidShutdownScript_clone")] public static extern long InvalidShutdownScriptClone(long _orig); // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_write")] public static extern long ShutdownScript_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_write")] public static extern long ShutdownScriptWrite(long _obj); // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_read")] public static extern long ShutdownScript_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_read")] public static extern long ShutdownScriptRead(long _ser); // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_p2wpkh")] public static extern long ShutdownScript_new_p2wpkh(long _pubkey_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_p2wpkh")] public static extern long ShutdownScriptNewP2Wpkh(long _pubkey_hash); // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_p2wsh")] public static extern long ShutdownScript_new_p2wsh(long _script_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_p2wsh")] public static extern long ShutdownScriptNewP2Wsh(long _script_hash); // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessProgram witness_program); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_witness_program")] public static extern long ShutdownScript_new_witness_program(long _witness_program); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_new_witness_program")] public static extern long ShutdownScriptNewWitnessProgram(long _witness_program); // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_into_inner")] public static extern long ShutdownScript_into_inner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_into_inner")] public static extern long ShutdownScriptIntoInner(long _this_arg); // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_as_legacy_pubkey")] public static extern long ShutdownScript_as_legacy_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_as_legacy_pubkey")] public static extern long ShutdownScriptAsLegacyPubkey(long _this_arg); // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_is_compatible")] public static extern bool ShutdownScript_is_compatible(long _this_arg, long _features); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ShutdownScript_is_compatible")] public static extern bool ShutdownScriptIsCompatible(long _this_arg, long _features); // void Retry_free(struct LDKRetry this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_free")] public static extern void Retry_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_free")] public static extern void RetryFree(long _this_ptr); // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_clone_ptr")] public static extern long Retry_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_clone_ptr")] public static extern long RetryClonePtr(long _arg); // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_clone")] public static extern long Retry_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_clone")] public static extern long RetryClone(long _orig); // struct LDKRetry Retry_attempts(uint32_t a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_attempts")] public static extern long Retry_attempts(int _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_attempts")] public static extern long RetryAttempts(int _a); // struct LDKRetry Retry_timeout(uint64_t a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_timeout")] public static extern long Retry_timeout(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_timeout")] public static extern long RetryTimeout(long _a); // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_eq")] public static extern bool Retry_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_eq")] public static extern bool RetryEq(long _a, long _b); // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_hash")] public static extern long Retry_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_hash")] public static extern long RetryHash(long _o); // struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_write")] public static extern long Retry_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_write")] public static extern long RetryWrite(long _obj); // struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_read")] public static extern long Retry_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Retry_read")] public static extern long RetryRead(long _ser); // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_clone")] public static extern RetryableSendFailure RetryableSendFailure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_clone")] public static extern RetryableSendFailure RetryableSendFailureClone(long _orig); // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_payment_expired")] public static extern RetryableSendFailure RetryableSendFailure_payment_expired(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_payment_expired")] public static extern RetryableSendFailure RetryableSendFailurePaymentExpired(); // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_route_not_found")] public static extern RetryableSendFailure RetryableSendFailure_route_not_found(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_route_not_found")] public static extern RetryableSendFailure RetryableSendFailureRouteNotFound(); // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_duplicate_payment")] public static extern RetryableSendFailure RetryableSendFailure_duplicate_payment(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_duplicate_payment")] public static extern RetryableSendFailure RetryableSendFailureDuplicatePayment(); // bool RetryableSendFailure_eq(const enum LDKRetryableSendFailure *NONNULL_PTR a, const enum LDKRetryableSendFailure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_eq")] public static extern bool RetryableSendFailure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RetryableSendFailure_eq")] public static extern bool RetryableSendFailureEq(long _a, long _b); // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_free")] public static extern void PaymentSendFailure_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_free")] public static extern void PaymentSendFailureFree(long _this_ptr); // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_clone_ptr")] public static extern long PaymentSendFailure_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_clone_ptr")] public static extern long PaymentSendFailureClonePtr(long _arg); // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_clone")] public static extern long PaymentSendFailure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_clone")] public static extern long PaymentSendFailureClone(long _orig); // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_parameter_error")] public static extern long PaymentSendFailure_parameter_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_parameter_error")] public static extern long PaymentSendFailureParameterError(long _a); // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_path_parameter_error")] public static extern long PaymentSendFailure_path_parameter_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_path_parameter_error")] public static extern long PaymentSendFailurePathParameterError(long _a); // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_all_failed_resend_safe")] public static extern long PaymentSendFailure_all_failed_resend_safe(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_all_failed_resend_safe")] public static extern long PaymentSendFailureAllFailedResendSafe(long _a); // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_duplicate_payment")] public static extern long PaymentSendFailure_duplicate_payment(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_duplicate_payment")] public static extern long PaymentSendFailureDuplicatePayment(); // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_partial_failure")] public static extern long PaymentSendFailure_partial_failure(long _results, long _failed_paths_retry, long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_partial_failure")] public static extern long PaymentSendFailurePartialFailure(long _results, long _failed_paths_retry, long _payment_id); // bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_eq")] public static extern bool PaymentSendFailure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentSendFailure_eq")] public static extern bool PaymentSendFailureEq(long _a, long _b); // void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_free")] public static extern void ProbeSendFailure_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_free")] public static extern void ProbeSendFailureFree(long _this_ptr); // uint64_t ProbeSendFailure_clone_ptr(LDKProbeSendFailure *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_clone_ptr")] public static extern long ProbeSendFailure_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_clone_ptr")] public static extern long ProbeSendFailureClonePtr(long _arg); // struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_clone")] public static extern long ProbeSendFailure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_clone")] public static extern long ProbeSendFailureClone(long _orig); // struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_route_not_found")] public static extern long ProbeSendFailure_route_not_found(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_route_not_found")] public static extern long ProbeSendFailureRouteNotFound(); // struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_sending_failed")] public static extern long ProbeSendFailure_sending_failed(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_sending_failed")] public static extern long ProbeSendFailureSendingFailed(long _a); // bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_eq")] public static extern bool ProbeSendFailure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbeSendFailure_eq")] public static extern bool ProbeSendFailureEq(long _a, long _b); // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_free")] public static extern void RecipientOnionFields_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_free")] public static extern void RecipientOnionFieldsFree(long _this_obj); // struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_get_payment_secret")] public static extern long RecipientOnionFields_get_payment_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_get_payment_secret")] public static extern long RecipientOnionFieldsGetPaymentSecret(long _this_ptr); // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_set_payment_secret")] public static extern void RecipientOnionFields_set_payment_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_set_payment_secret")] public static extern void RecipientOnionFieldsSetPaymentSecret(long _this_ptr, long _val); // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_get_payment_metadata")] public static extern long RecipientOnionFields_get_payment_metadata(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_get_payment_metadata")] public static extern long RecipientOnionFieldsGetPaymentMetadata(long _this_ptr); // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_set_payment_metadata")] public static extern void RecipientOnionFields_set_payment_metadata(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_set_payment_metadata")] public static extern void RecipientOnionFieldsSetPaymentMetadata(long _this_ptr, long _val); // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_clone_ptr")] public static extern long RecipientOnionFields_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_clone_ptr")] public static extern long RecipientOnionFieldsClonePtr(long _arg); // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_clone")] public static extern long RecipientOnionFields_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_clone")] public static extern long RecipientOnionFieldsClone(long _orig); // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_eq")] public static extern bool RecipientOnionFields_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_eq")] public static extern bool RecipientOnionFieldsEq(long _a, long _b); // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_write")] public static extern long RecipientOnionFields_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_write")] public static extern long RecipientOnionFieldsWrite(long _obj); // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_read")] public static extern long RecipientOnionFields_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_read")] public static extern long RecipientOnionFieldsRead(long _ser); // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_secret_only")] public static extern long RecipientOnionFields_secret_only(long _payment_secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_secret_only")] public static extern long RecipientOnionFieldsSecretOnly(long _payment_secret); // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_spontaneous_empty")] public static extern long RecipientOnionFields_spontaneous_empty(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_spontaneous_empty")] public static extern long RecipientOnionFieldsSpontaneousEmpty(); // MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_with_custom_tlvs")] public static extern long RecipientOnionFields_with_custom_tlvs(long _this_arg, long _custom_tlvs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_with_custom_tlvs")] public static extern long RecipientOnionFieldsWithCustomTlvs(long _this_arg, long _custom_tlvs); // MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_custom_tlvs")] public static extern long RecipientOnionFields_custom_tlvs(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RecipientOnionFields_custom_tlvs")] public static extern long RecipientOnionFieldsCustomTlvs(long _this_arg); // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageReader_free")] public static extern void CustomMessageReader_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomMessageReader_free")] public static extern void CustomMessageReaderFree(long _this_ptr); // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_clone_ptr")] public static extern long Type_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_clone_ptr")] public static extern long TypeClonePtr(long _arg); // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_clone")] public static extern long Type_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_clone")] public static extern long TypeClone(long _orig); // void Type_free(struct LDKType this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_free")] public static extern void Type_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Type_free")] public static extern void TypeFree(long _this_ptr); // void Offer_free(struct LDKOffer this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_free")] public static extern void Offer_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_free")] public static extern void OfferFree(long _this_obj); // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_clone_ptr")] public static extern long Offer_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_clone_ptr")] public static extern long OfferClonePtr(long _arg); // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_clone")] public static extern long Offer_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_clone")] public static extern long OfferClone(long _orig); // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_chains")] public static extern long Offer_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_chains")] public static extern long OfferChains(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_metadata")] public static extern long Offer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_metadata")] public static extern long OfferMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_amount")] public static extern long Offer_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_amount")] public static extern long OfferAmount(long _this_arg); // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_description")] public static extern long Offer_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_description")] public static extern long OfferDescription(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_offer_features")] public static extern long Offer_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_offer_features")] public static extern long OfferOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_absolute_expiry")] public static extern long Offer_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_absolute_expiry")] public static extern long OfferAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_issuer")] public static extern long Offer_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_issuer")] public static extern long OfferIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_paths")] public static extern long Offer_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_paths")] public static extern long OfferPaths(long _this_arg); // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_supported_quantity")] public static extern long Offer_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_supported_quantity")] public static extern long OfferSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_signing_pubkey")] public static extern long Offer_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_signing_pubkey")] public static extern long OfferSigningPubkey(long _this_arg); // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_supports_chain")] public static extern bool Offer_supports_chain(long _this_arg, long _chain); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_supports_chain")] public static extern bool OfferSupportsChain(long _this_arg, long _chain); // MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_expired")] public static extern bool Offer_is_expired(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_expired")] public static extern bool OfferIsExpired(long _this_arg); // MUST_USE_RES bool Offer_is_expired_no_std(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t duration_since_epoch); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_expired_no_std")] public static extern bool Offer_is_expired_no_std(long _this_arg, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_expired_no_std")] public static extern bool OfferIsExpiredNoStd(long _this_arg, long _duration_since_epoch); // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_valid_quantity")] public static extern bool Offer_is_valid_quantity(long _this_arg, long _quantity); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_is_valid_quantity")] public static extern bool OfferIsValidQuantity(long _this_arg, long _quantity); // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_expects_quantity")] public static extern bool Offer_expects_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_expects_quantity")] public static extern bool OfferExpectsQuantity(long _this_arg); // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_write")] public static extern long Offer_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_write")] public static extern long OfferWrite(long _obj); // void Amount_free(struct LDKAmount this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_free")] public static extern void Amount_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_free")] public static extern void AmountFree(long _this_obj); // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_clone_ptr")] public static extern long Amount_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_clone_ptr")] public static extern long AmountClonePtr(long _arg); // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_clone")] public static extern long Amount_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Amount_clone")] public static extern long AmountClone(long _orig); // void Quantity_free(struct LDKQuantity this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_free")] public static extern void Quantity_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_free")] public static extern void QuantityFree(long _this_obj); // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_clone_ptr")] public static extern long Quantity_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_clone_ptr")] public static extern long QuantityClonePtr(long _arg); // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_clone")] public static extern long Quantity_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Quantity_clone")] public static extern long QuantityClone(long _orig); // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_from_str")] public static extern long Offer_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Offer_from_str")] public static extern long OfferFromStr(long _s); // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_free")] public static extern void UnsignedBolt12Invoice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_free")] public static extern void UnsignedBolt12InvoiceFree(long _this_obj); // MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_tagged_hash")] public static extern long UnsignedBolt12Invoice_tagged_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_tagged_hash")] public static extern long UnsignedBolt12InvoiceTaggedHash(long _this_arg); // void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_free")] public static extern void Bolt12Invoice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_free")] public static extern void Bolt12InvoiceFree(long _this_obj); // uint64_t Bolt12Invoice_clone_ptr(LDKBolt12Invoice *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_clone_ptr")] public static extern long Bolt12Invoice_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_clone_ptr")] public static extern long Bolt12InvoiceClonePtr(long _arg); // struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_clone")] public static extern long Bolt12Invoice_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_clone")] public static extern long Bolt12InvoiceClone(long _orig); // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_offer_chains")] public static extern long UnsignedBolt12Invoice_offer_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_offer_chains")] public static extern long UnsignedBolt12InvoiceOfferChains(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_chain")] public static extern long UnsignedBolt12Invoice_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_chain")] public static extern long UnsignedBolt12InvoiceChain(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_metadata")] public static extern long UnsignedBolt12Invoice_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_metadata")] public static extern long UnsignedBolt12InvoiceMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_amount")] public static extern long UnsignedBolt12Invoice_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_amount")] public static extern long UnsignedBolt12InvoiceAmount(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_offer_features")] public static extern long UnsignedBolt12Invoice_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_offer_features")] public static extern long UnsignedBolt12InvoiceOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_description")] public static extern long UnsignedBolt12Invoice_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_description")] public static extern long UnsignedBolt12InvoiceDescription(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_absolute_expiry")] public static extern long UnsignedBolt12Invoice_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_absolute_expiry")] public static extern long UnsignedBolt12InvoiceAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_issuer")] public static extern long UnsignedBolt12Invoice_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_issuer")] public static extern long UnsignedBolt12InvoiceIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_message_paths")] public static extern long UnsignedBolt12Invoice_message_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_message_paths")] public static extern long UnsignedBolt12InvoiceMessagePaths(long _this_arg); // MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_supported_quantity")] public static extern long UnsignedBolt12Invoice_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_supported_quantity")] public static extern long UnsignedBolt12InvoiceSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_metadata")] public static extern long UnsignedBolt12Invoice_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_metadata")] public static extern long UnsignedBolt12InvoicePayerMetadata(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_invoice_request_features")] public static extern long UnsignedBolt12Invoice_invoice_request_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_invoice_request_features")] public static extern long UnsignedBolt12InvoiceInvoiceRequestFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_quantity")] public static extern long UnsignedBolt12Invoice_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_quantity")] public static extern long UnsignedBolt12InvoiceQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_id")] public static extern long UnsignedBolt12Invoice_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_id")] public static extern long UnsignedBolt12InvoicePayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_note")] public static extern long UnsignedBolt12Invoice_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payer_note")] public static extern long UnsignedBolt12InvoicePayerNote(long _this_arg); // MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_created_at")] public static extern long UnsignedBolt12Invoice_created_at(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_created_at")] public static extern long UnsignedBolt12InvoiceCreatedAt(long _this_arg); // MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_relative_expiry")] public static extern long UnsignedBolt12Invoice_relative_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_relative_expiry")] public static extern long UnsignedBolt12InvoiceRelativeExpiry(long _this_arg); // MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_is_expired")] public static extern bool UnsignedBolt12Invoice_is_expired(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_is_expired")] public static extern bool UnsignedBolt12InvoiceIsExpired(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payment_hash")] public static extern long UnsignedBolt12Invoice_payment_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_payment_hash")] public static extern long UnsignedBolt12InvoicePaymentHash(long _this_arg); // MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_amount_msats")] public static extern long UnsignedBolt12Invoice_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_amount_msats")] public static extern long UnsignedBolt12InvoiceAmountMsats(long _this_arg); // MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_invoice_features")] public static extern long UnsignedBolt12Invoice_invoice_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_invoice_features")] public static extern long UnsignedBolt12InvoiceInvoiceFeatures(long _this_arg); // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_signing_pubkey")] public static extern long UnsignedBolt12Invoice_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_signing_pubkey")] public static extern long UnsignedBolt12InvoiceSigningPubkey(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_offer_chains")] public static extern long Bolt12Invoice_offer_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_offer_chains")] public static extern long Bolt12InvoiceOfferChains(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_chain")] public static extern long Bolt12Invoice_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_chain")] public static extern long Bolt12InvoiceChain(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_metadata")] public static extern long Bolt12Invoice_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_metadata")] public static extern long Bolt12InvoiceMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_amount")] public static extern long Bolt12Invoice_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_amount")] public static extern long Bolt12InvoiceAmount(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_offer_features")] public static extern long Bolt12Invoice_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_offer_features")] public static extern long Bolt12InvoiceOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_description")] public static extern long Bolt12Invoice_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_description")] public static extern long Bolt12InvoiceDescription(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_absolute_expiry")] public static extern long Bolt12Invoice_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_absolute_expiry")] public static extern long Bolt12InvoiceAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_issuer")] public static extern long Bolt12Invoice_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_issuer")] public static extern long Bolt12InvoiceIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_message_paths")] public static extern long Bolt12Invoice_message_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_message_paths")] public static extern long Bolt12InvoiceMessagePaths(long _this_arg); // MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_supported_quantity")] public static extern long Bolt12Invoice_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_supported_quantity")] public static extern long Bolt12InvoiceSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_metadata")] public static extern long Bolt12Invoice_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_metadata")] public static extern long Bolt12InvoicePayerMetadata(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_invoice_request_features")] public static extern long Bolt12Invoice_invoice_request_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_invoice_request_features")] public static extern long Bolt12InvoiceInvoiceRequestFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_quantity")] public static extern long Bolt12Invoice_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_quantity")] public static extern long Bolt12InvoiceQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_id")] public static extern long Bolt12Invoice_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_id")] public static extern long Bolt12InvoicePayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_note")] public static extern long Bolt12Invoice_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payer_note")] public static extern long Bolt12InvoicePayerNote(long _this_arg); // MUST_USE_RES uint64_t Bolt12Invoice_created_at(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_created_at")] public static extern long Bolt12Invoice_created_at(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_created_at")] public static extern long Bolt12InvoiceCreatedAt(long _this_arg); // MUST_USE_RES uint64_t Bolt12Invoice_relative_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_relative_expiry")] public static extern long Bolt12Invoice_relative_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_relative_expiry")] public static extern long Bolt12InvoiceRelativeExpiry(long _this_arg); // MUST_USE_RES bool Bolt12Invoice_is_expired(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_is_expired")] public static extern bool Bolt12Invoice_is_expired(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_is_expired")] public static extern bool Bolt12InvoiceIsExpired(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_payment_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payment_hash")] public static extern long Bolt12Invoice_payment_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_payment_hash")] public static extern long Bolt12InvoicePaymentHash(long _this_arg); // MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_amount_msats")] public static extern long Bolt12Invoice_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_amount_msats")] public static extern long Bolt12InvoiceAmountMsats(long _this_arg); // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_invoice_features")] public static extern long Bolt12Invoice_invoice_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_invoice_features")] public static extern long Bolt12InvoiceInvoiceFeatures(long _this_arg); // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signing_pubkey")] public static extern long Bolt12Invoice_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signing_pubkey")] public static extern long Bolt12InvoiceSigningPubkey(long _this_arg); // MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signature")] public static extern long Bolt12Invoice_signature(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signature")] public static extern long Bolt12InvoiceSignature(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signable_hash")] public static extern long Bolt12Invoice_signable_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_signable_hash")] public static extern long Bolt12InvoiceSignableHash(long _this_arg); // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_verify")] public static extern long Bolt12Invoice_verify(long _this_arg, long _key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_verify")] public static extern long Bolt12InvoiceVerify(long _this_arg, long _key); // struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_write")] public static extern long UnsignedBolt12Invoice_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedBolt12Invoice_write")] public static extern long UnsignedBolt12InvoiceWrite(long _obj); // struct LDKCVec_u8Z Bolt12Invoice_write(const struct LDKBolt12Invoice *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_write")] public static extern long Bolt12Invoice_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12Invoice_write")] public static extern long Bolt12InvoiceWrite(long _obj); // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_free")] public static extern void BlindedPayInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_free")] public static extern void BlindedPayInfoFree(long _this_obj); // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_fee_base_msat")] public static extern int BlindedPayInfo_get_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_fee_base_msat")] public static extern int BlindedPayInfoGetFeeBaseMsat(long _this_ptr); // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_fee_base_msat")] public static extern void BlindedPayInfo_set_fee_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_fee_base_msat")] public static extern void BlindedPayInfoSetFeeBaseMsat(long _this_ptr, int _val); // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_fee_proportional_millionths")] public static extern int BlindedPayInfo_get_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_fee_proportional_millionths")] public static extern int BlindedPayInfoGetFeeProportionalMillionths(long _this_ptr); // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_fee_proportional_millionths")] public static extern void BlindedPayInfo_set_fee_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_fee_proportional_millionths")] public static extern void BlindedPayInfoSetFeeProportionalMillionths(long _this_ptr, int _val); // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_cltv_expiry_delta")] public static extern short BlindedPayInfo_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_cltv_expiry_delta")] public static extern short BlindedPayInfoGetCltvExpiryDelta(long _this_ptr); // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_cltv_expiry_delta")] public static extern void BlindedPayInfo_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_cltv_expiry_delta")] public static extern void BlindedPayInfoSetCltvExpiryDelta(long _this_ptr, short _val); // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_htlc_minimum_msat")] public static extern long BlindedPayInfo_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_htlc_minimum_msat")] public static extern long BlindedPayInfoGetHtlcMinimumMsat(long _this_ptr); // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_htlc_minimum_msat")] public static extern void BlindedPayInfo_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_htlc_minimum_msat")] public static extern void BlindedPayInfoSetHtlcMinimumMsat(long _this_ptr, long _val); // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_htlc_maximum_msat")] public static extern long BlindedPayInfo_get_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_htlc_maximum_msat")] public static extern long BlindedPayInfoGetHtlcMaximumMsat(long _this_ptr); // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_htlc_maximum_msat")] public static extern void BlindedPayInfo_set_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_htlc_maximum_msat")] public static extern void BlindedPayInfoSetHtlcMaximumMsat(long _this_ptr, long _val); // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_features")] public static extern long BlindedPayInfo_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_get_features")] public static extern long BlindedPayInfoGetFeatures(long _this_ptr); // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_features")] public static extern void BlindedPayInfo_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_set_features")] public static extern void BlindedPayInfoSetFeatures(long _this_ptr, long _val); // MUST_USE_RES struct LDKBlindedPayInfo BlindedPayInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKBlindedHopFeatures features_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_new")] public static extern long BlindedPayInfo_new(int _fee_base_msat_arg, int _fee_proportional_millionths_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, long _features_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_new")] public static extern long BlindedPayInfoNew(int _fee_base_msat_arg, int _fee_proportional_millionths_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, long _features_arg); // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_clone_ptr")] public static extern long BlindedPayInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_clone_ptr")] public static extern long BlindedPayInfoClonePtr(long _arg); // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_clone")] public static extern long BlindedPayInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_clone")] public static extern long BlindedPayInfoClone(long _orig); // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_hash")] public static extern long BlindedPayInfo_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_hash")] public static extern long BlindedPayInfoHash(long _o); // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_eq")] public static extern bool BlindedPayInfo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_eq")] public static extern bool BlindedPayInfoEq(long _a, long _b); // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_write")] public static extern long BlindedPayInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_write")] public static extern long BlindedPayInfoWrite(long _obj); // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_read")] public static extern long BlindedPayInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPayInfo_read")] public static extern long BlindedPayInfoRead(long _ser); // void InvoiceError_free(struct LDKInvoiceError this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_free")] public static extern void InvoiceError_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_free")] public static extern void InvoiceErrorFree(long _this_obj); // struct LDKErroneousField InvoiceError_get_erroneous_field(const struct LDKInvoiceError *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_get_erroneous_field")] public static extern long InvoiceError_get_erroneous_field(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_get_erroneous_field")] public static extern long InvoiceErrorGetErroneousField(long _this_ptr); // void InvoiceError_set_erroneous_field(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKErroneousField val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_set_erroneous_field")] public static extern void InvoiceError_set_erroneous_field(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_set_erroneous_field")] public static extern void InvoiceErrorSetErroneousField(long _this_ptr, long _val); // struct LDKUntrustedString InvoiceError_get_message(const struct LDKInvoiceError *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_get_message")] public static extern long InvoiceError_get_message(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_get_message")] public static extern long InvoiceErrorGetMessage(long _this_ptr); // void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKUntrustedString val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_set_message")] public static extern void InvoiceError_set_message(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_set_message")] public static extern void InvoiceErrorSetMessage(long _this_ptr, long _val); // MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_new")] public static extern long InvoiceError_new(long _erroneous_field_arg, long _message_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_new")] public static extern long InvoiceErrorNew(long _erroneous_field_arg, long _message_arg); // uint64_t InvoiceError_clone_ptr(LDKInvoiceError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_clone_ptr")] public static extern long InvoiceError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_clone_ptr")] public static extern long InvoiceErrorClonePtr(long _arg); // struct LDKInvoiceError InvoiceError_clone(const struct LDKInvoiceError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_clone")] public static extern long InvoiceError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_clone")] public static extern long InvoiceErrorClone(long _orig); // void ErroneousField_free(struct LDKErroneousField this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_free")] public static extern void ErroneousField_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_free")] public static extern void ErroneousFieldFree(long _this_obj); // uint64_t ErroneousField_get_tlv_fieldnum(const struct LDKErroneousField *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_get_tlv_fieldnum")] public static extern long ErroneousField_get_tlv_fieldnum(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_get_tlv_fieldnum")] public static extern long ErroneousFieldGetTlvFieldnum(long _this_ptr); // void ErroneousField_set_tlv_fieldnum(struct LDKErroneousField *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_set_tlv_fieldnum")] public static extern void ErroneousField_set_tlv_fieldnum(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_set_tlv_fieldnum")] public static extern void ErroneousFieldSetTlvFieldnum(long _this_ptr, long _val); // struct LDKCOption_CVec_u8ZZ ErroneousField_get_suggested_value(const struct LDKErroneousField *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_get_suggested_value")] public static extern long ErroneousField_get_suggested_value(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_get_suggested_value")] public static extern long ErroneousFieldGetSuggestedValue(long _this_ptr); // void ErroneousField_set_suggested_value(struct LDKErroneousField *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_set_suggested_value")] public static extern void ErroneousField_set_suggested_value(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_set_suggested_value")] public static extern void ErroneousFieldSetSuggestedValue(long _this_ptr, long _val); // MUST_USE_RES struct LDKErroneousField ErroneousField_new(uint64_t tlv_fieldnum_arg, struct LDKCOption_CVec_u8ZZ suggested_value_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_new")] public static extern long ErroneousField_new(long _tlv_fieldnum_arg, long _suggested_value_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_new")] public static extern long ErroneousFieldNew(long _tlv_fieldnum_arg, long _suggested_value_arg); // uint64_t ErroneousField_clone_ptr(LDKErroneousField *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_clone_ptr")] public static extern long ErroneousField_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_clone_ptr")] public static extern long ErroneousFieldClonePtr(long _arg); // struct LDKErroneousField ErroneousField_clone(const struct LDKErroneousField *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_clone")] public static extern long ErroneousField_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ErroneousField_clone")] public static extern long ErroneousFieldClone(long _orig); // MUST_USE_RES struct LDKInvoiceError InvoiceError_from_string(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_from_string")] public static extern long InvoiceError_from_string(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_from_string")] public static extern long InvoiceErrorFromString(long _s); // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_write")] public static extern long InvoiceError_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_write")] public static extern long InvoiceErrorWrite(long _obj); // struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_read")] public static extern long InvoiceError_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceError_read")] public static extern long InvoiceErrorRead(long _ser); // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_free")] public static extern void UnsignedInvoiceRequest_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_free")] public static extern void UnsignedInvoiceRequestFree(long _this_obj); // MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_tagged_hash")] public static extern long UnsignedInvoiceRequest_tagged_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_tagged_hash")] public static extern long UnsignedInvoiceRequestTaggedHash(long _this_arg); // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_free")] public static extern void InvoiceRequest_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_free")] public static extern void InvoiceRequestFree(long _this_obj); // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_clone_ptr")] public static extern long InvoiceRequest_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_clone_ptr")] public static extern long InvoiceRequestClonePtr(long _arg); // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_clone")] public static extern long InvoiceRequest_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_clone")] public static extern long InvoiceRequestClone(long _orig); // void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_free")] public static extern void VerifiedInvoiceRequest_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_free")] public static extern void VerifiedInvoiceRequestFree(long _this_obj); // struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_get_keys")] public static extern long VerifiedInvoiceRequest_get_keys(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_get_keys")] public static extern long VerifiedInvoiceRequestGetKeys(long _this_ptr); // void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_set_keys")] public static extern void VerifiedInvoiceRequest_set_keys(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_set_keys")] public static extern void VerifiedInvoiceRequestSetKeys(long _this_ptr, long _val); // uint64_t VerifiedInvoiceRequest_clone_ptr(LDKVerifiedInvoiceRequest *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_clone_ptr")] public static extern long VerifiedInvoiceRequest_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_clone_ptr")] public static extern long VerifiedInvoiceRequestClonePtr(long _arg); // struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_clone")] public static extern long VerifiedInvoiceRequest_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_clone")] public static extern long VerifiedInvoiceRequestClone(long _orig); // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_chains")] public static extern long UnsignedInvoiceRequest_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_chains")] public static extern long UnsignedInvoiceRequestChains(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_metadata")] public static extern long UnsignedInvoiceRequest_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_metadata")] public static extern long UnsignedInvoiceRequestMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_amount")] public static extern long UnsignedInvoiceRequest_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_amount")] public static extern long UnsignedInvoiceRequestAmount(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_description")] public static extern long UnsignedInvoiceRequest_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_description")] public static extern long UnsignedInvoiceRequestDescription(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_offer_features")] public static extern long UnsignedInvoiceRequest_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_offer_features")] public static extern long UnsignedInvoiceRequestOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_absolute_expiry")] public static extern long UnsignedInvoiceRequest_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_absolute_expiry")] public static extern long UnsignedInvoiceRequestAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_issuer")] public static extern long UnsignedInvoiceRequest_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_issuer")] public static extern long UnsignedInvoiceRequestIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_paths")] public static extern long UnsignedInvoiceRequest_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_paths")] public static extern long UnsignedInvoiceRequestPaths(long _this_arg); // MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_supported_quantity")] public static extern long UnsignedInvoiceRequest_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_supported_quantity")] public static extern long UnsignedInvoiceRequestSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_signing_pubkey")] public static extern long UnsignedInvoiceRequest_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_signing_pubkey")] public static extern long UnsignedInvoiceRequestSigningPubkey(long _this_arg); // MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_metadata")] public static extern long UnsignedInvoiceRequest_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_metadata")] public static extern long UnsignedInvoiceRequestPayerMetadata(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_chain")] public static extern long UnsignedInvoiceRequest_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_chain")] public static extern long UnsignedInvoiceRequestChain(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_amount_msats")] public static extern long UnsignedInvoiceRequest_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_amount_msats")] public static extern long UnsignedInvoiceRequestAmountMsats(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_invoice_request_features")] public static extern long UnsignedInvoiceRequest_invoice_request_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_invoice_request_features")] public static extern long UnsignedInvoiceRequestInvoiceRequestFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_quantity")] public static extern long UnsignedInvoiceRequest_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_quantity")] public static extern long UnsignedInvoiceRequestQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_id")] public static extern long UnsignedInvoiceRequest_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_id")] public static extern long UnsignedInvoiceRequestPayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_note")] public static extern long UnsignedInvoiceRequest_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_payer_note")] public static extern long UnsignedInvoiceRequestPayerNote(long _this_arg); // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_chains")] public static extern long InvoiceRequest_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_chains")] public static extern long InvoiceRequestChains(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_metadata")] public static extern long InvoiceRequest_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_metadata")] public static extern long InvoiceRequestMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_amount")] public static extern long InvoiceRequest_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_amount")] public static extern long InvoiceRequestAmount(long _this_arg); // MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_description")] public static extern long InvoiceRequest_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_description")] public static extern long InvoiceRequestDescription(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_offer_features")] public static extern long InvoiceRequest_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_offer_features")] public static extern long InvoiceRequestOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_absolute_expiry")] public static extern long InvoiceRequest_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_absolute_expiry")] public static extern long InvoiceRequestAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_issuer")] public static extern long InvoiceRequest_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_issuer")] public static extern long InvoiceRequestIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_paths")] public static extern long InvoiceRequest_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_paths")] public static extern long InvoiceRequestPaths(long _this_arg); // MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_supported_quantity")] public static extern long InvoiceRequest_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_supported_quantity")] public static extern long InvoiceRequestSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_signing_pubkey")] public static extern long InvoiceRequest_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_signing_pubkey")] public static extern long InvoiceRequestSigningPubkey(long _this_arg); // MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_metadata")] public static extern long InvoiceRequest_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_metadata")] public static extern long InvoiceRequestPayerMetadata(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_chain")] public static extern long InvoiceRequest_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_chain")] public static extern long InvoiceRequestChain(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_amount_msats")] public static extern long InvoiceRequest_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_amount_msats")] public static extern long InvoiceRequestAmountMsats(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_invoice_request_features")] public static extern long InvoiceRequest_invoice_request_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_invoice_request_features")] public static extern long InvoiceRequestInvoiceRequestFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_quantity")] public static extern long InvoiceRequest_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_quantity")] public static extern long InvoiceRequestQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_id")] public static extern long InvoiceRequest_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_id")] public static extern long InvoiceRequestPayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_note")] public static extern long InvoiceRequest_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_payer_note")] public static extern long InvoiceRequestPayerNote(long _this_arg); // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_signature")] public static extern long InvoiceRequest_signature(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_signature")] public static extern long InvoiceRequestSignature(long _this_arg); // MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_verify")] public static extern long InvoiceRequest_verify(long _this_arg, long _key); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_verify")] public static extern long InvoiceRequestVerify(long _this_arg, long _key); // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_chains")] public static extern long VerifiedInvoiceRequest_chains(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_chains")] public static extern long VerifiedInvoiceRequestChains(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_metadata")] public static extern long VerifiedInvoiceRequest_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_metadata")] public static extern long VerifiedInvoiceRequestMetadata(long _this_arg); // MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_amount")] public static extern long VerifiedInvoiceRequest_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_amount")] public static extern long VerifiedInvoiceRequestAmount(long _this_arg); // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_description")] public static extern long VerifiedInvoiceRequest_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_description")] public static extern long VerifiedInvoiceRequestDescription(long _this_arg); // MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_offer_features")] public static extern long VerifiedInvoiceRequest_offer_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_offer_features")] public static extern long VerifiedInvoiceRequestOfferFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_absolute_expiry")] public static extern long VerifiedInvoiceRequest_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_absolute_expiry")] public static extern long VerifiedInvoiceRequestAbsoluteExpiry(long _this_arg); // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_issuer")] public static extern long VerifiedInvoiceRequest_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_issuer")] public static extern long VerifiedInvoiceRequestIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_paths")] public static extern long VerifiedInvoiceRequest_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_paths")] public static extern long VerifiedInvoiceRequestPaths(long _this_arg); // MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_supported_quantity")] public static extern long VerifiedInvoiceRequest_supported_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_supported_quantity")] public static extern long VerifiedInvoiceRequestSupportedQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_signing_pubkey")] public static extern long VerifiedInvoiceRequest_signing_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_signing_pubkey")] public static extern long VerifiedInvoiceRequestSigningPubkey(long _this_arg); // MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_metadata")] public static extern long VerifiedInvoiceRequest_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_metadata")] public static extern long VerifiedInvoiceRequestPayerMetadata(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_chain")] public static extern long VerifiedInvoiceRequest_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_chain")] public static extern long VerifiedInvoiceRequestChain(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_amount_msats")] public static extern long VerifiedInvoiceRequest_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_amount_msats")] public static extern long VerifiedInvoiceRequestAmountMsats(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_invoice_request_features")] public static extern long VerifiedInvoiceRequest_invoice_request_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_invoice_request_features")] public static extern long VerifiedInvoiceRequestInvoiceRequestFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_quantity")] public static extern long VerifiedInvoiceRequest_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_quantity")] public static extern long VerifiedInvoiceRequestQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_id")] public static extern long VerifiedInvoiceRequest_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_id")] public static extern long VerifiedInvoiceRequestPayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_note")] public static extern long VerifiedInvoiceRequest_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_VerifiedInvoiceRequest_payer_note")] public static extern long VerifiedInvoiceRequestPayerNote(long _this_arg); // struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_write")] public static extern long UnsignedInvoiceRequest_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UnsignedInvoiceRequest_write")] public static extern long UnsignedInvoiceRequestWrite(long _obj); // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_write")] public static extern long InvoiceRequest_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InvoiceRequest_write")] public static extern long InvoiceRequestWrite(long _obj); // void TaggedHash_free(struct LDKTaggedHash this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_free")] public static extern void TaggedHash_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_free")] public static extern void TaggedHashFree(long _this_obj); // uint64_t TaggedHash_clone_ptr(LDKTaggedHash *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_clone_ptr")] public static extern long TaggedHash_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_clone_ptr")] public static extern long TaggedHashClonePtr(long _arg); // struct LDKTaggedHash TaggedHash_clone(const struct LDKTaggedHash *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_clone")] public static extern long TaggedHash_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_clone")] public static extern long TaggedHashClone(long _orig); // MUST_USE_RES const uint8_t (*TaggedHash_as_digest(const struct LDKTaggedHash *NONNULL_PTR this_arg))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_as_digest")] public static extern long TaggedHash_as_digest(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_as_digest")] public static extern long TaggedHashAsDigest(long _this_arg); // MUST_USE_RES struct LDKStr TaggedHash_tag(const struct LDKTaggedHash *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_tag")] public static extern long TaggedHash_tag(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_tag")] public static extern long TaggedHashTag(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes TaggedHash_merkle_root(const struct LDKTaggedHash *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_merkle_root")] public static extern long TaggedHash_merkle_root(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_TaggedHash_merkle_root")] public static extern long TaggedHashMerkleRoot(long _this_arg); // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_free")] public static extern void Bolt12ParseError_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_free")] public static extern void Bolt12ParseErrorFree(long _this_obj); // uint64_t Bolt12ParseError_clone_ptr(LDKBolt12ParseError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_clone_ptr")] public static extern long Bolt12ParseError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_clone_ptr")] public static extern long Bolt12ParseErrorClonePtr(long _arg); // struct LDKBolt12ParseError Bolt12ParseError_clone(const struct LDKBolt12ParseError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_clone")] public static extern long Bolt12ParseError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12ParseError_clone")] public static extern long Bolt12ParseErrorClone(long _orig); // enum LDKBolt12SemanticError Bolt12SemanticError_clone(const enum LDKBolt12SemanticError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_clone")] public static extern Bolt12SemanticError Bolt12SemanticError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_clone")] public static extern Bolt12SemanticError Bolt12SemanticErrorClone(long _orig); // enum LDKBolt12SemanticError Bolt12SemanticError_already_expired(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_already_expired")] public static extern Bolt12SemanticError Bolt12SemanticError_already_expired(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_already_expired")] public static extern Bolt12SemanticError Bolt12SemanticErrorAlreadyExpired(); // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_chain(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unsupported_chain")] public static extern Bolt12SemanticError Bolt12SemanticError_unsupported_chain(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unsupported_chain")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnsupportedChain(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_chain(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_chain")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_chain(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_chain")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedChain(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_amount")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_amount")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingAmount(); // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_amount")] public static extern Bolt12SemanticError Bolt12SemanticError_invalid_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_amount")] public static extern Bolt12SemanticError Bolt12SemanticErrorInvalidAmount(); // enum LDKBolt12SemanticError Bolt12SemanticError_insufficient_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_insufficient_amount")] public static extern Bolt12SemanticError Bolt12SemanticError_insufficient_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_insufficient_amount")] public static extern Bolt12SemanticError Bolt12SemanticErrorInsufficientAmount(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_amount")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_amount")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedAmount(); // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_currency(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unsupported_currency")] public static extern Bolt12SemanticError Bolt12SemanticError_unsupported_currency(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unsupported_currency")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnsupportedCurrency(); // enum LDKBolt12SemanticError Bolt12SemanticError_unknown_required_features(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unknown_required_features")] public static extern Bolt12SemanticError Bolt12SemanticError_unknown_required_features(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unknown_required_features")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnknownRequiredFeatures(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_features(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_features")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_features(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_features")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedFeatures(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_description(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_description")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_description(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_description")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingDescription(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingSigningPubkey(); // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticErrorInvalidSigningPubkey(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_signing_pubkey")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedSigningPubkey(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_quantity(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_quantity")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_quantity(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_quantity")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingQuantity(); // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_quantity(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_quantity")] public static extern Bolt12SemanticError Bolt12SemanticError_invalid_quantity(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_quantity")] public static extern Bolt12SemanticError Bolt12SemanticErrorInvalidQuantity(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_quantity(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_quantity")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_quantity(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_quantity")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedQuantity(); // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_metadata(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_metadata")] public static extern Bolt12SemanticError Bolt12SemanticError_invalid_metadata(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_metadata")] public static extern Bolt12SemanticError Bolt12SemanticErrorInvalidMetadata(); // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_metadata(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_metadata")] public static extern Bolt12SemanticError Bolt12SemanticError_unexpected_metadata(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_unexpected_metadata")] public static extern Bolt12SemanticError Bolt12SemanticErrorUnexpectedMetadata(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_metadata(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payer_metadata")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_payer_metadata(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payer_metadata")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingPayerMetadata(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_id(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payer_id")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_payer_id(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payer_id")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingPayerId(); // enum LDKBolt12SemanticError Bolt12SemanticError_duplicate_payment_id(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_duplicate_payment_id")] public static extern Bolt12SemanticError Bolt12SemanticError_duplicate_payment_id(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_duplicate_payment_id")] public static extern Bolt12SemanticError Bolt12SemanticErrorDuplicatePaymentId(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_paths(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_paths")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_paths(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_paths")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingPaths(); // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_pay_info")] public static extern Bolt12SemanticError Bolt12SemanticError_invalid_pay_info(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_invalid_pay_info")] public static extern Bolt12SemanticError Bolt12SemanticErrorInvalidPayInfo(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_creation_time(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_creation_time")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_creation_time(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_creation_time")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingCreationTime(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payment_hash(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payment_hash")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_payment_hash(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_payment_hash")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingPaymentHash(); // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signature(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_signature")] public static extern Bolt12SemanticError Bolt12SemanticError_missing_signature(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt12SemanticError_missing_signature")] public static extern Bolt12SemanticError Bolt12SemanticErrorMissingSignature(); // void Refund_free(struct LDKRefund this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_free")] public static extern void Refund_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_free")] public static extern void RefundFree(long _this_obj); // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_clone_ptr")] public static extern long Refund_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_clone_ptr")] public static extern long RefundClonePtr(long _arg); // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_clone")] public static extern long Refund_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_clone")] public static extern long RefundClone(long _orig); // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_description")] public static extern long Refund_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_description")] public static extern long RefundDescription(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_absolute_expiry")] public static extern long Refund_absolute_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_absolute_expiry")] public static extern long RefundAbsoluteExpiry(long _this_arg); // MUST_USE_RES bool Refund_is_expired(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_is_expired")] public static extern bool Refund_is_expired(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_is_expired")] public static extern bool RefundIsExpired(long _this_arg); // MUST_USE_RES bool Refund_is_expired_no_std(const struct LDKRefund *NONNULL_PTR this_arg, uint64_t duration_since_epoch); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_is_expired_no_std")] public static extern bool Refund_is_expired_no_std(long _this_arg, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_is_expired_no_std")] public static extern bool RefundIsExpiredNoStd(long _this_arg, long _duration_since_epoch); // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_issuer")] public static extern long Refund_issuer(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_issuer")] public static extern long RefundIssuer(long _this_arg); // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_paths")] public static extern long Refund_paths(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_paths")] public static extern long RefundPaths(long _this_arg); // MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_metadata")] public static extern long Refund_payer_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_metadata")] public static extern long RefundPayerMetadata(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_chain")] public static extern long Refund_chain(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_chain")] public static extern long RefundChain(long _this_arg); // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_amount_msats")] public static extern long Refund_amount_msats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_amount_msats")] public static extern long RefundAmountMsats(long _this_arg); // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_features")] public static extern long Refund_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_features")] public static extern long RefundFeatures(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_quantity")] public static extern long Refund_quantity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_quantity")] public static extern long RefundQuantity(long _this_arg); // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_id")] public static extern long Refund_payer_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_id")] public static extern long RefundPayerId(long _this_arg); // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_note")] public static extern long Refund_payer_note(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_payer_note")] public static extern long RefundPayerNote(long _this_arg); // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_write")] public static extern long Refund_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_write")] public static extern long RefundWrite(long _obj); // struct LDKCResult_RefundBolt12ParseErrorZ Refund_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_from_str")] public static extern long Refund_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Refund_from_str")] public static extern long RefundFromStr(long _s); // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_clone")] public static extern UtxoLookupError UtxoLookupError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_clone")] public static extern UtxoLookupError UtxoLookupErrorClone(long _orig); // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_unknown_chain")] public static extern UtxoLookupError UtxoLookupError_unknown_chain(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_unknown_chain")] public static extern UtxoLookupError UtxoLookupErrorUnknownChain(); // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_unknown_tx")] public static extern UtxoLookupError UtxoLookupError_unknown_tx(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookupError_unknown_tx")] public static extern UtxoLookupError UtxoLookupErrorUnknownTx(); // void UtxoResult_free(struct LDKUtxoResult this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_free")] public static extern void UtxoResult_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_free")] public static extern void UtxoResultFree(long _this_ptr); // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_clone_ptr")] public static extern long UtxoResult_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_clone_ptr")] public static extern long UtxoResultClonePtr(long _arg); // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_clone")] public static extern long UtxoResult_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_clone")] public static extern long UtxoResultClone(long _orig); // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_sync")] public static extern long UtxoResult_sync(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_sync")] public static extern long UtxoResultSync(long _a); // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_async")] public static extern long UtxoResult_async(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoResult_async")] public static extern long UtxoResultAsync(long _a); // void UtxoLookup_free(struct LDKUtxoLookup this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookup_free")] public static extern void UtxoLookup_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoLookup_free")] public static extern void UtxoLookupFree(long _this_ptr); // void UtxoFuture_free(struct LDKUtxoFuture this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_free")] public static extern void UtxoFuture_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_free")] public static extern void UtxoFutureFree(long _this_obj); // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_clone_ptr")] public static extern long UtxoFuture_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_clone_ptr")] public static extern long UtxoFutureClonePtr(long _arg); // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_clone")] public static extern long UtxoFuture_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_clone")] public static extern long UtxoFutureClone(long _orig); // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_new")] public static extern long UtxoFuture_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_new")] public static extern long UtxoFutureNew(); // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_resolve_without_forwarding")] public static extern void UtxoFuture_resolve_without_forwarding(long _this_arg, long _graph, long _result); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_resolve_without_forwarding")] public static extern void UtxoFutureResolveWithoutForwarding(long _this_arg, long _graph, long _result); // void UtxoFuture_resolve(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, const struct LDKP2PGossipSync *NONNULL_PTR gossip, struct LDKCResult_TxOutUtxoLookupErrorZ result); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_resolve")] public static extern void UtxoFuture_resolve(long _this_arg, long _graph, long _gossip, long _result); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_UtxoFuture_resolve")] public static extern void UtxoFutureResolve(long _this_arg, long _graph, long _gossip, long _result); // void NodeId_free(struct LDKNodeId this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_free")] public static extern void NodeId_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_free")] public static extern void NodeIdFree(long _this_obj); // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_clone_ptr")] public static extern long NodeId_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_clone_ptr")] public static extern long NodeIdClonePtr(long _arg); // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_clone")] public static extern long NodeId_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_clone")] public static extern long NodeIdClone(long _orig); // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_from_pubkey")] public static extern long NodeId_from_pubkey(long _pubkey); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_from_pubkey")] public static extern long NodeIdFromPubkey(long _pubkey); // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_slice")] public static extern long NodeId_as_slice(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_slice")] public static extern long NodeIdAsSlice(long _this_arg); // MUST_USE_RES const uint8_t (*NodeId_as_array(const struct LDKNodeId *NONNULL_PTR this_arg))[33]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_array")] public static extern long NodeId_as_array(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_array")] public static extern long NodeIdAsArray(long _this_arg); // MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_pubkey")] public static extern long NodeId_as_pubkey(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_as_pubkey")] public static extern long NodeIdAsPubkey(long _this_arg); // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_hash")] public static extern long NodeId_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_hash")] public static extern long NodeIdHash(long _o); // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_write")] public static extern long NodeId_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_write")] public static extern long NodeIdWrite(long _obj); // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_read")] public static extern long NodeId_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeId_read")] public static extern long NodeIdRead(long _ser); // void NetworkGraph_free(struct LDKNetworkGraph this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_free")] public static extern void NetworkGraph_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_free")] public static extern void NetworkGraphFree(long _this_obj); // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_free")] public static extern void ReadOnlyNetworkGraph_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_free")] public static extern void ReadOnlyNetworkGraphFree(long _this_obj); // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_free")] public static extern void NetworkUpdate_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_free")] public static extern void NetworkUpdateFree(long _this_ptr); // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_clone_ptr")] public static extern long NetworkUpdate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_clone_ptr")] public static extern long NetworkUpdateClonePtr(long _arg); // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_clone")] public static extern long NetworkUpdate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_clone")] public static extern long NetworkUpdateClone(long _orig); // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_channel_update_message")] public static extern long NetworkUpdate_channel_update_message(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_channel_update_message")] public static extern long NetworkUpdateChannelUpdateMessage(long _msg); // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_channel_failure")] public static extern long NetworkUpdate_channel_failure(long _short_channel_id, bool _is_permanent); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_channel_failure")] public static extern long NetworkUpdateChannelFailure(long _short_channel_id, bool _is_permanent); // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_node_failure")] public static extern long NetworkUpdate_node_failure(long _node_id, bool _is_permanent); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_node_failure")] public static extern long NetworkUpdateNodeFailure(long _node_id, bool _is_permanent); // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_eq")] public static extern bool NetworkUpdate_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_eq")] public static extern bool NetworkUpdateEq(long _a, long _b); // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_write")] public static extern long NetworkUpdate_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_write")] public static extern long NetworkUpdateWrite(long _obj); // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_read")] public static extern long NetworkUpdate_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkUpdate_read")] public static extern long NetworkUpdateRead(long _ser); // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_free")] public static extern void P2PGossipSync_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_free")] public static extern void P2PGossipSyncFree(long _this_obj); // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_new")] public static extern long P2PGossipSync_new(long _network_graph, long _utxo_lookup, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_new")] public static extern long P2PGossipSyncNew(long _network_graph, long _utxo_lookup, long _logger); // void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_add_utxo_lookup")] public static extern void P2PGossipSync_add_utxo_lookup(long _this_arg, long _utxo_lookup); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_add_utxo_lookup")] public static extern void P2PGossipSyncAddUtxoLookup(long _this_arg, long _utxo_lookup); // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_handle_network_update")] public static extern void NetworkGraph_handle_network_update(long _this_arg, long _network_update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_handle_network_update")] public static extern void NetworkGraphHandleNetworkUpdate(long _this_arg, long _network_update); // MUST_USE_RES struct LDKThirtyTwoBytes NetworkGraph_get_chain_hash(const struct LDKNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_get_chain_hash")] public static extern long NetworkGraph_get_chain_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_get_chain_hash")] public static extern long NetworkGraphGetChainHash(long _this_arg); // struct LDKCResult_NoneLightningErrorZ verify_node_announcement(const struct LDKNodeAnnouncement *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify_node_announcement")] public static extern long verify_node_announcement(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify_node_announcement")] public static extern long VerifyNodeAnnouncement(long _msg); // struct LDKCResult_NoneLightningErrorZ verify_channel_announcement(const struct LDKChannelAnnouncement *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify_channel_announcement")] public static extern long verify_channel_announcement(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_verify_channel_announcement")] public static extern long VerifyChannelAnnouncement(long _msg); // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_as_RoutingMessageHandler")] public static extern long P2PGossipSync_as_RoutingMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_as_RoutingMessageHandler")] public static extern long P2PGossipSyncAsRoutingMessageHandler(long _this_arg); // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_as_MessageSendEventsProvider")] public static extern long P2PGossipSync_as_MessageSendEventsProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_P2PGossipSync_as_MessageSendEventsProvider")] public static extern long P2PGossipSyncAsMessageSendEventsProvider(long _this_arg); // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_free")] public static extern void ChannelUpdateInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_free")] public static extern void ChannelUpdateInfoFree(long _this_obj); // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_last_update")] public static extern int ChannelUpdateInfo_get_last_update(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_last_update")] public static extern int ChannelUpdateInfoGetLastUpdate(long _this_ptr); // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_last_update")] public static extern void ChannelUpdateInfo_set_last_update(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_last_update")] public static extern void ChannelUpdateInfoSetLastUpdate(long _this_ptr, int _val); // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_enabled")] public static extern bool ChannelUpdateInfo_get_enabled(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_enabled")] public static extern bool ChannelUpdateInfoGetEnabled(long _this_ptr); // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_enabled")] public static extern void ChannelUpdateInfo_set_enabled(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_enabled")] public static extern void ChannelUpdateInfoSetEnabled(long _this_ptr, bool _val); // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_cltv_expiry_delta")] public static extern short ChannelUpdateInfo_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_cltv_expiry_delta")] public static extern short ChannelUpdateInfoGetCltvExpiryDelta(long _this_ptr); // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_cltv_expiry_delta")] public static extern void ChannelUpdateInfo_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_cltv_expiry_delta")] public static extern void ChannelUpdateInfoSetCltvExpiryDelta(long _this_ptr, short _val); // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_htlc_minimum_msat")] public static extern long ChannelUpdateInfo_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_htlc_minimum_msat")] public static extern long ChannelUpdateInfoGetHtlcMinimumMsat(long _this_ptr); // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_htlc_minimum_msat")] public static extern void ChannelUpdateInfo_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_htlc_minimum_msat")] public static extern void ChannelUpdateInfoSetHtlcMinimumMsat(long _this_ptr, long _val); // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_htlc_maximum_msat")] public static extern long ChannelUpdateInfo_get_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_htlc_maximum_msat")] public static extern long ChannelUpdateInfoGetHtlcMaximumMsat(long _this_ptr); // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_htlc_maximum_msat")] public static extern void ChannelUpdateInfo_set_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_htlc_maximum_msat")] public static extern void ChannelUpdateInfoSetHtlcMaximumMsat(long _this_ptr, long _val); // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_fees")] public static extern long ChannelUpdateInfo_get_fees(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_fees")] public static extern long ChannelUpdateInfoGetFees(long _this_ptr); // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_fees")] public static extern void ChannelUpdateInfo_set_fees(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_fees")] public static extern void ChannelUpdateInfoSetFees(long _this_ptr, long _val); // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_last_update_message")] public static extern long ChannelUpdateInfo_get_last_update_message(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_get_last_update_message")] public static extern long ChannelUpdateInfoGetLastUpdateMessage(long _this_ptr); // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_last_update_message")] public static extern void ChannelUpdateInfo_set_last_update_message(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_set_last_update_message")] public static extern void ChannelUpdateInfoSetLastUpdateMessage(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_new")] public static extern long ChannelUpdateInfo_new(int _last_update_arg, bool _enabled_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, long _fees_arg, long _last_update_message_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_new")] public static extern long ChannelUpdateInfoNew(int _last_update_arg, bool _enabled_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg, long _fees_arg, long _last_update_message_arg); // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_clone_ptr")] public static extern long ChannelUpdateInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_clone_ptr")] public static extern long ChannelUpdateInfoClonePtr(long _arg); // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_clone")] public static extern long ChannelUpdateInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_clone")] public static extern long ChannelUpdateInfoClone(long _orig); // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_eq")] public static extern bool ChannelUpdateInfo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_eq")] public static extern bool ChannelUpdateInfoEq(long _a, long _b); // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_write")] public static extern long ChannelUpdateInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_write")] public static extern long ChannelUpdateInfoWrite(long _obj); // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_read")] public static extern long ChannelUpdateInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUpdateInfo_read")] public static extern long ChannelUpdateInfoRead(long _ser); // void ChannelInfo_free(struct LDKChannelInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_free")] public static extern void ChannelInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_free")] public static extern void ChannelInfoFree(long _this_obj); // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_features")] public static extern long ChannelInfo_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_features")] public static extern long ChannelInfoGetFeatures(long _this_ptr); // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_features")] public static extern void ChannelInfo_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_features")] public static extern void ChannelInfoSetFeatures(long _this_ptr, long _val); // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_node_one")] public static extern long ChannelInfo_get_node_one(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_node_one")] public static extern long ChannelInfoGetNodeOne(long _this_ptr); // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_node_one")] public static extern void ChannelInfo_set_node_one(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_node_one")] public static extern void ChannelInfoSetNodeOne(long _this_ptr, long _val); // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_one_to_two")] public static extern long ChannelInfo_get_one_to_two(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_one_to_two")] public static extern long ChannelInfoGetOneToTwo(long _this_ptr); // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_one_to_two")] public static extern void ChannelInfo_set_one_to_two(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_one_to_two")] public static extern void ChannelInfoSetOneToTwo(long _this_ptr, long _val); // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_node_two")] public static extern long ChannelInfo_get_node_two(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_node_two")] public static extern long ChannelInfoGetNodeTwo(long _this_ptr); // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_node_two")] public static extern void ChannelInfo_set_node_two(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_node_two")] public static extern void ChannelInfoSetNodeTwo(long _this_ptr, long _val); // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_two_to_one")] public static extern long ChannelInfo_get_two_to_one(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_two_to_one")] public static extern long ChannelInfoGetTwoToOne(long _this_ptr); // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_two_to_one")] public static extern void ChannelInfo_set_two_to_one(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_two_to_one")] public static extern void ChannelInfoSetTwoToOne(long _this_ptr, long _val); // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_capacity_sats")] public static extern long ChannelInfo_get_capacity_sats(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_capacity_sats")] public static extern long ChannelInfoGetCapacitySats(long _this_ptr); // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_capacity_sats")] public static extern void ChannelInfo_set_capacity_sats(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_capacity_sats")] public static extern void ChannelInfoSetCapacitySats(long _this_ptr, long _val); // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_announcement_message")] public static extern long ChannelInfo_get_announcement_message(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_announcement_message")] public static extern long ChannelInfoGetAnnouncementMessage(long _this_ptr); // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_announcement_message")] public static extern void ChannelInfo_set_announcement_message(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_set_announcement_message")] public static extern void ChannelInfoSetAnnouncementMessage(long _this_ptr, long _val); // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_clone_ptr")] public static extern long ChannelInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_clone_ptr")] public static extern long ChannelInfoClonePtr(long _arg); // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_clone")] public static extern long ChannelInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_clone")] public static extern long ChannelInfoClone(long _orig); // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_eq")] public static extern bool ChannelInfo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_eq")] public static extern bool ChannelInfoEq(long _a, long _b); // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_directional_info")] public static extern long ChannelInfo_get_directional_info(long _this_arg, byte _channel_flags); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_get_directional_info")] public static extern long ChannelInfoGetDirectionalInfo(long _this_arg, byte _channel_flags); // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_write")] public static extern long ChannelInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_write")] public static extern long ChannelInfoWrite(long _obj); // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_read")] public static extern long ChannelInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelInfo_read")] public static extern long ChannelInfoRead(long _ser); // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_free")] public static extern void DirectedChannelInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_free")] public static extern void DirectedChannelInfoFree(long _this_obj); // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_clone_ptr")] public static extern long DirectedChannelInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_clone_ptr")] public static extern long DirectedChannelInfoClonePtr(long _arg); // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_clone")] public static extern long DirectedChannelInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_clone")] public static extern long DirectedChannelInfoClone(long _orig); // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_channel")] public static extern long DirectedChannelInfo_channel(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_channel")] public static extern long DirectedChannelInfoChannel(long _this_arg); // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_effective_capacity")] public static extern long DirectedChannelInfo_effective_capacity(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DirectedChannelInfo_effective_capacity")] public static extern long DirectedChannelInfoEffectiveCapacity(long _this_arg); // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_free")] public static extern void EffectiveCapacity_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_free")] public static extern void EffectiveCapacityFree(long _this_ptr); // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_clone_ptr")] public static extern long EffectiveCapacity_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_clone_ptr")] public static extern long EffectiveCapacityClonePtr(long _arg); // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_clone")] public static extern long EffectiveCapacity_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_clone")] public static extern long EffectiveCapacityClone(long _orig); // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_exact_liquidity")] public static extern long EffectiveCapacity_exact_liquidity(long _liquidity_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_exact_liquidity")] public static extern long EffectiveCapacityExactLiquidity(long _liquidity_msat); // struct LDKEffectiveCapacity EffectiveCapacity_advertised_max_htlc(uint64_t amount_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_advertised_max_htlc")] public static extern long EffectiveCapacity_advertised_max_htlc(long _amount_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_advertised_max_htlc")] public static extern long EffectiveCapacityAdvertisedMaxHtlc(long _amount_msat); // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_total")] public static extern long EffectiveCapacity_total(long _capacity_msat, long _htlc_maximum_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_total")] public static extern long EffectiveCapacityTotal(long _capacity_msat, long _htlc_maximum_msat); // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_infinite")] public static extern long EffectiveCapacity_infinite(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_infinite")] public static extern long EffectiveCapacityInfinite(); // struct LDKEffectiveCapacity EffectiveCapacity_hint_max_htlc(uint64_t amount_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_hint_max_htlc")] public static extern long EffectiveCapacity_hint_max_htlc(long _amount_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_hint_max_htlc")] public static extern long EffectiveCapacityHintMaxHtlc(long _amount_msat); // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_unknown")] public static extern long EffectiveCapacity_unknown(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_unknown")] public static extern long EffectiveCapacityUnknown(); // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_as_msat")] public static extern long EffectiveCapacity_as_msat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EffectiveCapacity_as_msat")] public static extern long EffectiveCapacityAsMsat(long _this_arg); // void RoutingFees_free(struct LDKRoutingFees this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_free")] public static extern void RoutingFees_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_free")] public static extern void RoutingFeesFree(long _this_obj); // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_get_base_msat")] public static extern int RoutingFees_get_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_get_base_msat")] public static extern int RoutingFeesGetBaseMsat(long _this_ptr); // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_set_base_msat")] public static extern void RoutingFees_set_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_set_base_msat")] public static extern void RoutingFeesSetBaseMsat(long _this_ptr, int _val); // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_get_proportional_millionths")] public static extern int RoutingFees_get_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_get_proportional_millionths")] public static extern int RoutingFeesGetProportionalMillionths(long _this_ptr); // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_set_proportional_millionths")] public static extern void RoutingFees_set_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_set_proportional_millionths")] public static extern void RoutingFeesSetProportionalMillionths(long _this_ptr, int _val); // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_new")] public static extern long RoutingFees_new(int _base_msat_arg, int _proportional_millionths_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_new")] public static extern long RoutingFeesNew(int _base_msat_arg, int _proportional_millionths_arg); // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_eq")] public static extern bool RoutingFees_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_eq")] public static extern bool RoutingFeesEq(long _a, long _b); // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_clone_ptr")] public static extern long RoutingFees_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_clone_ptr")] public static extern long RoutingFeesClonePtr(long _arg); // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_clone")] public static extern long RoutingFees_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_clone")] public static extern long RoutingFeesClone(long _orig); // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_hash")] public static extern long RoutingFees_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_hash")] public static extern long RoutingFeesHash(long _o); // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_write")] public static extern long RoutingFees_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_write")] public static extern long RoutingFeesWrite(long _obj); // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_read")] public static extern long RoutingFees_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RoutingFees_read")] public static extern long RoutingFeesRead(long _ser); // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_free")] public static extern void NodeAnnouncementInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_free")] public static extern void NodeAnnouncementInfoFree(long _this_obj); // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_features")] public static extern long NodeAnnouncementInfo_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_features")] public static extern long NodeAnnouncementInfoGetFeatures(long _this_ptr); // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_features")] public static extern void NodeAnnouncementInfo_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_features")] public static extern void NodeAnnouncementInfoSetFeatures(long _this_ptr, long _val); // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_last_update")] public static extern int NodeAnnouncementInfo_get_last_update(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_last_update")] public static extern int NodeAnnouncementInfoGetLastUpdate(long _this_ptr); // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_last_update")] public static extern void NodeAnnouncementInfo_set_last_update(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_last_update")] public static extern void NodeAnnouncementInfoSetLastUpdate(long _this_ptr, int _val); // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_rgb")] public static extern long NodeAnnouncementInfo_get_rgb(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_rgb")] public static extern long NodeAnnouncementInfoGetRgb(long _this_ptr); // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_rgb")] public static extern void NodeAnnouncementInfo_set_rgb(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_rgb")] public static extern void NodeAnnouncementInfoSetRgb(long _this_ptr, long _val); // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_alias")] public static extern long NodeAnnouncementInfo_get_alias(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_alias")] public static extern long NodeAnnouncementInfoGetAlias(long _this_ptr); // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_alias")] public static extern void NodeAnnouncementInfo_set_alias(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_alias")] public static extern void NodeAnnouncementInfoSetAlias(long _this_ptr, long _val); // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_announcement_message")] public static extern long NodeAnnouncementInfo_get_announcement_message(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_get_announcement_message")] public static extern long NodeAnnouncementInfoGetAnnouncementMessage(long _this_ptr); // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_announcement_message")] public static extern void NodeAnnouncementInfo_set_announcement_message(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_set_announcement_message")] public static extern void NodeAnnouncementInfoSetAnnouncementMessage(long _this_ptr, long _val); // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKNodeAnnouncement announcement_message_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_new")] public static extern long NodeAnnouncementInfo_new(long _features_arg, int _last_update_arg, long _rgb_arg, long _alias_arg, long _announcement_message_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_new")] public static extern long NodeAnnouncementInfoNew(long _features_arg, int _last_update_arg, long _rgb_arg, long _alias_arg, long _announcement_message_arg); // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_clone_ptr")] public static extern long NodeAnnouncementInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_clone_ptr")] public static extern long NodeAnnouncementInfoClonePtr(long _arg); // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_clone")] public static extern long NodeAnnouncementInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_clone")] public static extern long NodeAnnouncementInfoClone(long _orig); // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_eq")] public static extern bool NodeAnnouncementInfo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_eq")] public static extern bool NodeAnnouncementInfoEq(long _a, long _b); // MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_addresses")] public static extern long NodeAnnouncementInfo_addresses(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_addresses")] public static extern long NodeAnnouncementInfoAddresses(long _this_arg); // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_write")] public static extern long NodeAnnouncementInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_write")] public static extern long NodeAnnouncementInfoWrite(long _obj); // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_read")] public static extern long NodeAnnouncementInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAnnouncementInfo_read")] public static extern long NodeAnnouncementInfoRead(long _ser); // void NodeAlias_free(struct LDKNodeAlias this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_free")] public static extern void NodeAlias_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_free")] public static extern void NodeAliasFree(long _this_obj); // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_get_a")] public static extern long NodeAlias_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_get_a")] public static extern long NodeAliasGetA(long _this_ptr); // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_set_a")] public static extern void NodeAlias_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_set_a")] public static extern void NodeAliasSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_new")] public static extern long NodeAlias_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_new")] public static extern long NodeAliasNew(long _a_arg); // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_clone_ptr")] public static extern long NodeAlias_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_clone_ptr")] public static extern long NodeAliasClonePtr(long _arg); // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_clone")] public static extern long NodeAlias_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_clone")] public static extern long NodeAliasClone(long _orig); // uint64_t NodeAlias_hash(const struct LDKNodeAlias *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_hash")] public static extern long NodeAlias_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_hash")] public static extern long NodeAliasHash(long _o); // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_eq")] public static extern bool NodeAlias_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_eq")] public static extern bool NodeAliasEq(long _a, long _b); // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_write")] public static extern long NodeAlias_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_write")] public static extern long NodeAliasWrite(long _obj); // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_read")] public static extern long NodeAlias_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeAlias_read")] public static extern long NodeAliasRead(long _ser); // void NodeInfo_free(struct LDKNodeInfo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_free")] public static extern void NodeInfo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_free")] public static extern void NodeInfoFree(long _this_obj); // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_get_channels")] public static extern long NodeInfo_get_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_get_channels")] public static extern long NodeInfoGetChannels(long _this_ptr); // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_set_channels")] public static extern void NodeInfo_set_channels(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_set_channels")] public static extern void NodeInfoSetChannels(long _this_ptr, long _val); // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_get_announcement_info")] public static extern long NodeInfo_get_announcement_info(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_get_announcement_info")] public static extern long NodeInfoGetAnnouncementInfo(long _this_ptr); // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_set_announcement_info")] public static extern void NodeInfo_set_announcement_info(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_set_announcement_info")] public static extern void NodeInfoSetAnnouncementInfo(long _this_ptr, long _val); // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_new")] public static extern long NodeInfo_new(long _channels_arg, long _announcement_info_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_new")] public static extern long NodeInfoNew(long _channels_arg, long _announcement_info_arg); // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_clone_ptr")] public static extern long NodeInfo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_clone_ptr")] public static extern long NodeInfoClonePtr(long _arg); // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_clone")] public static extern long NodeInfo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_clone")] public static extern long NodeInfoClone(long _orig); // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_eq")] public static extern bool NodeInfo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_eq")] public static extern bool NodeInfoEq(long _a, long _b); // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_write")] public static extern long NodeInfo_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_write")] public static extern long NodeInfoWrite(long _obj); // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_read")] public static extern long NodeInfo_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeInfo_read")] public static extern long NodeInfoRead(long _ser); // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_write")] public static extern long NetworkGraph_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_write")] public static extern long NetworkGraphWrite(long _obj); // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_read")] public static extern long NetworkGraph_read(long _ser, long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_read")] public static extern long NetworkGraphRead(long _ser, long _arg); // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_new")] public static extern long NetworkGraph_new(Network _network, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_new")] public static extern long NetworkGraphNew(Network _network, long _logger); // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_read_only")] public static extern long NetworkGraph_read_only(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_read_only")] public static extern long NetworkGraphReadOnly(long _this_arg); // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_get_last_rapid_gossip_sync_timestamp")] public static extern long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_get_last_rapid_gossip_sync_timestamp")] public static extern long NetworkGraphGetLastRapidGossipSyncTimestamp(long _this_arg); // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_set_last_rapid_gossip_sync_timestamp")] public static extern void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long _this_arg, int _last_rapid_gossip_sync_timestamp); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_set_last_rapid_gossip_sync_timestamp")] public static extern void NetworkGraphSetLastRapidGossipSyncTimestamp(long _this_arg, int _last_rapid_gossip_sync_timestamp); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_node_from_announcement")] public static extern long NetworkGraph_update_node_from_announcement(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_node_from_announcement")] public static extern long NetworkGraphUpdateNodeFromAnnouncement(long _this_arg, long _msg); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_node_from_unsigned_announcement")] public static extern long NetworkGraph_update_node_from_unsigned_announcement(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_node_from_unsigned_announcement")] public static extern long NetworkGraphUpdateNodeFromUnsignedAnnouncement(long _this_arg, long _msg); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_announcement")] public static extern long NetworkGraph_update_channel_from_announcement(long _this_arg, long _msg, long _utxo_lookup); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_announcement")] public static extern long NetworkGraphUpdateChannelFromAnnouncement(long _this_arg, long _msg, long _utxo_lookup); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement_no_lookup(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_announcement_no_lookup")] public static extern long NetworkGraph_update_channel_from_announcement_no_lookup(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_announcement_no_lookup")] public static extern long NetworkGraphUpdateChannelFromAnnouncementNoLookup(long _this_arg, long _msg); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_unsigned_announcement")] public static extern long NetworkGraph_update_channel_from_unsigned_announcement(long _this_arg, long _msg, long _utxo_lookup); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_from_unsigned_announcement")] public static extern long NetworkGraphUpdateChannelFromUnsignedAnnouncement(long _this_arg, long _msg, long _utxo_lookup); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_add_channel_from_partial_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t timestamp, struct LDKChannelFeatures features, struct LDKPublicKey node_id_1, struct LDKPublicKey node_id_2); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_add_channel_from_partial_announcement")] public static extern long NetworkGraph_add_channel_from_partial_announcement(long _this_arg, long _short_channel_id, long _timestamp, long _features, long _node_id_1, long _node_id_2); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_add_channel_from_partial_announcement")] public static extern long NetworkGraphAddChannelFromPartialAnnouncement(long _this_arg, long _short_channel_id, long _timestamp, long _features, long _node_id_1, long _node_id_2); // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_channel_failed_permanent")] public static extern void NetworkGraph_channel_failed_permanent(long _this_arg, long _short_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_channel_failed_permanent")] public static extern void NetworkGraphChannelFailedPermanent(long _this_arg, long _short_channel_id); // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_node_failed_permanent")] public static extern void NetworkGraph_node_failed_permanent(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_node_failed_permanent")] public static extern void NetworkGraphNodeFailedPermanent(long _this_arg, long _node_id); // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_remove_stale_channels_and_tracking")] public static extern void NetworkGraph_remove_stale_channels_and_tracking(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_remove_stale_channels_and_tracking")] public static extern void NetworkGraphRemoveStaleChannelsAndTracking(long _this_arg); // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_remove_stale_channels_and_tracking_with_time")] public static extern void NetworkGraph_remove_stale_channels_and_tracking_with_time(long _this_arg, long _current_time_unix); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_remove_stale_channels_and_tracking_with_time")] public static extern void NetworkGraphRemoveStaleChannelsAndTrackingWithTime(long _this_arg, long _current_time_unix); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel")] public static extern long NetworkGraph_update_channel(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel")] public static extern long NetworkGraphUpdateChannel(long _this_arg, long _msg); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_unsigned")] public static extern long NetworkGraph_update_channel_unsigned(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_update_channel_unsigned")] public static extern long NetworkGraphUpdateChannelUnsigned(long _this_arg, long _msg); // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_verify_channel_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_verify_channel_update")] public static extern long NetworkGraph_verify_channel_update(long _this_arg, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NetworkGraph_verify_channel_update")] public static extern long NetworkGraphVerifyChannelUpdate(long _this_arg, long _msg); // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_channel")] public static extern long ReadOnlyNetworkGraph_channel(long _this_arg, long _short_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_channel")] public static extern long ReadOnlyNetworkGraphChannel(long _this_arg, long _short_channel_id); // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_list_channels")] public static extern long ReadOnlyNetworkGraph_list_channels(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_list_channels")] public static extern long ReadOnlyNetworkGraphListChannels(long _this_arg); // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_node")] public static extern long ReadOnlyNetworkGraph_node(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_node")] public static extern long ReadOnlyNetworkGraphNode(long _this_arg, long _node_id); // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_list_nodes")] public static extern long ReadOnlyNetworkGraph_list_nodes(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_list_nodes")] public static extern long ReadOnlyNetworkGraphListNodes(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_get_addresses")] public static extern long ReadOnlyNetworkGraph_get_addresses(long _this_arg, long _pubkey); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReadOnlyNetworkGraph_get_addresses")] public static extern long ReadOnlyNetworkGraphGetAddresses(long _this_arg, long _pubkey); // void DefaultRouter_free(struct LDKDefaultRouter this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_free")] public static extern void DefaultRouter_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_free")] public static extern void DefaultRouterFree(long _this_obj); // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKLockableScore scorer, struct LDKProbabilisticScoringFeeParameters score_params); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_new")] public static extern long DefaultRouter_new(long _network_graph, long _logger, long _entropy_source, long _scorer, long _score_params); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_new")] public static extern long DefaultRouterNew(long _network_graph, long _logger, long _entropy_source, long _scorer, long _score_params); // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_as_Router")] public static extern long DefaultRouter_as_Router(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_as_Router")] public static extern long DefaultRouterAsRouter(long _this_arg); // struct LDKMessageRouter DefaultRouter_as_MessageRouter(const struct LDKDefaultRouter *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_as_MessageRouter")] public static extern long DefaultRouter_as_MessageRouter(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultRouter_as_MessageRouter")] public static extern long DefaultRouterAsMessageRouter(long _this_arg); // void Router_free(struct LDKRouter this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_free")] public static extern void Router_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Router_free")] public static extern void RouterFree(long _this_ptr); // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_free")] public static extern void ScorerAccountingForInFlightHtlcs_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_free")] public static extern void ScorerAccountingForInFlightHtlcsFree(long _this_obj); // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_new")] public static extern long ScorerAccountingForInFlightHtlcs_new(long _scorer, long _inflight_htlcs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_new")] public static extern long ScorerAccountingForInFlightHtlcsNew(long _scorer, long _inflight_htlcs); // struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_as_ScoreLookUp")] public static extern long ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScorerAccountingForInFlightHtlcs_as_ScoreLookUp")] public static extern long ScorerAccountingForInFlightHtlcsAsScoreLookUp(long _this_arg); // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_free")] public static extern void InFlightHtlcs_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_free")] public static extern void InFlightHtlcsFree(long _this_obj); // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_clone_ptr")] public static extern long InFlightHtlcs_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_clone_ptr")] public static extern long InFlightHtlcsClonePtr(long _arg); // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_clone")] public static extern long InFlightHtlcs_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_clone")] public static extern long InFlightHtlcsClone(long _orig); // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_new")] public static extern long InFlightHtlcs_new(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_new")] public static extern long InFlightHtlcsNew(); // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_process_path")] public static extern void InFlightHtlcs_process_path(long _this_arg, long _path, long _payer_node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_process_path")] public static extern void InFlightHtlcsProcessPath(long _this_arg, long _path, long _payer_node_id); // void InFlightHtlcs_add_inflight_htlc(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid, uint64_t used_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_add_inflight_htlc")] public static extern void InFlightHtlcs_add_inflight_htlc(long _this_arg, long _source, long _target, long _channel_scid, long _used_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_add_inflight_htlc")] public static extern void InFlightHtlcsAddInflightHtlc(long _this_arg, long _source, long _target, long _channel_scid, long _used_msat); // MUST_USE_RES struct LDKCOption_u64Z InFlightHtlcs_used_liquidity_msat(const struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_used_liquidity_msat")] public static extern long InFlightHtlcs_used_liquidity_msat(long _this_arg, long _source, long _target, long _channel_scid); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_used_liquidity_msat")] public static extern long InFlightHtlcsUsedLiquidityMsat(long _this_arg, long _source, long _target, long _channel_scid); // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_write")] public static extern long InFlightHtlcs_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_write")] public static extern long InFlightHtlcsWrite(long _obj); // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_read")] public static extern long InFlightHtlcs_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InFlightHtlcs_read")] public static extern long InFlightHtlcsRead(long _ser); // void RouteHop_free(struct LDKRouteHop this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_free")] public static extern void RouteHop_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_free")] public static extern void RouteHopFree(long _this_obj); // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_pubkey")] public static extern long RouteHop_get_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_pubkey")] public static extern long RouteHopGetPubkey(long _this_ptr); // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_pubkey")] public static extern void RouteHop_set_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_pubkey")] public static extern void RouteHopSetPubkey(long _this_ptr, long _val); // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_node_features")] public static extern long RouteHop_get_node_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_node_features")] public static extern long RouteHopGetNodeFeatures(long _this_ptr); // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_node_features")] public static extern void RouteHop_set_node_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_node_features")] public static extern void RouteHopSetNodeFeatures(long _this_ptr, long _val); // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_short_channel_id")] public static extern long RouteHop_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_short_channel_id")] public static extern long RouteHopGetShortChannelId(long _this_ptr); // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_short_channel_id")] public static extern void RouteHop_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_short_channel_id")] public static extern void RouteHopSetShortChannelId(long _this_ptr, long _val); // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_channel_features")] public static extern long RouteHop_get_channel_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_channel_features")] public static extern long RouteHopGetChannelFeatures(long _this_ptr); // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_channel_features")] public static extern void RouteHop_set_channel_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_channel_features")] public static extern void RouteHopSetChannelFeatures(long _this_ptr, long _val); // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_fee_msat")] public static extern long RouteHop_get_fee_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_fee_msat")] public static extern long RouteHopGetFeeMsat(long _this_ptr); // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_fee_msat")] public static extern void RouteHop_set_fee_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_fee_msat")] public static extern void RouteHopSetFeeMsat(long _this_ptr, long _val); // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_cltv_expiry_delta")] public static extern int RouteHop_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_cltv_expiry_delta")] public static extern int RouteHopGetCltvExpiryDelta(long _this_ptr); // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_cltv_expiry_delta")] public static extern void RouteHop_set_cltv_expiry_delta(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_cltv_expiry_delta")] public static extern void RouteHopSetCltvExpiryDelta(long _this_ptr, int _val); // bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_maybe_announced_channel")] public static extern bool RouteHop_get_maybe_announced_channel(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_get_maybe_announced_channel")] public static extern bool RouteHopGetMaybeAnnouncedChannel(long _this_ptr); // void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_maybe_announced_channel")] public static extern void RouteHop_set_maybe_announced_channel(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_set_maybe_announced_channel")] public static extern void RouteHopSetMaybeAnnouncedChannel(long _this_ptr, bool _val); // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg, bool maybe_announced_channel_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_new")] public static extern long RouteHop_new(long _pubkey_arg, long _node_features_arg, long _short_channel_id_arg, long _channel_features_arg, long _fee_msat_arg, int _cltv_expiry_delta_arg, bool _maybe_announced_channel_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_new")] public static extern long RouteHopNew(long _pubkey_arg, long _node_features_arg, long _short_channel_id_arg, long _channel_features_arg, long _fee_msat_arg, int _cltv_expiry_delta_arg, bool _maybe_announced_channel_arg); // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_clone_ptr")] public static extern long RouteHop_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_clone_ptr")] public static extern long RouteHopClonePtr(long _arg); // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_clone")] public static extern long RouteHop_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_clone")] public static extern long RouteHopClone(long _orig); // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_hash")] public static extern long RouteHop_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_hash")] public static extern long RouteHopHash(long _o); // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_eq")] public static extern bool RouteHop_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_eq")] public static extern bool RouteHopEq(long _a, long _b); // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_write")] public static extern long RouteHop_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_write")] public static extern long RouteHopWrite(long _obj); // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_read")] public static extern long RouteHop_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHop_read")] public static extern long RouteHopRead(long _ser); // void BlindedTail_free(struct LDKBlindedTail this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_free")] public static extern void BlindedTail_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_free")] public static extern void BlindedTailFree(long _this_obj); // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_hops")] public static extern long BlindedTail_get_hops(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_hops")] public static extern long BlindedTailGetHops(long _this_ptr); // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_hops")] public static extern void BlindedTail_set_hops(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_hops")] public static extern void BlindedTailSetHops(long _this_ptr, long _val); // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_blinding_point")] public static extern long BlindedTail_get_blinding_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_blinding_point")] public static extern long BlindedTailGetBlindingPoint(long _this_ptr); // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_blinding_point")] public static extern void BlindedTail_set_blinding_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_blinding_point")] public static extern void BlindedTailSetBlindingPoint(long _this_ptr, long _val); // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_excess_final_cltv_expiry_delta")] public static extern int BlindedTail_get_excess_final_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_excess_final_cltv_expiry_delta")] public static extern int BlindedTailGetExcessFinalCltvExpiryDelta(long _this_ptr); // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_excess_final_cltv_expiry_delta")] public static extern void BlindedTail_set_excess_final_cltv_expiry_delta(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_excess_final_cltv_expiry_delta")] public static extern void BlindedTailSetExcessFinalCltvExpiryDelta(long _this_ptr, int _val); // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_final_value_msat")] public static extern long BlindedTail_get_final_value_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_get_final_value_msat")] public static extern long BlindedTailGetFinalValueMsat(long _this_ptr); // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_final_value_msat")] public static extern void BlindedTail_set_final_value_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_set_final_value_msat")] public static extern void BlindedTailSetFinalValueMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKBlindedTail BlindedTail_new(struct LDKCVec_BlindedHopZ hops_arg, struct LDKPublicKey blinding_point_arg, uint32_t excess_final_cltv_expiry_delta_arg, uint64_t final_value_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_new")] public static extern long BlindedTail_new(long _hops_arg, long _blinding_point_arg, int _excess_final_cltv_expiry_delta_arg, long _final_value_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_new")] public static extern long BlindedTailNew(long _hops_arg, long _blinding_point_arg, int _excess_final_cltv_expiry_delta_arg, long _final_value_msat_arg); // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_clone_ptr")] public static extern long BlindedTail_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_clone_ptr")] public static extern long BlindedTailClonePtr(long _arg); // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_clone")] public static extern long BlindedTail_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_clone")] public static extern long BlindedTailClone(long _orig); // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_hash")] public static extern long BlindedTail_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_hash")] public static extern long BlindedTailHash(long _o); // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_eq")] public static extern bool BlindedTail_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_eq")] public static extern bool BlindedTailEq(long _a, long _b); // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_write")] public static extern long BlindedTail_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_write")] public static extern long BlindedTailWrite(long _obj); // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_read")] public static extern long BlindedTail_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedTail_read")] public static extern long BlindedTailRead(long _ser); // void Path_free(struct LDKPath this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_free")] public static extern void Path_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_free")] public static extern void PathFree(long _this_obj); // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_get_hops")] public static extern long Path_get_hops(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_get_hops")] public static extern long PathGetHops(long _this_ptr); // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_set_hops")] public static extern void Path_set_hops(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_set_hops")] public static extern void PathSetHops(long _this_ptr, long _val); // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_get_blinded_tail")] public static extern long Path_get_blinded_tail(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_get_blinded_tail")] public static extern long PathGetBlindedTail(long _this_ptr); // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_set_blinded_tail")] public static extern void Path_set_blinded_tail(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_set_blinded_tail")] public static extern void PathSetBlindedTail(long _this_ptr, long _val); // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_new")] public static extern long Path_new(long _hops_arg, long _blinded_tail_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_new")] public static extern long PathNew(long _hops_arg, long _blinded_tail_arg); // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_clone_ptr")] public static extern long Path_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_clone_ptr")] public static extern long PathClonePtr(long _arg); // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_clone")] public static extern long Path_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_clone")] public static extern long PathClone(long _orig); // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_hash")] public static extern long Path_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_hash")] public static extern long PathHash(long _o); // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_eq")] public static extern bool Path_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_eq")] public static extern bool PathEq(long _a, long _b); // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_fee_msat")] public static extern long Path_fee_msat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_fee_msat")] public static extern long PathFeeMsat(long _this_arg); // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_final_value_msat")] public static extern long Path_final_value_msat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_final_value_msat")] public static extern long PathFinalValueMsat(long _this_arg); // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_final_cltv_expiry_delta")] public static extern long Path_final_cltv_expiry_delta(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Path_final_cltv_expiry_delta")] public static extern long PathFinalCltvExpiryDelta(long _this_arg); // void Route_free(struct LDKRoute this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_free")] public static extern void Route_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_free")] public static extern void RouteFree(long _this_obj); // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_paths")] public static extern long Route_get_paths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_paths")] public static extern long RouteGetPaths(long _this_ptr); // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_set_paths")] public static extern void Route_set_paths(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_set_paths")] public static extern void RouteSetPaths(long _this_ptr, long _val); // struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_route_params")] public static extern long Route_get_route_params(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_route_params")] public static extern long RouteGetRouteParams(long _this_ptr); // void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_set_route_params")] public static extern void Route_set_route_params(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_set_route_params")] public static extern void RouteSetRouteParams(long _this_ptr, long _val); // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_new")] public static extern long Route_new(long _paths_arg, long _route_params_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_new")] public static extern long RouteNew(long _paths_arg, long _route_params_arg); // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_clone_ptr")] public static extern long Route_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_clone_ptr")] public static extern long RouteClonePtr(long _arg); // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_clone")] public static extern long Route_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_clone")] public static extern long RouteClone(long _orig); // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_hash")] public static extern long Route_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_hash")] public static extern long RouteHash(long _o); // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_eq")] public static extern bool Route_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_eq")] public static extern bool RouteEq(long _a, long _b); // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_total_fees")] public static extern long Route_get_total_fees(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_total_fees")] public static extern long RouteGetTotalFees(long _this_arg); // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_total_amount")] public static extern long Route_get_total_amount(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_get_total_amount")] public static extern long RouteGetTotalAmount(long _this_arg); // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_write")] public static extern long Route_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_write")] public static extern long RouteWrite(long _obj); // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_read")] public static extern long Route_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Route_read")] public static extern long RouteRead(long _ser); // void RouteParameters_free(struct LDKRouteParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_free")] public static extern void RouteParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_free")] public static extern void RouteParametersFree(long _this_obj); // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_payment_params")] public static extern long RouteParameters_get_payment_params(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_payment_params")] public static extern long RouteParametersGetPaymentParams(long _this_ptr); // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_payment_params")] public static extern void RouteParameters_set_payment_params(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_payment_params")] public static extern void RouteParametersSetPaymentParams(long _this_ptr, long _val); // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_final_value_msat")] public static extern long RouteParameters_get_final_value_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_final_value_msat")] public static extern long RouteParametersGetFinalValueMsat(long _this_ptr); // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_final_value_msat")] public static extern void RouteParameters_set_final_value_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_final_value_msat")] public static extern void RouteParametersSetFinalValueMsat(long _this_ptr, long _val); // struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_max_total_routing_fee_msat")] public static extern long RouteParameters_get_max_total_routing_fee_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_get_max_total_routing_fee_msat")] public static extern long RouteParametersGetMaxTotalRoutingFeeMsat(long _this_ptr); // void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_max_total_routing_fee_msat")] public static extern void RouteParameters_set_max_total_routing_fee_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_set_max_total_routing_fee_msat")] public static extern void RouteParametersSetMaxTotalRoutingFeeMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, struct LDKCOption_u64Z max_total_routing_fee_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_new")] public static extern long RouteParameters_new(long _payment_params_arg, long _final_value_msat_arg, long _max_total_routing_fee_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_new")] public static extern long RouteParametersNew(long _payment_params_arg, long _final_value_msat_arg, long _max_total_routing_fee_msat_arg); // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_clone_ptr")] public static extern long RouteParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_clone_ptr")] public static extern long RouteParametersClonePtr(long _arg); // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_clone")] public static extern long RouteParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_clone")] public static extern long RouteParametersClone(long _orig); // uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_hash")] public static extern long RouteParameters_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_hash")] public static extern long RouteParametersHash(long _o); // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_eq")] public static extern bool RouteParameters_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_eq")] public static extern bool RouteParametersEq(long _a, long _b); // MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_from_payment_params_and_value")] public static extern long RouteParameters_from_payment_params_and_value(long _payment_params, long _final_value_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_from_payment_params_and_value")] public static extern long RouteParametersFromPaymentParamsAndValue(long _payment_params, long _final_value_msat); // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_write")] public static extern long RouteParameters_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_write")] public static extern long RouteParametersWrite(long _obj); // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_read")] public static extern long RouteParameters_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteParameters_read")] public static extern long RouteParametersRead(long _ser); // void PaymentParameters_free(struct LDKPaymentParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_free")] public static extern void PaymentParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_free")] public static extern void PaymentParametersFree(long _this_obj); // struct LDKPayee PaymentParameters_get_payee(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_payee")] public static extern long PaymentParameters_get_payee(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_payee")] public static extern long PaymentParametersGetPayee(long _this_ptr); // void PaymentParameters_set_payee(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPayee val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_payee")] public static extern void PaymentParameters_set_payee(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_payee")] public static extern void PaymentParametersSetPayee(long _this_ptr, long _val); // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_expiry_time")] public static extern long PaymentParameters_get_expiry_time(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_expiry_time")] public static extern long PaymentParametersGetExpiryTime(long _this_ptr); // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_expiry_time")] public static extern void PaymentParameters_set_expiry_time(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_expiry_time")] public static extern void PaymentParametersSetExpiryTime(long _this_ptr, long _val); // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_total_cltv_expiry_delta")] public static extern int PaymentParameters_get_max_total_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_total_cltv_expiry_delta")] public static extern int PaymentParametersGetMaxTotalCltvExpiryDelta(long _this_ptr); // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_total_cltv_expiry_delta")] public static extern void PaymentParameters_set_max_total_cltv_expiry_delta(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_total_cltv_expiry_delta")] public static extern void PaymentParametersSetMaxTotalCltvExpiryDelta(long _this_ptr, int _val); // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_path_count")] public static extern byte PaymentParameters_get_max_path_count(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_path_count")] public static extern byte PaymentParametersGetMaxPathCount(long _this_ptr); // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_path_count")] public static extern void PaymentParameters_set_max_path_count(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_path_count")] public static extern void PaymentParametersSetMaxPathCount(long _this_ptr, byte _val); // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_channel_saturation_power_of_half")] public static extern byte PaymentParameters_get_max_channel_saturation_power_of_half(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_max_channel_saturation_power_of_half")] public static extern byte PaymentParametersGetMaxChannelSaturationPowerOfHalf(long _this_ptr); // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_channel_saturation_power_of_half")] public static extern void PaymentParameters_set_max_channel_saturation_power_of_half(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_max_channel_saturation_power_of_half")] public static extern void PaymentParametersSetMaxChannelSaturationPowerOfHalf(long _this_ptr, byte _val); // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_previously_failed_channels")] public static extern long PaymentParameters_get_previously_failed_channels(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_previously_failed_channels")] public static extern long PaymentParametersGetPreviouslyFailedChannels(long _this_ptr); // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_previously_failed_channels")] public static extern void PaymentParameters_set_previously_failed_channels(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_previously_failed_channels")] public static extern void PaymentParametersSetPreviouslyFailedChannels(long _this_ptr, long _val); // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_blinded_path_idxs(const struct LDKPaymentParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_previously_failed_blinded_path_idxs")] public static extern long PaymentParameters_get_previously_failed_blinded_path_idxs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_get_previously_failed_blinded_path_idxs")] public static extern long PaymentParametersGetPreviouslyFailedBlindedPathIdxs(long _this_ptr); // void PaymentParameters_set_previously_failed_blinded_path_idxs(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_previously_failed_blinded_path_idxs")] public static extern void PaymentParameters_set_previously_failed_blinded_path_idxs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_set_previously_failed_blinded_path_idxs")] public static extern void PaymentParametersSetPreviouslyFailedBlindedPathIdxs(long _this_ptr, long _val); // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPayee payee_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg, struct LDKCVec_u64Z previously_failed_blinded_path_idxs_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_new")] public static extern long PaymentParameters_new(long _payee_arg, long _expiry_time_arg, int _max_total_cltv_expiry_delta_arg, byte _max_path_count_arg, byte _max_channel_saturation_power_of_half_arg, long _previously_failed_channels_arg, long _previously_failed_blinded_path_idxs_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_new")] public static extern long PaymentParametersNew(long _payee_arg, long _expiry_time_arg, int _max_total_cltv_expiry_delta_arg, byte _max_path_count_arg, byte _max_channel_saturation_power_of_half_arg, long _previously_failed_channels_arg, long _previously_failed_blinded_path_idxs_arg); // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_clone_ptr")] public static extern long PaymentParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_clone_ptr")] public static extern long PaymentParametersClonePtr(long _arg); // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_clone")] public static extern long PaymentParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_clone")] public static extern long PaymentParametersClone(long _orig); // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_hash")] public static extern long PaymentParameters_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_hash")] public static extern long PaymentParametersHash(long _o); // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_eq")] public static extern bool PaymentParameters_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_eq")] public static extern bool PaymentParametersEq(long _a, long _b); // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_write")] public static extern long PaymentParameters_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_write")] public static extern long PaymentParametersWrite(long _obj); // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_read")] public static extern long PaymentParameters_read(long _ser, int _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_read")] public static extern long PaymentParametersRead(long _ser, int _arg); // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_from_node_id")] public static extern long PaymentParameters_from_node_id(long _payee_pubkey, int _final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_from_node_id")] public static extern long PaymentParametersFromNodeId(long _payee_pubkey, int _final_cltv_expiry_delta); // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta, bool allow_mpp); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_for_keysend")] public static extern long PaymentParameters_for_keysend(long _payee_pubkey, int _final_cltv_expiry_delta, bool _allow_mpp); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_for_keysend")] public static extern long PaymentParametersForKeysend(long _payee_pubkey, int _final_cltv_expiry_delta, bool _allow_mpp); // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_from_bolt12_invoice")] public static extern long PaymentParameters_from_bolt12_invoice(long _invoice); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_from_bolt12_invoice")] public static extern long PaymentParametersFromBolt12Invoice(long _invoice); // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_blinded")] public static extern long PaymentParameters_blinded(long _blinded_route_hints); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentParameters_blinded")] public static extern long PaymentParametersBlinded(long _blinded_route_hints); // void Payee_free(struct LDKPayee this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_free")] public static extern void Payee_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_free")] public static extern void PayeeFree(long _this_ptr); // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clone_ptr")] public static extern long Payee_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clone_ptr")] public static extern long PayeeClonePtr(long _arg); // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clone")] public static extern long Payee_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clone")] public static extern long PayeeClone(long _orig); // struct LDKPayee Payee_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ route_hints, struct LDKBolt12InvoiceFeatures features); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_blinded")] public static extern long Payee_blinded(long _route_hints, long _features); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_blinded")] public static extern long PayeeBlinded(long _route_hints, long _features); // struct LDKPayee Payee_clear(struct LDKPublicKey node_id, struct LDKCVec_RouteHintZ route_hints, struct LDKBolt11InvoiceFeatures features, uint32_t final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clear")] public static extern long Payee_clear(long _node_id, long _route_hints, long _features, int _final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_clear")] public static extern long PayeeClear(long _node_id, long _route_hints, long _features, int _final_cltv_expiry_delta); // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_hash")] public static extern long Payee_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_hash")] public static extern long PayeeHash(long _o); // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_eq")] public static extern bool Payee_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Payee_eq")] public static extern bool PayeeEq(long _a, long _b); // void RouteHint_free(struct LDKRouteHint this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_free")] public static extern void RouteHint_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_free")] public static extern void RouteHintFree(long _this_obj); // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_get_a")] public static extern long RouteHint_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_get_a")] public static extern long RouteHintGetA(long _this_ptr); // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_set_a")] public static extern void RouteHint_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_set_a")] public static extern void RouteHintSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_new")] public static extern long RouteHint_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_new")] public static extern long RouteHintNew(long _a_arg); // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_clone_ptr")] public static extern long RouteHint_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_clone_ptr")] public static extern long RouteHintClonePtr(long _arg); // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_clone")] public static extern long RouteHint_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_clone")] public static extern long RouteHintClone(long _orig); // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_hash")] public static extern long RouteHint_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_hash")] public static extern long RouteHintHash(long _o); // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_eq")] public static extern bool RouteHint_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_eq")] public static extern bool RouteHintEq(long _a, long _b); // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_write")] public static extern long RouteHint_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_write")] public static extern long RouteHintWrite(long _obj); // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_read")] public static extern long RouteHint_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHint_read")] public static extern long RouteHintRead(long _ser); // void RouteHintHop_free(struct LDKRouteHintHop this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_free")] public static extern void RouteHintHop_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_free")] public static extern void RouteHintHopFree(long _this_obj); // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_src_node_id")] public static extern long RouteHintHop_get_src_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_src_node_id")] public static extern long RouteHintHopGetSrcNodeId(long _this_ptr); // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_src_node_id")] public static extern void RouteHintHop_set_src_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_src_node_id")] public static extern void RouteHintHopSetSrcNodeId(long _this_ptr, long _val); // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_short_channel_id")] public static extern long RouteHintHop_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_short_channel_id")] public static extern long RouteHintHopGetShortChannelId(long _this_ptr); // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_short_channel_id")] public static extern void RouteHintHop_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_short_channel_id")] public static extern void RouteHintHopSetShortChannelId(long _this_ptr, long _val); // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_fees")] public static extern long RouteHintHop_get_fees(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_fees")] public static extern long RouteHintHopGetFees(long _this_ptr); // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_fees")] public static extern void RouteHintHop_set_fees(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_fees")] public static extern void RouteHintHopSetFees(long _this_ptr, long _val); // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_cltv_expiry_delta")] public static extern short RouteHintHop_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_cltv_expiry_delta")] public static extern short RouteHintHopGetCltvExpiryDelta(long _this_ptr); // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_cltv_expiry_delta")] public static extern void RouteHintHop_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_cltv_expiry_delta")] public static extern void RouteHintHopSetCltvExpiryDelta(long _this_ptr, short _val); // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_htlc_minimum_msat")] public static extern long RouteHintHop_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_htlc_minimum_msat")] public static extern long RouteHintHopGetHtlcMinimumMsat(long _this_ptr); // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_htlc_minimum_msat")] public static extern void RouteHintHop_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_htlc_minimum_msat")] public static extern void RouteHintHopSetHtlcMinimumMsat(long _this_ptr, long _val); // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_htlc_maximum_msat")] public static extern long RouteHintHop_get_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_get_htlc_maximum_msat")] public static extern long RouteHintHopGetHtlcMaximumMsat(long _this_ptr); // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_htlc_maximum_msat")] public static extern void RouteHintHop_set_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_set_htlc_maximum_msat")] public static extern void RouteHintHopSetHtlcMaximumMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_new")] public static extern long RouteHintHop_new(long _src_node_id_arg, long _short_channel_id_arg, long _fees_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_new")] public static extern long RouteHintHopNew(long _src_node_id_arg, long _short_channel_id_arg, long _fees_arg, short _cltv_expiry_delta_arg, long _htlc_minimum_msat_arg, long _htlc_maximum_msat_arg); // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_clone_ptr")] public static extern long RouteHintHop_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_clone_ptr")] public static extern long RouteHintHopClonePtr(long _arg); // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_clone")] public static extern long RouteHintHop_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_clone")] public static extern long RouteHintHopClone(long _orig); // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_hash")] public static extern long RouteHintHop_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_hash")] public static extern long RouteHintHopHash(long _o); // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_eq")] public static extern bool RouteHintHop_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_eq")] public static extern bool RouteHintHopEq(long _a, long _b); // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_write")] public static extern long RouteHintHop_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_write")] public static extern long RouteHintHopWrite(long _obj); // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_read")] public static extern long RouteHintHop_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RouteHintHop_read")] public static extern long RouteHintHopRead(long _ser); // void FirstHopCandidate_free(struct LDKFirstHopCandidate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_free")] public static extern void FirstHopCandidate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_free")] public static extern void FirstHopCandidateFree(long _this_obj); // uint64_t FirstHopCandidate_clone_ptr(LDKFirstHopCandidate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_clone_ptr")] public static extern long FirstHopCandidate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_clone_ptr")] public static extern long FirstHopCandidateClonePtr(long _arg); // struct LDKFirstHopCandidate FirstHopCandidate_clone(const struct LDKFirstHopCandidate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_clone")] public static extern long FirstHopCandidate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FirstHopCandidate_clone")] public static extern long FirstHopCandidateClone(long _orig); // void PublicHopCandidate_free(struct LDKPublicHopCandidate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_free")] public static extern void PublicHopCandidate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_free")] public static extern void PublicHopCandidateFree(long _this_obj); // uint64_t PublicHopCandidate_get_short_channel_id(const struct LDKPublicHopCandidate *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_get_short_channel_id")] public static extern long PublicHopCandidate_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_get_short_channel_id")] public static extern long PublicHopCandidateGetShortChannelId(long _this_ptr); // void PublicHopCandidate_set_short_channel_id(struct LDKPublicHopCandidate *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_set_short_channel_id")] public static extern void PublicHopCandidate_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_set_short_channel_id")] public static extern void PublicHopCandidateSetShortChannelId(long _this_ptr, long _val); // uint64_t PublicHopCandidate_clone_ptr(LDKPublicHopCandidate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_clone_ptr")] public static extern long PublicHopCandidate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_clone_ptr")] public static extern long PublicHopCandidateClonePtr(long _arg); // struct LDKPublicHopCandidate PublicHopCandidate_clone(const struct LDKPublicHopCandidate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_clone")] public static extern long PublicHopCandidate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PublicHopCandidate_clone")] public static extern long PublicHopCandidateClone(long _orig); // void PrivateHopCandidate_free(struct LDKPrivateHopCandidate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_free")] public static extern void PrivateHopCandidate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_free")] public static extern void PrivateHopCandidateFree(long _this_obj); // uint64_t PrivateHopCandidate_clone_ptr(LDKPrivateHopCandidate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_clone_ptr")] public static extern long PrivateHopCandidate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_clone_ptr")] public static extern long PrivateHopCandidateClonePtr(long _arg); // struct LDKPrivateHopCandidate PrivateHopCandidate_clone(const struct LDKPrivateHopCandidate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_clone")] public static extern long PrivateHopCandidate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateHopCandidate_clone")] public static extern long PrivateHopCandidateClone(long _orig); // void BlindedPathCandidate_free(struct LDKBlindedPathCandidate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_free")] public static extern void BlindedPathCandidate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_free")] public static extern void BlindedPathCandidateFree(long _this_obj); // uint64_t BlindedPathCandidate_clone_ptr(LDKBlindedPathCandidate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_clone_ptr")] public static extern long BlindedPathCandidate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_clone_ptr")] public static extern long BlindedPathCandidateClonePtr(long _arg); // struct LDKBlindedPathCandidate BlindedPathCandidate_clone(const struct LDKBlindedPathCandidate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_clone")] public static extern long BlindedPathCandidate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPathCandidate_clone")] public static extern long BlindedPathCandidateClone(long _orig); // void OneHopBlindedPathCandidate_free(struct LDKOneHopBlindedPathCandidate this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_free")] public static extern void OneHopBlindedPathCandidate_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_free")] public static extern void OneHopBlindedPathCandidateFree(long _this_obj); // uint64_t OneHopBlindedPathCandidate_clone_ptr(LDKOneHopBlindedPathCandidate *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_clone_ptr")] public static extern long OneHopBlindedPathCandidate_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_clone_ptr")] public static extern long OneHopBlindedPathCandidateClonePtr(long _arg); // struct LDKOneHopBlindedPathCandidate OneHopBlindedPathCandidate_clone(const struct LDKOneHopBlindedPathCandidate *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_clone")] public static extern long OneHopBlindedPathCandidate_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OneHopBlindedPathCandidate_clone")] public static extern long OneHopBlindedPathCandidateClone(long _orig); // void CandidateRouteHop_free(struct LDKCandidateRouteHop this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_free")] public static extern void CandidateRouteHop_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_free")] public static extern void CandidateRouteHopFree(long _this_ptr); // uint64_t CandidateRouteHop_clone_ptr(LDKCandidateRouteHop *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_clone_ptr")] public static extern long CandidateRouteHop_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_clone_ptr")] public static extern long CandidateRouteHopClonePtr(long _arg); // struct LDKCandidateRouteHop CandidateRouteHop_clone(const struct LDKCandidateRouteHop *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_clone")] public static extern long CandidateRouteHop_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_clone")] public static extern long CandidateRouteHopClone(long _orig); // struct LDKCandidateRouteHop CandidateRouteHop_first_hop(struct LDKFirstHopCandidate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_first_hop")] public static extern long CandidateRouteHop_first_hop(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_first_hop")] public static extern long CandidateRouteHopFirstHop(long _a); // struct LDKCandidateRouteHop CandidateRouteHop_public_hop(struct LDKPublicHopCandidate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_public_hop")] public static extern long CandidateRouteHop_public_hop(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_public_hop")] public static extern long CandidateRouteHopPublicHop(long _a); // struct LDKCandidateRouteHop CandidateRouteHop_private_hop(struct LDKPrivateHopCandidate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_private_hop")] public static extern long CandidateRouteHop_private_hop(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_private_hop")] public static extern long CandidateRouteHopPrivateHop(long _a); // struct LDKCandidateRouteHop CandidateRouteHop_blinded(struct LDKBlindedPathCandidate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_blinded")] public static extern long CandidateRouteHop_blinded(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_blinded")] public static extern long CandidateRouteHopBlinded(long _a); // struct LDKCandidateRouteHop CandidateRouteHop_one_hop_blinded(struct LDKOneHopBlindedPathCandidate a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_one_hop_blinded")] public static extern long CandidateRouteHop_one_hop_blinded(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_one_hop_blinded")] public static extern long CandidateRouteHopOneHopBlinded(long _a); // MUST_USE_RES struct LDKCOption_u64Z CandidateRouteHop_globally_unique_short_channel_id(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_globally_unique_short_channel_id")] public static extern long CandidateRouteHop_globally_unique_short_channel_id(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_globally_unique_short_channel_id")] public static extern long CandidateRouteHopGloballyUniqueShortChannelId(long _this_arg); // MUST_USE_RES uint32_t CandidateRouteHop_cltv_expiry_delta(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_cltv_expiry_delta")] public static extern int CandidateRouteHop_cltv_expiry_delta(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_cltv_expiry_delta")] public static extern int CandidateRouteHopCltvExpiryDelta(long _this_arg); // MUST_USE_RES uint64_t CandidateRouteHop_htlc_minimum_msat(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_htlc_minimum_msat")] public static extern long CandidateRouteHop_htlc_minimum_msat(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_htlc_minimum_msat")] public static extern long CandidateRouteHopHtlcMinimumMsat(long _this_arg); // MUST_USE_RES struct LDKRoutingFees CandidateRouteHop_fees(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_fees")] public static extern long CandidateRouteHop_fees(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_fees")] public static extern long CandidateRouteHopFees(long _this_arg); // MUST_USE_RES struct LDKNodeId CandidateRouteHop_source(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_source")] public static extern long CandidateRouteHop_source(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_source")] public static extern long CandidateRouteHopSource(long _this_arg); // MUST_USE_RES struct LDKNodeId CandidateRouteHop_target(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_target")] public static extern long CandidateRouteHop_target(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CandidateRouteHop_target")] public static extern long CandidateRouteHopTarget(long _this_arg); // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScoreLookUp *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_find_route")] public static extern long find_route(long _our_node_pubkey, long _route_params, long _network_graph, long _first_hops, long _logger, long _scorer, long _score_params, long _random_seed_bytes); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_find_route")] public static extern long FindRoute(long _our_node_pubkey, long _route_params, long _network_graph, long _first_hops, long _logger, long _scorer, long _score_params, long _random_seed_bytes); // struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_route_from_hops")] public static extern long build_route_from_hops(long _our_node_pubkey, long _hops, long _route_params, long _network_graph, long _logger, long _random_seed_bytes); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_build_route_from_hops")] public static extern long BuildRouteFromHops(long _our_node_pubkey, long _hops, long _route_params, long _network_graph, long _logger, long _random_seed_bytes); // void ScoreLookUp_free(struct LDKScoreLookUp this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreLookUp_free")] public static extern void ScoreLookUp_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreLookUp_free")] public static extern void ScoreLookUpFree(long _this_ptr); // void ScoreUpdate_free(struct LDKScoreUpdate this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_free")] public static extern void ScoreUpdate_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ScoreUpdate_free")] public static extern void ScoreUpdateFree(long _this_ptr); // void Score_free(struct LDKScore this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Score_free")] public static extern void Score_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Score_free")] public static extern void ScoreFree(long _this_ptr); // void LockableScore_free(struct LDKLockableScore this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_free")] public static extern void LockableScore_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_LockableScore_free")] public static extern void LockableScoreFree(long _this_ptr); // void WriteableScore_free(struct LDKWriteableScore this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableScore_free")] public static extern void WriteableScore_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableScore_free")] public static extern void WriteableScoreFree(long _this_ptr); // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_free")] public static extern void MultiThreadedLockableScore_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_free")] public static extern void MultiThreadedLockableScoreFree(long _this_obj); // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_as_LockableScore")] public static extern long MultiThreadedLockableScore_as_LockableScore(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_as_LockableScore")] public static extern long MultiThreadedLockableScoreAsLockableScore(long _this_arg); // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_write")] public static extern long MultiThreadedLockableScore_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_write")] public static extern long MultiThreadedLockableScoreWrite(long _obj); // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_as_WriteableScore")] public static extern long MultiThreadedLockableScore_as_WriteableScore(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_as_WriteableScore")] public static extern long MultiThreadedLockableScoreAsWriteableScore(long _this_arg); // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_new")] public static extern long MultiThreadedLockableScore_new(long _score); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedLockableScore_new")] public static extern long MultiThreadedLockableScoreNew(long _score); // void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockRead_free")] public static extern void MultiThreadedScoreLockRead_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockRead_free")] public static extern void MultiThreadedScoreLockReadFree(long _this_obj); // void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_free")] public static extern void MultiThreadedScoreLockWrite_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_free")] public static extern void MultiThreadedScoreLockWriteFree(long _this_obj); // struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockRead_as_ScoreLookUp")] public static extern long MultiThreadedScoreLockRead_as_ScoreLookUp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockRead_as_ScoreLookUp")] public static extern long MultiThreadedScoreLockReadAsScoreLookUp(long _this_arg); // struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_write")] public static extern long MultiThreadedScoreLockWrite_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_write")] public static extern long MultiThreadedScoreLockWriteWrite(long _obj); // struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_as_ScoreUpdate")] public static extern long MultiThreadedScoreLockWrite_as_ScoreUpdate(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MultiThreadedScoreLockWrite_as_ScoreUpdate")] public static extern long MultiThreadedScoreLockWriteAsScoreUpdate(long _this_arg); // void ChannelUsage_free(struct LDKChannelUsage this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_free")] public static extern void ChannelUsage_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_free")] public static extern void ChannelUsageFree(long _this_obj); // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_amount_msat")] public static extern long ChannelUsage_get_amount_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_amount_msat")] public static extern long ChannelUsageGetAmountMsat(long _this_ptr); // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_amount_msat")] public static extern void ChannelUsage_set_amount_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_amount_msat")] public static extern void ChannelUsageSetAmountMsat(long _this_ptr, long _val); // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_inflight_htlc_msat")] public static extern long ChannelUsage_get_inflight_htlc_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_inflight_htlc_msat")] public static extern long ChannelUsageGetInflightHtlcMsat(long _this_ptr); // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_inflight_htlc_msat")] public static extern void ChannelUsage_set_inflight_htlc_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_inflight_htlc_msat")] public static extern void ChannelUsageSetInflightHtlcMsat(long _this_ptr, long _val); // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_effective_capacity")] public static extern long ChannelUsage_get_effective_capacity(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_get_effective_capacity")] public static extern long ChannelUsageGetEffectiveCapacity(long _this_ptr); // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_effective_capacity")] public static extern void ChannelUsage_set_effective_capacity(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_set_effective_capacity")] public static extern void ChannelUsageSetEffectiveCapacity(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_new")] public static extern long ChannelUsage_new(long _amount_msat_arg, long _inflight_htlc_msat_arg, long _effective_capacity_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_new")] public static extern long ChannelUsageNew(long _amount_msat_arg, long _inflight_htlc_msat_arg, long _effective_capacity_arg); // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_clone_ptr")] public static extern long ChannelUsage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_clone_ptr")] public static extern long ChannelUsageClonePtr(long _arg); // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_clone")] public static extern long ChannelUsage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelUsage_clone")] public static extern long ChannelUsageClone(long _orig); // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_free")] public static extern void FixedPenaltyScorer_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_free")] public static extern void FixedPenaltyScorerFree(long _this_obj); // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_clone_ptr")] public static extern long FixedPenaltyScorer_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_clone_ptr")] public static extern long FixedPenaltyScorerClonePtr(long _arg); // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_clone")] public static extern long FixedPenaltyScorer_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_clone")] public static extern long FixedPenaltyScorerClone(long _orig); // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_with_penalty")] public static extern long FixedPenaltyScorer_with_penalty(long _penalty_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_with_penalty")] public static extern long FixedPenaltyScorerWithPenalty(long _penalty_msat); // struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_as_ScoreLookUp")] public static extern long FixedPenaltyScorer_as_ScoreLookUp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_as_ScoreLookUp")] public static extern long FixedPenaltyScorerAsScoreLookUp(long _this_arg); // struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_as_ScoreUpdate")] public static extern long FixedPenaltyScorer_as_ScoreUpdate(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_as_ScoreUpdate")] public static extern long FixedPenaltyScorerAsScoreUpdate(long _this_arg); // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_write")] public static extern long FixedPenaltyScorer_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_write")] public static extern long FixedPenaltyScorerWrite(long _obj); // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_read")] public static extern long FixedPenaltyScorer_read(long _ser, long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FixedPenaltyScorer_read")] public static extern long FixedPenaltyScorerRead(long _ser, long _arg); // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_free")] public static extern void ProbabilisticScorer_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_free")] public static extern void ProbabilisticScorerFree(long _this_obj); // void ProbabilisticScoringFeeParameters_free(struct LDKProbabilisticScoringFeeParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_free")] public static extern void ProbabilisticScoringFeeParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_free")] public static extern void ProbabilisticScoringFeeParametersFree(long _this_obj); // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_base_penalty_msat")] public static extern long ProbabilisticScoringFeeParameters_get_base_penalty_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_base_penalty_msat")] public static extern long ProbabilisticScoringFeeParametersGetBasePenaltyMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_base_penalty_msat")] public static extern void ProbabilisticScoringFeeParameters_set_base_penalty_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_base_penalty_msat")] public static extern void ProbabilisticScoringFeeParametersSetBasePenaltyMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParametersGetBasePenaltyAmountMultiplierMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParametersSetBasePenaltyAmountMultiplierMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat")] public static extern long ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat")] public static extern long ProbabilisticScoringFeeParametersGetLiquidityPenaltyMultiplierMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat")] public static extern void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat")] public static extern void ProbabilisticScoringFeeParametersSetLiquidityPenaltyMultiplierMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParametersGetLiquidityPenaltyAmountMultiplierMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParametersSetLiquidityPenaltyAmountMultiplierMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat")] public static extern long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat")] public static extern long ProbabilisticScoringFeeParametersGetHistoricalLiquidityPenaltyMultiplierMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat")] public static extern void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat")] public static extern void ProbabilisticScoringFeeParametersSetHistoricalLiquidityPenaltyMultiplierMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat")] public static extern long ProbabilisticScoringFeeParametersGetHistoricalLiquidityPenaltyAmountMultiplierMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat")] public static extern void ProbabilisticScoringFeeParametersSetHistoricalLiquidityPenaltyAmountMultiplierMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat")] public static extern long ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat")] public static extern long ProbabilisticScoringFeeParametersGetAntiProbingPenaltyMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat")] public static extern void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat")] public static extern void ProbabilisticScoringFeeParametersSetAntiProbingPenaltyMsat(long _this_ptr, long _val); // uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat")] public static extern long ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat")] public static extern long ProbabilisticScoringFeeParametersGetConsideredImpossiblePenaltyMsat(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat")] public static extern void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat")] public static extern void ProbabilisticScoringFeeParametersSetConsideredImpossiblePenaltyMsat(long _this_ptr, long _val); // bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_linear_success_probability")] public static extern bool ProbabilisticScoringFeeParameters_get_linear_success_probability(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_get_linear_success_probability")] public static extern bool ProbabilisticScoringFeeParametersGetLinearSuccessProbability(long _this_ptr); // void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_linear_success_probability")] public static extern void ProbabilisticScoringFeeParameters_set_linear_success_probability(long _this_ptr, bool _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_linear_success_probability")] public static extern void ProbabilisticScoringFeeParametersSetLinearSuccessProbability(long _this_ptr, bool _val); // uint64_t ProbabilisticScoringFeeParameters_clone_ptr(LDKProbabilisticScoringFeeParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clone_ptr")] public static extern long ProbabilisticScoringFeeParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clone_ptr")] public static extern long ProbabilisticScoringFeeParametersClonePtr(long _arg); // struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_clone(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clone")] public static extern long ProbabilisticScoringFeeParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clone")] public static extern long ProbabilisticScoringFeeParametersClone(long _orig); // MUST_USE_RES struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_default")] public static extern long ProbabilisticScoringFeeParameters_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_default")] public static extern long ProbabilisticScoringFeeParametersDefault(); // void ProbabilisticScoringFeeParameters_add_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_add_banned")] public static extern void ProbabilisticScoringFeeParameters_add_banned(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_add_banned")] public static extern void ProbabilisticScoringFeeParametersAddBanned(long _this_arg, long _node_id); // void ProbabilisticScoringFeeParameters_add_banned_from_list(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_add_banned_from_list")] public static extern void ProbabilisticScoringFeeParameters_add_banned_from_list(long _this_arg, long _node_ids); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_add_banned_from_list")] public static extern void ProbabilisticScoringFeeParametersAddBannedFromList(long _this_arg, long _node_ids); // void ProbabilisticScoringFeeParameters_remove_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_remove_banned")] public static extern void ProbabilisticScoringFeeParameters_remove_banned(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_remove_banned")] public static extern void ProbabilisticScoringFeeParametersRemoveBanned(long _this_arg, long _node_id); // void ProbabilisticScoringFeeParameters_set_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_manual_penalty")] public static extern void ProbabilisticScoringFeeParameters_set_manual_penalty(long _this_arg, long _node_id, long _penalty); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_set_manual_penalty")] public static extern void ProbabilisticScoringFeeParametersSetManualPenalty(long _this_arg, long _node_id, long _penalty); // void ProbabilisticScoringFeeParameters_remove_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_remove_manual_penalty")] public static extern void ProbabilisticScoringFeeParameters_remove_manual_penalty(long _this_arg, long _node_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_remove_manual_penalty")] public static extern void ProbabilisticScoringFeeParametersRemoveManualPenalty(long _this_arg, long _node_id); // void ProbabilisticScoringFeeParameters_clear_manual_penalties(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clear_manual_penalties")] public static extern void ProbabilisticScoringFeeParameters_clear_manual_penalties(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringFeeParameters_clear_manual_penalties")] public static extern void ProbabilisticScoringFeeParametersClearManualPenalties(long _this_arg); // void ProbabilisticScoringDecayParameters_free(struct LDKProbabilisticScoringDecayParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_free")] public static extern void ProbabilisticScoringDecayParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_free")] public static extern void ProbabilisticScoringDecayParametersFree(long _this_obj); // uint64_t ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life")] public static extern long ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life")] public static extern long ProbabilisticScoringDecayParametersGetHistoricalNoUpdatesHalfLife(long _this_ptr); // void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life")] public static extern void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life")] public static extern void ProbabilisticScoringDecayParametersSetHistoricalNoUpdatesHalfLife(long _this_ptr, long _val); // uint64_t ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life")] public static extern long ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life")] public static extern long ProbabilisticScoringDecayParametersGetLiquidityOffsetHalfLife(long _this_ptr); // void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life")] public static extern void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life")] public static extern void ProbabilisticScoringDecayParametersSetLiquidityOffsetHalfLife(long _this_ptr, long _val); // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_new(uint64_t historical_no_updates_half_life_arg, uint64_t liquidity_offset_half_life_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_new")] public static extern long ProbabilisticScoringDecayParameters_new(long _historical_no_updates_half_life_arg, long _liquidity_offset_half_life_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_new")] public static extern long ProbabilisticScoringDecayParametersNew(long _historical_no_updates_half_life_arg, long _liquidity_offset_half_life_arg); // uint64_t ProbabilisticScoringDecayParameters_clone_ptr(LDKProbabilisticScoringDecayParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_clone_ptr")] public static extern long ProbabilisticScoringDecayParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_clone_ptr")] public static extern long ProbabilisticScoringDecayParametersClonePtr(long _arg); // struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_clone(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_clone")] public static extern long ProbabilisticScoringDecayParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_clone")] public static extern long ProbabilisticScoringDecayParametersClone(long _orig); // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_default(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_default")] public static extern long ProbabilisticScoringDecayParameters_default(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScoringDecayParameters_default")] public static extern long ProbabilisticScoringDecayParametersDefault(); // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringDecayParameters decay_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_new")] public static extern long ProbabilisticScorer_new(long _decay_params, long _network_graph, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_new")] public static extern long ProbabilisticScorerNew(long _decay_params, long _network_graph, long _logger); // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_debug_log_liquidity_stats")] public static extern void ProbabilisticScorer_debug_log_liquidity_stats(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_debug_log_liquidity_stats")] public static extern void ProbabilisticScorerDebugLogLiquidityStats(long _this_arg); // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_estimated_channel_liquidity_range")] public static extern long ProbabilisticScorer_estimated_channel_liquidity_range(long _this_arg, long _scid, long _target); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_estimated_channel_liquidity_range")] public static extern long ProbabilisticScorerEstimatedChannelLiquidityRange(long _this_arg, long _scid, long _target); // MUST_USE_RES struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities")] public static extern long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long _this_arg, long _scid, long _target); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities")] public static extern long ProbabilisticScorerHistoricalEstimatedChannelLiquidityProbabilities(long _this_arg, long _scid, long _target); // MUST_USE_RES struct LDKCOption_f64Z ProbabilisticScorer_historical_estimated_payment_success_probability(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target, uint64_t amount_msat, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR params); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_historical_estimated_payment_success_probability")] public static extern long ProbabilisticScorer_historical_estimated_payment_success_probability(long _this_arg, long _scid, long _target, long _amount_msat, long _params); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_historical_estimated_payment_success_probability")] public static extern long ProbabilisticScorerHistoricalEstimatedPaymentSuccessProbability(long _this_arg, long _scid, long _target, long _amount_msat, long _params); // struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_ScoreLookUp")] public static extern long ProbabilisticScorer_as_ScoreLookUp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_ScoreLookUp")] public static extern long ProbabilisticScorerAsScoreLookUp(long _this_arg); // struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_ScoreUpdate")] public static extern long ProbabilisticScorer_as_ScoreUpdate(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_ScoreUpdate")] public static extern long ProbabilisticScorerAsScoreUpdate(long _this_arg); // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_Score")] public static extern long ProbabilisticScorer_as_Score(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_as_Score")] public static extern long ProbabilisticScorerAsScore(long _this_arg); // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_write")] public static extern long ProbabilisticScorer_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_write")] public static extern long ProbabilisticScorerWrite(long _obj); // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringDecayParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_read")] public static extern long ProbabilisticScorer_read(long _ser, long _arg_a, long _arg_b, long _arg_c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ProbabilisticScorer_read")] public static extern long ProbabilisticScorerRead(long _ser, long _arg_a, long _arg_b, long _arg_c); // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_free")] public static extern void DelayedPaymentOutputDescriptor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_free")] public static extern void DelayedPaymentOutputDescriptorFree(long _this_obj); // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_outpoint")] public static extern long DelayedPaymentOutputDescriptor_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_outpoint")] public static extern long DelayedPaymentOutputDescriptorGetOutpoint(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_outpoint")] public static extern void DelayedPaymentOutputDescriptor_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_outpoint")] public static extern void DelayedPaymentOutputDescriptorSetOutpoint(long _this_ptr, long _val); // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_per_commitment_point")] public static extern long DelayedPaymentOutputDescriptor_get_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_per_commitment_point")] public static extern long DelayedPaymentOutputDescriptorGetPerCommitmentPoint(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_per_commitment_point")] public static extern void DelayedPaymentOutputDescriptor_set_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_per_commitment_point")] public static extern void DelayedPaymentOutputDescriptorSetPerCommitmentPoint(long _this_ptr, long _val); // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_to_self_delay")] public static extern short DelayedPaymentOutputDescriptor_get_to_self_delay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_to_self_delay")] public static extern short DelayedPaymentOutputDescriptorGetToSelfDelay(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_to_self_delay")] public static extern void DelayedPaymentOutputDescriptor_set_to_self_delay(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_to_self_delay")] public static extern void DelayedPaymentOutputDescriptorSetToSelfDelay(long _this_ptr, short _val); // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_output")] public static extern long DelayedPaymentOutputDescriptor_get_output(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_output")] public static extern long DelayedPaymentOutputDescriptorGetOutput(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_output")] public static extern void DelayedPaymentOutputDescriptor_set_output(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_output")] public static extern void DelayedPaymentOutputDescriptorSetOutput(long _this_ptr, long _val); // struct LDKRevocationKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_revocation_pubkey")] public static extern long DelayedPaymentOutputDescriptor_get_revocation_pubkey(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_revocation_pubkey")] public static extern long DelayedPaymentOutputDescriptorGetRevocationPubkey(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKRevocationKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_revocation_pubkey")] public static extern void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_revocation_pubkey")] public static extern void DelayedPaymentOutputDescriptorSetRevocationPubkey(long _this_ptr, long _val); // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_channel_keys_id")] public static extern long DelayedPaymentOutputDescriptor_get_channel_keys_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_channel_keys_id")] public static extern long DelayedPaymentOutputDescriptorGetChannelKeysId(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_channel_keys_id")] public static extern void DelayedPaymentOutputDescriptor_set_channel_keys_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_channel_keys_id")] public static extern void DelayedPaymentOutputDescriptorSetChannelKeysId(long _this_ptr, long _val); // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_channel_value_satoshis")] public static extern long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_get_channel_value_satoshis")] public static extern long DelayedPaymentOutputDescriptorGetChannelValueSatoshis(long _this_ptr); // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_channel_value_satoshis")] public static extern void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_set_channel_value_satoshis")] public static extern void DelayedPaymentOutputDescriptorSetChannelValueSatoshis(long _this_ptr, long _val); // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKRevocationKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_new")] public static extern long DelayedPaymentOutputDescriptor_new(long _outpoint_arg, long _per_commitment_point_arg, short _to_self_delay_arg, long _output_arg, long _revocation_pubkey_arg, long _channel_keys_id_arg, long _channel_value_satoshis_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_new")] public static extern long DelayedPaymentOutputDescriptorNew(long _outpoint_arg, long _per_commitment_point_arg, short _to_self_delay_arg, long _output_arg, long _revocation_pubkey_arg, long _channel_keys_id_arg, long _channel_value_satoshis_arg); // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_clone_ptr")] public static extern long DelayedPaymentOutputDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_clone_ptr")] public static extern long DelayedPaymentOutputDescriptorClonePtr(long _arg); // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_clone")] public static extern long DelayedPaymentOutputDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_clone")] public static extern long DelayedPaymentOutputDescriptorClone(long _orig); // uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_hash")] public static extern long DelayedPaymentOutputDescriptor_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_hash")] public static extern long DelayedPaymentOutputDescriptorHash(long _o); // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_eq")] public static extern bool DelayedPaymentOutputDescriptor_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_eq")] public static extern bool DelayedPaymentOutputDescriptorEq(long _a, long _b); // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_write")] public static extern long DelayedPaymentOutputDescriptor_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_write")] public static extern long DelayedPaymentOutputDescriptorWrite(long _obj); // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_read")] public static extern long DelayedPaymentOutputDescriptor_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DelayedPaymentOutputDescriptor_read")] public static extern long DelayedPaymentOutputDescriptorRead(long _ser); // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_free")] public static extern void StaticPaymentOutputDescriptor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_free")] public static extern void StaticPaymentOutputDescriptorFree(long _this_obj); // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_outpoint")] public static extern long StaticPaymentOutputDescriptor_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_outpoint")] public static extern long StaticPaymentOutputDescriptorGetOutpoint(long _this_ptr); // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_outpoint")] public static extern void StaticPaymentOutputDescriptor_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_outpoint")] public static extern void StaticPaymentOutputDescriptorSetOutpoint(long _this_ptr, long _val); // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_output")] public static extern long StaticPaymentOutputDescriptor_get_output(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_output")] public static extern long StaticPaymentOutputDescriptorGetOutput(long _this_ptr); // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_output")] public static extern void StaticPaymentOutputDescriptor_set_output(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_output")] public static extern void StaticPaymentOutputDescriptorSetOutput(long _this_ptr, long _val); // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_keys_id")] public static extern long StaticPaymentOutputDescriptor_get_channel_keys_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_keys_id")] public static extern long StaticPaymentOutputDescriptorGetChannelKeysId(long _this_ptr); // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_keys_id")] public static extern void StaticPaymentOutputDescriptor_set_channel_keys_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_keys_id")] public static extern void StaticPaymentOutputDescriptorSetChannelKeysId(long _this_ptr, long _val); // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_value_satoshis")] public static extern long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_value_satoshis")] public static extern long StaticPaymentOutputDescriptorGetChannelValueSatoshis(long _this_ptr); // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_value_satoshis")] public static extern void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_value_satoshis")] public static extern void StaticPaymentOutputDescriptorSetChannelValueSatoshis(long _this_ptr, long _val); // struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_transaction_parameters")] public static extern long StaticPaymentOutputDescriptor_get_channel_transaction_parameters(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_get_channel_transaction_parameters")] public static extern long StaticPaymentOutputDescriptorGetChannelTransactionParameters(long _this_ptr); // void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_transaction_parameters")] public static extern void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_set_channel_transaction_parameters")] public static extern void StaticPaymentOutputDescriptorSetChannelTransactionParameters(long _this_ptr, long _val); // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_new")] public static extern long StaticPaymentOutputDescriptor_new(long _outpoint_arg, long _output_arg, long _channel_keys_id_arg, long _channel_value_satoshis_arg, long _channel_transaction_parameters_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_new")] public static extern long StaticPaymentOutputDescriptorNew(long _outpoint_arg, long _output_arg, long _channel_keys_id_arg, long _channel_value_satoshis_arg, long _channel_transaction_parameters_arg); // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_clone_ptr")] public static extern long StaticPaymentOutputDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_clone_ptr")] public static extern long StaticPaymentOutputDescriptorClonePtr(long _arg); // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_clone")] public static extern long StaticPaymentOutputDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_clone")] public static extern long StaticPaymentOutputDescriptorClone(long _orig); // uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_hash")] public static extern long StaticPaymentOutputDescriptor_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_hash")] public static extern long StaticPaymentOutputDescriptorHash(long _o); // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_eq")] public static extern bool StaticPaymentOutputDescriptor_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_eq")] public static extern bool StaticPaymentOutputDescriptorEq(long _a, long _b); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_witness_script")] public static extern long StaticPaymentOutputDescriptor_witness_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_witness_script")] public static extern long StaticPaymentOutputDescriptorWitnessScript(long _this_arg); // MUST_USE_RES uint64_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_max_witness_length")] public static extern long StaticPaymentOutputDescriptor_max_witness_length(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_max_witness_length")] public static extern long StaticPaymentOutputDescriptorMaxWitnessLength(long _this_arg); // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_write")] public static extern long StaticPaymentOutputDescriptor_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_write")] public static extern long StaticPaymentOutputDescriptorWrite(long _obj); // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_read")] public static extern long StaticPaymentOutputDescriptor_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_StaticPaymentOutputDescriptor_read")] public static extern long StaticPaymentOutputDescriptorRead(long _ser); // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_free")] public static extern void SpendableOutputDescriptor_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_free")] public static extern void SpendableOutputDescriptorFree(long _this_ptr); // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_clone_ptr")] public static extern long SpendableOutputDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_clone_ptr")] public static extern long SpendableOutputDescriptorClonePtr(long _arg); // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_clone")] public static extern long SpendableOutputDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_clone")] public static extern long SpendableOutputDescriptorClone(long _orig); // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output, struct LDKThirtyTwoBytes channel_keys_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_static_output")] public static extern long SpendableOutputDescriptor_static_output(long _outpoint, long _output, long _channel_keys_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_static_output")] public static extern long SpendableOutputDescriptorStaticOutput(long _outpoint, long _output, long _channel_keys_id); // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_delayed_payment_output")] public static extern long SpendableOutputDescriptor_delayed_payment_output(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_delayed_payment_output")] public static extern long SpendableOutputDescriptorDelayedPaymentOutput(long _a); // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_static_payment_output")] public static extern long SpendableOutputDescriptor_static_payment_output(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_static_payment_output")] public static extern long SpendableOutputDescriptorStaticPaymentOutput(long _a); // uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_hash")] public static extern long SpendableOutputDescriptor_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_hash")] public static extern long SpendableOutputDescriptorHash(long _o); // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_eq")] public static extern bool SpendableOutputDescriptor_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_eq")] public static extern bool SpendableOutputDescriptorEq(long _a, long _b); // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_write")] public static extern long SpendableOutputDescriptor_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_write")] public static extern long SpendableOutputDescriptorWrite(long _obj); // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_read")] public static extern long SpendableOutputDescriptor_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_read")] public static extern long SpendableOutputDescriptorRead(long _ser); // MUST_USE_RES struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_create_spendable_outputs_psbt")] public static extern long SpendableOutputDescriptor_create_spendable_outputs_psbt(long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SpendableOutputDescriptor_create_spendable_outputs_psbt")] public static extern long SpendableOutputDescriptorCreateSpendableOutputsPsbt(long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); // void ChannelDerivationParameters_free(struct LDKChannelDerivationParameters this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_free")] public static extern void ChannelDerivationParameters_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_free")] public static extern void ChannelDerivationParametersFree(long _this_obj); // uint64_t ChannelDerivationParameters_get_value_satoshis(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_value_satoshis")] public static extern long ChannelDerivationParameters_get_value_satoshis(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_value_satoshis")] public static extern long ChannelDerivationParametersGetValueSatoshis(long _this_ptr); // void ChannelDerivationParameters_set_value_satoshis(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_value_satoshis")] public static extern void ChannelDerivationParameters_set_value_satoshis(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_value_satoshis")] public static extern void ChannelDerivationParametersSetValueSatoshis(long _this_ptr, long _val); // const uint8_t (*ChannelDerivationParameters_get_keys_id(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_keys_id")] public static extern long ChannelDerivationParameters_get_keys_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_keys_id")] public static extern long ChannelDerivationParametersGetKeysId(long _this_ptr); // void ChannelDerivationParameters_set_keys_id(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_keys_id")] public static extern void ChannelDerivationParameters_set_keys_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_keys_id")] public static extern void ChannelDerivationParametersSetKeysId(long _this_ptr, long _val); // struct LDKChannelTransactionParameters ChannelDerivationParameters_get_transaction_parameters(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_transaction_parameters")] public static extern long ChannelDerivationParameters_get_transaction_parameters(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_get_transaction_parameters")] public static extern long ChannelDerivationParametersGetTransactionParameters(long _this_ptr); // void ChannelDerivationParameters_set_transaction_parameters(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_transaction_parameters")] public static extern void ChannelDerivationParameters_set_transaction_parameters(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_set_transaction_parameters")] public static extern void ChannelDerivationParametersSetTransactionParameters(long _this_ptr, long _val); // MUST_USE_RES struct LDKChannelDerivationParameters ChannelDerivationParameters_new(uint64_t value_satoshis_arg, struct LDKThirtyTwoBytes keys_id_arg, struct LDKChannelTransactionParameters transaction_parameters_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_new")] public static extern long ChannelDerivationParameters_new(long _value_satoshis_arg, long _keys_id_arg, long _transaction_parameters_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_new")] public static extern long ChannelDerivationParametersNew(long _value_satoshis_arg, long _keys_id_arg, long _transaction_parameters_arg); // uint64_t ChannelDerivationParameters_clone_ptr(LDKChannelDerivationParameters *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_clone_ptr")] public static extern long ChannelDerivationParameters_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_clone_ptr")] public static extern long ChannelDerivationParametersClonePtr(long _arg); // struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const struct LDKChannelDerivationParameters *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_clone")] public static extern long ChannelDerivationParameters_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_clone")] public static extern long ChannelDerivationParametersClone(long _orig); // bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_eq")] public static extern bool ChannelDerivationParameters_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_eq")] public static extern bool ChannelDerivationParametersEq(long _a, long _b); // struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_write")] public static extern long ChannelDerivationParameters_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_write")] public static extern long ChannelDerivationParametersWrite(long _obj); // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_read")] public static extern long ChannelDerivationParameters_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelDerivationParameters_read")] public static extern long ChannelDerivationParametersRead(long _ser); // void HTLCDescriptor_free(struct LDKHTLCDescriptor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_free")] public static extern void HTLCDescriptor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_free")] public static extern void HTLCDescriptorFree(long _this_obj); // struct LDKChannelDerivationParameters HTLCDescriptor_get_channel_derivation_parameters(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_channel_derivation_parameters")] public static extern long HTLCDescriptor_get_channel_derivation_parameters(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_channel_derivation_parameters")] public static extern long HTLCDescriptorGetChannelDerivationParameters(long _this_ptr); // void HTLCDescriptor_set_channel_derivation_parameters(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_channel_derivation_parameters")] public static extern void HTLCDescriptor_set_channel_derivation_parameters(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_channel_derivation_parameters")] public static extern void HTLCDescriptorSetChannelDerivationParameters(long _this_ptr, long _val); // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_per_commitment_number")] public static extern long HTLCDescriptor_get_per_commitment_number(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_per_commitment_number")] public static extern long HTLCDescriptorGetPerCommitmentNumber(long _this_ptr); // void HTLCDescriptor_set_per_commitment_number(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_per_commitment_number")] public static extern void HTLCDescriptor_set_per_commitment_number(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_per_commitment_number")] public static extern void HTLCDescriptorSetPerCommitmentNumber(long _this_ptr, long _val); // struct LDKPublicKey HTLCDescriptor_get_per_commitment_point(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_per_commitment_point")] public static extern long HTLCDescriptor_get_per_commitment_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_per_commitment_point")] public static extern long HTLCDescriptorGetPerCommitmentPoint(long _this_ptr); // void HTLCDescriptor_set_per_commitment_point(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_per_commitment_point")] public static extern void HTLCDescriptor_set_per_commitment_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_per_commitment_point")] public static extern void HTLCDescriptorSetPerCommitmentPoint(long _this_ptr, long _val); // uint32_t HTLCDescriptor_get_feerate_per_kw(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_feerate_per_kw")] public static extern int HTLCDescriptor_get_feerate_per_kw(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_feerate_per_kw")] public static extern int HTLCDescriptorGetFeeratePerKw(long _this_ptr); // void HTLCDescriptor_set_feerate_per_kw(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_feerate_per_kw")] public static extern void HTLCDescriptor_set_feerate_per_kw(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_feerate_per_kw")] public static extern void HTLCDescriptorSetFeeratePerKw(long _this_ptr, int _val); // struct LDKHTLCOutputInCommitment HTLCDescriptor_get_htlc(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_htlc")] public static extern long HTLCDescriptor_get_htlc(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_htlc")] public static extern long HTLCDescriptorGetHtlc(long _this_ptr); // void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKHTLCOutputInCommitment val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_htlc")] public static extern void HTLCDescriptor_set_htlc(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_htlc")] public static extern void HTLCDescriptorSetHtlc(long _this_ptr, long _val); // struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_preimage")] public static extern long HTLCDescriptor_get_preimage(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_preimage")] public static extern long HTLCDescriptorGetPreimage(long _this_ptr); // void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_preimage")] public static extern void HTLCDescriptor_set_preimage(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_preimage")] public static extern void HTLCDescriptorSetPreimage(long _this_ptr, long _val); // struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_counterparty_sig")] public static extern long HTLCDescriptor_get_counterparty_sig(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_get_counterparty_sig")] public static extern long HTLCDescriptorGetCounterpartySig(long _this_ptr); // void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_counterparty_sig")] public static extern void HTLCDescriptor_set_counterparty_sig(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_set_counterparty_sig")] public static extern void HTLCDescriptorSetCounterpartySig(long _this_ptr, long _val); // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_clone_ptr")] public static extern long HTLCDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_clone_ptr")] public static extern long HTLCDescriptorClonePtr(long _arg); // struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_clone")] public static extern long HTLCDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_clone")] public static extern long HTLCDescriptorClone(long _orig); // bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_eq")] public static extern bool HTLCDescriptor_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_eq")] public static extern bool HTLCDescriptorEq(long _a, long _b); // struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_write")] public static extern long HTLCDescriptor_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_write")] public static extern long HTLCDescriptorWrite(long _obj); // struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_read")] public static extern long HTLCDescriptor_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_read")] public static extern long HTLCDescriptorRead(long _ser); // MUST_USE_RES struct LDKOutPoint HTLCDescriptor_outpoint(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_outpoint")] public static extern long HTLCDescriptor_outpoint(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_outpoint")] public static extern long HTLCDescriptorOutpoint(long _this_arg); // MUST_USE_RES struct LDKTxOut HTLCDescriptor_previous_utxo(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_previous_utxo")] public static extern long HTLCDescriptor_previous_utxo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_previous_utxo")] public static extern long HTLCDescriptorPreviousUtxo(long _this_arg); // MUST_USE_RES struct LDKTxIn HTLCDescriptor_unsigned_tx_input(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_unsigned_tx_input")] public static extern long HTLCDescriptor_unsigned_tx_input(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_unsigned_tx_input")] public static extern long HTLCDescriptorUnsignedTxInput(long _this_arg); // MUST_USE_RES struct LDKTxOut HTLCDescriptor_tx_output(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_tx_output")] public static extern long HTLCDescriptor_tx_output(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_tx_output")] public static extern long HTLCDescriptorTxOutput(long _this_arg); // MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_witness_script")] public static extern long HTLCDescriptor_witness_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_witness_script")] public static extern long HTLCDescriptorWitnessScript(long _this_arg); // MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_tx_input_witness")] public static extern long HTLCDescriptor_tx_input_witness(long _this_arg, long _signature, long _witness_script); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_tx_input_witness")] public static extern long HTLCDescriptorTxInputWitness(long _this_arg, long _signature, long _witness_script); // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner HTLCDescriptor_derive_channel_signer(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_derive_channel_signer")] public static extern long HTLCDescriptor_derive_channel_signer(long _this_arg, long _signer_provider); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDescriptor_derive_channel_signer")] public static extern long HTLCDescriptorDeriveChannelSigner(long _this_arg, long _signer_provider); // void ChannelSigner_free(struct LDKChannelSigner this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_free")] public static extern void ChannelSigner_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ChannelSigner_free")] public static extern void ChannelSignerFree(long _this_ptr); // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_clone")] public static extern Recipient Recipient_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_clone")] public static extern Recipient RecipientClone(long _orig); // enum LDKRecipient Recipient_node(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_node")] public static extern Recipient Recipient_node(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_node")] public static extern Recipient RecipientNode(); // enum LDKRecipient Recipient_phantom_node(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_phantom_node")] public static extern Recipient Recipient_phantom_node(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Recipient_phantom_node")] public static extern Recipient RecipientPhantomNode(); // void EntropySource_free(struct LDKEntropySource this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EntropySource_free")] public static extern void EntropySource_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EntropySource_free")] public static extern void EntropySourceFree(long _this_ptr); // void NodeSigner_free(struct LDKNodeSigner this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_free")] public static extern void NodeSigner_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_NodeSigner_free")] public static extern void NodeSignerFree(long _this_ptr); // void SignerProvider_free(struct LDKSignerProvider this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_free")] public static extern void SignerProvider_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignerProvider_free")] public static extern void SignerProviderFree(long _this_ptr); // void InMemorySigner_free(struct LDKInMemorySigner this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_free")] public static extern void InMemorySigner_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_free")] public static extern void InMemorySignerFree(long _this_obj); // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_funding_key")] public static extern long InMemorySigner_get_funding_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_funding_key")] public static extern long InMemorySignerGetFundingKey(long _this_ptr); // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_funding_key")] public static extern void InMemorySigner_set_funding_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_funding_key")] public static extern void InMemorySignerSetFundingKey(long _this_ptr, long _val); // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_revocation_base_key")] public static extern long InMemorySigner_get_revocation_base_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_revocation_base_key")] public static extern long InMemorySignerGetRevocationBaseKey(long _this_ptr); // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_revocation_base_key")] public static extern void InMemorySigner_set_revocation_base_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_revocation_base_key")] public static extern void InMemorySignerSetRevocationBaseKey(long _this_ptr, long _val); // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_payment_key")] public static extern long InMemorySigner_get_payment_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_payment_key")] public static extern long InMemorySignerGetPaymentKey(long _this_ptr); // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_payment_key")] public static extern void InMemorySigner_set_payment_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_payment_key")] public static extern void InMemorySignerSetPaymentKey(long _this_ptr, long _val); // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_delayed_payment_base_key")] public static extern long InMemorySigner_get_delayed_payment_base_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_delayed_payment_base_key")] public static extern long InMemorySignerGetDelayedPaymentBaseKey(long _this_ptr); // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_delayed_payment_base_key")] public static extern void InMemorySigner_set_delayed_payment_base_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_delayed_payment_base_key")] public static extern void InMemorySignerSetDelayedPaymentBaseKey(long _this_ptr, long _val); // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_htlc_base_key")] public static extern long InMemorySigner_get_htlc_base_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_htlc_base_key")] public static extern long InMemorySignerGetHtlcBaseKey(long _this_ptr); // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_htlc_base_key")] public static extern void InMemorySigner_set_htlc_base_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_htlc_base_key")] public static extern void InMemorySignerSetHtlcBaseKey(long _this_ptr, long _val); // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_commitment_seed")] public static extern long InMemorySigner_get_commitment_seed(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_commitment_seed")] public static extern long InMemorySignerGetCommitmentSeed(long _this_ptr); // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_commitment_seed")] public static extern void InMemorySigner_set_commitment_seed(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_set_commitment_seed")] public static extern void InMemorySignerSetCommitmentSeed(long _this_ptr, long _val); // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_clone_ptr")] public static extern long InMemorySigner_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_clone_ptr")] public static extern long InMemorySignerClonePtr(long _arg); // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_clone")] public static extern long InMemorySigner_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_clone")] public static extern long InMemorySignerClone(long _orig); // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id, struct LDKThirtyTwoBytes rand_bytes_unique_start); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_new")] public static extern long InMemorySigner_new(long _funding_key, long _revocation_base_key, long _payment_key, long _delayed_payment_base_key, long _htlc_base_key, long _commitment_seed, long _channel_value_satoshis, long _channel_keys_id, long _rand_bytes_unique_start); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_new")] public static extern long InMemorySignerNew(long _funding_key, long _revocation_base_key, long _payment_key, long _delayed_payment_base_key, long _htlc_base_key, long _commitment_seed, long _channel_value_satoshis, long _channel_keys_id, long _rand_bytes_unique_start); // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_counterparty_pubkeys")] public static extern long InMemorySigner_counterparty_pubkeys(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_counterparty_pubkeys")] public static extern long InMemorySignerCounterpartyPubkeys(long _this_arg); // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_counterparty_selected_contest_delay")] public static extern long InMemorySigner_counterparty_selected_contest_delay(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_counterparty_selected_contest_delay")] public static extern long InMemorySignerCounterpartySelectedContestDelay(long _this_arg); // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_holder_selected_contest_delay")] public static extern long InMemorySigner_holder_selected_contest_delay(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_holder_selected_contest_delay")] public static extern long InMemorySignerHolderSelectedContestDelay(long _this_arg); // MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_is_outbound")] public static extern long InMemorySigner_is_outbound(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_is_outbound")] public static extern long InMemorySignerIsOutbound(long _this_arg); // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_funding_outpoint")] public static extern long InMemorySigner_funding_outpoint(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_funding_outpoint")] public static extern long InMemorySignerFundingOutpoint(long _this_arg); // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_channel_parameters")] public static extern long InMemorySigner_get_channel_parameters(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_get_channel_parameters")] public static extern long InMemorySignerGetChannelParameters(long _this_arg); // MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_channel_type_features")] public static extern long InMemorySigner_channel_type_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_channel_type_features")] public static extern long InMemorySignerChannelTypeFeatures(long _this_arg); // MUST_USE_RES struct LDKCResult_WitnessNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_sign_counterparty_payment_input")] public static extern long InMemorySigner_sign_counterparty_payment_input(long _this_arg, long _spend_tx, long _input_idx, long _descriptor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_sign_counterparty_payment_input")] public static extern long InMemorySignerSignCounterpartyPaymentInput(long _this_arg, long _spend_tx, long _input_idx, long _descriptor); // MUST_USE_RES struct LDKCResult_WitnessNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_sign_dynamic_p2wsh_input")] public static extern long InMemorySigner_sign_dynamic_p2wsh_input(long _this_arg, long _spend_tx, long _input_idx, long _descriptor); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_sign_dynamic_p2wsh_input")] public static extern long InMemorySignerSignDynamicP2WshInput(long _this_arg, long _spend_tx, long _input_idx, long _descriptor); // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_EntropySource")] public static extern long InMemorySigner_as_EntropySource(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_EntropySource")] public static extern long InMemorySignerAsEntropySource(long _this_arg); // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_ChannelSigner")] public static extern long InMemorySigner_as_ChannelSigner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_ChannelSigner")] public static extern long InMemorySignerAsChannelSigner(long _this_arg); // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_EcdsaChannelSigner")] public static extern long InMemorySigner_as_EcdsaChannelSigner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_EcdsaChannelSigner")] public static extern long InMemorySignerAsEcdsaChannelSigner(long _this_arg); // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_WriteableEcdsaChannelSigner")] public static extern long InMemorySigner_as_WriteableEcdsaChannelSigner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_as_WriteableEcdsaChannelSigner")] public static extern long InMemorySignerAsWriteableEcdsaChannelSigner(long _this_arg); // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_write")] public static extern long InMemorySigner_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_write")] public static extern long InMemorySignerWrite(long _obj); // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_read")] public static extern long InMemorySigner_read(long _ser, long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_InMemorySigner_read")] public static extern long InMemorySignerRead(long _ser, long _arg); // void KeysManager_free(struct LDKKeysManager this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_free")] public static extern void KeysManager_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_free")] public static extern void KeysManagerFree(long _this_obj); // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_new")] public static extern long KeysManager_new(long _seed, long _starting_time_secs, int _starting_time_nanos); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_new")] public static extern long KeysManagerNew(long _seed, long _starting_time_secs, int _starting_time_nanos); // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_get_node_secret_key")] public static extern long KeysManager_get_node_secret_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_get_node_secret_key")] public static extern long KeysManagerGetNodeSecretKey(long _this_arg); // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_derive_channel_keys")] public static extern long KeysManager_derive_channel_keys(long _this_arg, long _channel_value_satoshis, long _params); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_derive_channel_keys")] public static extern long KeysManagerDeriveChannelKeys(long _this_arg, long _channel_value_satoshis, long _params); // MUST_USE_RES struct LDKCResult_CVec_u8ZNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_sign_spendable_outputs_psbt")] public static extern long KeysManager_sign_spendable_outputs_psbt(long _this_arg, long _descriptors, long _psbt); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_sign_spendable_outputs_psbt")] public static extern long KeysManagerSignSpendableOutputsPsbt(long _this_arg, long _descriptors, long _psbt); // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_spend_spendable_outputs")] public static extern long KeysManager_spend_spendable_outputs(long _this_arg, long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_spend_spendable_outputs")] public static extern long KeysManagerSpendSpendableOutputs(long _this_arg, long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_EntropySource")] public static extern long KeysManager_as_EntropySource(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_EntropySource")] public static extern long KeysManagerAsEntropySource(long _this_arg); // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_NodeSigner")] public static extern long KeysManager_as_NodeSigner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_NodeSigner")] public static extern long KeysManagerAsNodeSigner(long _this_arg); // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_SignerProvider")] public static extern long KeysManager_as_SignerProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_KeysManager_as_SignerProvider")] public static extern long KeysManagerAsSignerProvider(long _this_arg); // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_free")] public static extern void PhantomKeysManager_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_free")] public static extern void PhantomKeysManagerFree(long _this_obj); // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_EntropySource")] public static extern long PhantomKeysManager_as_EntropySource(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_EntropySource")] public static extern long PhantomKeysManagerAsEntropySource(long _this_arg); // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_NodeSigner")] public static extern long PhantomKeysManager_as_NodeSigner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_NodeSigner")] public static extern long PhantomKeysManagerAsNodeSigner(long _this_arg); // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_SignerProvider")] public static extern long PhantomKeysManager_as_SignerProvider(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_as_SignerProvider")] public static extern long PhantomKeysManagerAsSignerProvider(long _this_arg); // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_new")] public static extern long PhantomKeysManager_new(long _seed, long _starting_time_secs, int _starting_time_nanos, long _cross_node_seed); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_new")] public static extern long PhantomKeysManagerNew(long _seed, long _starting_time_secs, int _starting_time_nanos, long _cross_node_seed); // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_spend_spendable_outputs")] public static extern long PhantomKeysManager_spend_spendable_outputs(long _this_arg, long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_spend_spendable_outputs")] public static extern long PhantomKeysManagerSpendSpendableOutputs(long _this_arg, long _descriptors, long _outputs, long _change_destination_script, int _feerate_sat_per_1000_weight, long _locktime); // MUST_USE_RES struct LDKInMemorySigner PhantomKeysManager_derive_channel_keys(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_derive_channel_keys")] public static extern long PhantomKeysManager_derive_channel_keys(long _this_arg, long _channel_value_satoshis, long _params); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_derive_channel_keys")] public static extern long PhantomKeysManagerDeriveChannelKeys(long _this_arg, long _channel_value_satoshis, long _params); // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_get_node_secret_key")] public static extern long PhantomKeysManager_get_node_secret_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_get_node_secret_key")] public static extern long PhantomKeysManagerGetNodeSecretKey(long _this_arg); // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_get_phantom_node_secret_key")] public static extern long PhantomKeysManager_get_phantom_node_secret_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PhantomKeysManager_get_phantom_node_secret_key")] public static extern long PhantomKeysManagerGetPhantomNodeSecretKey(long _this_arg); // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_free")] public static extern void EcdsaChannelSigner_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EcdsaChannelSigner_free")] public static extern void EcdsaChannelSignerFree(long _this_ptr); // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_clone_ptr")] public static extern long WriteableEcdsaChannelSigner_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_clone_ptr")] public static extern long WriteableEcdsaChannelSignerClonePtr(long _arg); // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_clone")] public static extern long WriteableEcdsaChannelSigner_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_clone")] public static extern long WriteableEcdsaChannelSignerClone(long _orig); // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_free")] public static extern void WriteableEcdsaChannelSigner_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WriteableEcdsaChannelSigner_free")] public static extern void WriteableEcdsaChannelSignerFree(long _this_ptr); // void OnionMessenger_free(struct LDKOnionMessenger this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_free")] public static extern void OnionMessenger_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_free")] public static extern void OnionMessengerFree(long _this_obj); // void MessageRouter_free(struct LDKMessageRouter this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_free")] public static extern void MessageRouter_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageRouter_free")] public static extern void MessageRouterFree(long _this_ptr); // void DefaultMessageRouter_free(struct LDKDefaultMessageRouter this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_free")] public static extern void DefaultMessageRouter_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_free")] public static extern void DefaultMessageRouterFree(long _this_obj); // MUST_USE_RES struct LDKDefaultMessageRouter DefaultMessageRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKEntropySource entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_new")] public static extern long DefaultMessageRouter_new(long _network_graph, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_new")] public static extern long DefaultMessageRouterNew(long _network_graph, long _entropy_source); // struct LDKMessageRouter DefaultMessageRouter_as_MessageRouter(const struct LDKDefaultMessageRouter *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_as_MessageRouter")] public static extern long DefaultMessageRouter_as_MessageRouter(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_DefaultMessageRouter_as_MessageRouter")] public static extern long DefaultMessageRouterAsMessageRouter(long _this_arg); // void OnionMessagePath_free(struct LDKOnionMessagePath this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_free")] public static extern void OnionMessagePath_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_free")] public static extern void OnionMessagePathFree(long _this_obj); // struct LDKCVec_PublicKeyZ OnionMessagePath_get_intermediate_nodes(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_intermediate_nodes")] public static extern long OnionMessagePath_get_intermediate_nodes(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_intermediate_nodes")] public static extern long OnionMessagePathGetIntermediateNodes(long _this_ptr); // void OnionMessagePath_set_intermediate_nodes(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCVec_PublicKeyZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_intermediate_nodes")] public static extern void OnionMessagePath_set_intermediate_nodes(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_intermediate_nodes")] public static extern void OnionMessagePathSetIntermediateNodes(long _this_ptr, long _val); // struct LDKDestination OnionMessagePath_get_destination(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_destination")] public static extern long OnionMessagePath_get_destination(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_destination")] public static extern long OnionMessagePathGetDestination(long _this_ptr); // void OnionMessagePath_set_destination(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKDestination val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_destination")] public static extern void OnionMessagePath_set_destination(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_destination")] public static extern void OnionMessagePathSetDestination(long _this_ptr, long _val); // struct LDKCOption_CVec_SocketAddressZZ OnionMessagePath_get_first_node_addresses(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_first_node_addresses")] public static extern long OnionMessagePath_get_first_node_addresses(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_get_first_node_addresses")] public static extern long OnionMessagePathGetFirstNodeAddresses(long _this_ptr); // void OnionMessagePath_set_first_node_addresses(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCOption_CVec_SocketAddressZZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_first_node_addresses")] public static extern void OnionMessagePath_set_first_node_addresses(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_set_first_node_addresses")] public static extern void OnionMessagePathSetFirstNodeAddresses(long _this_ptr, long _val); // MUST_USE_RES struct LDKOnionMessagePath OnionMessagePath_new(struct LDKCVec_PublicKeyZ intermediate_nodes_arg, struct LDKDestination destination_arg, struct LDKCOption_CVec_SocketAddressZZ first_node_addresses_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_new")] public static extern long OnionMessagePath_new(long _intermediate_nodes_arg, long _destination_arg, long _first_node_addresses_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_new")] public static extern long OnionMessagePathNew(long _intermediate_nodes_arg, long _destination_arg, long _first_node_addresses_arg); // uint64_t OnionMessagePath_clone_ptr(LDKOnionMessagePath *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_clone_ptr")] public static extern long OnionMessagePath_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_clone_ptr")] public static extern long OnionMessagePathClonePtr(long _arg); // struct LDKOnionMessagePath OnionMessagePath_clone(const struct LDKOnionMessagePath *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_clone")] public static extern long OnionMessagePath_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_clone")] public static extern long OnionMessagePathClone(long _orig); // MUST_USE_RES struct LDKPublicKey OnionMessagePath_first_node(const struct LDKOnionMessagePath *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_first_node")] public static extern long OnionMessagePath_first_node(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessagePath_first_node")] public static extern long OnionMessagePathFirstNode(long _this_arg); // void Destination_free(struct LDKDestination this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_free")] public static extern void Destination_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_free")] public static extern void DestinationFree(long _this_ptr); // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_clone_ptr")] public static extern long Destination_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_clone_ptr")] public static extern long DestinationClonePtr(long _arg); // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_clone")] public static extern long Destination_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_clone")] public static extern long DestinationClone(long _orig); // struct LDKDestination Destination_node(struct LDKPublicKey a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_node")] public static extern long Destination_node(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_node")] public static extern long DestinationNode(long _a); // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_blinded_path")] public static extern long Destination_blinded_path(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Destination_blinded_path")] public static extern long DestinationBlindedPath(long _a); // void SendSuccess_free(struct LDKSendSuccess this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_free")] public static extern void SendSuccess_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_free")] public static extern void SendSuccessFree(long _this_ptr); // uint64_t SendSuccess_clone_ptr(LDKSendSuccess *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_clone_ptr")] public static extern long SendSuccess_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_clone_ptr")] public static extern long SendSuccessClonePtr(long _arg); // struct LDKSendSuccess SendSuccess_clone(const struct LDKSendSuccess *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_clone")] public static extern long SendSuccess_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_clone")] public static extern long SendSuccessClone(long _orig); // struct LDKSendSuccess SendSuccess_buffered(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_buffered")] public static extern long SendSuccess_buffered(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_buffered")] public static extern long SendSuccessBuffered(); // struct LDKSendSuccess SendSuccess_buffered_awaiting_connection(struct LDKPublicKey a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_buffered_awaiting_connection")] public static extern long SendSuccess_buffered_awaiting_connection(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_buffered_awaiting_connection")] public static extern long SendSuccessBufferedAwaitingConnection(long _a); // bool SendSuccess_eq(const struct LDKSendSuccess *NONNULL_PTR a, const struct LDKSendSuccess *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_eq")] public static extern bool SendSuccess_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendSuccess_eq")] public static extern bool SendSuccessEq(long _a, long _b); // void SendError_free(struct LDKSendError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_free")] public static extern void SendError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_free")] public static extern void SendErrorFree(long _this_ptr); // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_clone_ptr")] public static extern long SendError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_clone_ptr")] public static extern long SendErrorClonePtr(long _arg); // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_clone")] public static extern long SendError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_clone")] public static extern long SendErrorClone(long _orig); // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_secp256k1")] public static extern long SendError_secp256k1(Secp256k1Error _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_secp256k1")] public static extern long SendErrorSecp256K1(Secp256k1Error _a); // struct LDKSendError SendError_too_big_packet(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_too_big_packet")] public static extern long SendError_too_big_packet(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_too_big_packet")] public static extern long SendErrorTooBigPacket(); // struct LDKSendError SendError_too_few_blinded_hops(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_too_few_blinded_hops")] public static extern long SendError_too_few_blinded_hops(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_too_few_blinded_hops")] public static extern long SendErrorTooFewBlindedHops(); // struct LDKSendError SendError_invalid_first_hop(struct LDKPublicKey a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_invalid_first_hop")] public static extern long SendError_invalid_first_hop(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_invalid_first_hop")] public static extern long SendErrorInvalidFirstHop(long _a); // struct LDKSendError SendError_path_not_found(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_path_not_found")] public static extern long SendError_path_not_found(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_path_not_found")] public static extern long SendErrorPathNotFound(); // struct LDKSendError SendError_invalid_message(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_invalid_message")] public static extern long SendError_invalid_message(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_invalid_message")] public static extern long SendErrorInvalidMessage(); // struct LDKSendError SendError_buffer_full(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_buffer_full")] public static extern long SendError_buffer_full(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_buffer_full")] public static extern long SendErrorBufferFull(); // struct LDKSendError SendError_get_node_id_failed(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_get_node_id_failed")] public static extern long SendError_get_node_id_failed(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_get_node_id_failed")] public static extern long SendErrorGetNodeIdFailed(); // struct LDKSendError SendError_blinded_path_advance_failed(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_blinded_path_advance_failed")] public static extern long SendError_blinded_path_advance_failed(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_blinded_path_advance_failed")] public static extern long SendErrorBlindedPathAdvanceFailed(); // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_eq")] public static extern bool SendError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SendError_eq")] public static extern bool SendErrorEq(long _a, long _b); // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_free")] public static extern void CustomOnionMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CustomOnionMessageHandler_free")] public static extern void CustomOnionMessageHandlerFree(long _this_ptr); // void PeeledOnion_free(struct LDKPeeledOnion this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_free")] public static extern void PeeledOnion_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_free")] public static extern void PeeledOnionFree(long _this_ptr); // uint64_t PeeledOnion_clone_ptr(LDKPeeledOnion *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_clone_ptr")] public static extern long PeeledOnion_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_clone_ptr")] public static extern long PeeledOnionClonePtr(long _arg); // struct LDKPeeledOnion PeeledOnion_clone(const struct LDKPeeledOnion *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_clone")] public static extern long PeeledOnion_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_clone")] public static extern long PeeledOnionClone(long _orig); // struct LDKPeeledOnion PeeledOnion_forward(struct LDKPublicKey a, struct LDKOnionMessage b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_forward")] public static extern long PeeledOnion_forward(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_forward")] public static extern long PeeledOnionForward(long _a, long _b); // struct LDKPeeledOnion PeeledOnion_receive(struct LDKParsedOnionMessageContents a, struct LDKThirtyTwoBytes b, struct LDKBlindedPath c); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_receive")] public static extern long PeeledOnion_receive(long _a, long _b, long _c); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PeeledOnion_receive")] public static extern long PeeledOnionReceive(long _a, long _b, long _c); // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_onion_message")] public static extern long create_onion_message(long _entropy_source, long _node_signer, long _path, long _contents, long _reply_path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_onion_message")] public static extern long CreateOnionMessage(long _entropy_source, long _node_signer, long _path, long _contents, long _reply_path); // struct LDKCResult_PeeledOnionNoneZ peel_onion_message(const struct LDKOnionMessage *NONNULL_PTR msg, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_peel_onion_message")] public static extern long peel_onion_message(long _msg, long _node_signer, long _logger, long _custom_handler); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_peel_onion_message")] public static extern long PeelOnionMessage(long _msg, long _node_signer, long _logger, long _custom_handler); // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_new")] public static extern long OnionMessenger_new(long _entropy_source, long _node_signer, long _logger, long _message_router, long _offers_handler, long _custom_handler); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_new")] public static extern long OnionMessengerNew(long _entropy_source, long _node_signer, long _logger, long _message_router, long _offers_handler, long _custom_handler); // MUST_USE_RES struct LDKCResult_SendSuccessSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKOnionMessageContents contents, struct LDKDestination destination, struct LDKBlindedPath reply_path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_send_onion_message")] public static extern long OnionMessenger_send_onion_message(long _this_arg, long _contents, long _destination, long _reply_path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_send_onion_message")] public static extern long OnionMessengerSendOnionMessage(long _this_arg, long _contents, long _destination, long _reply_path); // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_as_OnionMessageHandler")] public static extern long OnionMessenger_as_OnionMessageHandler(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessenger_as_OnionMessageHandler")] public static extern long OnionMessengerAsOnionMessageHandler(long _this_arg); // void OffersMessageHandler_free(struct LDKOffersMessageHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_free")] public static extern void OffersMessageHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessageHandler_free")] public static extern void OffersMessageHandlerFree(long _this_ptr); // void OffersMessage_free(struct LDKOffersMessage this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_free")] public static extern void OffersMessage_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_free")] public static extern void OffersMessageFree(long _this_ptr); // uint64_t OffersMessage_clone_ptr(LDKOffersMessage *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_clone_ptr")] public static extern long OffersMessage_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_clone_ptr")] public static extern long OffersMessageClonePtr(long _arg); // struct LDKOffersMessage OffersMessage_clone(const struct LDKOffersMessage *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_clone")] public static extern long OffersMessage_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_clone")] public static extern long OffersMessageClone(long _orig); // struct LDKOffersMessage OffersMessage_invoice_request(struct LDKInvoiceRequest a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice_request")] public static extern long OffersMessage_invoice_request(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice_request")] public static extern long OffersMessageInvoiceRequest(long _a); // struct LDKOffersMessage OffersMessage_invoice(struct LDKBolt12Invoice a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice")] public static extern long OffersMessage_invoice(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice")] public static extern long OffersMessageInvoice(long _a); // struct LDKOffersMessage OffersMessage_invoice_error(struct LDKInvoiceError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice_error")] public static extern long OffersMessage_invoice_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_invoice_error")] public static extern long OffersMessageInvoiceError(long _a); // MUST_USE_RES bool OffersMessage_is_known_type(uint64_t tlv_type); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_is_known_type")] public static extern bool OffersMessage_is_known_type(long _tlv_type); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_is_known_type")] public static extern bool OffersMessageIsKnownType(long _tlv_type); // struct LDKOnionMessageContents OffersMessage_as_OnionMessageContents(const struct LDKOffersMessage *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_as_OnionMessageContents")] public static extern long OffersMessage_as_OnionMessageContents(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_as_OnionMessageContents")] public static extern long OffersMessageAsOnionMessageContents(long _this_arg); // struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_write")] public static extern long OffersMessage_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_write")] public static extern long OffersMessageWrite(long _obj); // struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_read")] public static extern long OffersMessage_read(long _ser, long _arg_a, long _arg_b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OffersMessage_read")] public static extern long OffersMessageRead(long _ser, long _arg_a, long _arg_b); // void Packet_free(struct LDKPacket this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_free")] public static extern void Packet_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_free")] public static extern void PacketFree(long _this_obj); // uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_version")] public static extern byte Packet_get_version(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_version")] public static extern byte PacketGetVersion(long _this_ptr); // void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_version")] public static extern void Packet_set_version(long _this_ptr, byte _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_version")] public static extern void PacketSetVersion(long _this_ptr, byte _val); // struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_public_key")] public static extern long Packet_get_public_key(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_public_key")] public static extern long PacketGetPublicKey(long _this_ptr); // void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_public_key")] public static extern void Packet_set_public_key(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_public_key")] public static extern void PacketSetPublicKey(long _this_ptr, long _val); // struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_hop_data")] public static extern long Packet_get_hop_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_hop_data")] public static extern long PacketGetHopData(long _this_ptr); // void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_hop_data")] public static extern void Packet_set_hop_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_hop_data")] public static extern void PacketSetHopData(long _this_ptr, long _val); // const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_hmac")] public static extern long Packet_get_hmac(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_get_hmac")] public static extern long PacketGetHmac(long _this_ptr); // void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_hmac")] public static extern void Packet_set_hmac(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_set_hmac")] public static extern void PacketSetHmac(long _this_ptr, long _val); // MUST_USE_RES struct LDKPacket Packet_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_new")] public static extern long Packet_new(byte _version_arg, long _public_key_arg, long _hop_data_arg, long _hmac_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_new")] public static extern long PacketNew(byte _version_arg, long _public_key_arg, long _hop_data_arg, long _hmac_arg); // uint64_t Packet_clone_ptr(LDKPacket *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_clone_ptr")] public static extern long Packet_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_clone_ptr")] public static extern long PacketClonePtr(long _arg); // struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_clone")] public static extern long Packet_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_clone")] public static extern long PacketClone(long _orig); // uint64_t Packet_hash(const struct LDKPacket *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_hash")] public static extern long Packet_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_hash")] public static extern long PacketHash(long _o); // bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_eq")] public static extern bool Packet_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_eq")] public static extern bool PacketEq(long _a, long _b); // struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_write")] public static extern long Packet_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Packet_write")] public static extern long PacketWrite(long _obj); // void ParsedOnionMessageContents_free(struct LDKParsedOnionMessageContents this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_free")] public static extern void ParsedOnionMessageContents_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_free")] public static extern void ParsedOnionMessageContentsFree(long _this_ptr); // uint64_t ParsedOnionMessageContents_clone_ptr(LDKParsedOnionMessageContents *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_clone_ptr")] public static extern long ParsedOnionMessageContents_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_clone_ptr")] public static extern long ParsedOnionMessageContentsClonePtr(long _arg); // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_clone(const struct LDKParsedOnionMessageContents *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_clone")] public static extern long ParsedOnionMessageContents_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_clone")] public static extern long ParsedOnionMessageContentsClone(long _orig); // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_offers(struct LDKOffersMessage a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_offers")] public static extern long ParsedOnionMessageContents_offers(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_offers")] public static extern long ParsedOnionMessageContentsOffers(long _a); // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_custom(struct LDKOnionMessageContents a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_custom")] public static extern long ParsedOnionMessageContents_custom(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_custom")] public static extern long ParsedOnionMessageContentsCustom(long _a); // struct LDKOnionMessageContents ParsedOnionMessageContents_as_OnionMessageContents(const struct LDKParsedOnionMessageContents *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_as_OnionMessageContents")] public static extern long ParsedOnionMessageContents_as_OnionMessageContents(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_as_OnionMessageContents")] public static extern long ParsedOnionMessageContentsAsOnionMessageContents(long _this_arg); // struct LDKCVec_u8Z ParsedOnionMessageContents_write(const struct LDKParsedOnionMessageContents *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_write")] public static extern long ParsedOnionMessageContents_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParsedOnionMessageContents_write")] public static extern long ParsedOnionMessageContentsWrite(long _obj); // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_clone_ptr")] public static extern long OnionMessageContents_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_clone_ptr")] public static extern long OnionMessageContentsClonePtr(long _arg); // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_clone")] public static extern long OnionMessageContents_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_clone")] public static extern long OnionMessageContentsClone(long _orig); // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_free")] public static extern void OnionMessageContents_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_OnionMessageContents_free")] public static extern void OnionMessageContentsFree(long _this_ptr); // void BlindedPath_free(struct LDKBlindedPath this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_free")] public static extern void BlindedPath_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_free")] public static extern void BlindedPathFree(long _this_obj); // struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_introduction_node_id")] public static extern long BlindedPath_get_introduction_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_introduction_node_id")] public static extern long BlindedPathGetIntroductionNodeId(long _this_ptr); // void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_introduction_node_id")] public static extern void BlindedPath_set_introduction_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_introduction_node_id")] public static extern void BlindedPathSetIntroductionNodeId(long _this_ptr, long _val); // struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_blinding_point")] public static extern long BlindedPath_get_blinding_point(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_blinding_point")] public static extern long BlindedPathGetBlindingPoint(long _this_ptr); // void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_blinding_point")] public static extern void BlindedPath_set_blinding_point(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_blinding_point")] public static extern void BlindedPathSetBlindingPoint(long _this_ptr, long _val); // struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_blinded_hops")] public static extern long BlindedPath_get_blinded_hops(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_get_blinded_hops")] public static extern long BlindedPathGetBlindedHops(long _this_ptr); // void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_blinded_hops")] public static extern void BlindedPath_set_blinded_hops(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_set_blinded_hops")] public static extern void BlindedPathSetBlindedHops(long _this_ptr, long _val); // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new")] public static extern long BlindedPath_new(long _introduction_node_id_arg, long _blinding_point_arg, long _blinded_hops_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new")] public static extern long BlindedPathNew(long _introduction_node_id_arg, long _blinding_point_arg, long _blinded_hops_arg); // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_clone_ptr")] public static extern long BlindedPath_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_clone_ptr")] public static extern long BlindedPathClonePtr(long _arg); // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_clone")] public static extern long BlindedPath_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_clone")] public static extern long BlindedPathClone(long _orig); // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_hash")] public static extern long BlindedPath_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_hash")] public static extern long BlindedPathHash(long _o); // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_eq")] public static extern bool BlindedPath_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_eq")] public static extern bool BlindedPathEq(long _a, long _b); // void BlindedHop_free(struct LDKBlindedHop this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_free")] public static extern void BlindedHop_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_free")] public static extern void BlindedHopFree(long _this_obj); // struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_get_blinded_node_id")] public static extern long BlindedHop_get_blinded_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_get_blinded_node_id")] public static extern long BlindedHopGetBlindedNodeId(long _this_ptr); // void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_set_blinded_node_id")] public static extern void BlindedHop_set_blinded_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_set_blinded_node_id")] public static extern void BlindedHopSetBlindedNodeId(long _this_ptr, long _val); // struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_get_encrypted_payload")] public static extern long BlindedHop_get_encrypted_payload(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_get_encrypted_payload")] public static extern long BlindedHopGetEncryptedPayload(long _this_ptr); // void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_set_encrypted_payload")] public static extern void BlindedHop_set_encrypted_payload(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_set_encrypted_payload")] public static extern void BlindedHopSetEncryptedPayload(long _this_ptr, long _val); // MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_new")] public static extern long BlindedHop_new(long _blinded_node_id_arg, long _encrypted_payload_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_new")] public static extern long BlindedHopNew(long _blinded_node_id_arg, long _encrypted_payload_arg); // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_clone_ptr")] public static extern long BlindedHop_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_clone_ptr")] public static extern long BlindedHopClonePtr(long _arg); // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_clone")] public static extern long BlindedHop_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_clone")] public static extern long BlindedHopClone(long _orig); // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_hash")] public static extern long BlindedHop_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_hash")] public static extern long BlindedHopHash(long _o); // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_eq")] public static extern bool BlindedHop_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_eq")] public static extern bool BlindedHopEq(long _a, long _b); // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_one_hop_for_message")] public static extern long BlindedPath_one_hop_for_message(long _recipient_node_id, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_one_hop_for_message")] public static extern long BlindedPathOneHopForMessage(long _recipient_node_id, long _entropy_source); // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new_for_message")] public static extern long BlindedPath_new_for_message(long _node_pks, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new_for_message")] public static extern long BlindedPathNewForMessage(long _node_pks, long _entropy_source); // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_one_hop_for_payment")] public static extern long BlindedPath_one_hop_for_payment(long _payee_node_id, long _payee_tlvs, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_one_hop_for_payment")] public static extern long BlindedPathOneHopForPayment(long _payee_node_id, long _payee_tlvs, long _entropy_source); // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for_payment(struct LDKCVec_ForwardNodeZ intermediate_nodes, struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint64_t htlc_maximum_msat, const struct LDKEntropySource *NONNULL_PTR entropy_source); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new_for_payment")] public static extern long BlindedPath_new_for_payment(long _intermediate_nodes, long _payee_node_id, long _payee_tlvs, long _htlc_maximum_msat, long _entropy_source); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_new_for_payment")] public static extern long BlindedPathNewForPayment(long _intermediate_nodes, long _payee_node_id, long _payee_tlvs, long _htlc_maximum_msat, long _entropy_source); // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_write")] public static extern long BlindedPath_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_write")] public static extern long BlindedPathWrite(long _obj); // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_read")] public static extern long BlindedPath_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedPath_read")] public static extern long BlindedPathRead(long _ser); // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_write")] public static extern long BlindedHop_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_write")] public static extern long BlindedHopWrite(long _obj); // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_read")] public static extern long BlindedHop_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BlindedHop_read")] public static extern long BlindedHopRead(long _ser); // void ForwardNode_free(struct LDKForwardNode this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_free")] public static extern void ForwardNode_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_free")] public static extern void ForwardNodeFree(long _this_obj); // struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_tlvs")] public static extern long ForwardNode_get_tlvs(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_tlvs")] public static extern long ForwardNodeGetTlvs(long _this_ptr); // void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_tlvs")] public static extern void ForwardNode_set_tlvs(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_tlvs")] public static extern void ForwardNodeSetTlvs(long _this_ptr, long _val); // struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_node_id")] public static extern long ForwardNode_get_node_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_node_id")] public static extern long ForwardNodeGetNodeId(long _this_ptr); // void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_node_id")] public static extern void ForwardNode_set_node_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_node_id")] public static extern void ForwardNodeSetNodeId(long _this_ptr, long _val); // uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_htlc_maximum_msat")] public static extern long ForwardNode_get_htlc_maximum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_get_htlc_maximum_msat")] public static extern long ForwardNodeGetHtlcMaximumMsat(long _this_ptr); // void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_htlc_maximum_msat")] public static extern void ForwardNode_set_htlc_maximum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_set_htlc_maximum_msat")] public static extern void ForwardNodeSetHtlcMaximumMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_new")] public static extern long ForwardNode_new(long _tlvs_arg, long _node_id_arg, long _htlc_maximum_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_new")] public static extern long ForwardNodeNew(long _tlvs_arg, long _node_id_arg, long _htlc_maximum_msat_arg); // uint64_t ForwardNode_clone_ptr(LDKForwardNode *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_clone_ptr")] public static extern long ForwardNode_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_clone_ptr")] public static extern long ForwardNodeClonePtr(long _arg); // struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_clone")] public static extern long ForwardNode_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardNode_clone")] public static extern long ForwardNodeClone(long _orig); // void ForwardTlvs_free(struct LDKForwardTlvs this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_free")] public static extern void ForwardTlvs_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_free")] public static extern void ForwardTlvsFree(long _this_obj); // uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_short_channel_id")] public static extern long ForwardTlvs_get_short_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_short_channel_id")] public static extern long ForwardTlvsGetShortChannelId(long _this_ptr); // void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_short_channel_id")] public static extern void ForwardTlvs_set_short_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_short_channel_id")] public static extern void ForwardTlvsSetShortChannelId(long _this_ptr, long _val); // struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_payment_relay")] public static extern long ForwardTlvs_get_payment_relay(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_payment_relay")] public static extern long ForwardTlvsGetPaymentRelay(long _this_ptr); // void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_payment_relay")] public static extern void ForwardTlvs_set_payment_relay(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_payment_relay")] public static extern void ForwardTlvsSetPaymentRelay(long _this_ptr, long _val); // struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_payment_constraints")] public static extern long ForwardTlvs_get_payment_constraints(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_payment_constraints")] public static extern long ForwardTlvsGetPaymentConstraints(long _this_ptr); // void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_payment_constraints")] public static extern void ForwardTlvs_set_payment_constraints(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_payment_constraints")] public static extern void ForwardTlvsSetPaymentConstraints(long _this_ptr, long _val); // struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_features")] public static extern long ForwardTlvs_get_features(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_get_features")] public static extern long ForwardTlvsGetFeatures(long _this_ptr); // void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_features")] public static extern void ForwardTlvs_set_features(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_set_features")] public static extern void ForwardTlvsSetFeatures(long _this_ptr, long _val); // MUST_USE_RES struct LDKForwardTlvs ForwardTlvs_new(uint64_t short_channel_id_arg, struct LDKPaymentRelay payment_relay_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKBlindedHopFeatures features_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_new")] public static extern long ForwardTlvs_new(long _short_channel_id_arg, long _payment_relay_arg, long _payment_constraints_arg, long _features_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_new")] public static extern long ForwardTlvsNew(long _short_channel_id_arg, long _payment_relay_arg, long _payment_constraints_arg, long _features_arg); // uint64_t ForwardTlvs_clone_ptr(LDKForwardTlvs *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_clone_ptr")] public static extern long ForwardTlvs_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_clone_ptr")] public static extern long ForwardTlvsClonePtr(long _arg); // struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_clone")] public static extern long ForwardTlvs_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_clone")] public static extern long ForwardTlvsClone(long _orig); // void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_free")] public static extern void ReceiveTlvs_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_free")] public static extern void ReceiveTlvsFree(long _this_obj); // const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_get_payment_secret")] public static extern long ReceiveTlvs_get_payment_secret(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_get_payment_secret")] public static extern long ReceiveTlvsGetPaymentSecret(long _this_ptr); // void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_set_payment_secret")] public static extern void ReceiveTlvs_set_payment_secret(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_set_payment_secret")] public static extern void ReceiveTlvsSetPaymentSecret(long _this_ptr, long _val); // struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_get_payment_constraints")] public static extern long ReceiveTlvs_get_payment_constraints(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_get_payment_constraints")] public static extern long ReceiveTlvsGetPaymentConstraints(long _this_ptr); // void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_set_payment_constraints")] public static extern void ReceiveTlvs_set_payment_constraints(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_set_payment_constraints")] public static extern void ReceiveTlvsSetPaymentConstraints(long _this_ptr, long _val); // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_new")] public static extern long ReceiveTlvs_new(long _payment_secret_arg, long _payment_constraints_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_new")] public static extern long ReceiveTlvsNew(long _payment_secret_arg, long _payment_constraints_arg); // uint64_t ReceiveTlvs_clone_ptr(LDKReceiveTlvs *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_clone_ptr")] public static extern long ReceiveTlvs_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_clone_ptr")] public static extern long ReceiveTlvsClonePtr(long _arg); // struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_clone")] public static extern long ReceiveTlvs_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_clone")] public static extern long ReceiveTlvsClone(long _orig); // void PaymentRelay_free(struct LDKPaymentRelay this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_free")] public static extern void PaymentRelay_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_free")] public static extern void PaymentRelayFree(long _this_obj); // uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_cltv_expiry_delta")] public static extern short PaymentRelay_get_cltv_expiry_delta(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_cltv_expiry_delta")] public static extern short PaymentRelayGetCltvExpiryDelta(long _this_ptr); // void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_cltv_expiry_delta")] public static extern void PaymentRelay_set_cltv_expiry_delta(long _this_ptr, short _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_cltv_expiry_delta")] public static extern void PaymentRelaySetCltvExpiryDelta(long _this_ptr, short _val); // uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_fee_proportional_millionths")] public static extern int PaymentRelay_get_fee_proportional_millionths(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_fee_proportional_millionths")] public static extern int PaymentRelayGetFeeProportionalMillionths(long _this_ptr); // void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_fee_proportional_millionths")] public static extern void PaymentRelay_set_fee_proportional_millionths(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_fee_proportional_millionths")] public static extern void PaymentRelaySetFeeProportionalMillionths(long _this_ptr, int _val); // uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_fee_base_msat")] public static extern int PaymentRelay_get_fee_base_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_get_fee_base_msat")] public static extern int PaymentRelayGetFeeBaseMsat(long _this_ptr); // void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_fee_base_msat")] public static extern void PaymentRelay_set_fee_base_msat(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_set_fee_base_msat")] public static extern void PaymentRelaySetFeeBaseMsat(long _this_ptr, int _val); // MUST_USE_RES struct LDKPaymentRelay PaymentRelay_new(uint16_t cltv_expiry_delta_arg, uint32_t fee_proportional_millionths_arg, uint32_t fee_base_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_new")] public static extern long PaymentRelay_new(short _cltv_expiry_delta_arg, int _fee_proportional_millionths_arg, int _fee_base_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_new")] public static extern long PaymentRelayNew(short _cltv_expiry_delta_arg, int _fee_proportional_millionths_arg, int _fee_base_msat_arg); // uint64_t PaymentRelay_clone_ptr(LDKPaymentRelay *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_clone_ptr")] public static extern long PaymentRelay_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_clone_ptr")] public static extern long PaymentRelayClonePtr(long _arg); // struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_clone")] public static extern long PaymentRelay_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_clone")] public static extern long PaymentRelayClone(long _orig); // void PaymentConstraints_free(struct LDKPaymentConstraints this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_free")] public static extern void PaymentConstraints_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_free")] public static extern void PaymentConstraintsFree(long _this_obj); // uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_get_max_cltv_expiry")] public static extern int PaymentConstraints_get_max_cltv_expiry(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_get_max_cltv_expiry")] public static extern int PaymentConstraintsGetMaxCltvExpiry(long _this_ptr); // void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_set_max_cltv_expiry")] public static extern void PaymentConstraints_set_max_cltv_expiry(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_set_max_cltv_expiry")] public static extern void PaymentConstraintsSetMaxCltvExpiry(long _this_ptr, int _val); // uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_get_htlc_minimum_msat")] public static extern long PaymentConstraints_get_htlc_minimum_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_get_htlc_minimum_msat")] public static extern long PaymentConstraintsGetHtlcMinimumMsat(long _this_ptr); // void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_set_htlc_minimum_msat")] public static extern void PaymentConstraints_set_htlc_minimum_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_set_htlc_minimum_msat")] public static extern void PaymentConstraintsSetHtlcMinimumMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_new")] public static extern long PaymentConstraints_new(int _max_cltv_expiry_arg, long _htlc_minimum_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_new")] public static extern long PaymentConstraintsNew(int _max_cltv_expiry_arg, long _htlc_minimum_msat_arg); // uint64_t PaymentConstraints_clone_ptr(LDKPaymentConstraints *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_clone_ptr")] public static extern long PaymentConstraints_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_clone_ptr")] public static extern long PaymentConstraintsClonePtr(long _arg); // struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_clone")] public static extern long PaymentConstraints_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_clone")] public static extern long PaymentConstraintsClone(long _orig); // struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_write")] public static extern long ForwardTlvs_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ForwardTlvs_write")] public static extern long ForwardTlvsWrite(long _obj); // struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_write")] public static extern long ReceiveTlvs_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ReceiveTlvs_write")] public static extern long ReceiveTlvsWrite(long _obj); // struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_write")] public static extern long PaymentRelay_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_write")] public static extern long PaymentRelayWrite(long _obj); // struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_read")] public static extern long PaymentRelay_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentRelay_read")] public static extern long PaymentRelayRead(long _ser); // struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_write")] public static extern long PaymentConstraints_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_write")] public static extern long PaymentConstraintsWrite(long _obj); // struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_read")] public static extern long PaymentConstraints_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentConstraints_read")] public static extern long PaymentConstraintsRead(long _ser); // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_free")] public static extern void PaymentPurpose_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_free")] public static extern void PaymentPurposeFree(long _this_ptr); // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_clone_ptr")] public static extern long PaymentPurpose_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_clone_ptr")] public static extern long PaymentPurposeClonePtr(long _arg); // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_clone")] public static extern long PaymentPurpose_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_clone")] public static extern long PaymentPurposeClone(long _orig); // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_invoice_payment")] public static extern long PaymentPurpose_invoice_payment(long _payment_preimage, long _payment_secret); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_invoice_payment")] public static extern long PaymentPurposeInvoicePayment(long _payment_preimage, long _payment_secret); // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_spontaneous_payment")] public static extern long PaymentPurpose_spontaneous_payment(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_spontaneous_payment")] public static extern long PaymentPurposeSpontaneousPayment(long _a); // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_eq")] public static extern bool PaymentPurpose_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_eq")] public static extern bool PaymentPurposeEq(long _a, long _b); // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ PaymentPurpose_preimage(const struct LDKPaymentPurpose *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_preimage")] public static extern long PaymentPurpose_preimage(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_preimage")] public static extern long PaymentPurposePreimage(long _this_arg); // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_write")] public static extern long PaymentPurpose_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_write")] public static extern long PaymentPurposeWrite(long _obj); // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_read")] public static extern long PaymentPurpose_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentPurpose_read")] public static extern long PaymentPurposeRead(long _ser); // void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_free")] public static extern void ClaimedHTLC_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_free")] public static extern void ClaimedHTLCFree(long _this_obj); // const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_channel_id")] public static extern long ClaimedHTLC_get_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_channel_id")] public static extern long ClaimedHTLCGetChannelId(long _this_ptr); // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_channel_id")] public static extern void ClaimedHTLC_set_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_channel_id")] public static extern void ClaimedHTLCSetChannelId(long _this_ptr, long _val); // struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_user_channel_id")] public static extern long ClaimedHTLC_get_user_channel_id(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_user_channel_id")] public static extern long ClaimedHTLCGetUserChannelId(long _this_ptr); // void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_user_channel_id")] public static extern void ClaimedHTLC_set_user_channel_id(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_user_channel_id")] public static extern void ClaimedHTLCSetUserChannelId(long _this_ptr, long _val); // uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_cltv_expiry")] public static extern int ClaimedHTLC_get_cltv_expiry(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_cltv_expiry")] public static extern int ClaimedHTLCGetCltvExpiry(long _this_ptr); // void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_cltv_expiry")] public static extern void ClaimedHTLC_set_cltv_expiry(long _this_ptr, int _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_cltv_expiry")] public static extern void ClaimedHTLCSetCltvExpiry(long _this_ptr, int _val); // uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_value_msat")] public static extern long ClaimedHTLC_get_value_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_value_msat")] public static extern long ClaimedHTLCGetValueMsat(long _this_ptr); // void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_value_msat")] public static extern void ClaimedHTLC_set_value_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_value_msat")] public static extern void ClaimedHTLCSetValueMsat(long _this_ptr, long _val); // uint64_t ClaimedHTLC_get_counterparty_skimmed_fee_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_counterparty_skimmed_fee_msat")] public static extern long ClaimedHTLC_get_counterparty_skimmed_fee_msat(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_get_counterparty_skimmed_fee_msat")] public static extern long ClaimedHTLCGetCounterpartySkimmedFeeMsat(long _this_ptr); // void ClaimedHTLC_set_counterparty_skimmed_fee_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_counterparty_skimmed_fee_msat")] public static extern void ClaimedHTLC_set_counterparty_skimmed_fee_msat(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_set_counterparty_skimmed_fee_msat")] public static extern void ClaimedHTLCSetCounterpartySkimmedFeeMsat(long _this_ptr, long _val); // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg, uint64_t counterparty_skimmed_fee_msat_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_new")] public static extern long ClaimedHTLC_new(long _channel_id_arg, long _user_channel_id_arg, int _cltv_expiry_arg, long _value_msat_arg, long _counterparty_skimmed_fee_msat_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_new")] public static extern long ClaimedHTLCNew(long _channel_id_arg, long _user_channel_id_arg, int _cltv_expiry_arg, long _value_msat_arg, long _counterparty_skimmed_fee_msat_arg); // uint64_t ClaimedHTLC_clone_ptr(LDKClaimedHTLC *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_clone_ptr")] public static extern long ClaimedHTLC_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_clone_ptr")] public static extern long ClaimedHTLCClonePtr(long _arg); // struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_clone")] public static extern long ClaimedHTLC_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_clone")] public static extern long ClaimedHTLCClone(long _orig); // bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_eq")] public static extern bool ClaimedHTLC_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_eq")] public static extern bool ClaimedHTLCEq(long _a, long _b); // struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_write")] public static extern long ClaimedHTLC_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_write")] public static extern long ClaimedHTLCWrite(long _obj); // struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_read")] public static extern long ClaimedHTLC_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClaimedHTLC_read")] public static extern long ClaimedHTLCRead(long _ser); // void PathFailure_free(struct LDKPathFailure this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_free")] public static extern void PathFailure_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_free")] public static extern void PathFailureFree(long _this_ptr); // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_clone_ptr")] public static extern long PathFailure_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_clone_ptr")] public static extern long PathFailureClonePtr(long _arg); // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_clone")] public static extern long PathFailure_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_clone")] public static extern long PathFailureClone(long _orig); // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_initial_send")] public static extern long PathFailure_initial_send(long _err); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_initial_send")] public static extern long PathFailureInitialSend(long _err); // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_on_path")] public static extern long PathFailure_on_path(long _network_update); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_on_path")] public static extern long PathFailureOnPath(long _network_update); // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_eq")] public static extern bool PathFailure_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_eq")] public static extern bool PathFailureEq(long _a, long _b); // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_write")] public static extern long PathFailure_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_write")] public static extern long PathFailureWrite(long _obj); // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_read")] public static extern long PathFailure_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PathFailure_read")] public static extern long PathFailureRead(long _ser); // void ClosureReason_free(struct LDKClosureReason this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_free")] public static extern void ClosureReason_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_free")] public static extern void ClosureReasonFree(long _this_ptr); // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_clone_ptr")] public static extern long ClosureReason_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_clone_ptr")] public static extern long ClosureReasonClonePtr(long _arg); // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_clone")] public static extern long ClosureReason_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_clone")] public static extern long ClosureReasonClone(long _orig); // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_counterparty_force_closed")] public static extern long ClosureReason_counterparty_force_closed(long _peer_msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_counterparty_force_closed")] public static extern long ClosureReasonCounterpartyForceClosed(long _peer_msg); // struct LDKClosureReason ClosureReason_holder_force_closed(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_holder_force_closed")] public static extern long ClosureReason_holder_force_closed(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_holder_force_closed")] public static extern long ClosureReasonHolderForceClosed(); // struct LDKClosureReason ClosureReason_cooperative_closure(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_cooperative_closure")] public static extern long ClosureReason_cooperative_closure(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_cooperative_closure")] public static extern long ClosureReasonCooperativeClosure(); // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_commitment_tx_confirmed")] public static extern long ClosureReason_commitment_tx_confirmed(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_commitment_tx_confirmed")] public static extern long ClosureReasonCommitmentTxConfirmed(); // struct LDKClosureReason ClosureReason_funding_timed_out(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_funding_timed_out")] public static extern long ClosureReason_funding_timed_out(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_funding_timed_out")] public static extern long ClosureReasonFundingTimedOut(); // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_processing_error")] public static extern long ClosureReason_processing_error(long _err); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_processing_error")] public static extern long ClosureReasonProcessingError(long _err); // struct LDKClosureReason ClosureReason_disconnected_peer(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_disconnected_peer")] public static extern long ClosureReason_disconnected_peer(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_disconnected_peer")] public static extern long ClosureReasonDisconnectedPeer(); // struct LDKClosureReason ClosureReason_outdated_channel_manager(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_outdated_channel_manager")] public static extern long ClosureReason_outdated_channel_manager(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_outdated_channel_manager")] public static extern long ClosureReasonOutdatedChannelManager(); // struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_counterparty_coop_closed_unfunded_channel")] public static extern long ClosureReason_counterparty_coop_closed_unfunded_channel(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_counterparty_coop_closed_unfunded_channel")] public static extern long ClosureReasonCounterpartyCoopClosedUnfundedChannel(); // struct LDKClosureReason ClosureReason_funding_batch_closure(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_funding_batch_closure")] public static extern long ClosureReason_funding_batch_closure(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_funding_batch_closure")] public static extern long ClosureReasonFundingBatchClosure(); // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_eq")] public static extern bool ClosureReason_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_eq")] public static extern bool ClosureReasonEq(long _a, long _b); // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_write")] public static extern long ClosureReason_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_write")] public static extern long ClosureReasonWrite(long _obj); // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_read")] public static extern long ClosureReason_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ClosureReason_read")] public static extern long ClosureReasonRead(long _ser); // void HTLCDestination_free(struct LDKHTLCDestination this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_free")] public static extern void HTLCDestination_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_free")] public static extern void HTLCDestinationFree(long _this_ptr); // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_clone_ptr")] public static extern long HTLCDestination_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_clone_ptr")] public static extern long HTLCDestinationClonePtr(long _arg); // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_clone")] public static extern long HTLCDestination_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_clone")] public static extern long HTLCDestinationClone(long _orig); // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_next_hop_channel")] public static extern long HTLCDestination_next_hop_channel(long _node_id, long _channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_next_hop_channel")] public static extern long HTLCDestinationNextHopChannel(long _node_id, long _channel_id); // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_unknown_next_hop")] public static extern long HTLCDestination_unknown_next_hop(long _requested_forward_scid); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_unknown_next_hop")] public static extern long HTLCDestinationUnknownNextHop(long _requested_forward_scid); // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_invalid_forward")] public static extern long HTLCDestination_invalid_forward(long _requested_forward_scid); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_invalid_forward")] public static extern long HTLCDestinationInvalidForward(long _requested_forward_scid); // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_failed_payment")] public static extern long HTLCDestination_failed_payment(long _payment_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_failed_payment")] public static extern long HTLCDestinationFailedPayment(long _payment_hash); // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_eq")] public static extern bool HTLCDestination_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_eq")] public static extern bool HTLCDestinationEq(long _a, long _b); // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_write")] public static extern long HTLCDestination_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_write")] public static extern long HTLCDestinationWrite(long _obj); // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_read")] public static extern long HTLCDestination_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_HTLCDestination_read")] public static extern long HTLCDestinationRead(long _ser); // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_clone")] public static extern PaymentFailureReason PaymentFailureReason_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_clone")] public static extern PaymentFailureReason PaymentFailureReasonClone(long _orig); // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_recipient_rejected")] public static extern PaymentFailureReason PaymentFailureReason_recipient_rejected(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_recipient_rejected")] public static extern PaymentFailureReason PaymentFailureReasonRecipientRejected(); // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_user_abandoned")] public static extern PaymentFailureReason PaymentFailureReason_user_abandoned(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_user_abandoned")] public static extern PaymentFailureReason PaymentFailureReasonUserAbandoned(); // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_retries_exhausted")] public static extern PaymentFailureReason PaymentFailureReason_retries_exhausted(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_retries_exhausted")] public static extern PaymentFailureReason PaymentFailureReasonRetriesExhausted(); // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_payment_expired")] public static extern PaymentFailureReason PaymentFailureReason_payment_expired(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_payment_expired")] public static extern PaymentFailureReason PaymentFailureReasonPaymentExpired(); // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_route_not_found")] public static extern PaymentFailureReason PaymentFailureReason_route_not_found(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_route_not_found")] public static extern PaymentFailureReason PaymentFailureReasonRouteNotFound(); // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_unexpected_error")] public static extern PaymentFailureReason PaymentFailureReason_unexpected_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_unexpected_error")] public static extern PaymentFailureReason PaymentFailureReasonUnexpectedError(); // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_eq")] public static extern bool PaymentFailureReason_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_eq")] public static extern bool PaymentFailureReasonEq(long _a, long _b); // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_write")] public static extern long PaymentFailureReason_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_write")] public static extern long PaymentFailureReasonWrite(long _obj); // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_read")] public static extern long PaymentFailureReason_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PaymentFailureReason_read")] public static extern long PaymentFailureReasonRead(long _ser); // void Event_free(struct LDKEvent this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_free")] public static extern void Event_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_free")] public static extern void EventFree(long _this_ptr); // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_clone_ptr")] public static extern long Event_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_clone_ptr")] public static extern long EventClonePtr(long _arg); // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_clone")] public static extern long Event_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_clone")] public static extern long EventClone(long _orig); // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_funding_generation_ready")] public static extern long Event_funding_generation_ready(long _temporary_channel_id, long _counterparty_node_id, long _channel_value_satoshis, long _output_script, long _user_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_funding_generation_ready")] public static extern long EventFundingGenerationReady(long _temporary_channel_id, long _counterparty_node_id, long _channel_value_satoshis, long _output_script, long _user_channel_id); // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_claimable")] public static extern long Event_payment_claimable(long _receiver_node_id, long _payment_hash, long _onion_fields, long _amount_msat, long _counterparty_skimmed_fee_msat, long _purpose, long _via_channel_id, long _via_user_channel_id, long _claim_deadline); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_claimable")] public static extern long EventPaymentClaimable(long _receiver_node_id, long _payment_hash, long _onion_fields, long _amount_msat, long _counterparty_skimmed_fee_msat, long _purpose, long _via_channel_id, long _via_user_channel_id, long _claim_deadline); // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKCVec_ClaimedHTLCZ htlcs, struct LDKCOption_u64Z sender_intended_total_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_claimed")] public static extern long Event_payment_claimed(long _receiver_node_id, long _payment_hash, long _amount_msat, long _purpose, long _htlcs, long _sender_intended_total_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_claimed")] public static extern long EventPaymentClaimed(long _receiver_node_id, long _payment_hash, long _amount_msat, long _purpose, long _htlcs, long _sender_intended_total_msat); // struct LDKEvent Event_connection_needed(struct LDKPublicKey node_id, struct LDKCVec_SocketAddressZ addresses); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_connection_needed")] public static extern long Event_connection_needed(long _node_id, long _addresses); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_connection_needed")] public static extern long EventConnectionNeeded(long _node_id, long _addresses); // struct LDKEvent Event_invoice_request_failed(struct LDKThirtyTwoBytes payment_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_invoice_request_failed")] public static extern long Event_invoice_request_failed(long _payment_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_invoice_request_failed")] public static extern long EventInvoiceRequestFailed(long _payment_id); // struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_sent")] public static extern long Event_payment_sent(long _payment_id, long _payment_preimage, long _payment_hash, long _fee_paid_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_sent")] public static extern long EventPaymentSent(long _payment_id, long _payment_preimage, long _payment_hash, long _fee_paid_msat); // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_failed")] public static extern long Event_payment_failed(long _payment_id, long _payment_hash, long _reason); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_failed")] public static extern long EventPaymentFailed(long _payment_id, long _payment_hash, long _reason); // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_path_successful")] public static extern long Event_payment_path_successful(long _payment_id, long _payment_hash, long _path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_path_successful")] public static extern long EventPaymentPathSuccessful(long _payment_id, long _payment_hash, long _path); // struct LDKEvent Event_payment_path_failed(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_path_failed")] public static extern long Event_payment_path_failed(long _payment_id, long _payment_hash, bool _payment_failed_permanently, long _failure, long _path, long _short_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_path_failed")] public static extern long EventPaymentPathFailed(long _payment_id, long _payment_hash, bool _payment_failed_permanently, long _failure, long _path, long _short_channel_id); // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_probe_successful")] public static extern long Event_probe_successful(long _payment_id, long _payment_hash, long _path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_probe_successful")] public static extern long EventProbeSuccessful(long _payment_id, long _payment_hash, long _path); // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_probe_failed")] public static extern long Event_probe_failed(long _payment_id, long _payment_hash, long _path, long _short_channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_probe_failed")] public static extern long EventProbeFailed(long _payment_id, long _payment_hash, long _path, long _short_channel_id); // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_pending_htlcs_forwardable")] public static extern long Event_pending_htlcs_forwardable(long _time_forwardable); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_pending_htlcs_forwardable")] public static extern long EventPendingHtlcsForwardable(long _time_forwardable); // struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uint64_t requested_next_hop_scid, struct LDKThirtyTwoBytes payment_hash, uint64_t inbound_amount_msat, uint64_t expected_outbound_amount_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_htlcintercepted")] public static extern long Event_htlcintercepted(long _intercept_id, long _requested_next_hop_scid, long _payment_hash, long _inbound_amount_msat, long _expected_outbound_amount_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_htlcintercepted")] public static extern long EventHtlcintercepted(long _intercept_id, long _requested_next_hop_scid, long _payment_hash, long _inbound_amount_msat, long _expected_outbound_amount_msat); // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_spendable_outputs")] public static extern long Event_spendable_outputs(long _outputs, long _channel_id); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_spendable_outputs")] public static extern long EventSpendableOutputs(long _outputs, long _channel_id); // struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_forwarded")] public static extern long Event_payment_forwarded(long _prev_channel_id, long _next_channel_id, long _fee_earned_msat, bool _claim_from_onchain_tx, long _outbound_amount_forwarded_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_payment_forwarded")] public static extern long EventPaymentForwarded(long _prev_channel_id, long _next_channel_id, long _fee_earned_msat, bool _claim_from_onchain_tx, long _outbound_amount_forwarded_msat); // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_pending")] public static extern long Event_channel_pending(long _channel_id, long _user_channel_id, long _former_temporary_channel_id, long _counterparty_node_id, long _funding_txo); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_pending")] public static extern long EventChannelPending(long _channel_id, long _user_channel_id, long _former_temporary_channel_id, long _counterparty_node_id, long _funding_txo); // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_ready")] public static extern long Event_channel_ready(long _channel_id, long _user_channel_id, long _counterparty_node_id, long _channel_type); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_ready")] public static extern long EventChannelReady(long _channel_id, long _user_channel_id, long _counterparty_node_id, long _channel_type); // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats, struct LDKOutPoint channel_funding_txo); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_closed")] public static extern long Event_channel_closed(long _channel_id, long _user_channel_id, long _reason, long _counterparty_node_id, long _channel_capacity_sats, long _channel_funding_txo); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_channel_closed")] public static extern long EventChannelClosed(long _channel_id, long _user_channel_id, long _reason, long _counterparty_node_id, long _channel_capacity_sats, long _channel_funding_txo); // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_discard_funding")] public static extern long Event_discard_funding(long _channel_id, long _transaction); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_discard_funding")] public static extern long EventDiscardFunding(long _channel_id, long _transaction); // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_open_channel_request")] public static extern long Event_open_channel_request(long _temporary_channel_id, long _counterparty_node_id, long _funding_satoshis, long _push_msat, long _channel_type); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_open_channel_request")] public static extern long EventOpenChannelRequest(long _temporary_channel_id, long _counterparty_node_id, long _funding_satoshis, long _push_msat, long _channel_type); // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_htlchandling_failed")] public static extern long Event_htlchandling_failed(long _prev_channel_id, long _failed_next_destination); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_htlchandling_failed")] public static extern long EventHtlchandlingFailed(long _prev_channel_id, long _failed_next_destination); // struct LDKEvent Event_bump_transaction(struct LDKBumpTransactionEvent a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_bump_transaction")] public static extern long Event_bump_transaction(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_bump_transaction")] public static extern long EventBumpTransaction(long _a); // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_eq")] public static extern bool Event_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_eq")] public static extern bool EventEq(long _a, long _b); // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_write")] public static extern long Event_write(long _obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_write")] public static extern long EventWrite(long _obj); // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_read")] public static extern long Event_read(long _ser); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Event_read")] public static extern long EventRead(long _ser); // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_free")] public static extern void MessageSendEvent_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_free")] public static extern void MessageSendEventFree(long _this_ptr); // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_clone_ptr")] public static extern long MessageSendEvent_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_clone_ptr")] public static extern long MessageSendEventClonePtr(long _arg); // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_clone")] public static extern long MessageSendEvent_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_clone")] public static extern long MessageSendEventClone(long _orig); // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_accept_channel")] public static extern long MessageSendEvent_send_accept_channel(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_accept_channel")] public static extern long MessageSendEventSendAcceptChannel(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel_v2(struct LDKPublicKey node_id, struct LDKAcceptChannelV2 msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_accept_channel_v2")] public static extern long MessageSendEvent_send_accept_channel_v2(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_accept_channel_v2")] public static extern long MessageSendEventSendAcceptChannelV2(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_open_channel")] public static extern long MessageSendEvent_send_open_channel(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_open_channel")] public static extern long MessageSendEventSendOpenChannel(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_open_channel_v2(struct LDKPublicKey node_id, struct LDKOpenChannelV2 msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_open_channel_v2")] public static extern long MessageSendEvent_send_open_channel_v2(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_open_channel_v2")] public static extern long MessageSendEventSendOpenChannelV2(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_funding_created")] public static extern long MessageSendEvent_send_funding_created(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_funding_created")] public static extern long MessageSendEventSendFundingCreated(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_funding_signed")] public static extern long MessageSendEvent_send_funding_signed(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_funding_signed")] public static extern long MessageSendEventSendFundingSigned(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_stfu(struct LDKPublicKey node_id, struct LDKStfu msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_stfu")] public static extern long MessageSendEvent_send_stfu(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_stfu")] public static extern long MessageSendEventSendStfu(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_splice(struct LDKPublicKey node_id, struct LDKSplice msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice")] public static extern long MessageSendEvent_send_splice(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice")] public static extern long MessageSendEventSendSplice(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_splice_ack(struct LDKPublicKey node_id, struct LDKSpliceAck msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice_ack")] public static extern long MessageSendEvent_send_splice_ack(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice_ack")] public static extern long MessageSendEventSendSpliceAck(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_splice_locked(struct LDKPublicKey node_id, struct LDKSpliceLocked msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice_locked")] public static extern long MessageSendEvent_send_splice_locked(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_splice_locked")] public static extern long MessageSendEventSendSpliceLocked(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_input(struct LDKPublicKey node_id, struct LDKTxAddInput msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_add_input")] public static extern long MessageSendEvent_send_tx_add_input(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_add_input")] public static extern long MessageSendEventSendTxAddInput(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_output(struct LDKPublicKey node_id, struct LDKTxAddOutput msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_add_output")] public static extern long MessageSendEvent_send_tx_add_output(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_add_output")] public static extern long MessageSendEventSendTxAddOutput(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_input(struct LDKPublicKey node_id, struct LDKTxRemoveInput msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_remove_input")] public static extern long MessageSendEvent_send_tx_remove_input(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_remove_input")] public static extern long MessageSendEventSendTxRemoveInput(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_output(struct LDKPublicKey node_id, struct LDKTxRemoveOutput msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_remove_output")] public static extern long MessageSendEvent_send_tx_remove_output(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_remove_output")] public static extern long MessageSendEventSendTxRemoveOutput(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_complete(struct LDKPublicKey node_id, struct LDKTxComplete msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_complete")] public static extern long MessageSendEvent_send_tx_complete(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_complete")] public static extern long MessageSendEventSendTxComplete(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_signatures(struct LDKPublicKey node_id, struct LDKTxSignatures msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_signatures")] public static extern long MessageSendEvent_send_tx_signatures(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_signatures")] public static extern long MessageSendEventSendTxSignatures(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_init_rbf(struct LDKPublicKey node_id, struct LDKTxInitRbf msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_init_rbf")] public static extern long MessageSendEvent_send_tx_init_rbf(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_init_rbf")] public static extern long MessageSendEventSendTxInitRbf(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey node_id, struct LDKTxAckRbf msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_ack_rbf")] public static extern long MessageSendEvent_send_tx_ack_rbf(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_ack_rbf")] public static extern long MessageSendEventSendTxAckRbf(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_abort")] public static extern long MessageSendEvent_send_tx_abort(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_tx_abort")] public static extern long MessageSendEventSendTxAbort(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_ready")] public static extern long MessageSendEvent_send_channel_ready(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_ready")] public static extern long MessageSendEventSendChannelReady(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_announcement_signatures")] public static extern long MessageSendEvent_send_announcement_signatures(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_announcement_signatures")] public static extern long MessageSendEventSendAnnouncementSignatures(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_update_htlcs")] public static extern long MessageSendEvent_update_htlcs(long _node_id, long _updates); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_update_htlcs")] public static extern long MessageSendEventUpdateHtlcs(long _node_id, long _updates); // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_revoke_and_ack")] public static extern long MessageSendEvent_send_revoke_and_ack(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_revoke_and_ack")] public static extern long MessageSendEventSendRevokeAndAck(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_closing_signed")] public static extern long MessageSendEvent_send_closing_signed(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_closing_signed")] public static extern long MessageSendEventSendClosingSigned(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_shutdown")] public static extern long MessageSendEvent_send_shutdown(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_shutdown")] public static extern long MessageSendEventSendShutdown(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_reestablish")] public static extern long MessageSendEvent_send_channel_reestablish(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_reestablish")] public static extern long MessageSendEventSendChannelReestablish(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_announcement")] public static extern long MessageSendEvent_send_channel_announcement(long _node_id, long _msg, long _update_msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_announcement")] public static extern long MessageSendEventSendChannelAnnouncement(long _node_id, long _msg, long _update_msg); // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_channel_announcement")] public static extern long MessageSendEvent_broadcast_channel_announcement(long _msg, long _update_msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_channel_announcement")] public static extern long MessageSendEventBroadcastChannelAnnouncement(long _msg, long _update_msg); // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_channel_update")] public static extern long MessageSendEvent_broadcast_channel_update(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_channel_update")] public static extern long MessageSendEventBroadcastChannelUpdate(long _msg); // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_node_announcement")] public static extern long MessageSendEvent_broadcast_node_announcement(long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_broadcast_node_announcement")] public static extern long MessageSendEventBroadcastNodeAnnouncement(long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_update")] public static extern long MessageSendEvent_send_channel_update(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_update")] public static extern long MessageSendEventSendChannelUpdate(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_handle_error")] public static extern long MessageSendEvent_handle_error(long _node_id, long _action); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_handle_error")] public static extern long MessageSendEventHandleError(long _node_id, long _action); // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_range_query")] public static extern long MessageSendEvent_send_channel_range_query(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_channel_range_query")] public static extern long MessageSendEventSendChannelRangeQuery(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_short_ids_query")] public static extern long MessageSendEvent_send_short_ids_query(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_short_ids_query")] public static extern long MessageSendEventSendShortIdsQuery(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_reply_channel_range")] public static extern long MessageSendEvent_send_reply_channel_range(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_reply_channel_range")] public static extern long MessageSendEventSendReplyChannelRange(long _node_id, long _msg); // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_gossip_timestamp_filter")] public static extern long MessageSendEvent_send_gossip_timestamp_filter(long _node_id, long _msg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEvent_send_gossip_timestamp_filter")] public static extern long MessageSendEventSendGossipTimestampFilter(long _node_id, long _msg); // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEventsProvider_free")] public static extern void MessageSendEventsProvider_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MessageSendEventsProvider_free")] public static extern void MessageSendEventsProviderFree(long _this_ptr); // void EventsProvider_free(struct LDKEventsProvider this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventsProvider_free")] public static extern void EventsProvider_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventsProvider_free")] public static extern void EventsProviderFree(long _this_ptr); // void EventHandler_free(struct LDKEventHandler this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventHandler_free")] public static extern void EventHandler_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_EventHandler_free")] public static extern void EventHandlerFree(long _this_ptr); // void AnchorDescriptor_free(struct LDKAnchorDescriptor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_free")] public static extern void AnchorDescriptor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_free")] public static extern void AnchorDescriptorFree(long _this_obj); // struct LDKChannelDerivationParameters AnchorDescriptor_get_channel_derivation_parameters(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_get_channel_derivation_parameters")] public static extern long AnchorDescriptor_get_channel_derivation_parameters(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_get_channel_derivation_parameters")] public static extern long AnchorDescriptorGetChannelDerivationParameters(long _this_ptr); // void AnchorDescriptor_set_channel_derivation_parameters(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_set_channel_derivation_parameters")] public static extern void AnchorDescriptor_set_channel_derivation_parameters(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_set_channel_derivation_parameters")] public static extern void AnchorDescriptorSetChannelDerivationParameters(long _this_ptr, long _val); // struct LDKOutPoint AnchorDescriptor_get_outpoint(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_get_outpoint")] public static extern long AnchorDescriptor_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_get_outpoint")] public static extern long AnchorDescriptorGetOutpoint(long _this_ptr); // void AnchorDescriptor_set_outpoint(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_set_outpoint")] public static extern void AnchorDescriptor_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_set_outpoint")] public static extern void AnchorDescriptorSetOutpoint(long _this_ptr, long _val); // MUST_USE_RES struct LDKAnchorDescriptor AnchorDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKOutPoint outpoint_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_new")] public static extern long AnchorDescriptor_new(long _channel_derivation_parameters_arg, long _outpoint_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_new")] public static extern long AnchorDescriptorNew(long _channel_derivation_parameters_arg, long _outpoint_arg); // uint64_t AnchorDescriptor_clone_ptr(LDKAnchorDescriptor *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_clone_ptr")] public static extern long AnchorDescriptor_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_clone_ptr")] public static extern long AnchorDescriptorClonePtr(long _arg); // struct LDKAnchorDescriptor AnchorDescriptor_clone(const struct LDKAnchorDescriptor *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_clone")] public static extern long AnchorDescriptor_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_clone")] public static extern long AnchorDescriptorClone(long _orig); // bool AnchorDescriptor_eq(const struct LDKAnchorDescriptor *NONNULL_PTR a, const struct LDKAnchorDescriptor *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_eq")] public static extern bool AnchorDescriptor_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_eq")] public static extern bool AnchorDescriptorEq(long _a, long _b); // MUST_USE_RES struct LDKTxOut AnchorDescriptor_previous_utxo(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_previous_utxo")] public static extern long AnchorDescriptor_previous_utxo(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_previous_utxo")] public static extern long AnchorDescriptorPreviousUtxo(long _this_arg); // MUST_USE_RES struct LDKTxIn AnchorDescriptor_unsigned_tx_input(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_unsigned_tx_input")] public static extern long AnchorDescriptor_unsigned_tx_input(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_unsigned_tx_input")] public static extern long AnchorDescriptorUnsignedTxInput(long _this_arg); // MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_witness_script")] public static extern long AnchorDescriptor_witness_script(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_witness_script")] public static extern long AnchorDescriptorWitnessScript(long _this_arg); // MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_tx_input_witness")] public static extern long AnchorDescriptor_tx_input_witness(long _this_arg, long _signature); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_tx_input_witness")] public static extern long AnchorDescriptorTxInputWitness(long _this_arg, long _signature); // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner AnchorDescriptor_derive_channel_signer(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_derive_channel_signer")] public static extern long AnchorDescriptor_derive_channel_signer(long _this_arg, long _signer_provider); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_AnchorDescriptor_derive_channel_signer")] public static extern long AnchorDescriptorDeriveChannelSigner(long _this_arg, long _signer_provider); // void BumpTransactionEvent_free(struct LDKBumpTransactionEvent this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_free")] public static extern void BumpTransactionEvent_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_free")] public static extern void BumpTransactionEventFree(long _this_ptr); // uint64_t BumpTransactionEvent_clone_ptr(LDKBumpTransactionEvent *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_clone_ptr")] public static extern long BumpTransactionEvent_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_clone_ptr")] public static extern long BumpTransactionEventClonePtr(long _arg); // struct LDKBumpTransactionEvent BumpTransactionEvent_clone(const struct LDKBumpTransactionEvent *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_clone")] public static extern long BumpTransactionEvent_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_clone")] public static extern long BumpTransactionEventClone(long _orig); // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKThirtyTwoBytes claim_id, uint32_t package_target_feerate_sat_per_1000_weight, struct LDKTransaction commitment_tx, uint64_t commitment_tx_fee_satoshis, struct LDKAnchorDescriptor anchor_descriptor, struct LDKCVec_HTLCOutputInCommitmentZ pending_htlcs); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_channel_close")] public static extern long BumpTransactionEvent_channel_close(long _claim_id, int _package_target_feerate_sat_per_1000_weight, long _commitment_tx, long _commitment_tx_fee_satoshis, long _anchor_descriptor, long _pending_htlcs); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_channel_close")] public static extern long BumpTransactionEventChannelClose(long _claim_id, int _package_target_feerate_sat_per_1000_weight, long _commitment_tx, long _commitment_tx_fee_satoshis, long _anchor_descriptor, long _pending_htlcs); // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_htlcresolution")] public static extern long BumpTransactionEvent_htlcresolution(long _claim_id, int _target_feerate_sat_per_1000_weight, long _htlc_descriptors, int _tx_lock_time); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_htlcresolution")] public static extern long BumpTransactionEventHtlcresolution(long _claim_id, int _target_feerate_sat_per_1000_weight, long _htlc_descriptors, int _tx_lock_time); // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_eq")] public static extern bool BumpTransactionEvent_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEvent_eq")] public static extern bool BumpTransactionEventEq(long _a, long _b); // void Input_free(struct LDKInput this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_free")] public static extern void Input_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_free")] public static extern void InputFree(long _this_obj); // struct LDKOutPoint Input_get_outpoint(const struct LDKInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_outpoint")] public static extern long Input_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_outpoint")] public static extern long InputGetOutpoint(long _this_ptr); // void Input_set_outpoint(struct LDKInput *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_outpoint")] public static extern void Input_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_outpoint")] public static extern void InputSetOutpoint(long _this_ptr, long _val); // struct LDKTxOut Input_get_previous_utxo(const struct LDKInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_previous_utxo")] public static extern long Input_get_previous_utxo(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_previous_utxo")] public static extern long InputGetPreviousUtxo(long _this_ptr); // void Input_set_previous_utxo(struct LDKInput *NONNULL_PTR this_ptr, struct LDKTxOut val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_previous_utxo")] public static extern void Input_set_previous_utxo(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_previous_utxo")] public static extern void InputSetPreviousUtxo(long _this_ptr, long _val); // uint64_t Input_get_satisfaction_weight(const struct LDKInput *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_satisfaction_weight")] public static extern long Input_get_satisfaction_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_get_satisfaction_weight")] public static extern long InputGetSatisfactionWeight(long _this_ptr); // void Input_set_satisfaction_weight(struct LDKInput *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_satisfaction_weight")] public static extern void Input_set_satisfaction_weight(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_set_satisfaction_weight")] public static extern void InputSetSatisfactionWeight(long _this_ptr, long _val); // MUST_USE_RES struct LDKInput Input_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut previous_utxo_arg, uint64_t satisfaction_weight_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_new")] public static extern long Input_new(long _outpoint_arg, long _previous_utxo_arg, long _satisfaction_weight_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_new")] public static extern long InputNew(long _outpoint_arg, long _previous_utxo_arg, long _satisfaction_weight_arg); // uint64_t Input_clone_ptr(LDKInput *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_clone_ptr")] public static extern long Input_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_clone_ptr")] public static extern long InputClonePtr(long _arg); // struct LDKInput Input_clone(const struct LDKInput *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_clone")] public static extern long Input_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_clone")] public static extern long InputClone(long _orig); // uint64_t Input_hash(const struct LDKInput *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_hash")] public static extern long Input_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_hash")] public static extern long InputHash(long _o); // bool Input_eq(const struct LDKInput *NONNULL_PTR a, const struct LDKInput *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_eq")] public static extern bool Input_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Input_eq")] public static extern bool InputEq(long _a, long _b); // void Utxo_free(struct LDKUtxo this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_free")] public static extern void Utxo_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_free")] public static extern void UtxoFree(long _this_obj); // struct LDKOutPoint Utxo_get_outpoint(const struct LDKUtxo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_outpoint")] public static extern long Utxo_get_outpoint(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_outpoint")] public static extern long UtxoGetOutpoint(long _this_ptr); // void Utxo_set_outpoint(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKOutPoint val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_outpoint")] public static extern void Utxo_set_outpoint(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_outpoint")] public static extern void UtxoSetOutpoint(long _this_ptr, long _val); // struct LDKTxOut Utxo_get_output(const struct LDKUtxo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_output")] public static extern long Utxo_get_output(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_output")] public static extern long UtxoGetOutput(long _this_ptr); // void Utxo_set_output(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKTxOut val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_output")] public static extern void Utxo_set_output(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_output")] public static extern void UtxoSetOutput(long _this_ptr, long _val); // uint64_t Utxo_get_satisfaction_weight(const struct LDKUtxo *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_satisfaction_weight")] public static extern long Utxo_get_satisfaction_weight(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_get_satisfaction_weight")] public static extern long UtxoGetSatisfactionWeight(long _this_ptr); // void Utxo_set_satisfaction_weight(struct LDKUtxo *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_satisfaction_weight")] public static extern void Utxo_set_satisfaction_weight(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_set_satisfaction_weight")] public static extern void UtxoSetSatisfactionWeight(long _this_ptr, long _val); // MUST_USE_RES struct LDKUtxo Utxo_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, uint64_t satisfaction_weight_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_new")] public static extern long Utxo_new(long _outpoint_arg, long _output_arg, long _satisfaction_weight_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_new")] public static extern long UtxoNew(long _outpoint_arg, long _output_arg, long _satisfaction_weight_arg); // uint64_t Utxo_clone_ptr(LDKUtxo *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_clone_ptr")] public static extern long Utxo_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_clone_ptr")] public static extern long UtxoClonePtr(long _arg); // struct LDKUtxo Utxo_clone(const struct LDKUtxo *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_clone")] public static extern long Utxo_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_clone")] public static extern long UtxoClone(long _orig); // uint64_t Utxo_hash(const struct LDKUtxo *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_hash")] public static extern long Utxo_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_hash")] public static extern long UtxoHash(long _o); // bool Utxo_eq(const struct LDKUtxo *NONNULL_PTR a, const struct LDKUtxo *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_eq")] public static extern bool Utxo_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_eq")] public static extern bool UtxoEq(long _a, long _b); // MUST_USE_RES struct LDKUtxo Utxo_new_p2pkh(struct LDKOutPoint outpoint, uint64_t value, const uint8_t (*pubkey_hash)[20]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_new_p2pkh")] public static extern long Utxo_new_p2pkh(long _outpoint, long _value, long _pubkey_hash); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Utxo_new_p2pkh")] public static extern long UtxoNewP2Pkh(long _outpoint, long _value, long _pubkey_hash); // void CoinSelection_free(struct LDKCoinSelection this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_free")] public static extern void CoinSelection_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_free")] public static extern void CoinSelectionFree(long _this_obj); // struct LDKCVec_UtxoZ CoinSelection_get_confirmed_utxos(const struct LDKCoinSelection *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_get_confirmed_utxos")] public static extern long CoinSelection_get_confirmed_utxos(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_get_confirmed_utxos")] public static extern long CoinSelectionGetConfirmedUtxos(long _this_ptr); // void CoinSelection_set_confirmed_utxos(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCVec_UtxoZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_set_confirmed_utxos")] public static extern void CoinSelection_set_confirmed_utxos(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_set_confirmed_utxos")] public static extern void CoinSelectionSetConfirmedUtxos(long _this_ptr, long _val); // struct LDKCOption_TxOutZ CoinSelection_get_change_output(const struct LDKCoinSelection *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_get_change_output")] public static extern long CoinSelection_get_change_output(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_get_change_output")] public static extern long CoinSelectionGetChangeOutput(long _this_ptr); // void CoinSelection_set_change_output(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCOption_TxOutZ val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_set_change_output")] public static extern void CoinSelection_set_change_output(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_set_change_output")] public static extern void CoinSelectionSetChangeOutput(long _this_ptr, long _val); // MUST_USE_RES struct LDKCoinSelection CoinSelection_new(struct LDKCVec_UtxoZ confirmed_utxos_arg, struct LDKCOption_TxOutZ change_output_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_new")] public static extern long CoinSelection_new(long _confirmed_utxos_arg, long _change_output_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_new")] public static extern long CoinSelectionNew(long _confirmed_utxos_arg, long _change_output_arg); // uint64_t CoinSelection_clone_ptr(LDKCoinSelection *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_clone_ptr")] public static extern long CoinSelection_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_clone_ptr")] public static extern long CoinSelectionClonePtr(long _arg); // struct LDKCoinSelection CoinSelection_clone(const struct LDKCoinSelection *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_clone")] public static extern long CoinSelection_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelection_clone")] public static extern long CoinSelectionClone(long _orig); // void CoinSelectionSource_free(struct LDKCoinSelectionSource this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_free")] public static extern void CoinSelectionSource_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CoinSelectionSource_free")] public static extern void CoinSelectionSourceFree(long _this_ptr); // void WalletSource_free(struct LDKWalletSource this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_free")] public static extern void WalletSource_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_WalletSource_free")] public static extern void WalletSourceFree(long _this_ptr); // void Wallet_free(struct LDKWallet this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_free")] public static extern void Wallet_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_free")] public static extern void WalletFree(long _this_obj); // MUST_USE_RES struct LDKWallet Wallet_new(struct LDKWalletSource source, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_new")] public static extern long Wallet_new(long _source, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_new")] public static extern long WalletNew(long _source, long _logger); // struct LDKCoinSelectionSource Wallet_as_CoinSelectionSource(const struct LDKWallet *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_as_CoinSelectionSource")] public static extern long Wallet_as_CoinSelectionSource(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Wallet_as_CoinSelectionSource")] public static extern long WalletAsCoinSelectionSource(long _this_arg); // void BumpTransactionEventHandler_free(struct LDKBumpTransactionEventHandler this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_free")] public static extern void BumpTransactionEventHandler_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_free")] public static extern void BumpTransactionEventHandlerFree(long _this_obj); // MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_new(struct LDKBroadcasterInterface broadcaster, struct LDKCoinSelectionSource utxo_source, struct LDKSignerProvider signer_provider, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_new")] public static extern long BumpTransactionEventHandler_new(long _broadcaster, long _utxo_source, long _signer_provider, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_new")] public static extern long BumpTransactionEventHandlerNew(long _broadcaster, long _utxo_source, long _signer_provider, long _logger); // void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_handle_event")] public static extern void BumpTransactionEventHandler_handle_event(long _this_arg, long _event); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BumpTransactionEventHandler_handle_event")] public static extern void BumpTransactionEventHandlerHandleEvent(long _this_arg, long _event); // void FilesystemStore_free(struct LDKFilesystemStore this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_free")] public static extern void FilesystemStore_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_free")] public static extern void FilesystemStoreFree(long _this_obj); // MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_new")] public static extern long FilesystemStore_new(long _data_dir); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_new")] public static extern long FilesystemStoreNew(long _data_dir); // MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_get_data_dir")] public static extern long FilesystemStore_get_data_dir(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_get_data_dir")] public static extern long FilesystemStoreGetDataDir(long _this_arg); // struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_as_KVStore")] public static extern long FilesystemStore_as_KVStore(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_FilesystemStore_as_KVStore")] public static extern long FilesystemStoreAsKVStore(long _this_arg); // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_free")] public static extern void BackgroundProcessor_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_free")] public static extern void BackgroundProcessorFree(long _this_obj); // void GossipSync_free(struct LDKGossipSync this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_free")] public static extern void GossipSync_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_free")] public static extern void GossipSyncFree(long _this_ptr); // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_p2_p")] public static extern long GossipSync_p2_p(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_p2_p")] public static extern long GossipSyncP2P(long _a); // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_rapid")] public static extern long GossipSync_rapid(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_rapid")] public static extern long GossipSyncRapid(long _a); // struct LDKGossipSync GossipSync_none(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_none")] public static extern long GossipSync_none(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GossipSync_none")] public static extern long GossipSyncNone(); // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, struct LDKGossipSync gossip_sync, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger, struct LDKCOption_WriteableScoreZ scorer); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_start")] public static extern long BackgroundProcessor_start(long _persister, long _event_handler, long _chain_monitor, long _channel_manager, long _gossip_sync, long _peer_manager, long _logger, long _scorer); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_start")] public static extern long BackgroundProcessorStart(long _persister, long _event_handler, long _chain_monitor, long _channel_manager, long _gossip_sync, long _peer_manager, long _logger, long _scorer); // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_join")] public static extern long BackgroundProcessor_join(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_join")] public static extern long BackgroundProcessorJoin(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_stop")] public static extern long BackgroundProcessor_stop(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_BackgroundProcessor_stop")] public static extern long BackgroundProcessorStop(long _this_arg); // void Bolt11ParseError_free(struct LDKBolt11ParseError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_free")] public static extern void Bolt11ParseError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_free")] public static extern void Bolt11ParseErrorFree(long _this_ptr); // uint64_t Bolt11ParseError_clone_ptr(LDKBolt11ParseError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_clone_ptr")] public static extern long Bolt11ParseError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_clone_ptr")] public static extern long Bolt11ParseErrorClonePtr(long _arg); // struct LDKBolt11ParseError Bolt11ParseError_clone(const struct LDKBolt11ParseError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_clone")] public static extern long Bolt11ParseError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_clone")] public static extern long Bolt11ParseErrorClone(long _orig); // struct LDKBolt11ParseError Bolt11ParseError_bech32_error(struct LDKBech32Error a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_bech32_error")] public static extern long Bolt11ParseError_bech32_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_bech32_error")] public static extern long Bolt11ParseErrorBech32Error(long _a); // struct LDKBolt11ParseError Bolt11ParseError_parse_amount_error(struct LDKError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_parse_amount_error")] public static extern long Bolt11ParseError_parse_amount_error(int _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_parse_amount_error")] public static extern long Bolt11ParseErrorParseAmountError(int _a); // struct LDKBolt11ParseError Bolt11ParseError_malformed_signature(enum LDKSecp256k1Error a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_malformed_signature")] public static extern long Bolt11ParseError_malformed_signature(Secp256k1Error _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_malformed_signature")] public static extern long Bolt11ParseErrorMalformedSignature(Secp256k1Error _a); // struct LDKBolt11ParseError Bolt11ParseError_bad_prefix(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_bad_prefix")] public static extern long Bolt11ParseError_bad_prefix(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_bad_prefix")] public static extern long Bolt11ParseErrorBadPrefix(); // struct LDKBolt11ParseError Bolt11ParseError_unknown_currency(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unknown_currency")] public static extern long Bolt11ParseError_unknown_currency(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unknown_currency")] public static extern long Bolt11ParseErrorUnknownCurrency(); // struct LDKBolt11ParseError Bolt11ParseError_unknown_si_prefix(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unknown_si_prefix")] public static extern long Bolt11ParseError_unknown_si_prefix(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unknown_si_prefix")] public static extern long Bolt11ParseErrorUnknownSiPrefix(); // struct LDKBolt11ParseError Bolt11ParseError_malformed_hrp(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_malformed_hrp")] public static extern long Bolt11ParseError_malformed_hrp(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_malformed_hrp")] public static extern long Bolt11ParseErrorMalformedHrp(); // struct LDKBolt11ParseError Bolt11ParseError_too_short_data_part(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_too_short_data_part")] public static extern long Bolt11ParseError_too_short_data_part(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_too_short_data_part")] public static extern long Bolt11ParseErrorTooShortDataPart(); // struct LDKBolt11ParseError Bolt11ParseError_unexpected_end_of_tagged_fields(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unexpected_end_of_tagged_fields")] public static extern long Bolt11ParseError_unexpected_end_of_tagged_fields(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_unexpected_end_of_tagged_fields")] public static extern long Bolt11ParseErrorUnexpectedEndOfTaggedFields(); // struct LDKBolt11ParseError Bolt11ParseError_description_decode_error(struct LDKError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_description_decode_error")] public static extern long Bolt11ParseError_description_decode_error(int _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_description_decode_error")] public static extern long Bolt11ParseErrorDescriptionDecodeError(int _a); // struct LDKBolt11ParseError Bolt11ParseError_padding_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_padding_error")] public static extern long Bolt11ParseError_padding_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_padding_error")] public static extern long Bolt11ParseErrorPaddingError(); // struct LDKBolt11ParseError Bolt11ParseError_integer_overflow_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_integer_overflow_error")] public static extern long Bolt11ParseError_integer_overflow_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_integer_overflow_error")] public static extern long Bolt11ParseErrorIntegerOverflowError(); // struct LDKBolt11ParseError Bolt11ParseError_invalid_seg_wit_program_length(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_seg_wit_program_length")] public static extern long Bolt11ParseError_invalid_seg_wit_program_length(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_seg_wit_program_length")] public static extern long Bolt11ParseErrorInvalidSegWitProgramLength(); // struct LDKBolt11ParseError Bolt11ParseError_invalid_pub_key_hash_length(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_pub_key_hash_length")] public static extern long Bolt11ParseError_invalid_pub_key_hash_length(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_pub_key_hash_length")] public static extern long Bolt11ParseErrorInvalidPubKeyHashLength(); // struct LDKBolt11ParseError Bolt11ParseError_invalid_script_hash_length(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_script_hash_length")] public static extern long Bolt11ParseError_invalid_script_hash_length(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_script_hash_length")] public static extern long Bolt11ParseErrorInvalidScriptHashLength(); // struct LDKBolt11ParseError Bolt11ParseError_invalid_recovery_id(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_recovery_id")] public static extern long Bolt11ParseError_invalid_recovery_id(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_recovery_id")] public static extern long Bolt11ParseErrorInvalidRecoveryId(); // struct LDKBolt11ParseError Bolt11ParseError_invalid_slice_length(struct LDKStr a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_slice_length")] public static extern long Bolt11ParseError_invalid_slice_length(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_invalid_slice_length")] public static extern long Bolt11ParseErrorInvalidSliceLength(long _a); // struct LDKBolt11ParseError Bolt11ParseError_skip(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_skip")] public static extern long Bolt11ParseError_skip(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_skip")] public static extern long Bolt11ParseErrorSkip(); // bool Bolt11ParseError_eq(const struct LDKBolt11ParseError *NONNULL_PTR a, const struct LDKBolt11ParseError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_eq")] public static extern bool Bolt11ParseError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_eq")] public static extern bool Bolt11ParseErrorEq(long _a, long _b); // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_free")] public static extern void ParseOrSemanticError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_free")] public static extern void ParseOrSemanticErrorFree(long _this_ptr); // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_clone_ptr")] public static extern long ParseOrSemanticError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_clone_ptr")] public static extern long ParseOrSemanticErrorClonePtr(long _arg); // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_clone")] public static extern long ParseOrSemanticError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_clone")] public static extern long ParseOrSemanticErrorClone(long _orig); // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKBolt11ParseError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_parse_error")] public static extern long ParseOrSemanticError_parse_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_parse_error")] public static extern long ParseOrSemanticErrorParseError(long _a); // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKBolt11SemanticError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_semantic_error")] public static extern long ParseOrSemanticError_semantic_error(Bolt11SemanticError _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_semantic_error")] public static extern long ParseOrSemanticErrorSemanticError(Bolt11SemanticError _a); // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_eq")] public static extern bool ParseOrSemanticError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_eq")] public static extern bool ParseOrSemanticErrorEq(long _a, long _b); // void Bolt11Invoice_free(struct LDKBolt11Invoice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_free")] public static extern void Bolt11Invoice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_free")] public static extern void Bolt11InvoiceFree(long _this_obj); // bool Bolt11Invoice_eq(const struct LDKBolt11Invoice *NONNULL_PTR a, const struct LDKBolt11Invoice *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_eq")] public static extern bool Bolt11Invoice_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_eq")] public static extern bool Bolt11InvoiceEq(long _a, long _b); // uint64_t Bolt11Invoice_clone_ptr(LDKBolt11Invoice *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_clone_ptr")] public static extern long Bolt11Invoice_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_clone_ptr")] public static extern long Bolt11InvoiceClonePtr(long _arg); // struct LDKBolt11Invoice Bolt11Invoice_clone(const struct LDKBolt11Invoice *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_clone")] public static extern long Bolt11Invoice_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_clone")] public static extern long Bolt11InvoiceClone(long _orig); // uint64_t Bolt11Invoice_hash(const struct LDKBolt11Invoice *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_hash")] public static extern long Bolt11Invoice_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_hash")] public static extern long Bolt11InvoiceHash(long _o); // void SignedRawBolt11Invoice_free(struct LDKSignedRawBolt11Invoice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_free")] public static extern void SignedRawBolt11Invoice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_free")] public static extern void SignedRawBolt11InvoiceFree(long _this_obj); // bool SignedRawBolt11Invoice_eq(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR a, const struct LDKSignedRawBolt11Invoice *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_eq")] public static extern bool SignedRawBolt11Invoice_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_eq")] public static extern bool SignedRawBolt11InvoiceEq(long _a, long _b); // uint64_t SignedRawBolt11Invoice_clone_ptr(LDKSignedRawBolt11Invoice *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_clone_ptr")] public static extern long SignedRawBolt11Invoice_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_clone_ptr")] public static extern long SignedRawBolt11InvoiceClonePtr(long _arg); // struct LDKSignedRawBolt11Invoice SignedRawBolt11Invoice_clone(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_clone")] public static extern long SignedRawBolt11Invoice_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_clone")] public static extern long SignedRawBolt11InvoiceClone(long _orig); // uint64_t SignedRawBolt11Invoice_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_hash")] public static extern long SignedRawBolt11Invoice_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_hash")] public static extern long SignedRawBolt11InvoiceHash(long _o); // void RawBolt11Invoice_free(struct LDKRawBolt11Invoice this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_free")] public static extern void RawBolt11Invoice_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_free")] public static extern void RawBolt11InvoiceFree(long _this_obj); // struct LDKRawDataPart RawBolt11Invoice_get_data(const struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_get_data")] public static extern long RawBolt11Invoice_get_data(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_get_data")] public static extern long RawBolt11InvoiceGetData(long _this_ptr); // void RawBolt11Invoice_set_data(struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_set_data")] public static extern void RawBolt11Invoice_set_data(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_set_data")] public static extern void RawBolt11InvoiceSetData(long _this_ptr, long _val); // bool RawBolt11Invoice_eq(const struct LDKRawBolt11Invoice *NONNULL_PTR a, const struct LDKRawBolt11Invoice *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_eq")] public static extern bool RawBolt11Invoice_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_eq")] public static extern bool RawBolt11InvoiceEq(long _a, long _b); // uint64_t RawBolt11Invoice_clone_ptr(LDKRawBolt11Invoice *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_clone_ptr")] public static extern long RawBolt11Invoice_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_clone_ptr")] public static extern long RawBolt11InvoiceClonePtr(long _arg); // struct LDKRawBolt11Invoice RawBolt11Invoice_clone(const struct LDKRawBolt11Invoice *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_clone")] public static extern long RawBolt11Invoice_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_clone")] public static extern long RawBolt11InvoiceClone(long _orig); // uint64_t RawBolt11Invoice_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_hash")] public static extern long RawBolt11Invoice_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_hash")] public static extern long RawBolt11InvoiceHash(long _o); // void RawDataPart_free(struct LDKRawDataPart this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_free")] public static extern void RawDataPart_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_free")] public static extern void RawDataPartFree(long _this_obj); // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_get_timestamp")] public static extern long RawDataPart_get_timestamp(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_get_timestamp")] public static extern long RawDataPartGetTimestamp(long _this_ptr); // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_set_timestamp")] public static extern void RawDataPart_set_timestamp(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_set_timestamp")] public static extern void RawDataPartSetTimestamp(long _this_ptr, long _val); // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_eq")] public static extern bool RawDataPart_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_eq")] public static extern bool RawDataPartEq(long _a, long _b); // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_clone_ptr")] public static extern long RawDataPart_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_clone_ptr")] public static extern long RawDataPartClonePtr(long _arg); // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_clone")] public static extern long RawDataPart_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_clone")] public static extern long RawDataPartClone(long _orig); // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_hash")] public static extern long RawDataPart_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawDataPart_hash")] public static extern long RawDataPartHash(long _o); // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_free")] public static extern void PositiveTimestamp_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_free")] public static extern void PositiveTimestampFree(long _this_obj); // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_eq")] public static extern bool PositiveTimestamp_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_eq")] public static extern bool PositiveTimestampEq(long _a, long _b); // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_clone_ptr")] public static extern long PositiveTimestamp_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_clone_ptr")] public static extern long PositiveTimestampClonePtr(long _arg); // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_clone")] public static extern long PositiveTimestamp_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_clone")] public static extern long PositiveTimestampClone(long _orig); // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_hash")] public static extern long PositiveTimestamp_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_hash")] public static extern long PositiveTimestampHash(long _o); // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_clone")] public static extern SiPrefix SiPrefix_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_clone")] public static extern SiPrefix SiPrefixClone(long _orig); // enum LDKSiPrefix SiPrefix_milli(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_milli")] public static extern SiPrefix SiPrefix_milli(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_milli")] public static extern SiPrefix SiPrefixMilli(); // enum LDKSiPrefix SiPrefix_micro(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_micro")] public static extern SiPrefix SiPrefix_micro(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_micro")] public static extern SiPrefix SiPrefixMicro(); // enum LDKSiPrefix SiPrefix_nano(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_nano")] public static extern SiPrefix SiPrefix_nano(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_nano")] public static extern SiPrefix SiPrefixNano(); // enum LDKSiPrefix SiPrefix_pico(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_pico")] public static extern SiPrefix SiPrefix_pico(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_pico")] public static extern SiPrefix SiPrefixPico(); // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_eq")] public static extern bool SiPrefix_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_eq")] public static extern bool SiPrefixEq(long _a, long _b); // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_hash")] public static extern long SiPrefix_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_hash")] public static extern long SiPrefixHash(long _o); // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_multiplier")] public static extern long SiPrefix_multiplier(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_multiplier")] public static extern long SiPrefixMultiplier(long _this_arg); // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_clone")] public static extern Currency Currency_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_clone")] public static extern Currency CurrencyClone(long _orig); // enum LDKCurrency Currency_bitcoin(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_bitcoin")] public static extern Currency Currency_bitcoin(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_bitcoin")] public static extern Currency CurrencyBitcoin(); // enum LDKCurrency Currency_bitcoin_testnet(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_bitcoin_testnet")] public static extern Currency Currency_bitcoin_testnet(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_bitcoin_testnet")] public static extern Currency CurrencyBitcoinTestnet(); // enum LDKCurrency Currency_regtest(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_regtest")] public static extern Currency Currency_regtest(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_regtest")] public static extern Currency CurrencyRegtest(); // enum LDKCurrency Currency_simnet(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_simnet")] public static extern Currency Currency_simnet(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_simnet")] public static extern Currency CurrencySimnet(); // enum LDKCurrency Currency_signet(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_signet")] public static extern Currency Currency_signet(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_signet")] public static extern Currency CurrencySignet(); // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_hash")] public static extern long Currency_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_hash")] public static extern long CurrencyHash(long _o); // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_eq")] public static extern bool Currency_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_eq")] public static extern bool CurrencyEq(long _a, long _b); // void Sha256_free(struct LDKSha256 this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_free")] public static extern void Sha256_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_free")] public static extern void Sha256Free(long _this_obj); // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_clone_ptr")] public static extern long Sha256_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_clone_ptr")] public static extern long Sha256ClonePtr(long _arg); // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_clone")] public static extern long Sha256_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_clone")] public static extern long Sha256Clone(long _orig); // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_hash")] public static extern long Sha256_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_hash")] public static extern long Sha256Hash(long _o); // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_eq")] public static extern bool Sha256_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_eq")] public static extern bool Sha256Eq(long _a, long _b); // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_from_bytes")] public static extern long Sha256_from_bytes(long _bytes); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Sha256_from_bytes")] public static extern long Sha256FromBytes(long _bytes); // void Description_free(struct LDKDescription this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_free")] public static extern void Description_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_free")] public static extern void DescriptionFree(long _this_obj); // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_clone_ptr")] public static extern long Description_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_clone_ptr")] public static extern long DescriptionClonePtr(long _arg); // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_clone")] public static extern long Description_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_clone")] public static extern long DescriptionClone(long _orig); // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_hash")] public static extern long Description_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_hash")] public static extern long DescriptionHash(long _o); // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_eq")] public static extern bool Description_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_eq")] public static extern bool DescriptionEq(long _a, long _b); // void PayeePubKey_free(struct LDKPayeePubKey this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_free")] public static extern void PayeePubKey_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_free")] public static extern void PayeePubKeyFree(long _this_obj); // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_get_a")] public static extern long PayeePubKey_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_get_a")] public static extern long PayeePubKeyGetA(long _this_ptr); // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_set_a")] public static extern void PayeePubKey_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_set_a")] public static extern void PayeePubKeySetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_new")] public static extern long PayeePubKey_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_new")] public static extern long PayeePubKeyNew(long _a_arg); // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_clone_ptr")] public static extern long PayeePubKey_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_clone_ptr")] public static extern long PayeePubKeyClonePtr(long _arg); // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_clone")] public static extern long PayeePubKey_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_clone")] public static extern long PayeePubKeyClone(long _orig); // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_hash")] public static extern long PayeePubKey_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_hash")] public static extern long PayeePubKeyHash(long _o); // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_eq")] public static extern bool PayeePubKey_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PayeePubKey_eq")] public static extern bool PayeePubKeyEq(long _a, long _b); // void ExpiryTime_free(struct LDKExpiryTime this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_free")] public static extern void ExpiryTime_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_free")] public static extern void ExpiryTimeFree(long _this_obj); // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_clone_ptr")] public static extern long ExpiryTime_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_clone_ptr")] public static extern long ExpiryTimeClonePtr(long _arg); // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_clone")] public static extern long ExpiryTime_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_clone")] public static extern long ExpiryTimeClone(long _orig); // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_hash")] public static extern long ExpiryTime_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_hash")] public static extern long ExpiryTimeHash(long _o); // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_eq")] public static extern bool ExpiryTime_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_eq")] public static extern bool ExpiryTimeEq(long _a, long _b); // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_free")] public static extern void MinFinalCltvExpiryDelta_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_free")] public static extern void MinFinalCltvExpiryDeltaFree(long _this_obj); // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_get_a")] public static extern long MinFinalCltvExpiryDelta_get_a(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_get_a")] public static extern long MinFinalCltvExpiryDeltaGetA(long _this_ptr); // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_set_a")] public static extern void MinFinalCltvExpiryDelta_set_a(long _this_ptr, long _val); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_set_a")] public static extern void MinFinalCltvExpiryDeltaSetA(long _this_ptr, long _val); // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_new")] public static extern long MinFinalCltvExpiryDelta_new(long _a_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_new")] public static extern long MinFinalCltvExpiryDeltaNew(long _a_arg); // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_clone_ptr")] public static extern long MinFinalCltvExpiryDelta_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_clone_ptr")] public static extern long MinFinalCltvExpiryDeltaClonePtr(long _arg); // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_clone")] public static extern long MinFinalCltvExpiryDelta_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_clone")] public static extern long MinFinalCltvExpiryDeltaClone(long _orig); // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_hash")] public static extern long MinFinalCltvExpiryDelta_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_hash")] public static extern long MinFinalCltvExpiryDeltaHash(long _o); // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_eq")] public static extern bool MinFinalCltvExpiryDelta_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_MinFinalCltvExpiryDelta_eq")] public static extern bool MinFinalCltvExpiryDeltaEq(long _a, long _b); // void Fallback_free(struct LDKFallback this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_free")] public static extern void Fallback_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_free")] public static extern void FallbackFree(long _this_ptr); // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_clone_ptr")] public static extern long Fallback_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_clone_ptr")] public static extern long FallbackClonePtr(long _arg); // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_clone")] public static extern long Fallback_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_clone")] public static extern long FallbackClone(long _orig); // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_seg_wit_program")] public static extern long Fallback_seg_wit_program(byte _version, long _program); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_seg_wit_program")] public static extern long FallbackSegWitProgram(byte _version, long _program); // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_pub_key_hash")] public static extern long Fallback_pub_key_hash(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_pub_key_hash")] public static extern long FallbackPubKeyHash(long _a); // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_script_hash")] public static extern long Fallback_script_hash(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_script_hash")] public static extern long FallbackScriptHash(long _a); // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_hash")] public static extern long Fallback_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_hash")] public static extern long FallbackHash(long _o); // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_eq")] public static extern bool Fallback_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Fallback_eq")] public static extern bool FallbackEq(long _a, long _b); // void Bolt11InvoiceSignature_free(struct LDKBolt11InvoiceSignature this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_free")] public static extern void Bolt11InvoiceSignature_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_free")] public static extern void Bolt11InvoiceSignatureFree(long _this_obj); // uint64_t Bolt11InvoiceSignature_clone_ptr(LDKBolt11InvoiceSignature *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_clone_ptr")] public static extern long Bolt11InvoiceSignature_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_clone_ptr")] public static extern long Bolt11InvoiceSignatureClonePtr(long _arg); // struct LDKBolt11InvoiceSignature Bolt11InvoiceSignature_clone(const struct LDKBolt11InvoiceSignature *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_clone")] public static extern long Bolt11InvoiceSignature_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_clone")] public static extern long Bolt11InvoiceSignatureClone(long _orig); // uint64_t Bolt11InvoiceSignature_hash(const struct LDKBolt11InvoiceSignature *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_hash")] public static extern long Bolt11InvoiceSignature_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_hash")] public static extern long Bolt11InvoiceSignatureHash(long _o); // bool Bolt11InvoiceSignature_eq(const struct LDKBolt11InvoiceSignature *NONNULL_PTR a, const struct LDKBolt11InvoiceSignature *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_eq")] public static extern bool Bolt11InvoiceSignature_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11InvoiceSignature_eq")] public static extern bool Bolt11InvoiceSignatureEq(long _a, long _b); // void PrivateRoute_free(struct LDKPrivateRoute this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_free")] public static extern void PrivateRoute_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_free")] public static extern void PrivateRouteFree(long _this_obj); // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_clone_ptr")] public static extern long PrivateRoute_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_clone_ptr")] public static extern long PrivateRouteClonePtr(long _arg); // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_clone")] public static extern long PrivateRoute_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_clone")] public static extern long PrivateRouteClone(long _orig); // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_hash")] public static extern long PrivateRoute_hash(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_hash")] public static extern long PrivateRouteHash(long _o); // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_eq")] public static extern bool PrivateRoute_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_eq")] public static extern bool PrivateRouteEq(long _a, long _b); // MUST_USE_RES struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ SignedRawBolt11Invoice_into_parts(struct LDKSignedRawBolt11Invoice this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_into_parts")] public static extern long SignedRawBolt11Invoice_into_parts(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_into_parts")] public static extern long SignedRawBolt11InvoiceIntoParts(long _this_arg); // MUST_USE_RES struct LDKRawBolt11Invoice SignedRawBolt11Invoice_raw_invoice(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_raw_invoice")] public static extern long SignedRawBolt11Invoice_raw_invoice(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_raw_invoice")] public static extern long SignedRawBolt11InvoiceRawInvoice(long _this_arg); // MUST_USE_RES const uint8_t (*SignedRawBolt11Invoice_signable_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_signable_hash")] public static extern long SignedRawBolt11Invoice_signable_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_signable_hash")] public static extern long SignedRawBolt11InvoiceSignableHash(long _this_arg); // MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_signature")] public static extern long SignedRawBolt11Invoice_signature(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_signature")] public static extern long SignedRawBolt11InvoiceSignature(long _this_arg); // MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_recover_payee_pub_key")] public static extern long SignedRawBolt11Invoice_recover_payee_pub_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_recover_payee_pub_key")] public static extern long SignedRawBolt11InvoiceRecoverPayeePubKey(long _this_arg); // MUST_USE_RES bool SignedRawBolt11Invoice_check_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_check_signature")] public static extern bool SignedRawBolt11Invoice_check_signature(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_check_signature")] public static extern bool SignedRawBolt11InvoiceCheckSignature(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes RawBolt11Invoice_signable_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_signable_hash")] public static extern long RawBolt11Invoice_signable_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_signable_hash")] public static extern long RawBolt11InvoiceSignableHash(long _this_arg); // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_payment_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_hash")] public static extern long RawBolt11Invoice_payment_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_hash")] public static extern long RawBolt11InvoicePaymentHash(long _this_arg); // MUST_USE_RES struct LDKDescription RawBolt11Invoice_description(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_description")] public static extern long RawBolt11Invoice_description(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_description")] public static extern long RawBolt11InvoiceDescription(long _this_arg); // MUST_USE_RES struct LDKPayeePubKey RawBolt11Invoice_payee_pub_key(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payee_pub_key")] public static extern long RawBolt11Invoice_payee_pub_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payee_pub_key")] public static extern long RawBolt11InvoicePayeePubKey(long _this_arg); // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_description_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_description_hash")] public static extern long RawBolt11Invoice_description_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_description_hash")] public static extern long RawBolt11InvoiceDescriptionHash(long _this_arg); // MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_expiry_time")] public static extern long RawBolt11Invoice_expiry_time(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_expiry_time")] public static extern long RawBolt11InvoiceExpiryTime(long _this_arg); // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_min_final_cltv_expiry_delta")] public static extern long RawBolt11Invoice_min_final_cltv_expiry_delta(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_min_final_cltv_expiry_delta")] public static extern long RawBolt11InvoiceMinFinalCltvExpiryDelta(long _this_arg); // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_secret")] public static extern long RawBolt11Invoice_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_secret")] public static extern long RawBolt11InvoicePaymentSecret(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_metadata")] public static extern long RawBolt11Invoice_payment_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_payment_metadata")] public static extern long RawBolt11InvoicePaymentMetadata(long _this_arg); // MUST_USE_RES struct LDKBolt11InvoiceFeatures RawBolt11Invoice_features(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_features")] public static extern long RawBolt11Invoice_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_features")] public static extern long RawBolt11InvoiceFeatures(long _this_arg); // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawBolt11Invoice_private_routes(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_private_routes")] public static extern long RawBolt11Invoice_private_routes(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_private_routes")] public static extern long RawBolt11InvoicePrivateRoutes(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z RawBolt11Invoice_amount_pico_btc(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_amount_pico_btc")] public static extern long RawBolt11Invoice_amount_pico_btc(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_amount_pico_btc")] public static extern long RawBolt11InvoiceAmountPicoBtc(long _this_arg); // MUST_USE_RES enum LDKCurrency RawBolt11Invoice_currency(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_currency")] public static extern Currency RawBolt11Invoice_currency(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RawBolt11Invoice_currency")] public static extern Currency RawBolt11InvoiceCurrency(long _this_arg); // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_unix_timestamp")] public static extern long PositiveTimestamp_from_unix_timestamp(long _unix_seconds); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_unix_timestamp")] public static extern long PositiveTimestampFromUnixTimestamp(long _unix_seconds); // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_system_time")] public static extern long PositiveTimestamp_from_system_time(long _time); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_system_time")] public static extern long PositiveTimestampFromSystemTime(long _time); // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_duration_since_epoch")] public static extern long PositiveTimestamp_from_duration_since_epoch(long _duration); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_from_duration_since_epoch")] public static extern long PositiveTimestampFromDurationSinceEpoch(long _duration); // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_unix_timestamp")] public static extern long PositiveTimestamp_as_unix_timestamp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_unix_timestamp")] public static extern long PositiveTimestampAsUnixTimestamp(long _this_arg); // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_duration_since_epoch")] public static extern long PositiveTimestamp_as_duration_since_epoch(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_duration_since_epoch")] public static extern long PositiveTimestampAsDurationSinceEpoch(long _this_arg); // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_time")] public static extern long PositiveTimestamp_as_time(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PositiveTimestamp_as_time")] public static extern long PositiveTimestampAsTime(long _this_arg); // MUST_USE_RES struct LDKThirtyTwoBytes Bolt11Invoice_signable_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_signable_hash")] public static extern long Bolt11Invoice_signable_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_signable_hash")] public static extern long Bolt11InvoiceSignableHash(long _this_arg); // MUST_USE_RES struct LDKSignedRawBolt11Invoice Bolt11Invoice_into_signed_raw(struct LDKBolt11Invoice this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_into_signed_raw")] public static extern long Bolt11Invoice_into_signed_raw(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_into_signed_raw")] public static extern long Bolt11InvoiceIntoSignedRaw(long _this_arg); // MUST_USE_RES struct LDKCResult_NoneBolt11SemanticErrorZ Bolt11Invoice_check_signature(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_check_signature")] public static extern long Bolt11Invoice_check_signature(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_check_signature")] public static extern long Bolt11InvoiceCheckSignature(long _this_arg); // MUST_USE_RES struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ Bolt11Invoice_from_signed(struct LDKSignedRawBolt11Invoice signed_invoice); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_from_signed")] public static extern long Bolt11Invoice_from_signed(long _signed_invoice); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_from_signed")] public static extern long Bolt11InvoiceFromSigned(long _signed_invoice); // MUST_USE_RES uint64_t Bolt11Invoice_timestamp(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_timestamp")] public static extern long Bolt11Invoice_timestamp(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_timestamp")] public static extern long Bolt11InvoiceTimestamp(long _this_arg); // MUST_USE_RES uint64_t Bolt11Invoice_duration_since_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_duration_since_epoch")] public static extern long Bolt11Invoice_duration_since_epoch(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_duration_since_epoch")] public static extern long Bolt11InvoiceDurationSinceEpoch(long _this_arg); // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_hash")] public static extern long Bolt11Invoice_payment_hash(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_hash")] public static extern long Bolt11InvoicePaymentHash(long _this_arg); // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payee_pub_key")] public static extern long Bolt11Invoice_payee_pub_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payee_pub_key")] public static extern long Bolt11InvoicePayeePubKey(long _this_arg); // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_secret(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32]; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_secret")] public static extern long Bolt11Invoice_payment_secret(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_secret")] public static extern long Bolt11InvoicePaymentSecret(long _this_arg); // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt11Invoice_payment_metadata(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_metadata")] public static extern long Bolt11Invoice_payment_metadata(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_payment_metadata")] public static extern long Bolt11InvoicePaymentMetadata(long _this_arg); // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11Invoice_features(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_features")] public static extern long Bolt11Invoice_features(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_features")] public static extern long Bolt11InvoiceFeatures(long _this_arg); // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_recover_payee_pub_key")] public static extern long Bolt11Invoice_recover_payee_pub_key(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_recover_payee_pub_key")] public static extern long Bolt11InvoiceRecoverPayeePubKey(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expires_at")] public static extern long Bolt11Invoice_expires_at(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expires_at")] public static extern long Bolt11InvoiceExpiresAt(long _this_arg); // MUST_USE_RES uint64_t Bolt11Invoice_expiry_time(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expiry_time")] public static extern long Bolt11Invoice_expiry_time(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expiry_time")] public static extern long Bolt11InvoiceExpiryTime(long _this_arg); // MUST_USE_RES bool Bolt11Invoice_is_expired(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_is_expired")] public static extern bool Bolt11Invoice_is_expired(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_is_expired")] public static extern bool Bolt11InvoiceIsExpired(long _this_arg); // MUST_USE_RES uint64_t Bolt11Invoice_duration_until_expiry(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_duration_until_expiry")] public static extern long Bolt11Invoice_duration_until_expiry(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_duration_until_expiry")] public static extern long Bolt11InvoiceDurationUntilExpiry(long _this_arg); // MUST_USE_RES uint64_t Bolt11Invoice_expiration_remaining_from_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t time); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expiration_remaining_from_epoch")] public static extern long Bolt11Invoice_expiration_remaining_from_epoch(long _this_arg, long _time); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_expiration_remaining_from_epoch")] public static extern long Bolt11InvoiceExpirationRemainingFromEpoch(long _this_arg, long _time); // MUST_USE_RES bool Bolt11Invoice_would_expire(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t at_time); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_would_expire")] public static extern bool Bolt11Invoice_would_expire(long _this_arg, long _at_time); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_would_expire")] public static extern bool Bolt11InvoiceWouldExpire(long _this_arg, long _at_time); // MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_min_final_cltv_expiry_delta")] public static extern long Bolt11Invoice_min_final_cltv_expiry_delta(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_min_final_cltv_expiry_delta")] public static extern long Bolt11InvoiceMinFinalCltvExpiryDelta(long _this_arg); // MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_fallback_addresses")] public static extern long Bolt11Invoice_fallback_addresses(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_fallback_addresses")] public static extern long Bolt11InvoiceFallbackAddresses(long _this_arg); // MUST_USE_RES struct LDKCVec_PrivateRouteZ Bolt11Invoice_private_routes(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_private_routes")] public static extern long Bolt11Invoice_private_routes(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_private_routes")] public static extern long Bolt11InvoicePrivateRoutes(long _this_arg); // MUST_USE_RES struct LDKCVec_RouteHintZ Bolt11Invoice_route_hints(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_route_hints")] public static extern long Bolt11Invoice_route_hints(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_route_hints")] public static extern long Bolt11InvoiceRouteHints(long _this_arg); // MUST_USE_RES enum LDKCurrency Bolt11Invoice_currency(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_currency")] public static extern Currency Bolt11Invoice_currency(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_currency")] public static extern Currency Bolt11InvoiceCurrency(long _this_arg); // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_amount_milli_satoshis(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_amount_milli_satoshis")] public static extern long Bolt11Invoice_amount_milli_satoshis(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_amount_milli_satoshis")] public static extern long Bolt11InvoiceAmountMilliSatoshis(long _this_arg); // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_new")] public static extern long Description_new(long _description); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_new")] public static extern long DescriptionNew(long _description); // MUST_USE_RES struct LDKUntrustedString Description_into_inner(struct LDKDescription this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_into_inner")] public static extern long Description_into_inner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_into_inner")] public static extern long DescriptionIntoInner(long _this_arg); // struct LDKStr Description_to_str(const struct LDKDescription *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_to_str")] public static extern long Description_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Description_to_str")] public static extern long DescriptionToStr(long _o); // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_from_seconds")] public static extern long ExpiryTime_from_seconds(long _seconds); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_from_seconds")] public static extern long ExpiryTimeFromSeconds(long _seconds); // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_from_duration")] public static extern long ExpiryTime_from_duration(long _duration); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_from_duration")] public static extern long ExpiryTimeFromDuration(long _duration); // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_as_seconds")] public static extern long ExpiryTime_as_seconds(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_as_seconds")] public static extern long ExpiryTimeAsSeconds(long _this_arg); // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_as_duration")] public static extern long ExpiryTime_as_duration(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ExpiryTime_as_duration")] public static extern long ExpiryTimeAsDuration(long _this_arg); // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_new")] public static extern long PrivateRoute_new(long _hops); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_new")] public static extern long PrivateRouteNew(long _hops); // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_into_inner")] public static extern long PrivateRoute_into_inner(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_PrivateRoute_into_inner")] public static extern long PrivateRouteIntoInner(long _this_arg); // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_clone")] public static extern CreationError CreationError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_clone")] public static extern CreationError CreationErrorClone(long _orig); // enum LDKCreationError CreationError_description_too_long(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_description_too_long")] public static extern CreationError CreationError_description_too_long(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_description_too_long")] public static extern CreationError CreationErrorDescriptionTooLong(); // enum LDKCreationError CreationError_route_too_long(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_route_too_long")] public static extern CreationError CreationError_route_too_long(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_route_too_long")] public static extern CreationError CreationErrorRouteTooLong(); // enum LDKCreationError CreationError_timestamp_out_of_bounds(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_timestamp_out_of_bounds")] public static extern CreationError CreationError_timestamp_out_of_bounds(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_timestamp_out_of_bounds")] public static extern CreationError CreationErrorTimestampOutOfBounds(); // enum LDKCreationError CreationError_invalid_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_invalid_amount")] public static extern CreationError CreationError_invalid_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_invalid_amount")] public static extern CreationError CreationErrorInvalidAmount(); // enum LDKCreationError CreationError_missing_route_hints(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_missing_route_hints")] public static extern CreationError CreationError_missing_route_hints(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_missing_route_hints")] public static extern CreationError CreationErrorMissingRouteHints(); // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_min_final_cltv_expiry_delta_too_short")] public static extern CreationError CreationError_min_final_cltv_expiry_delta_too_short(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_min_final_cltv_expiry_delta_too_short")] public static extern CreationError CreationErrorMinFinalCltvExpiryDeltaTooShort(); // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_eq")] public static extern bool CreationError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_eq")] public static extern bool CreationErrorEq(long _a, long _b); // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_to_str")] public static extern long CreationError_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_CreationError_to_str")] public static extern long CreationErrorToStr(long _o); // enum LDKBolt11SemanticError Bolt11SemanticError_clone(const enum LDKBolt11SemanticError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_clone")] public static extern Bolt11SemanticError Bolt11SemanticError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_clone")] public static extern Bolt11SemanticError Bolt11SemanticErrorClone(long _orig); // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_hash(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_payment_hash")] public static extern Bolt11SemanticError Bolt11SemanticError_no_payment_hash(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_payment_hash")] public static extern Bolt11SemanticError Bolt11SemanticErrorNoPaymentHash(); // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_payment_hashes")] public static extern Bolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_payment_hashes")] public static extern Bolt11SemanticError Bolt11SemanticErrorMultiplePaymentHashes(); // enum LDKBolt11SemanticError Bolt11SemanticError_no_description(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_description")] public static extern Bolt11SemanticError Bolt11SemanticError_no_description(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_description")] public static extern Bolt11SemanticError Bolt11SemanticErrorNoDescription(); // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_descriptions(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_descriptions")] public static extern Bolt11SemanticError Bolt11SemanticError_multiple_descriptions(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_descriptions")] public static extern Bolt11SemanticError Bolt11SemanticErrorMultipleDescriptions(); // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_secret(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_payment_secret")] public static extern Bolt11SemanticError Bolt11SemanticError_no_payment_secret(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_no_payment_secret")] public static extern Bolt11SemanticError Bolt11SemanticErrorNoPaymentSecret(); // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_payment_secrets")] public static extern Bolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_multiple_payment_secrets")] public static extern Bolt11SemanticError Bolt11SemanticErrorMultiplePaymentSecrets(); // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_features(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_features")] public static extern Bolt11SemanticError Bolt11SemanticError_invalid_features(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_features")] public static extern Bolt11SemanticError Bolt11SemanticErrorInvalidFeatures(); // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_recovery_id(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_recovery_id")] public static extern Bolt11SemanticError Bolt11SemanticError_invalid_recovery_id(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_recovery_id")] public static extern Bolt11SemanticError Bolt11SemanticErrorInvalidRecoveryId(); // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_signature(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_signature")] public static extern Bolt11SemanticError Bolt11SemanticError_invalid_signature(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_invalid_signature")] public static extern Bolt11SemanticError Bolt11SemanticErrorInvalidSignature(); // enum LDKBolt11SemanticError Bolt11SemanticError_imprecise_amount(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_imprecise_amount")] public static extern Bolt11SemanticError Bolt11SemanticError_imprecise_amount(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_imprecise_amount")] public static extern Bolt11SemanticError Bolt11SemanticErrorImpreciseAmount(); // bool Bolt11SemanticError_eq(const enum LDKBolt11SemanticError *NONNULL_PTR a, const enum LDKBolt11SemanticError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_eq")] public static extern bool Bolt11SemanticError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_eq")] public static extern bool Bolt11SemanticErrorEq(long _a, long _b); // struct LDKStr Bolt11SemanticError_to_str(const enum LDKBolt11SemanticError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_to_str")] public static extern long Bolt11SemanticError_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11SemanticError_to_str")] public static extern long Bolt11SemanticErrorToStr(long _o); // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_free")] public static extern void SignOrCreationError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_free")] public static extern void SignOrCreationErrorFree(long _this_ptr); // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_clone_ptr")] public static extern long SignOrCreationError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_clone_ptr")] public static extern long SignOrCreationErrorClonePtr(long _arg); // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_clone")] public static extern long SignOrCreationError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_clone")] public static extern long SignOrCreationErrorClone(long _orig); // struct LDKSignOrCreationError SignOrCreationError_sign_error(void); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_sign_error")] public static extern long SignOrCreationError_sign_error(); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_sign_error")] public static extern long SignOrCreationErrorSignError(); // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_creation_error")] public static extern long SignOrCreationError_creation_error(CreationError _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_creation_error")] public static extern long SignOrCreationErrorCreationError(CreationError _a); // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_eq")] public static extern bool SignOrCreationError_eq(long _a, long _b); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_eq")] public static extern bool SignOrCreationErrorEq(long _a, long _b); // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_to_str")] public static extern long SignOrCreationError_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignOrCreationError_to_str")] public static extern long SignOrCreationErrorToStr(long _o); // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_zero_amount_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_payment_parameters_from_zero_amount_invoice")] public static extern long payment_parameters_from_zero_amount_invoice(long _invoice, long _amount_msat); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_payment_parameters_from_zero_amount_invoice")] public static extern long PaymentParametersFromZeroAmountInvoice(long _invoice, long _amount_msat); // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_payment_parameters_from_invoice")] public static extern long payment_parameters_from_invoice(long _invoice); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_payment_parameters_from_invoice")] public static extern long PaymentParametersFromInvoice(long _invoice); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_phantom_invoice")] public static extern long create_phantom_invoice(long _amt_msat, long _payment_hash, long _description, int _invoice_expiry_delta_secs, long _phantom_route_hints, long _entropy_source, long _node_signer, long _logger, Currency _network, long _min_final_cltv_expiry_delta, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_phantom_invoice")] public static extern long CreatePhantomInvoice(long _amt_msat, long _payment_hash, long _description, int _invoice_expiry_delta_secs, long _phantom_route_hints, long _entropy_source, long _node_signer, long _logger, Currency _network, long _min_final_cltv_expiry_delta, long _duration_since_epoch); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_phantom_invoice_with_description_hash")] public static extern long create_phantom_invoice_with_description_hash(long _amt_msat, long _payment_hash, int _invoice_expiry_delta_secs, long _description_hash, long _phantom_route_hints, long _entropy_source, long _node_signer, long _logger, Currency _network, long _min_final_cltv_expiry_delta, long _duration_since_epoch); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_phantom_invoice_with_description_hash")] public static extern long CreatePhantomInvoiceWithDescriptionHash(long _amt_msat, long _payment_hash, int _invoice_expiry_delta_secs, long _description_hash, long _phantom_route_hints, long _entropy_source, long _node_signer, long _logger, Currency _network, long _min_final_cltv_expiry_delta, long _duration_since_epoch); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager")] public static extern long create_invoice_from_channelmanager(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager")] public static extern long CreateInvoiceFromChannelmanager(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_with_description_hash")] public static extern long create_invoice_from_channelmanager_with_description_hash(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description_hash, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_with_description_hash")] public static extern long CreateInvoiceFromChannelmanagerWithDescriptionHash(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description_hash, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch")] public static extern long create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description_hash, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch")] public static extern long CreateInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description_hash, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_and_duration_since_epoch")] public static extern long create_invoice_from_channelmanager_and_duration_since_epoch(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_and_duration_since_epoch")] public static extern long CreateInvoiceFromChannelmanagerAndDurationSinceEpoch(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _min_final_cltv_expiry_delta); // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u16Z min_final_cltv_expiry_delta); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash")] public static extern long create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _payment_hash, long _min_final_cltv_expiry_delta); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash")] public static extern long CreateInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(long _channelmanager, long _node_signer, long _logger, Currency _network, long _amt_msat, long _description, long _duration_since_epoch, int _invoice_expiry_delta_secs, long _payment_hash, long _min_final_cltv_expiry_delta); // struct LDKCResult_SiPrefixBolt11ParseErrorZ SiPrefix_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_from_str")] public static extern long SiPrefix_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_from_str")] public static extern long SiPrefixFromStr(long _s); // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ Bolt11Invoice_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_from_str")] public static extern long Bolt11Invoice_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_from_str")] public static extern long Bolt11InvoiceFromStr(long _s); // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ SignedRawBolt11Invoice_from_str(struct LDKStr s); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_from_str")] public static extern long SignedRawBolt11Invoice_from_str(long _s); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_from_str")] public static extern long SignedRawBolt11InvoiceFromStr(long _s); // struct LDKStr Bolt11ParseError_to_str(const struct LDKBolt11ParseError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_to_str")] public static extern long Bolt11ParseError_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11ParseError_to_str")] public static extern long Bolt11ParseErrorToStr(long _o); // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_to_str")] public static extern long ParseOrSemanticError_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_ParseOrSemanticError_to_str")] public static extern long ParseOrSemanticErrorToStr(long _o); // struct LDKStr Bolt11Invoice_to_str(const struct LDKBolt11Invoice *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_to_str")] public static extern long Bolt11Invoice_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Bolt11Invoice_to_str")] public static extern long Bolt11InvoiceToStr(long _o); // struct LDKStr SignedRawBolt11Invoice_to_str(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_to_str")] public static extern long SignedRawBolt11Invoice_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SignedRawBolt11Invoice_to_str")] public static extern long SignedRawBolt11InvoiceToStr(long _o); // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_to_str")] public static extern long Currency_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_Currency_to_str")] public static extern long CurrencyToStr(long _o); // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_to_str")] public static extern long SiPrefix_to_str(long _o); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_SiPrefix_to_str")] public static extern long SiPrefixToStr(long _o); // void GraphSyncError_free(struct LDKGraphSyncError this_ptr); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_free")] public static extern void GraphSyncError_free(long _this_ptr); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_free")] public static extern void GraphSyncErrorFree(long _this_ptr); // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_clone_ptr")] public static extern long GraphSyncError_clone_ptr(long _arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_clone_ptr")] public static extern long GraphSyncErrorClonePtr(long _arg); // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_clone")] public static extern long GraphSyncError_clone(long _orig); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_clone")] public static extern long GraphSyncErrorClone(long _orig); // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_decode_error")] public static extern long GraphSyncError_decode_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_decode_error")] public static extern long GraphSyncErrorDecodeError(long _a); // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_lightning_error")] public static extern long GraphSyncError_lightning_error(long _a); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_GraphSyncError_lightning_error")] public static extern long GraphSyncErrorLightningError(long _a); // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_free")] public static extern void RapidGossipSync_free(long _this_obj); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_free")] public static extern void RapidGossipSyncFree(long _this_obj); // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_new")] public static extern long RapidGossipSync_new(long _network_graph, long _logger); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_new")] public static extern long RapidGossipSyncNew(long _network_graph, long _logger); // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_sync_network_graph_with_file_path")] public static extern long RapidGossipSync_sync_network_graph_with_file_path(long _this_arg, long _sync_path); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_sync_network_graph_with_file_path")] public static extern long RapidGossipSyncSyncNetworkGraphWithFilePath(long _this_arg, long _sync_path); // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_update_network_graph")] public static extern long RapidGossipSync_update_network_graph(long _this_arg, long _update_data); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_update_network_graph")] public static extern long RapidGossipSyncUpdateNetworkGraph(long _this_arg, long _update_data); // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph_no_std(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data, struct LDKCOption_u64Z current_time_unix); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_update_network_graph_no_std")] public static extern long RapidGossipSync_update_network_graph_no_std(long _this_arg, long _update_data, long _current_time_unix); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_update_network_graph_no_std")] public static extern long RapidGossipSyncUpdateNetworkGraphNoStd(long _this_arg, long _update_data, long _current_time_unix); // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg); - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_is_initial_sync_complete")] public static extern bool RapidGossipSync_is_initial_sync_complete(long _this_arg); + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_RapidGossipSync_is_initial_sync_complete")] public static extern bool RapidGossipSyncIsInitialSyncComplete(long _this_arg); - static long c_callback_l_l(int obj_ptr, int fn_id, long a) { + static long CCallbackLL(int obj_ptr, int fn_id, long a) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_l"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LL"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_l"); + Console.Error.WriteLine("Got function call on GC'd JS object in LL"); Console.Error.Flush(); Environment.Exit(43); } @@ -13404,209 +13404,209 @@ static long c_callback_l_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelSigner)obj).get_per_commitment_point(a); + return ((LDKChannelSigner)obj).GetPerCommitmentPoint(a); case 1: if (!(obj is LDKChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKChannelSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelSigner)obj).release_commitment_secret(a); + return ((LDKChannelSigner)obj).ReleaseCommitmentSecret(a); case 7: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_holder_commitment(a); + return ((LDKEcdsaChannelSigner)obj).SignHolderCommitment(a); case 12: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_closing_transaction(a); + return ((LDKEcdsaChannelSigner)obj).SignClosingTransaction(a); case 14: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_channel_announcement_with_funding_key(a); + return ((LDKEcdsaChannelSigner)obj).SignChannelAnnouncementWithFundingKey(a); case 36: if (!(obj is LDKNodeSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKNodeSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).sign_bolt12_invoice_request(a); + return ((LDKNodeSigner)obj).SignBolt12InvoiceRequest(a); case 37: if (!(obj is LDKNodeSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKNodeSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).sign_bolt12_invoice(a); + return ((LDKNodeSigner)obj).SignBolt12Invoice(a); case 38: if (!(obj is LDKNodeSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKNodeSigner in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).sign_gossip_message(a); + return ((LDKNodeSigner)obj).SignGossipMessage(a); case 41: if (!(obj is LDKSignerProvider)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKSignerProvider in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSignerProvider)obj).read_chan_signer(a); + return ((LDKSignerProvider)obj).ReadChanSigner(a); case 42: if (!(obj is LDKSignerProvider)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKSignerProvider in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSignerProvider)obj).get_destination_script(a); + return ((LDKSignerProvider)obj).GetDestinationScript(a); case 62: if (!(obj is LDKPersister)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKPersister in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKPersister)obj).persist_manager(a); + return ((LDKPersister)obj).PersistManager(a); case 63: if (!(obj is LDKPersister)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKPersister in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKPersister)obj).persist_graph(a); + return ((LDKPersister)obj).PersistGraph(a); case 64: if (!(obj is LDKPersister)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKPersister in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKPersister)obj).persist_scorer(a); + return ((LDKPersister)obj).PersistScorer(a); case 114: if (!(obj is LDKChannelMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKChannelMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelMessageHandler)obj).provided_init_features(a); + return ((LDKChannelMessageHandler)obj).ProvidedInitFeatures(a); case 116: if (!(obj is LDKOffersMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOffersMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOffersMessageHandler)obj).handle_message(a); + return ((LDKOffersMessageHandler)obj).HandleMessage(a); case 118: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_node_announcement(a); + return ((LDKRoutingMessageHandler)obj).HandleNodeAnnouncement(a); case 119: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_channel_announcement(a); + return ((LDKRoutingMessageHandler)obj).HandleChannelAnnouncement(a); case 120: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_channel_update(a); + return ((LDKRoutingMessageHandler)obj).HandleChannelUpdate(a); case 121: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).get_next_channel_announcement(a); + return ((LDKRoutingMessageHandler)obj).GetNextChannelAnnouncement(a); case 122: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).get_next_node_announcement(a); + return ((LDKRoutingMessageHandler)obj).GetNextNodeAnnouncement(a); case 130: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).provided_init_features(a); + return ((LDKRoutingMessageHandler)obj).ProvidedInitFeatures(a); case 133: if (!(obj is LDKOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageHandler)obj).next_onion_message_for_peer(a); + return ((LDKOnionMessageHandler)obj).NextOnionMessageForPeer(a); case 138: if (!(obj is LDKOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageHandler)obj).provided_init_features(a); + return ((LDKOnionMessageHandler)obj).ProvidedInitFeatures(a); case 143: if (!(obj is LDKCustomMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomMessageHandler)obj).provided_init_features(a); + return ((LDKCustomMessageHandler)obj).ProvidedInitFeatures(a); case 144: if (!(obj is LDKCustomOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomOnionMessageHandler in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomOnionMessageHandler)obj).handle_custom_message(a); + return ((LDKCustomOnionMessageHandler)obj).HandleCustomMessage(a); case 153: if (!(obj is LDKCoinSelectionSource)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCoinSelectionSource in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCoinSelectionSource)obj).sign_psbt(a); + return ((LDKCoinSelectionSource)obj).SignPsbt(a); case 156: if (!(obj is LDKWalletSource)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWalletSource in l_l"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWalletSource)obj).sign_psbt(a); + return ((LDKWalletSource)obj).SignPsbt(a); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_l"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LL"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_l_callback(int obj_ptr, int fn_id, long a); - static l_l_callback l_l_callback_inst = c_callback_l_l; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_l_invoker")] public static extern int register_l_l_invoker(l_l_callback callee); - static int _run_l_l_registration = register_l_l_invoker(l_l_callback_inst); - static long c_callback_l_ll(int obj_ptr, int fn_id, long a, long b) { + public delegate long LLCallback(int obj_ptr, int fn_id, long a); + static LLCallback LLCallbackInst = CCallbackLL; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_l_invoker")] public static extern int RegisterLLInvoker(LLCallback callee); + static int _run_l_l_registration = RegisterLLInvoker(LLCallbackInst); + static long CCallbackLLl(int obj_ptr, int fn_id, long a, long b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_ll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLl"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_ll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLl"); Console.Error.Flush(); Environment.Exit(43); } @@ -13617,118 +13617,118 @@ static long c_callback_l_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelSigner)obj).validate_holder_commitment(a, b); + return ((LDKChannelSigner)obj).ValidateHolderCommitment(a, b); case 3: if (!(obj is LDKChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKChannelSigner in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelSigner)obj).validate_counterparty_revocation(a, b); + return ((LDKChannelSigner)obj).ValidateCounterpartyRevocation(a, b); case 13: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_holder_anchor_input(a, b); + return ((LDKEcdsaChannelSigner)obj).SignHolderAnchorInput(a, b); case 26: if (!(obj is LDKUtxoLookup)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKUtxoLookup in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKUtxoLookup)obj).get_utxo(a, b); + return ((LDKUtxoLookup)obj).GetUtxo(a, b); case 27: if (!(obj is LDKWatch)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWatch in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWatch)obj).watch_channel(a, b); + return ((LDKWatch)obj).WatchChannel(a, b); case 40: if (!(obj is LDKSignerProvider)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKSignerProvider in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSignerProvider)obj).derive_channel_signer(a, b); + return ((LDKSignerProvider)obj).DeriveChannelSigner(a, b); case 46: if (!(obj is LDKMessageRouter)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKMessageRouter in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKMessageRouter)obj).create_blinded_paths(a, b); + return ((LDKMessageRouter)obj).CreateBlindedPaths(a, b); case 61: if (!(obj is LDKKVStore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKKVStore in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKKVStore)obj).list(a, b); + return ((LDKKVStore)obj).List(a, b); case 124: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_reply_channel_range(a, b); + return ((LDKRoutingMessageHandler)obj).HandleReplyChannelRange(a, b); case 125: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_reply_short_channel_ids_end(a, b); + return ((LDKRoutingMessageHandler)obj).HandleReplyShortChannelIdsEnd(a, b); case 126: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_query_channel_range(a, b); + return ((LDKRoutingMessageHandler)obj).HandleQueryChannelRange(a, b); case 127: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).handle_query_short_channel_ids(a, b); + return ((LDKRoutingMessageHandler)obj).HandleQueryShortChannelIds(a, b); case 140: if (!(obj is LDKCustomMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomMessageHandler)obj).handle_custom_message(a, b); + return ((LDKCustomMessageHandler)obj).HandleCustomMessage(a, b); case 145: if (!(obj is LDKCustomOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomOnionMessageHandler in l_ll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomOnionMessageHandler)obj).read_custom_message(a, b); + return ((LDKCustomOnionMessageHandler)obj).ReadCustomMessage(a, b); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_ll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLl"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_ll_callback(int obj_ptr, int fn_id, long a, long b); - static l_ll_callback l_ll_callback_inst = c_callback_l_ll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_ll_invoker")] public static extern int register_l_ll_invoker(l_ll_callback callee); - static int _run_l_ll_registration = register_l_ll_invoker(l_ll_callback_inst); - static long c_callback_l_(int obj_ptr, int fn_id) { + public delegate long LLlCallback(int obj_ptr, int fn_id, long a, long b); + static LLlCallback LLlCallbackInst = CCallbackLLl; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_ll_invoker")] public static extern int RegisterLLlInvoker(LLlCallback callee); + static int _run_l_ll_registration = RegisterLLlInvoker(LLlCallbackInst); + static long CCallbackL(int obj_ptr, int fn_id) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in L"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_"); + Console.Error.WriteLine("Got function call on GC'd JS object in L"); Console.Error.Flush(); Environment.Exit(43); } @@ -13739,223 +13739,223 @@ static long c_callback_l_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelSigner)obj).channel_keys_id(); + return ((LDKChannelSigner)obj).ChannelKeysId(); case 15: if (!(obj is LDKWriteableEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWriteableEcdsaChannelSigner in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWriteableEcdsaChannelSigner)obj).write(); + return ((LDKWriteableEcdsaChannelSigner)obj).Write(); case 22: if (!(obj is LDKLockableScore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKLockableScore in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKLockableScore)obj).read_lock(); + return ((LDKLockableScore)obj).ReadLock(); case 23: if (!(obj is LDKLockableScore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKLockableScore in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKLockableScore)obj).write_lock(); + return ((LDKLockableScore)obj).WriteLock(); case 24: if (!(obj is LDKWriteableScore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWriteableScore in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWriteableScore)obj).write(); + return ((LDKWriteableScore)obj).Write(); case 29: if (!(obj is LDKWatch)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWatch in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWatch)obj).release_pending_monitor_events(); + return ((LDKWatch)obj).ReleasePendingMonitorEvents(); case 31: if (!(obj is LDKEntropySource)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEntropySource in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEntropySource)obj).get_secure_random_bytes(); + return ((LDKEntropySource)obj).GetSecureRandomBytes(); case 32: if (!(obj is LDKNodeSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKNodeSigner in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).get_inbound_payment_key_material(); + return ((LDKNodeSigner)obj).GetInboundPaymentKeyMaterial(); case 43: if (!(obj is LDKSignerProvider)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKSignerProvider in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSignerProvider)obj).get_shutdown_scriptpubkey(); + return ((LDKSignerProvider)obj).GetShutdownScriptpubkey(); case 51: if (!(obj is LDKType)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKType in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKType)obj).debug_str(); + return ((LDKType)obj).DebugStr(); case 52: if (!(obj is LDKType)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKType in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKType)obj).write(); + return ((LDKType)obj).Write(); case 53: if (!(obj is LDKOnionMessageContents)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageContents in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageContents)obj).tlv_type(); + return ((LDKOnionMessageContents)obj).TlvType(); case 54: if (!(obj is LDKOnionMessageContents)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageContents in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageContents)obj).write(); + return ((LDKOnionMessageContents)obj).Write(); case 55: if (!(obj is LDKOnionMessageContents)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageContents in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageContents)obj).debug_str(); + return ((LDKOnionMessageContents)obj).DebugStr(); case 74: if (!(obj is LDKConfirm)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKConfirm in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKConfirm)obj).get_relevant_txids(); + return ((LDKConfirm)obj).GetRelevantTxids(); case 77: if (!(obj is LDKMessageSendEventsProvider)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKMessageSendEventsProvider in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKMessageSendEventsProvider)obj).get_and_clear_pending_msg_events(); + return ((LDKMessageSendEventsProvider)obj).GetAndClearPendingMsgEvents(); case 113: if (!(obj is LDKChannelMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKChannelMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelMessageHandler)obj).provided_node_features(); + return ((LDKChannelMessageHandler)obj).ProvidedNodeFeatures(); case 115: if (!(obj is LDKChannelMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKChannelMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelMessageHandler)obj).get_chain_hashes(); + return ((LDKChannelMessageHandler)obj).GetChainHashes(); case 117: if (!(obj is LDKOffersMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOffersMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOffersMessageHandler)obj).release_pending_messages(); + return ((LDKOffersMessageHandler)obj).ReleasePendingMessages(); case 129: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).provided_node_features(); + return ((LDKRoutingMessageHandler)obj).ProvidedNodeFeatures(); case 131: if (!(obj is LDKOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageHandler)obj).get_and_clear_connections_needed(); + return ((LDKOnionMessageHandler)obj).GetAndClearConnectionsNeeded(); case 137: if (!(obj is LDKOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageHandler)obj).provided_node_features(); + return ((LDKOnionMessageHandler)obj).ProvidedNodeFeatures(); case 141: if (!(obj is LDKCustomMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomMessageHandler)obj).get_and_clear_pending_msg(); + return ((LDKCustomMessageHandler)obj).GetAndClearPendingMsg(); case 142: if (!(obj is LDKCustomMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomMessageHandler)obj).provided_node_features(); + return ((LDKCustomMessageHandler)obj).ProvidedNodeFeatures(); case 146: if (!(obj is LDKCustomOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKCustomOnionMessageHandler in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomOnionMessageHandler)obj).release_pending_custom_messages(); + return ((LDKCustomOnionMessageHandler)obj).ReleasePendingCustomMessages(); case 150: if (!(obj is LDKSocketDescriptor)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKSocketDescriptor in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSocketDescriptor)obj).hash(); + return ((LDKSocketDescriptor)obj).Hash(); case 151: if (!(obj is LDKScore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKScore in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKScore)obj).write(); + return ((LDKScore)obj).Write(); case 154: if (!(obj is LDKWalletSource)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWalletSource in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWalletSource)obj).list_confirmed_utxos(); + return ((LDKWalletSource)obj).ListConfirmedUtxos(); case 155: if (!(obj is LDKWalletSource)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKWalletSource in l_"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWalletSource)obj).get_change_script(); + return ((LDKWalletSource)obj).GetChangeScript(); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in L"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l__callback(int obj_ptr, int fn_id); - static l__callback l__callback_inst = c_callback_l_; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l__invoker")] public static extern int register_l__invoker(l__callback callee); - static int _run_l__registration = register_l__invoker(l__callback_inst); - static void c_callback_void_l(int obj_ptr, int fn_id, long a) { + public delegate long LCallback(int obj_ptr, int fn_id); + static LCallback LCallbackInst = CCallbackL; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l__invoker")] public static extern int RegisterLInvoker(LCallback callee); + static int _run_l__registration = RegisterLInvoker(LCallbackInst); + static void CCallbackVoidL(int obj_ptr, int fn_id, long a) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_l"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in VoidL"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_l"); + Console.Error.WriteLine("Got function call on GC'd JS object in VoidL"); Console.Error.Flush(); Environment.Exit(43); } @@ -13966,7 +13966,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelSigner)obj).provide_channel_parameters(a); + ((LDKChannelSigner)obj).ProvideChannelParameters(a); return; case 21: if (!(obj is LDKScoreUpdate)) { @@ -13974,7 +13974,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKScoreUpdate)obj).time_passed(a); + ((LDKScoreUpdate)obj).TimePassed(a); return; case 25: if (!(obj is LDKLogger)) { @@ -13982,7 +13982,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKLogger)obj).log(a); + ((LDKLogger)obj).Log(a); return; case 30: if (!(obj is LDKBroadcasterInterface)) { @@ -13990,7 +13990,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKBroadcasterInterface)obj).broadcast_transactions(a); + ((LDKBroadcasterInterface)obj).BroadcastTransactions(a); return; case 57: if (!(obj is LDKFilter)) { @@ -13998,7 +13998,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKFilter)obj).register_output(a); + ((LDKFilter)obj).RegisterOutput(a); return; case 72: if (!(obj is LDKConfirm)) { @@ -14006,7 +14006,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKConfirm)obj).transaction_unconfirmed(a); + ((LDKConfirm)obj).TransactionUnconfirmed(a); return; case 75: if (!(obj is LDKEventHandler)) { @@ -14014,7 +14014,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKEventHandler)obj).handle_event(a); + ((LDKEventHandler)obj).HandleEvent(a); return; case 76: if (!(obj is LDKEventsProvider)) { @@ -14022,7 +14022,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKEventsProvider)obj).process_pending_events(a); + ((LDKEventsProvider)obj).ProcessPendingEvents(a); return; case 108: if (!(obj is LDKChannelMessageHandler)) { @@ -14030,7 +14030,7 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).peer_disconnected(a); + ((LDKChannelMessageHandler)obj).PeerDisconnected(a); return; case 135: if (!(obj is LDKOnionMessageHandler)) { @@ -14038,28 +14038,28 @@ static void c_callback_void_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKOnionMessageHandler)obj).peer_disconnected(a); + ((LDKOnionMessageHandler)obj).PeerDisconnected(a); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_l"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in VoidL"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void_l_callback(int obj_ptr, int fn_id, long a); - static void_l_callback void_l_callback_inst = c_callback_void_l; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_l_invoker")] public static extern int register_void_l_invoker(void_l_callback callee); - static int _run_void_l_registration = register_void_l_invoker(void_l_callback_inst); - static long c_callback_l_lll(int obj_ptr, int fn_id, long a, long b, long c) { + public delegate void VoidLCallback(int obj_ptr, int fn_id, long a); + static VoidLCallback VoidLCallbackInst = CCallbackVoidL; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_l_invoker")] public static extern int RegisterVoidLInvoker(VoidLCallback callee); + static int _run_void_l_registration = RegisterVoidLInvoker(VoidLCallbackInst); + static long CCallbackLLll(int obj_ptr, int fn_id, long a, long b, long c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_lll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_lll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14070,55 +14070,55 @@ static long c_callback_l_lll(int obj_ptr, int fn_id, long a, long b, long c) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_counterparty_commitment(a, b, c); + return ((LDKEcdsaChannelSigner)obj).SignCounterpartyCommitment(a, b, c); case 10: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_lll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_holder_htlc_transaction(a, b, c); + return ((LDKEcdsaChannelSigner)obj).SignHolderHtlcTransaction(a, b, c); case 16: if (!(obj is LDKScoreLookUp)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKScoreLookUp in l_lll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKScoreLookUp)obj).channel_penalty_msat(a, b, c); + return ((LDKScoreLookUp)obj).ChannelPenaltyMsat(a, b, c); case 45: if (!(obj is LDKMessageRouter)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKMessageRouter in l_lll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKMessageRouter)obj).find_path(a, b, c); + return ((LDKMessageRouter)obj).FindPath(a, b, c); case 58: if (!(obj is LDKKVStore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKKVStore in l_lll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKKVStore)obj).read(a, b, c); + return ((LDKKVStore)obj).Read(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_lll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_lll_callback(int obj_ptr, int fn_id, long a, long b, long c); - static l_lll_callback l_lll_callback_inst = c_callback_l_lll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lll_invoker")] public static extern int register_l_lll_invoker(l_lll_callback callee); - static int _run_l_lll_registration = register_l_lll_invoker(l_lll_callback_inst); - static long c_callback_l_llll(int obj_ptr, int fn_id, long a, long b, long c, long d) { + public delegate long LLllCallback(int obj_ptr, int fn_id, long a, long b, long c); + static LLllCallback LLllCallbackInst = CCallbackLLll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lll_invoker")] public static extern int RegisterLLllInvoker(LLllCallback callee); + static int _run_l_lll_registration = RegisterLLllInvoker(LLllCallbackInst); + static long CCallbackLLlll(int obj_ptr, int fn_id, long a, long b, long c, long d) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_llll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLlll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_llll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLlll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14129,48 +14129,48 @@ static long c_callback_l_llll(int obj_ptr, int fn_id, long a, long b, long c, lo Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_justice_revoked_output(a, b, c, d); + return ((LDKEcdsaChannelSigner)obj).SignJusticeRevokedOutput(a, b, c, d); case 47: if (!(obj is LDKRouter)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRouter in l_llll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRouter)obj).find_route(a, b, c, d); + return ((LDKRouter)obj).FindRoute(a, b, c, d); case 49: if (!(obj is LDKRouter)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRouter in l_llll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRouter)obj).create_blinded_payment_paths(a, b, c, d); + return ((LDKRouter)obj).CreateBlindedPaymentPaths(a, b, c, d); case 59: if (!(obj is LDKKVStore)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKKVStore in l_llll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKKVStore)obj).write(a, b, c, d); + return ((LDKKVStore)obj).Write(a, b, c, d); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_llll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLlll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_llll_callback(int obj_ptr, int fn_id, long a, long b, long c, long d); - static l_llll_callback l_llll_callback_inst = c_callback_l_llll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llll_invoker")] public static extern int register_l_llll_invoker(l_llll_callback callee); - static int _run_l_llll_registration = register_l_llll_invoker(l_llll_callback_inst); - static long c_callback_l_lllll(int obj_ptr, int fn_id, long a, long b, long c, long d, long e) { + public delegate long LLlllCallback(int obj_ptr, int fn_id, long a, long b, long c, long d); + static LLlllCallback LLlllCallbackInst = CCallbackLLlll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llll_invoker")] public static extern int RegisterLLlllInvoker(LLlllCallback callee); + static int _run_l_llll_registration = RegisterLLlllInvoker(LLlllCallbackInst); + static long CCallbackLLllll(int obj_ptr, int fn_id, long a, long b, long c, long d, long e) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_lllll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLllll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_lllll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLllll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14181,34 +14181,34 @@ static long c_callback_l_lllll(int obj_ptr, int fn_id, long a, long b, long c, l Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_justice_revoked_htlc(a, b, c, d, e); + return ((LDKEcdsaChannelSigner)obj).SignJusticeRevokedHtlc(a, b, c, d, e); case 11: if (!(obj is LDKEcdsaChannelSigner)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKEcdsaChannelSigner in l_lllll"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKEcdsaChannelSigner)obj).sign_counterparty_htlc_transaction(a, b, c, d, e); + return ((LDKEcdsaChannelSigner)obj).SignCounterpartyHtlcTransaction(a, b, c, d, e); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_lllll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLllll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_lllll_callback(int obj_ptr, int fn_id, long a, long b, long c, long d, long e); - static l_lllll_callback l_lllll_callback_inst = c_callback_l_lllll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lllll_invoker")] public static extern int register_l_lllll_invoker(l_lllll_callback callee); - static int _run_l_lllll_registration = register_l_lllll_invoker(l_lllll_callback_inst); - static void c_callback_void_lll(int obj_ptr, int fn_id, long a, long b, long c) { + public delegate long LLllllCallback(int obj_ptr, int fn_id, long a, long b, long c, long d, long e); + static LLllllCallback LLllllCallbackInst = CCallbackLLllll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lllll_invoker")] public static extern int RegisterLLllllInvoker(LLllllCallback callee); + static int _run_l_lllll_registration = RegisterLLllllInvoker(LLllllCallbackInst); + static void CCallbackVoidLll(int obj_ptr, int fn_id, long a, long b, long c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_lll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in VoidLll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_lll"); + Console.Error.WriteLine("Got function call on GC'd JS object in VoidLll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14219,7 +14219,7 @@ static void c_callback_void_lll(int obj_ptr, int fn_id, long a, long b, long c) Console.Error.Flush(); Environment.Exit(44); } - ((LDKScoreUpdate)obj).payment_path_failed(a, b, c); + ((LDKScoreUpdate)obj).PaymentPathFailed(a, b, c); return; case 19: if (!(obj is LDKScoreUpdate)) { @@ -14227,28 +14227,28 @@ static void c_callback_void_lll(int obj_ptr, int fn_id, long a, long b, long c) Console.Error.Flush(); Environment.Exit(44); } - ((LDKScoreUpdate)obj).probe_failed(a, b, c); + ((LDKScoreUpdate)obj).ProbeFailed(a, b, c); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_lll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in VoidLll"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void_lll_callback(int obj_ptr, int fn_id, long a, long b, long c); - static void_lll_callback void_lll_callback_inst = c_callback_void_lll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_lll_invoker")] public static extern int register_void_lll_invoker(void_lll_callback callee); - static int _run_void_lll_registration = register_void_lll_invoker(void_lll_callback_inst); - static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { + public delegate void VoidLllCallback(int obj_ptr, int fn_id, long a, long b, long c); + static VoidLllCallback VoidLllCallbackInst = CCallbackVoidLll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_lll_invoker")] public static extern int RegisterVoidLllInvoker(VoidLllCallback callee); + static int _run_void_lll_registration = RegisterVoidLllInvoker(VoidLllCallbackInst); + static void CCallbackVoidLl(int obj_ptr, int fn_id, long a, long b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_ll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in VoidLl"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_ll"); + Console.Error.WriteLine("Got function call on GC'd JS object in VoidLl"); Console.Error.Flush(); Environment.Exit(43); } @@ -14259,7 +14259,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKScoreUpdate)obj).payment_path_successful(a, b); + ((LDKScoreUpdate)obj).PaymentPathSuccessful(a, b); return; case 20: if (!(obj is LDKScoreUpdate)) { @@ -14267,7 +14267,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKScoreUpdate)obj).probe_successful(a, b); + ((LDKScoreUpdate)obj).ProbeSuccessful(a, b); return; case 56: if (!(obj is LDKFilter)) { @@ -14275,7 +14275,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKFilter)obj).register_tx(a, b); + ((LDKFilter)obj).RegisterTx(a, b); return; case 78: if (!(obj is LDKChannelMessageHandler)) { @@ -14283,7 +14283,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_open_channel(a, b); + ((LDKChannelMessageHandler)obj).HandleOpenChannel(a, b); return; case 79: if (!(obj is LDKChannelMessageHandler)) { @@ -14291,7 +14291,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_open_channel_v2(a, b); + ((LDKChannelMessageHandler)obj).HandleOpenChannelV2(a, b); return; case 80: if (!(obj is LDKChannelMessageHandler)) { @@ -14299,7 +14299,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_accept_channel(a, b); + ((LDKChannelMessageHandler)obj).HandleAcceptChannel(a, b); return; case 81: if (!(obj is LDKChannelMessageHandler)) { @@ -14307,7 +14307,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_accept_channel_v2(a, b); + ((LDKChannelMessageHandler)obj).HandleAcceptChannelV2(a, b); return; case 82: if (!(obj is LDKChannelMessageHandler)) { @@ -14315,7 +14315,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_funding_created(a, b); + ((LDKChannelMessageHandler)obj).HandleFundingCreated(a, b); return; case 83: if (!(obj is LDKChannelMessageHandler)) { @@ -14323,7 +14323,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_funding_signed(a, b); + ((LDKChannelMessageHandler)obj).HandleFundingSigned(a, b); return; case 84: if (!(obj is LDKChannelMessageHandler)) { @@ -14331,7 +14331,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_channel_ready(a, b); + ((LDKChannelMessageHandler)obj).HandleChannelReady(a, b); return; case 85: if (!(obj is LDKChannelMessageHandler)) { @@ -14339,7 +14339,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_shutdown(a, b); + ((LDKChannelMessageHandler)obj).HandleShutdown(a, b); return; case 86: if (!(obj is LDKChannelMessageHandler)) { @@ -14347,7 +14347,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_closing_signed(a, b); + ((LDKChannelMessageHandler)obj).HandleClosingSigned(a, b); return; case 87: if (!(obj is LDKChannelMessageHandler)) { @@ -14355,7 +14355,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_stfu(a, b); + ((LDKChannelMessageHandler)obj).HandleStfu(a, b); return; case 88: if (!(obj is LDKChannelMessageHandler)) { @@ -14363,7 +14363,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_splice(a, b); + ((LDKChannelMessageHandler)obj).HandleSplice(a, b); return; case 89: if (!(obj is LDKChannelMessageHandler)) { @@ -14371,7 +14371,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_splice_ack(a, b); + ((LDKChannelMessageHandler)obj).HandleSpliceAck(a, b); return; case 90: if (!(obj is LDKChannelMessageHandler)) { @@ -14379,7 +14379,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_splice_locked(a, b); + ((LDKChannelMessageHandler)obj).HandleSpliceLocked(a, b); return; case 91: if (!(obj is LDKChannelMessageHandler)) { @@ -14387,7 +14387,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_add_input(a, b); + ((LDKChannelMessageHandler)obj).HandleTxAddInput(a, b); return; case 92: if (!(obj is LDKChannelMessageHandler)) { @@ -14395,7 +14395,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_add_output(a, b); + ((LDKChannelMessageHandler)obj).HandleTxAddOutput(a, b); return; case 93: if (!(obj is LDKChannelMessageHandler)) { @@ -14403,7 +14403,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_remove_input(a, b); + ((LDKChannelMessageHandler)obj).HandleTxRemoveInput(a, b); return; case 94: if (!(obj is LDKChannelMessageHandler)) { @@ -14411,7 +14411,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_remove_output(a, b); + ((LDKChannelMessageHandler)obj).HandleTxRemoveOutput(a, b); return; case 95: if (!(obj is LDKChannelMessageHandler)) { @@ -14419,7 +14419,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_complete(a, b); + ((LDKChannelMessageHandler)obj).HandleTxComplete(a, b); return; case 96: if (!(obj is LDKChannelMessageHandler)) { @@ -14427,7 +14427,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_signatures(a, b); + ((LDKChannelMessageHandler)obj).HandleTxSignatures(a, b); return; case 97: if (!(obj is LDKChannelMessageHandler)) { @@ -14435,7 +14435,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_init_rbf(a, b); + ((LDKChannelMessageHandler)obj).HandleTxInitRbf(a, b); return; case 98: if (!(obj is LDKChannelMessageHandler)) { @@ -14443,7 +14443,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_ack_rbf(a, b); + ((LDKChannelMessageHandler)obj).HandleTxAckRbf(a, b); return; case 99: if (!(obj is LDKChannelMessageHandler)) { @@ -14451,7 +14451,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_tx_abort(a, b); + ((LDKChannelMessageHandler)obj).HandleTxAbort(a, b); return; case 100: if (!(obj is LDKChannelMessageHandler)) { @@ -14459,7 +14459,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_update_add_htlc(a, b); + ((LDKChannelMessageHandler)obj).HandleUpdateAddHtlc(a, b); return; case 101: if (!(obj is LDKChannelMessageHandler)) { @@ -14467,7 +14467,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_update_fulfill_htlc(a, b); + ((LDKChannelMessageHandler)obj).HandleUpdateFulfillHtlc(a, b); return; case 102: if (!(obj is LDKChannelMessageHandler)) { @@ -14475,7 +14475,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_update_fail_htlc(a, b); + ((LDKChannelMessageHandler)obj).HandleUpdateFailHtlc(a, b); return; case 103: if (!(obj is LDKChannelMessageHandler)) { @@ -14483,7 +14483,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_update_fail_malformed_htlc(a, b); + ((LDKChannelMessageHandler)obj).HandleUpdateFailMalformedHtlc(a, b); return; case 104: if (!(obj is LDKChannelMessageHandler)) { @@ -14491,7 +14491,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_commitment_signed(a, b); + ((LDKChannelMessageHandler)obj).HandleCommitmentSigned(a, b); return; case 105: if (!(obj is LDKChannelMessageHandler)) { @@ -14499,7 +14499,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_revoke_and_ack(a, b); + ((LDKChannelMessageHandler)obj).HandleRevokeAndAck(a, b); return; case 106: if (!(obj is LDKChannelMessageHandler)) { @@ -14507,7 +14507,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_update_fee(a, b); + ((LDKChannelMessageHandler)obj).HandleUpdateFee(a, b); return; case 107: if (!(obj is LDKChannelMessageHandler)) { @@ -14515,7 +14515,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_announcement_signatures(a, b); + ((LDKChannelMessageHandler)obj).HandleAnnouncementSignatures(a, b); return; case 110: if (!(obj is LDKChannelMessageHandler)) { @@ -14523,7 +14523,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_channel_reestablish(a, b); + ((LDKChannelMessageHandler)obj).HandleChannelReestablish(a, b); return; case 111: if (!(obj is LDKChannelMessageHandler)) { @@ -14531,7 +14531,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_channel_update(a, b); + ((LDKChannelMessageHandler)obj).HandleChannelUpdate(a, b); return; case 112: if (!(obj is LDKChannelMessageHandler)) { @@ -14539,7 +14539,7 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKChannelMessageHandler)obj).handle_error(a, b); + ((LDKChannelMessageHandler)obj).HandleError(a, b); return; case 132: if (!(obj is LDKOnionMessageHandler)) { @@ -14547,28 +14547,28 @@ static void c_callback_void_ll(int obj_ptr, int fn_id, long a, long b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKOnionMessageHandler)obj).handle_onion_message(a, b); + ((LDKOnionMessageHandler)obj).HandleOnionMessage(a, b); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_ll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in VoidLl"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void_ll_callback(int obj_ptr, int fn_id, long a, long b); - static void_ll_callback void_ll_callback_inst = c_callback_void_ll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_ll_invoker")] public static extern int register_void_ll_invoker(void_ll_callback callee); - static int _run_void_ll_registration = register_void_ll_invoker(void_ll_callback_inst); - static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_ll(int obj_ptr, int fn_id, long a, long b) { + public delegate void VoidLlCallback(int obj_ptr, int fn_id, long a, long b); + static VoidLlCallback VoidLlCallbackInst = CCallbackVoidLl; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_ll_invoker")] public static extern int RegisterVoidLlInvoker(VoidLlCallback callee); + static int _run_void_ll_registration = RegisterVoidLlInvoker(VoidLlCallbackInst); + static ChannelMonitorUpdateStatus CCallbackChannelMonitorUpdateStatusLl(int obj_ptr, int fn_id, long a, long b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatus_ll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatusLl"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatus_ll"); + Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatusLl"); Console.Error.Flush(); Environment.Exit(43); } @@ -14579,27 +14579,27 @@ static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_ll(int o Console.Error.Flush(); Environment.Exit(44); } - return ((LDKWatch)obj).update_channel(a, b); + return ((LDKWatch)obj).UpdateChannel(a, b); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatus_ll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatusLl"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_ll_callback(int obj_ptr, int fn_id, long a, long b); - static ChannelMonitorUpdateStatus_ll_callback ChannelMonitorUpdateStatus_ll_callback_inst = c_callback_ChannelMonitorUpdateStatus_ll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_ll_invoker")] public static extern int register_ChannelMonitorUpdateStatus_ll_invoker(ChannelMonitorUpdateStatus_ll_callback callee); - static int _run_ChannelMonitorUpdateStatus_ll_registration = register_ChannelMonitorUpdateStatus_ll_invoker(ChannelMonitorUpdateStatus_ll_callback_inst); - static long c_callback_l_Recipient(int obj_ptr, int fn_id, Recipient a) { + public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusLlCallback(int obj_ptr, int fn_id, long a, long b); + static ChannelMonitorUpdateStatusLlCallback ChannelMonitorUpdateStatusLlCallbackInst = CCallbackChannelMonitorUpdateStatusLl; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_ll_invoker")] public static extern int RegisterChannelMonitorUpdateStatusLlInvoker(ChannelMonitorUpdateStatusLlCallback callee); + static int _run_ChannelMonitorUpdateStatus_ll_registration = RegisterChannelMonitorUpdateStatusLlInvoker(ChannelMonitorUpdateStatusLlCallbackInst); + static long CCallbackLRecipient(int obj_ptr, int fn_id, Recipient a) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_Recipient"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LRecipient"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_Recipient"); + Console.Error.WriteLine("Got function call on GC'd JS object in LRecipient"); Console.Error.Flush(); Environment.Exit(43); } @@ -14610,27 +14610,27 @@ static long c_callback_l_Recipient(int obj_ptr, int fn_id, Recipient a) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).get_node_id(a); + return ((LDKNodeSigner)obj).GetNodeId(a); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_Recipient"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LRecipient"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_Recipient_callback(int obj_ptr, int fn_id, Recipient a); - static l_Recipient_callback l_Recipient_callback_inst = c_callback_l_Recipient; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_Recipient_invoker")] public static extern int register_l_Recipient_invoker(l_Recipient_callback callee); - static int _run_l_Recipient_registration = register_l_Recipient_invoker(l_Recipient_callback_inst); - static long c_callback_l_Recipientll(int obj_ptr, int fn_id, Recipient a, long b, long c) { + public delegate long LRecipientCallback(int obj_ptr, int fn_id, Recipient a); + static LRecipientCallback LRecipientCallbackInst = CCallbackLRecipient; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_Recipient_invoker")] public static extern int RegisterLRecipientInvoker(LRecipientCallback callee); + static int _run_l_Recipient_registration = RegisterLRecipientInvoker(LRecipientCallbackInst); + static long CCallbackLRecipientll(int obj_ptr, int fn_id, Recipient a, long b, long c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_Recipientll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LRecipientll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_Recipientll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LRecipientll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14641,27 +14641,27 @@ static long c_callback_l_Recipientll(int obj_ptr, int fn_id, Recipient a, long b Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).ecdh(a, b, c); + return ((LDKNodeSigner)obj).Ecdh(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_Recipientll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LRecipientll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_Recipientll_callback(int obj_ptr, int fn_id, Recipient a, long b, long c); - static l_Recipientll_callback l_Recipientll_callback_inst = c_callback_l_Recipientll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_Recipientll_invoker")] public static extern int register_l_Recipientll_invoker(l_Recipientll_callback callee); - static int _run_l_Recipientll_registration = register_l_Recipientll_invoker(l_Recipientll_callback_inst); - static long c_callback_l_llRecipient(int obj_ptr, int fn_id, long a, long b, Recipient c) { + public delegate long LRecipientllCallback(int obj_ptr, int fn_id, Recipient a, long b, long c); + static LRecipientllCallback LRecipientllCallbackInst = CCallbackLRecipientll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_Recipientll_invoker")] public static extern int RegisterLRecipientllInvoker(LRecipientllCallback callee); + static int _run_l_Recipientll_registration = RegisterLRecipientllInvoker(LRecipientllCallbackInst); + static long CCallbackLLlrecipient(int obj_ptr, int fn_id, long a, long b, Recipient c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_llRecipient"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLlrecipient"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_llRecipient"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLlrecipient"); Console.Error.Flush(); Environment.Exit(43); } @@ -14672,27 +14672,27 @@ static long c_callback_l_llRecipient(int obj_ptr, int fn_id, long a, long b, Rec Console.Error.Flush(); Environment.Exit(44); } - return ((LDKNodeSigner)obj).sign_invoice(a, b, c); + return ((LDKNodeSigner)obj).SignInvoice(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_llRecipient"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLlrecipient"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_llRecipient_callback(int obj_ptr, int fn_id, long a, long b, Recipient c); - static l_llRecipient_callback l_llRecipient_callback_inst = c_callback_l_llRecipient; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llRecipient_invoker")] public static extern int register_l_llRecipient_invoker(l_llRecipient_callback callee); - static int _run_l_llRecipient_registration = register_l_llRecipient_invoker(l_llRecipient_callback_inst); - static long c_callback_l_bll(int obj_ptr, int fn_id, bool a, long b, long c) { + public delegate long LLlrecipientCallback(int obj_ptr, int fn_id, long a, long b, Recipient c); + static LLlrecipientCallback LLlrecipientCallbackInst = CCallbackLLlrecipient; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llRecipient_invoker")] public static extern int RegisterLLlrecipientInvoker(LLlrecipientCallback callee); + static int _run_l_llRecipient_registration = RegisterLLlrecipientInvoker(LLlrecipientCallbackInst); + static long CCallbackLBll(int obj_ptr, int fn_id, bool a, long b, long c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_bll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LBll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_bll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LBll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14703,27 +14703,27 @@ static long c_callback_l_bll(int obj_ptr, int fn_id, bool a, long b, long c) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSignerProvider)obj).generate_channel_keys_id(a, b, c); + return ((LDKSignerProvider)obj).GenerateChannelKeysId(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_bll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LBll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_bll_callback(int obj_ptr, int fn_id, bool a, long b, long c); - static l_bll_callback l_bll_callback_inst = c_callback_l_bll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_bll_invoker")] public static extern int register_l_bll_invoker(l_bll_callback callee); - static int _run_l_bll_registration = register_l_bll_invoker(l_bll_callback_inst); - static int c_callback_i_ConfirmationTarget(int obj_ptr, int fn_id, ConfirmationTarget a) { + public delegate long LBllCallback(int obj_ptr, int fn_id, bool a, long b, long c); + static LBllCallback LBllCallbackInst = CCallbackLBll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_bll_invoker")] public static extern int RegisterLBllInvoker(LBllCallback callee); + static int _run_l_bll_registration = RegisterLBllInvoker(LBllCallbackInst); + static int CCallbackIConfirmationTarget(int obj_ptr, int fn_id, ConfirmationTarget a) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in i_ConfirmationTarget"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in IConfirmationTarget"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in i_ConfirmationTarget"); + Console.Error.WriteLine("Got function call on GC'd JS object in IConfirmationTarget"); Console.Error.Flush(); Environment.Exit(43); } @@ -14734,27 +14734,27 @@ static int c_callback_i_ConfirmationTarget(int obj_ptr, int fn_id, ConfirmationT Console.Error.Flush(); Environment.Exit(44); } - return ((LDKFeeEstimator)obj).get_est_sat_per_1000_weight(a); + return ((LDKFeeEstimator)obj).GetEstSatPer1000Weight(a); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in i_ConfirmationTarget"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in IConfirmationTarget"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate int i_ConfirmationTarget_callback(int obj_ptr, int fn_id, ConfirmationTarget a); - static i_ConfirmationTarget_callback i_ConfirmationTarget_callback_inst = c_callback_i_ConfirmationTarget; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_i_ConfirmationTarget_invoker")] public static extern int register_i_ConfirmationTarget_invoker(i_ConfirmationTarget_callback callee); - static int _run_i_ConfirmationTarget_registration = register_i_ConfirmationTarget_invoker(i_ConfirmationTarget_callback_inst); - static long c_callback_l_llllll(int obj_ptr, int fn_id, long a, long b, long c, long d, long e, long f) { + public delegate int IConfirmationTargetCallback(int obj_ptr, int fn_id, ConfirmationTarget a); + static IConfirmationTargetCallback IConfirmationTargetCallbackInst = CCallbackIConfirmationTarget; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_i_ConfirmationTarget_invoker")] public static extern int RegisterIConfirmationTargetInvoker(IConfirmationTargetCallback callee); + static int _run_i_ConfirmationTarget_registration = RegisterIConfirmationTargetInvoker(IConfirmationTargetCallbackInst); + static long CCallbackLLlllll(int obj_ptr, int fn_id, long a, long b, long c, long d, long e, long f) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_llllll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLlllll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_llllll"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLlllll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14765,27 +14765,27 @@ static long c_callback_l_llllll(int obj_ptr, int fn_id, long a, long b, long c, Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRouter)obj).find_route_with_id(a, b, c, d, e, f); + return ((LDKRouter)obj).FindRouteWithId(a, b, c, d, e, f); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_llllll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLlllll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_llllll_callback(int obj_ptr, int fn_id, long a, long b, long c, long d, long e, long f); - static l_llllll_callback l_llllll_callback_inst = c_callback_l_llllll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llllll_invoker")] public static extern int register_l_llllll_invoker(l_llllll_callback callee); - static int _run_l_llllll_registration = register_l_llllll_invoker(l_llllll_callback_inst); - static short c_callback_s_(int obj_ptr, int fn_id) { + public delegate long LLlllllCallback(int obj_ptr, int fn_id, long a, long b, long c, long d, long e, long f); + static LLlllllCallback LLlllllCallbackInst = CCallbackLLlllll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llllll_invoker")] public static extern int RegisterLLlllllInvoker(LLlllllCallback callee); + static int _run_l_llllll_registration = RegisterLLlllllInvoker(LLlllllCallbackInst); + static short CCallbackS(int obj_ptr, int fn_id) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in s_"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in S"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in s_"); + Console.Error.WriteLine("Got function call on GC'd JS object in S"); Console.Error.Flush(); Environment.Exit(43); } @@ -14796,27 +14796,27 @@ static short c_callback_s_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKType)obj).type_id(); + return ((LDKType)obj).TypeId(); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in s_"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in S"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate short s__callback(int obj_ptr, int fn_id); - static s__callback s__callback_inst = c_callback_s_; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_s__invoker")] public static extern int register_s__invoker(s__callback callee); - static int _run_s__registration = register_s__invoker(s__callback_inst); - static long c_callback_l_lllb(int obj_ptr, int fn_id, long a, long b, long c, bool d) { + public delegate short SCallback(int obj_ptr, int fn_id); + static SCallback SCallbackInst = CCallbackS; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_s__invoker")] public static extern int RegisterSInvoker(SCallback callee); + static int _run_s__registration = RegisterSInvoker(SCallbackInst); + static long CCallbackLLllb(int obj_ptr, int fn_id, long a, long b, long c, bool d) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_lllb"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLllb"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_lllb"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLllb"); Console.Error.Flush(); Environment.Exit(43); } @@ -14827,27 +14827,27 @@ static long c_callback_l_lllb(int obj_ptr, int fn_id, long a, long b, long c, bo Console.Error.Flush(); Environment.Exit(44); } - return ((LDKKVStore)obj).remove(a, b, c, d); + return ((LDKKVStore)obj).Remove(a, b, c, d); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_lllb"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLllb"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_lllb_callback(int obj_ptr, int fn_id, long a, long b, long c, bool d); - static l_lllb_callback l_lllb_callback_inst = c_callback_l_lllb; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lllb_invoker")] public static extern int register_l_lllb_invoker(l_lllb_callback callee); - static int _run_l_lllb_registration = register_l_lllb_invoker(l_lllb_callback_inst); - static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_lll(int obj_ptr, int fn_id, long a, long b, long c) { + public delegate long LLllbCallback(int obj_ptr, int fn_id, long a, long b, long c, bool d); + static LLllbCallback LLllbCallbackInst = CCallbackLLllb; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lllb_invoker")] public static extern int RegisterLLllbInvoker(LLllbCallback callee); + static int _run_l_lllb_registration = RegisterLLllbInvoker(LLllbCallbackInst); + static ChannelMonitorUpdateStatus CCallbackChannelMonitorUpdateStatusLll(int obj_ptr, int fn_id, long a, long b, long c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatus_lll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatusLll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatus_lll"); + Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatusLll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14858,27 +14858,27 @@ static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_lll(int Console.Error.Flush(); Environment.Exit(44); } - return ((LDKPersist)obj).persist_new_channel(a, b, c); + return ((LDKPersist)obj).PersistNewChannel(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatus_lll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatusLll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_lll_callback(int obj_ptr, int fn_id, long a, long b, long c); - static ChannelMonitorUpdateStatus_lll_callback ChannelMonitorUpdateStatus_lll_callback_inst = c_callback_ChannelMonitorUpdateStatus_lll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_lll_invoker")] public static extern int register_ChannelMonitorUpdateStatus_lll_invoker(ChannelMonitorUpdateStatus_lll_callback callee); - static int _run_ChannelMonitorUpdateStatus_lll_registration = register_ChannelMonitorUpdateStatus_lll_invoker(ChannelMonitorUpdateStatus_lll_callback_inst); - static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_llll(int obj_ptr, int fn_id, long a, long b, long c, long d) { + public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusLllCallback(int obj_ptr, int fn_id, long a, long b, long c); + static ChannelMonitorUpdateStatusLllCallback ChannelMonitorUpdateStatusLllCallbackInst = CCallbackChannelMonitorUpdateStatusLll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_lll_invoker")] public static extern int RegisterChannelMonitorUpdateStatusLllInvoker(ChannelMonitorUpdateStatusLllCallback callee); + static int _run_ChannelMonitorUpdateStatus_lll_registration = RegisterChannelMonitorUpdateStatusLllInvoker(ChannelMonitorUpdateStatusLllCallbackInst); + static ChannelMonitorUpdateStatus CCallbackChannelMonitorUpdateStatusLlll(int obj_ptr, int fn_id, long a, long b, long c, long d) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatus_llll"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in ChannelMonitorUpdateStatusLlll"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatus_llll"); + Console.Error.WriteLine("Got function call on GC'd JS object in ChannelMonitorUpdateStatusLlll"); Console.Error.Flush(); Environment.Exit(43); } @@ -14889,27 +14889,27 @@ static ChannelMonitorUpdateStatus c_callback_ChannelMonitorUpdateStatus_llll(int Console.Error.Flush(); Environment.Exit(44); } - return ((LDKPersist)obj).update_persisted_channel(a, b, c, d); + return ((LDKPersist)obj).UpdatePersistedChannel(a, b, c, d); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatus_llll"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in ChannelMonitorUpdateStatusLlll"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_llll_callback(int obj_ptr, int fn_id, long a, long b, long c, long d); - static ChannelMonitorUpdateStatus_llll_callback ChannelMonitorUpdateStatus_llll_callback_inst = c_callback_ChannelMonitorUpdateStatus_llll; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_llll_invoker")] public static extern int register_ChannelMonitorUpdateStatus_llll_invoker(ChannelMonitorUpdateStatus_llll_callback callee); - static int _run_ChannelMonitorUpdateStatus_llll_registration = register_ChannelMonitorUpdateStatus_llll_invoker(ChannelMonitorUpdateStatus_llll_callback_inst); - static void c_callback_void_(int obj_ptr, int fn_id) { + public delegate ChannelMonitorUpdateStatus ChannelMonitorUpdateStatusLlllCallback(int obj_ptr, int fn_id, long a, long b, long c, long d); + static ChannelMonitorUpdateStatusLlllCallback ChannelMonitorUpdateStatusLlllCallbackInst = CCallbackChannelMonitorUpdateStatusLlll; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_ChannelMonitorUpdateStatus_llll_invoker")] public static extern int RegisterChannelMonitorUpdateStatusLlllInvoker(ChannelMonitorUpdateStatusLlllCallback callee); + static int _run_ChannelMonitorUpdateStatus_llll_registration = RegisterChannelMonitorUpdateStatusLlllInvoker(ChannelMonitorUpdateStatusLlllCallbackInst); + static void CCallbackVoid(int obj_ptr, int fn_id) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in Void"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_"); + Console.Error.WriteLine("Got function call on GC'd JS object in Void"); Console.Error.Flush(); Environment.Exit(43); } @@ -14920,7 +14920,7 @@ static void c_callback_void_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKFutureCallback)obj).call(); + ((LDKFutureCallback)obj).Call(); return; case 136: if (!(obj is LDKOnionMessageHandler)) { @@ -14928,7 +14928,7 @@ static void c_callback_void_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKOnionMessageHandler)obj).timer_tick_occurred(); + ((LDKOnionMessageHandler)obj).TimerTickOccurred(); return; case 148: if (!(obj is LDKSocketDescriptor)) { @@ -14936,28 +14936,28 @@ static void c_callback_void_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKSocketDescriptor)obj).disconnect_socket(); + ((LDKSocketDescriptor)obj).DisconnectSocket(); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in Void"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void__callback(int obj_ptr, int fn_id); - static void__callback void__callback_inst = c_callback_void_; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void__invoker")] public static extern int register_void__invoker(void__callback callee); - static int _run_void__registration = register_void__invoker(void__callback_inst); - static void c_callback_void_lli(int obj_ptr, int fn_id, long a, long b, int c) { + public delegate void VoidCallback(int obj_ptr, int fn_id); + static VoidCallback VoidCallbackInst = CCallbackVoid; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void__invoker")] public static extern int RegisterVoidInvoker(VoidCallback callee); + static int _run_void__registration = RegisterVoidInvoker(VoidCallbackInst); + static void CCallbackVoidLli(int obj_ptr, int fn_id, long a, long b, int c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_lli"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in VoidLli"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_lli"); + Console.Error.WriteLine("Got function call on GC'd JS object in VoidLli"); Console.Error.Flush(); Environment.Exit(43); } @@ -14968,7 +14968,7 @@ static void c_callback_void_lli(int obj_ptr, int fn_id, long a, long b, int c) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKListen)obj).filtered_block_connected(a, b, c); + ((LDKListen)obj).FilteredBlockConnected(a, b, c); return; case 71: if (!(obj is LDKConfirm)) { @@ -14976,28 +14976,28 @@ static void c_callback_void_lli(int obj_ptr, int fn_id, long a, long b, int c) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKConfirm)obj).transactions_confirmed(a, b, c); + ((LDKConfirm)obj).TransactionsConfirmed(a, b, c); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_lli"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in VoidLli"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void_lli_callback(int obj_ptr, int fn_id, long a, long b, int c); - static void_lli_callback void_lli_callback_inst = c_callback_void_lli; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_lli_invoker")] public static extern int register_void_lli_invoker(void_lli_callback callee); - static int _run_void_lli_registration = register_void_lli_invoker(void_lli_callback_inst); - static void c_callback_void_li(int obj_ptr, int fn_id, long a, int b) { + public delegate void VoidLliCallback(int obj_ptr, int fn_id, long a, long b, int c); + static VoidLliCallback VoidLliCallbackInst = CCallbackVoidLli; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_lli_invoker")] public static extern int RegisterVoidLliInvoker(VoidLliCallback callee); + static int _run_void_lli_registration = RegisterVoidLliInvoker(VoidLliCallbackInst); + static void CCallbackVoidLi(int obj_ptr, int fn_id, long a, int b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in void_li"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in VoidLi"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in void_li"); + Console.Error.WriteLine("Got function call on GC'd JS object in VoidLi"); Console.Error.Flush(); Environment.Exit(43); } @@ -15008,7 +15008,7 @@ static void c_callback_void_li(int obj_ptr, int fn_id, long a, int b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKListen)obj).block_connected(a, b); + ((LDKListen)obj).BlockConnected(a, b); return; case 70: if (!(obj is LDKListen)) { @@ -15016,7 +15016,7 @@ static void c_callback_void_li(int obj_ptr, int fn_id, long a, int b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKListen)obj).block_disconnected(a, b); + ((LDKListen)obj).BlockDisconnected(a, b); return; case 73: if (!(obj is LDKConfirm)) { @@ -15024,28 +15024,28 @@ static void c_callback_void_li(int obj_ptr, int fn_id, long a, int b) { Console.Error.Flush(); Environment.Exit(44); } - ((LDKConfirm)obj).best_block_updated(a, b); + ((LDKConfirm)obj).BestBlockUpdated(a, b); return; default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in void_li"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in VoidLi"); Console.Error.Flush(); Environment.Exit(45); return; } } - public delegate void void_li_callback(int obj_ptr, int fn_id, long a, int b); - static void_li_callback void_li_callback_inst = c_callback_void_li; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_li_invoker")] public static extern int register_void_li_invoker(void_li_callback callee); - static int _run_void_li_registration = register_void_li_invoker(void_li_callback_inst); - static long c_callback_l_llb(int obj_ptr, int fn_id, long a, long b, bool c) { + public delegate void VoidLiCallback(int obj_ptr, int fn_id, long a, int b); + static VoidLiCallback VoidLiCallbackInst = CCallbackVoidLi; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_void_li_invoker")] public static extern int RegisterVoidLiInvoker(VoidLiCallback callee); + static int _run_void_li_registration = RegisterVoidLiInvoker(VoidLiCallbackInst); + static long CCallbackLLlb(int obj_ptr, int fn_id, long a, long b, bool c) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_llb"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLlb"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_llb"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLlb"); Console.Error.Flush(); Environment.Exit(43); } @@ -15056,41 +15056,41 @@ static long c_callback_l_llb(int obj_ptr, int fn_id, long a, long b, bool c) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKChannelMessageHandler)obj).peer_connected(a, b, c); + return ((LDKChannelMessageHandler)obj).PeerConnected(a, b, c); case 123: if (!(obj is LDKRoutingMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKRoutingMessageHandler in l_llb"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).peer_connected(a, b, c); + return ((LDKRoutingMessageHandler)obj).PeerConnected(a, b, c); case 134: if (!(obj is LDKOnionMessageHandler)) { Console.Error.WriteLine("Got function call to object that wasn't a LDKOnionMessageHandler in l_llb"); Console.Error.Flush(); Environment.Exit(44); } - return ((LDKOnionMessageHandler)obj).peer_connected(a, b, c); + return ((LDKOnionMessageHandler)obj).PeerConnected(a, b, c); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_llb"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLlb"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_llb_callback(int obj_ptr, int fn_id, long a, long b, bool c); - static l_llb_callback l_llb_callback_inst = c_callback_l_llb; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llb_invoker")] public static extern int register_l_llb_invoker(l_llb_callback callee); - static int _run_l_llb_registration = register_l_llb_invoker(l_llb_callback_inst); - static bool c_callback_b_(int obj_ptr, int fn_id) { + public delegate long LLlbCallback(int obj_ptr, int fn_id, long a, long b, bool c); + static LLlbCallback LLlbCallbackInst = CCallbackLLlb; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llb_invoker")] public static extern int RegisterLLlbInvoker(LLlbCallback callee); + static int _run_l_llb_registration = RegisterLLlbInvoker(LLlbCallbackInst); + static bool CCallbackB(int obj_ptr, int fn_id) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in b_"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in B"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in b_"); + Console.Error.WriteLine("Got function call on GC'd JS object in B"); Console.Error.Flush(); Environment.Exit(43); } @@ -15101,27 +15101,27 @@ static bool c_callback_b_(int obj_ptr, int fn_id) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKRoutingMessageHandler)obj).processing_queue_high(); + return ((LDKRoutingMessageHandler)obj).ProcessingQueueHigh(); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in b_"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in B"); Console.Error.Flush(); Environment.Exit(45); return false; } } - public delegate bool b__callback(int obj_ptr, int fn_id); - static b__callback b__callback_inst = c_callback_b_; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_b__invoker")] public static extern int register_b__invoker(b__callback callee); - static int _run_b__registration = register_b__invoker(b__callback_inst); - static long c_callback_l_sl(int obj_ptr, int fn_id, short a, long b) { + public delegate bool BCallback(int obj_ptr, int fn_id); + static BCallback BCallbackInst = CCallbackB; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_b__invoker")] public static extern int RegisterBInvoker(BCallback callee); + static int _run_b__registration = RegisterBInvoker(BCallbackInst); + static long CCallbackLSl(int obj_ptr, int fn_id, short a, long b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_sl"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LSl"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_sl"); + Console.Error.WriteLine("Got function call on GC'd JS object in LSl"); Console.Error.Flush(); Environment.Exit(43); } @@ -15132,27 +15132,27 @@ static long c_callback_l_sl(int obj_ptr, int fn_id, short a, long b) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCustomMessageReader)obj).read(a, b); + return ((LDKCustomMessageReader)obj).Read(a, b); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_sl"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LSl"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_sl_callback(int obj_ptr, int fn_id, short a, long b); - static l_sl_callback l_sl_callback_inst = c_callback_l_sl; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_sl_invoker")] public static extern int register_l_sl_invoker(l_sl_callback callee); - static int _run_l_sl_registration = register_l_sl_invoker(l_sl_callback_inst); - static long c_callback_l_lb(int obj_ptr, int fn_id, long a, bool b) { + public delegate long LSlCallback(int obj_ptr, int fn_id, short a, long b); + static LSlCallback LSlCallbackInst = CCallbackLSl; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_sl_invoker")] public static extern int RegisterLSlInvoker(LSlCallback callee); + static int _run_l_sl_registration = RegisterLSlInvoker(LSlCallbackInst); + static long CCallbackLLb(int obj_ptr, int fn_id, long a, bool b) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_lb"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLb"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_lb"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLb"); Console.Error.Flush(); Environment.Exit(43); } @@ -15163,27 +15163,27 @@ static long c_callback_l_lb(int obj_ptr, int fn_id, long a, bool b) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSocketDescriptor)obj).send_data(a, b); + return ((LDKSocketDescriptor)obj).SendData(a, b); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_lb"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLb"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_lb_callback(int obj_ptr, int fn_id, long a, bool b); - static l_lb_callback l_lb_callback_inst = c_callback_l_lb; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lb_invoker")] public static extern int register_l_lb_invoker(l_lb_callback callee); - static int _run_l_lb_registration = register_l_lb_invoker(l_lb_callback_inst); - static bool c_callback_b_l(int obj_ptr, int fn_id, long a) { + public delegate long LLbCallback(int obj_ptr, int fn_id, long a, bool b); + static LLbCallback LLbCallbackInst = CCallbackLLb; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_lb_invoker")] public static extern int RegisterLLbInvoker(LLbCallback callee); + static int _run_l_lb_registration = RegisterLLbInvoker(LLbCallbackInst); + static bool CCallbackBL(int obj_ptr, int fn_id, long a) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in b_l"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in BL"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in b_l"); + Console.Error.WriteLine("Got function call on GC'd JS object in BL"); Console.Error.Flush(); Environment.Exit(43); } @@ -15194,27 +15194,27 @@ static bool c_callback_b_l(int obj_ptr, int fn_id, long a) { Console.Error.Flush(); Environment.Exit(44); } - return ((LDKSocketDescriptor)obj).eq(a); + return ((LDKSocketDescriptor)obj).Eq(a); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in b_l"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in BL"); Console.Error.Flush(); Environment.Exit(45); return false; } } - public delegate bool b_l_callback(int obj_ptr, int fn_id, long a); - static b_l_callback b_l_callback_inst = c_callback_b_l; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_b_l_invoker")] public static extern int register_b_l_invoker(b_l_callback callee); - static int _run_b_l_registration = register_b_l_invoker(b_l_callback_inst); - static long c_callback_l_llli(int obj_ptr, int fn_id, long a, long b, long c, int d) { + public delegate bool BLCallback(int obj_ptr, int fn_id, long a); + static BLCallback BLCallbackInst = CCallbackBL; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_b_l_invoker")] public static extern int RegisterBLInvoker(BLCallback callee); + static int _run_b_l_registration = RegisterBLInvoker(BLCallbackInst); + static long CCallbackLLlli(int obj_ptr, int fn_id, long a, long b, long c, int d) { if (obj_ptr >= js_objs.Count) { - Console.Error.WriteLine("Got function call on unknown/free'd JS object in l_llli"); + Console.Error.WriteLine("Got function call on unknown/free'd JS object in LLlli"); Console.Error.Flush(); Environment.Exit(42); } object obj = js_objs[obj_ptr].Target; if (obj == null) { - Console.Error.WriteLine("Got function call on GC'd JS object in l_llli"); + Console.Error.WriteLine("Got function call on GC'd JS object in LLlli"); Console.Error.Flush(); Environment.Exit(43); } @@ -15225,17 +15225,17 @@ static long c_callback_l_llli(int obj_ptr, int fn_id, long a, long b, long c, in Console.Error.Flush(); Environment.Exit(44); } - return ((LDKCoinSelectionSource)obj).select_confirmed_utxos(a, b, c, d); + return ((LDKCoinSelectionSource)obj).SelectConfirmedUtxos(a, b, c, d); default: - Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in l_llli"); + Console.Error.WriteLine("Got unknown function call with id " + fn_id + " from C in LLlli"); Console.Error.Flush(); Environment.Exit(45); return 0; } } - public delegate long l_llli_callback(int obj_ptr, int fn_id, long a, long b, long c, int d); - static l_llli_callback l_llli_callback_inst = c_callback_l_llli; - [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llli_invoker")] public static extern int register_l_llli_invoker(l_llli_callback callee); - static int _run_l_llli_registration = register_l_llli_invoker(l_llli_callback_inst); + public delegate long LLlliCallback(int obj_ptr, int fn_id, long a, long b, long c, int d); + static LLlliCallback LLlliCallbackInst = CCallbackLLlli; + [DllImport ("ldkcsharp", EntryPoint="CS_LDK_register_l_llli_invoker")] public static extern int RegisterLLlliInvoker(LLlliCallback callee); + static int _run_l_llli_registration = RegisterLLlliInvoker(LLlliCallbackInst); } } } } \ No newline at end of file diff --git a/c_sharp/src/org/ldk/structs/APIError.cs b/c_sharp/src/org/ldk/structs/APIError.cs index a9218c881..bd7aa8601 100644 --- a/c_sharp/src/org/ldk/structs/APIError.cs +++ b/c_sharp/src/org/ldk/structs/APIError.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class APIError : CommonBase { protected APIError(object _dummy, long ptr) : base(ptr) { } ~APIError() { - if (ptr != 0) { bindings.APIError_free(ptr); } + if (ptr != 0) { Bindings.APIErrorFree(ptr); } } internal static APIError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKAPIError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKAPIErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new APIError_APIMisuseError(ptr); case 1: return new APIError_FeeRateTooHigh(ptr); @@ -36,8 +36,8 @@ public class APIError_APIMisuseError : APIError { */ public string err; internal APIError_APIMisuseError(long ptr) : base(null, ptr) { - long err = bindings.LDKAPIError_APIMisuseError_get_err(ptr); - string err_conv = InternalUtils.decodeString(err); + long err = Bindings.LDKAPIErrorAPIMisuseErrorGetErr(ptr); + string err_conv = InternalUtils.DecodeString(err); this.err = err_conv; } } @@ -52,10 +52,10 @@ public class APIError_FeeRateTooHigh : APIError { */ public int feerate; internal APIError_FeeRateTooHigh(long ptr) : base(null, ptr) { - long err = bindings.LDKAPIError_FeeRateTooHigh_get_err(ptr); - string err_conv = InternalUtils.decodeString(err); + long err = Bindings.LDKAPIErrorFeeRateTooHighGetErr(ptr); + string err_conv = InternalUtils.DecodeString(err); this.err = err_conv; - this.feerate = bindings.LDKAPIError_FeeRateTooHigh_get_feerate(ptr); + this.feerate = Bindings.LDKAPIErrorFeeRateTooHighGetFeerate(ptr); } } /** A APIError of type InvalidRoute */ @@ -65,8 +65,8 @@ public class APIError_InvalidRoute : APIError { */ public string err; internal APIError_InvalidRoute(long ptr) : base(null, ptr) { - long err = bindings.LDKAPIError_InvalidRoute_get_err(ptr); - string err_conv = InternalUtils.decodeString(err); + long err = Bindings.LDKAPIErrorInvalidRouteGetErr(ptr); + string err_conv = InternalUtils.DecodeString(err); this.err = err_conv; } } @@ -77,8 +77,8 @@ public class APIError_ChannelUnavailable : APIError { */ public string err; internal APIError_ChannelUnavailable(long ptr) : base(null, ptr) { - long err = bindings.LDKAPIError_ChannelUnavailable_get_err(ptr); - string err_conv = InternalUtils.decodeString(err); + long err = Bindings.LDKAPIErrorChannelUnavailableGetErr(ptr); + string err_conv = InternalUtils.DecodeString(err); this.err = err_conv; } } @@ -94,14 +94,14 @@ public class APIError_IncompatibleShutdownScript : APIError { */ public ShutdownScript script; internal APIError_IncompatibleShutdownScript(long ptr) : base(null, ptr) { - long script = bindings.LDKAPIError_IncompatibleShutdownScript_get_script(ptr); + long script = Bindings.LDKAPIErrorIncompatibleShutdownScriptGetScript(ptr); org.ldk.structs.ShutdownScript script_hu_conv = null; if (script < 0 || script > 4096) { script_hu_conv = new org.ldk.structs.ShutdownScript(null, script); } if (script_hu_conv != null) { script_hu_conv.ptrs_to.AddLast(this); }; this.script = script_hu_conv; } } internal long clone_ptr() { - long ret = bindings.APIError_clone_ptr(this.ptr); + long ret = Bindings.APIErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ internal long clone_ptr() { * Creates a copy of the APIError */ public APIError clone() { - long ret = bindings.APIError_clone(this.ptr); + long ret = Bindings.APIErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -122,7 +122,7 @@ public APIError clone() { * Utility method to constructs a new APIMisuseError-variant APIError */ public static APIError apimisuse_error(string err) { - long ret = bindings.APIError_apimisuse_error(InternalUtils.encodeString(err)); + long ret = Bindings.APIErrorApimisuseError(InternalUtils.EncodeString(err)); GC.KeepAlive(err); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -134,7 +134,7 @@ public static APIError apimisuse_error(string err) { * Utility method to constructs a new FeeRateTooHigh-variant APIError */ public static APIError fee_rate_too_high(string err, int feerate) { - long ret = bindings.APIError_fee_rate_too_high(InternalUtils.encodeString(err), feerate); + long ret = Bindings.APIErrorFeeRateTooHigh(InternalUtils.EncodeString(err), feerate); GC.KeepAlive(err); GC.KeepAlive(feerate); if (ret >= 0 && ret <= 4096) { return null; } @@ -147,7 +147,7 @@ public static APIError fee_rate_too_high(string err, int feerate) { * Utility method to constructs a new InvalidRoute-variant APIError */ public static APIError invalid_route(string err) { - long ret = bindings.APIError_invalid_route(InternalUtils.encodeString(err)); + long ret = Bindings.APIErrorInvalidRoute(InternalUtils.EncodeString(err)); GC.KeepAlive(err); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -159,7 +159,7 @@ public static APIError invalid_route(string err) { * Utility method to constructs a new ChannelUnavailable-variant APIError */ public static APIError channel_unavailable(string err) { - long ret = bindings.APIError_channel_unavailable(InternalUtils.encodeString(err)); + long ret = Bindings.APIErrorChannelUnavailable(InternalUtils.EncodeString(err)); GC.KeepAlive(err); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -171,7 +171,7 @@ public static APIError channel_unavailable(string err) { * Utility method to constructs a new MonitorUpdateInProgress-variant APIError */ public static APIError monitor_update_in_progress() { - long ret = bindings.APIError_monitor_update_in_progress(); + long ret = Bindings.APIErrorMonitorUpdateInProgress(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -182,7 +182,7 @@ public static APIError monitor_update_in_progress() { * Utility method to constructs a new IncompatibleShutdownScript-variant APIError */ public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScript script) { - long ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr); + long ret = Bindings.APIErrorIncompatibleShutdownScript(script == null ? 0 : script.ptr); GC.KeepAlive(script); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret); @@ -196,7 +196,7 @@ public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScri * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.APIError b) { - bool ret = bindings.APIError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.APIErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -210,10 +210,10 @@ public override bool Equals(object o) { * Serialize the APIError object into a byte array which can be read by APIError_read */ public byte[] write() { - long ret = bindings.APIError_write(this.ptr); + long ret = Bindings.APIErrorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/AcceptChannel.cs b/c_sharp/src/org/ldk/structs/AcceptChannel.cs index ffa4cfa03..c6e210f4c 100644 --- a/c_sharp/src/org/ldk/structs/AcceptChannel.cs +++ b/c_sharp/src/org/ldk/structs/AcceptChannel.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class AcceptChannel : CommonBase { internal AcceptChannel(object _dummy, long ptr) : base(ptr) { } ~AcceptChannel() { - if (ptr != 0) { bindings.AcceptChannel_free(ptr); } + if (ptr != 0) { Bindings.AcceptChannelFree(ptr); } } /** * A temporary channel ID, until the funding outpoint is announced */ public byte[] get_temporary_channel_id() { - long ret = bindings.AcceptChannel_get_temporary_channel_id(this.ptr); + long ret = Bindings.AcceptChannelGetTemporaryChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_temporary_channel_id() { * A temporary channel ID, until the funding outpoint is announced */ public void set_temporary_channel_id(byte[] val) { - bindings.AcceptChannel_set_temporary_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.AcceptChannelSetTemporaryChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_temporary_channel_id(byte[] val) { * The threshold below which outputs on transactions broadcast by sender will be omitted */ public long get_dust_limit_satoshis() { - long ret = bindings.AcceptChannel_get_dust_limit_satoshis(this.ptr); + long ret = Bindings.AcceptChannelGetDustLimitSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public long get_dust_limit_satoshis() { * The threshold below which outputs on transactions broadcast by sender will be omitted */ public void set_dust_limit_satoshis(long val) { - bindings.AcceptChannel_set_dust_limit_satoshis(this.ptr, val); + Bindings.AcceptChannelSetDustLimitSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_dust_limit_satoshis(long val) { * The maximum inbound HTLC value in flight towards sender, in milli-satoshi */ public long get_max_htlc_value_in_flight_msat() { - long ret = bindings.AcceptChannel_get_max_htlc_value_in_flight_msat(this.ptr); + long ret = Bindings.AcceptChannelGetMaxHtlcValueInFlightMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public long get_max_htlc_value_in_flight_msat() { * The maximum inbound HTLC value in flight towards sender, in milli-satoshi */ public void set_max_htlc_value_in_flight_msat(long val) { - bindings.AcceptChannel_set_max_htlc_value_in_flight_msat(this.ptr, val); + Bindings.AcceptChannelSetMaxHtlcValueInFlightMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_max_htlc_value_in_flight_msat(long val) { * The minimum value unencumbered by HTLCs for the counterparty to keep in the channel */ public long get_channel_reserve_satoshis() { - long ret = bindings.AcceptChannel_get_channel_reserve_satoshis(this.ptr); + long ret = Bindings.AcceptChannelGetChannelReserveSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -88,7 +88,7 @@ public long get_channel_reserve_satoshis() { * The minimum value unencumbered by HTLCs for the counterparty to keep in the channel */ public void set_channel_reserve_satoshis(long val) { - bindings.AcceptChannel_set_channel_reserve_satoshis(this.ptr, val); + Bindings.AcceptChannelSetChannelReserveSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_channel_reserve_satoshis(long val) { * The minimum HTLC size incoming to sender, in milli-satoshi */ public long get_htlc_minimum_msat() { - long ret = bindings.AcceptChannel_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.AcceptChannelGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public long get_htlc_minimum_msat() { * The minimum HTLC size incoming to sender, in milli-satoshi */ public void set_htlc_minimum_msat(long val) { - bindings.AcceptChannel_set_htlc_minimum_msat(this.ptr, val); + Bindings.AcceptChannelSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,7 +115,7 @@ public void set_htlc_minimum_msat(long val) { * Minimum depth of the funding transaction before the channel is considered open */ public int get_minimum_depth() { - int ret = bindings.AcceptChannel_get_minimum_depth(this.ptr); + int ret = Bindings.AcceptChannelGetMinimumDepth(this.ptr); GC.KeepAlive(this); return ret; } @@ -124,7 +124,7 @@ public int get_minimum_depth() { * Minimum depth of the funding transaction before the channel is considered open */ public void set_minimum_depth(int val) { - bindings.AcceptChannel_set_minimum_depth(this.ptr, val); + Bindings.AcceptChannelSetMinimumDepth(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -133,7 +133,7 @@ public void set_minimum_depth(int val) { * The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction */ public short get_to_self_delay() { - short ret = bindings.AcceptChannel_get_to_self_delay(this.ptr); + short ret = Bindings.AcceptChannelGetToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -142,7 +142,7 @@ public short get_to_self_delay() { * The number of blocks which the counterparty will have to wait to claim on-chain funds if they broadcast a commitment transaction */ public void set_to_self_delay(short val) { - bindings.AcceptChannel_set_to_self_delay(this.ptr, val); + Bindings.AcceptChannelSetToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -151,7 +151,7 @@ public void set_to_self_delay(short val) { * The maximum number of inbound HTLCs towards sender */ public short get_max_accepted_htlcs() { - short ret = bindings.AcceptChannel_get_max_accepted_htlcs(this.ptr); + short ret = Bindings.AcceptChannelGetMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -160,7 +160,7 @@ public short get_max_accepted_htlcs() { * The maximum number of inbound HTLCs towards sender */ public void set_max_accepted_htlcs(short val) { - bindings.AcceptChannel_set_max_accepted_htlcs(this.ptr, val); + Bindings.AcceptChannelSetMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -169,10 +169,10 @@ public void set_max_accepted_htlcs(short val) { * The sender's key controlling the funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.AcceptChannel_get_funding_pubkey(this.ptr); + long ret = Bindings.AcceptChannelGetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -180,7 +180,7 @@ public byte[] get_funding_pubkey() { * The sender's key controlling the funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.AcceptChannel_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -189,10 +189,10 @@ public void set_funding_pubkey(byte[] val) { * Used to derive a revocation key for transactions broadcast by counterparty */ public byte[] get_revocation_basepoint() { - long ret = bindings.AcceptChannel_get_revocation_basepoint(this.ptr); + long ret = Bindings.AcceptChannelGetRevocationBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -200,7 +200,7 @@ public byte[] get_revocation_basepoint() { * Used to derive a revocation key for transactions broadcast by counterparty */ public void set_revocation_basepoint(byte[] val) { - bindings.AcceptChannel_set_revocation_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetRevocationBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -209,10 +209,10 @@ public void set_revocation_basepoint(byte[] val) { * A payment key to sender for transactions broadcast by counterparty */ public byte[] get_payment_point() { - long ret = bindings.AcceptChannel_get_payment_point(this.ptr); + long ret = Bindings.AcceptChannelGetPaymentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -220,7 +220,7 @@ public byte[] get_payment_point() { * A payment key to sender for transactions broadcast by counterparty */ public void set_payment_point(byte[] val) { - bindings.AcceptChannel_set_payment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetPaymentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -229,10 +229,10 @@ public void set_payment_point(byte[] val) { * Used to derive a payment key to sender for transactions broadcast by sender */ public byte[] get_delayed_payment_basepoint() { - long ret = bindings.AcceptChannel_get_delayed_payment_basepoint(this.ptr); + long ret = Bindings.AcceptChannelGetDelayedPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -240,7 +240,7 @@ public byte[] get_delayed_payment_basepoint() { * Used to derive a payment key to sender for transactions broadcast by sender */ public void set_delayed_payment_basepoint(byte[] val) { - bindings.AcceptChannel_set_delayed_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetDelayedPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -249,10 +249,10 @@ public void set_delayed_payment_basepoint(byte[] val) { * Used to derive an HTLC payment key to sender for transactions broadcast by counterparty */ public byte[] get_htlc_basepoint() { - long ret = bindings.AcceptChannel_get_htlc_basepoint(this.ptr); + long ret = Bindings.AcceptChannelGetHtlcBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -260,7 +260,7 @@ public byte[] get_htlc_basepoint() { * Used to derive an HTLC payment key to sender for transactions broadcast by counterparty */ public void set_htlc_basepoint(byte[] val) { - bindings.AcceptChannel_set_htlc_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetHtlcBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -269,10 +269,10 @@ public void set_htlc_basepoint(byte[] val) { * The first to-be-broadcast-by-sender transaction's per commitment point */ public byte[] get_first_per_commitment_point() { - long ret = bindings.AcceptChannel_get_first_per_commitment_point(this.ptr); + long ret = Bindings.AcceptChannelGetFirstPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -280,7 +280,7 @@ public byte[] get_first_per_commitment_point() { * The first to-be-broadcast-by-sender transaction's per commitment point */ public void set_first_per_commitment_point(byte[] val) { - bindings.AcceptChannel_set_first_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelSetFirstPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -289,7 +289,7 @@ public void set_first_per_commitment_point(byte[] val) { * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { - long ret = bindings.AcceptChannel_get_shutdown_scriptpubkey(this.ptr); + long ret = Bindings.AcceptChannelGetShutdownScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -301,7 +301,7 @@ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.AcceptChannel_set_shutdown_scriptpubkey(this.ptr, val.ptr); + Bindings.AcceptChannelSetShutdownScriptpubkey(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -317,7 +317,7 @@ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures get_channel_type() { - long ret = bindings.AcceptChannel_get_channel_type(this.ptr); + long ret = Bindings.AcceptChannelGetChannelType(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -335,7 +335,7 @@ public ChannelTypeFeatures get_channel_type() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { - bindings.AcceptChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr); + Bindings.AcceptChannelSetChannelType(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -347,7 +347,7 @@ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static AcceptChannel of(byte[] temporary_channel_id_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, org.ldk.structs.Option_CVec_u8ZZ shutdown_scriptpubkey_arg, org.ldk.structs.ChannelTypeFeatures channel_type_arg) { - long ret = bindings.AcceptChannel_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id_arg, 32)), dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(revocation_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_point_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(delayed_payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(first_per_commitment_point_arg, 33)), shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr); + long ret = Bindings.AcceptChannelNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id_arg, 32)), dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(revocation_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_point_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(delayed_payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(first_per_commitment_point_arg, 33)), shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr); GC.KeepAlive(temporary_channel_id_arg); GC.KeepAlive(dust_limit_satoshis_arg); GC.KeepAlive(max_htlc_value_in_flight_msat_arg); @@ -373,7 +373,7 @@ public static AcceptChannel of(byte[] temporary_channel_id_arg, long dust_limit_ } internal long clone_ptr() { - long ret = bindings.AcceptChannel_clone_ptr(this.ptr); + long ret = Bindings.AcceptChannelClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -382,7 +382,7 @@ internal long clone_ptr() { * Creates a copy of the AcceptChannel */ public AcceptChannel clone() { - long ret = bindings.AcceptChannel_clone(this.ptr); + long ret = Bindings.AcceptChannelClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.AcceptChannel ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.AcceptChannel(null, ret); } @@ -394,7 +394,7 @@ public AcceptChannel clone() { * Generates a non-cryptographic 64-bit hash of the AcceptChannel. */ public long hash() { - long ret = bindings.AcceptChannel_hash(this.ptr); + long ret = Bindings.AcceptChannelHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -408,7 +408,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.AcceptChannel b) { - bool ret = bindings.AcceptChannel_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.AcceptChannelEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -423,10 +423,10 @@ public override bool Equals(object o) { * Serialize the AcceptChannel object into a byte array which can be read by AcceptChannel_read */ public byte[] write() { - long ret = bindings.AcceptChannel_write(this.ptr); + long ret = Bindings.AcceptChannelWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -434,7 +434,7 @@ public byte[] write() { * Read a AcceptChannel from a byte array, created by AcceptChannel_write */ public static Result_AcceptChannelDecodeErrorZ read(byte[] ser) { - long ret = bindings.AcceptChannel_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.AcceptChannelRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/AcceptChannelV2.cs b/c_sharp/src/org/ldk/structs/AcceptChannelV2.cs index 1090715d5..1f3b29f95 100644 --- a/c_sharp/src/org/ldk/structs/AcceptChannelV2.cs +++ b/c_sharp/src/org/ldk/structs/AcceptChannelV2.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class AcceptChannelV2 : CommonBase { internal AcceptChannelV2(object _dummy, long ptr) : base(ptr) { } ~AcceptChannelV2() { - if (ptr != 0) { bindings.AcceptChannelV2_free(ptr); } + if (ptr != 0) { Bindings.AcceptChannelV2Free(ptr); } } /** * The same `temporary_channel_id` received from the initiator's `open_channel2` message. */ public byte[] get_temporary_channel_id() { - long ret = bindings.AcceptChannelV2_get_temporary_channel_id(this.ptr); + long ret = Bindings.AcceptChannelV2GetTemporaryChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_temporary_channel_id() { * The same `temporary_channel_id` received from the initiator's `open_channel2` message. */ public void set_temporary_channel_id(byte[] val) { - bindings.AcceptChannelV2_set_temporary_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.AcceptChannelV2SetTemporaryChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_temporary_channel_id(byte[] val) { * Part of the channel value contributed by the channel acceptor */ public long get_funding_satoshis() { - long ret = bindings.AcceptChannelV2_get_funding_satoshis(this.ptr); + long ret = Bindings.AcceptChannelV2GetFundingSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_funding_satoshis() { * Part of the channel value contributed by the channel acceptor */ public void set_funding_satoshis(long val) { - bindings.AcceptChannelV2_set_funding_satoshis(this.ptr, val); + Bindings.AcceptChannelV2SetFundingSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -60,7 +60,7 @@ public void set_funding_satoshis(long val) { * omitted */ public long get_dust_limit_satoshis() { - long ret = bindings.AcceptChannelV2_get_dust_limit_satoshis(this.ptr); + long ret = Bindings.AcceptChannelV2GetDustLimitSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public long get_dust_limit_satoshis() { * omitted */ public void set_dust_limit_satoshis(long val) { - bindings.AcceptChannelV2_set_dust_limit_satoshis(this.ptr, val); + Bindings.AcceptChannelV2SetDustLimitSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_dust_limit_satoshis(long val) { * The maximum inbound HTLC value in flight towards channel acceptor, in milli-satoshi */ public long get_max_htlc_value_in_flight_msat() { - long ret = bindings.AcceptChannelV2_get_max_htlc_value_in_flight_msat(this.ptr); + long ret = Bindings.AcceptChannelV2GetMaxHtlcValueInFlightMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -88,7 +88,7 @@ public long get_max_htlc_value_in_flight_msat() { * The maximum inbound HTLC value in flight towards channel acceptor, in milli-satoshi */ public void set_max_htlc_value_in_flight_msat(long val) { - bindings.AcceptChannelV2_set_max_htlc_value_in_flight_msat(this.ptr, val); + Bindings.AcceptChannelV2SetMaxHtlcValueInFlightMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_max_htlc_value_in_flight_msat(long val) { * The minimum HTLC size incoming to channel acceptor, in milli-satoshi */ public long get_htlc_minimum_msat() { - long ret = bindings.AcceptChannelV2_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.AcceptChannelV2GetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public long get_htlc_minimum_msat() { * The minimum HTLC size incoming to channel acceptor, in milli-satoshi */ public void set_htlc_minimum_msat(long val) { - bindings.AcceptChannelV2_set_htlc_minimum_msat(this.ptr, val); + Bindings.AcceptChannelV2SetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,7 +115,7 @@ public void set_htlc_minimum_msat(long val) { * Minimum depth of the funding transaction before the channel is considered open */ public int get_minimum_depth() { - int ret = bindings.AcceptChannelV2_get_minimum_depth(this.ptr); + int ret = Bindings.AcceptChannelV2GetMinimumDepth(this.ptr); GC.KeepAlive(this); return ret; } @@ -124,7 +124,7 @@ public int get_minimum_depth() { * Minimum depth of the funding transaction before the channel is considered open */ public void set_minimum_depth(int val) { - bindings.AcceptChannelV2_set_minimum_depth(this.ptr, val); + Bindings.AcceptChannelV2SetMinimumDepth(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -134,7 +134,7 @@ public void set_minimum_depth(int val) { * broadcast a commitment transaction */ public short get_to_self_delay() { - short ret = bindings.AcceptChannelV2_get_to_self_delay(this.ptr); + short ret = Bindings.AcceptChannelV2GetToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -144,7 +144,7 @@ public short get_to_self_delay() { * broadcast a commitment transaction */ public void set_to_self_delay(short val) { - bindings.AcceptChannelV2_set_to_self_delay(this.ptr, val); + Bindings.AcceptChannelV2SetToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -153,7 +153,7 @@ public void set_to_self_delay(short val) { * The maximum number of inbound HTLCs towards channel acceptor */ public short get_max_accepted_htlcs() { - short ret = bindings.AcceptChannelV2_get_max_accepted_htlcs(this.ptr); + short ret = Bindings.AcceptChannelV2GetMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -162,7 +162,7 @@ public short get_max_accepted_htlcs() { * The maximum number of inbound HTLCs towards channel acceptor */ public void set_max_accepted_htlcs(short val) { - bindings.AcceptChannelV2_set_max_accepted_htlcs(this.ptr, val); + Bindings.AcceptChannelV2SetMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -171,10 +171,10 @@ public void set_max_accepted_htlcs(short val) { * The channel acceptor's key controlling the funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.AcceptChannelV2_get_funding_pubkey(this.ptr); + long ret = Bindings.AcceptChannelV2GetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -182,7 +182,7 @@ public byte[] get_funding_pubkey() { * The channel acceptor's key controlling the funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.AcceptChannelV2_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -191,10 +191,10 @@ public void set_funding_pubkey(byte[] val) { * Used to derive a revocation key for transactions broadcast by counterparty */ public byte[] get_revocation_basepoint() { - long ret = bindings.AcceptChannelV2_get_revocation_basepoint(this.ptr); + long ret = Bindings.AcceptChannelV2GetRevocationBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -202,7 +202,7 @@ public byte[] get_revocation_basepoint() { * Used to derive a revocation key for transactions broadcast by counterparty */ public void set_revocation_basepoint(byte[] val) { - bindings.AcceptChannelV2_set_revocation_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetRevocationBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -211,10 +211,10 @@ public void set_revocation_basepoint(byte[] val) { * A payment key to channel acceptor for transactions broadcast by counterparty */ public byte[] get_payment_basepoint() { - long ret = bindings.AcceptChannelV2_get_payment_basepoint(this.ptr); + long ret = Bindings.AcceptChannelV2GetPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -222,7 +222,7 @@ public byte[] get_payment_basepoint() { * A payment key to channel acceptor for transactions broadcast by counterparty */ public void set_payment_basepoint(byte[] val) { - bindings.AcceptChannelV2_set_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -232,10 +232,10 @@ public void set_payment_basepoint(byte[] val) { * acceptor */ public byte[] get_delayed_payment_basepoint() { - long ret = bindings.AcceptChannelV2_get_delayed_payment_basepoint(this.ptr); + long ret = Bindings.AcceptChannelV2GetDelayedPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -244,7 +244,7 @@ public byte[] get_delayed_payment_basepoint() { * acceptor */ public void set_delayed_payment_basepoint(byte[] val) { - bindings.AcceptChannelV2_set_delayed_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetDelayedPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -253,10 +253,10 @@ public void set_delayed_payment_basepoint(byte[] val) { * Used to derive an HTLC payment key to channel acceptor for transactions broadcast by counterparty */ public byte[] get_htlc_basepoint() { - long ret = bindings.AcceptChannelV2_get_htlc_basepoint(this.ptr); + long ret = Bindings.AcceptChannelV2GetHtlcBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -264,7 +264,7 @@ public byte[] get_htlc_basepoint() { * Used to derive an HTLC payment key to channel acceptor for transactions broadcast by counterparty */ public void set_htlc_basepoint(byte[] val) { - bindings.AcceptChannelV2_set_htlc_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetHtlcBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -273,10 +273,10 @@ public void set_htlc_basepoint(byte[] val) { * The first to-be-broadcast-by-channel-acceptor transaction's per commitment point */ public byte[] get_first_per_commitment_point() { - long ret = bindings.AcceptChannelV2_get_first_per_commitment_point(this.ptr); + long ret = Bindings.AcceptChannelV2GetFirstPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -284,7 +284,7 @@ public byte[] get_first_per_commitment_point() { * The first to-be-broadcast-by-channel-acceptor transaction's per commitment point */ public void set_first_per_commitment_point(byte[] val) { - bindings.AcceptChannelV2_set_first_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetFirstPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -293,10 +293,10 @@ public void set_first_per_commitment_point(byte[] val) { * The second to-be-broadcast-by-channel-acceptor transaction's per commitment point */ public byte[] get_second_per_commitment_point() { - long ret = bindings.AcceptChannelV2_get_second_per_commitment_point(this.ptr); + long ret = Bindings.AcceptChannelV2GetSecondPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -304,7 +304,7 @@ public byte[] get_second_per_commitment_point() { * The second to-be-broadcast-by-channel-acceptor transaction's per commitment point */ public void set_second_per_commitment_point(byte[] val) { - bindings.AcceptChannelV2_set_second_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.AcceptChannelV2SetSecondPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -314,7 +314,7 @@ public void set_second_per_commitment_point(byte[] val) { * collaboratively close */ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { - long ret = bindings.AcceptChannelV2_get_shutdown_scriptpubkey(this.ptr); + long ret = Bindings.AcceptChannelV2GetShutdownScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -327,7 +327,7 @@ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { * collaboratively close */ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.AcceptChannelV2_set_shutdown_scriptpubkey(this.ptr, val.ptr); + Bindings.AcceptChannelV2SetShutdownScriptpubkey(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -343,7 +343,7 @@ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures get_channel_type() { - long ret = bindings.AcceptChannelV2_get_channel_type(this.ptr); + long ret = Bindings.AcceptChannelV2GetChannelType(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -361,7 +361,7 @@ public ChannelTypeFeatures get_channel_type() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { - bindings.AcceptChannelV2_set_channel_type(this.ptr, val == null ? 0 : val.ptr); + Bindings.AcceptChannelV2SetChannelType(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -371,7 +371,7 @@ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { * Optionally, a requirement that only confirmed inputs can be added */ public COption_NoneZ get_require_confirmed_inputs() { - COption_NoneZ ret = bindings.AcceptChannelV2_get_require_confirmed_inputs(this.ptr); + COption_NoneZ ret = Bindings.AcceptChannelV2GetRequireConfirmedInputs(this.ptr); GC.KeepAlive(this); return ret; } @@ -380,7 +380,7 @@ public COption_NoneZ get_require_confirmed_inputs() { * Optionally, a requirement that only confirmed inputs can be added */ public void set_require_confirmed_inputs(COption_NoneZ val) { - bindings.AcceptChannelV2_set_require_confirmed_inputs(this.ptr, val); + Bindings.AcceptChannelV2SetRequireConfirmedInputs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -391,7 +391,7 @@ public void set_require_confirmed_inputs(COption_NoneZ val) { * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static AcceptChannelV2 of(byte[] temporary_channel_id_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, org.ldk.structs.Option_CVec_u8ZZ shutdown_scriptpubkey_arg, org.ldk.structs.ChannelTypeFeatures channel_type_arg, COption_NoneZ require_confirmed_inputs_arg) { - long ret = bindings.AcceptChannelV2_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id_arg, 32)), funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(revocation_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(delayed_payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(first_per_commitment_point_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(second_per_commitment_point_arg, 33)), shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, require_confirmed_inputs_arg); + long ret = Bindings.AcceptChannelV2New(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id_arg, 32)), funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(revocation_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(delayed_payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(first_per_commitment_point_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(second_per_commitment_point_arg, 33)), shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, require_confirmed_inputs_arg); GC.KeepAlive(temporary_channel_id_arg); GC.KeepAlive(funding_satoshis_arg); GC.KeepAlive(dust_limit_satoshis_arg); @@ -419,7 +419,7 @@ public static AcceptChannelV2 of(byte[] temporary_channel_id_arg, long funding_s } internal long clone_ptr() { - long ret = bindings.AcceptChannelV2_clone_ptr(this.ptr); + long ret = Bindings.AcceptChannelV2ClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -428,7 +428,7 @@ internal long clone_ptr() { * Creates a copy of the AcceptChannelV2 */ public AcceptChannelV2 clone() { - long ret = bindings.AcceptChannelV2_clone(this.ptr); + long ret = Bindings.AcceptChannelV2Clone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.AcceptChannelV2 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.AcceptChannelV2(null, ret); } @@ -440,7 +440,7 @@ public AcceptChannelV2 clone() { * Generates a non-cryptographic 64-bit hash of the AcceptChannelV2. */ public long hash() { - long ret = bindings.AcceptChannelV2_hash(this.ptr); + long ret = Bindings.AcceptChannelV2Hash(this.ptr); GC.KeepAlive(this); return ret; } @@ -454,7 +454,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.AcceptChannelV2 b) { - bool ret = bindings.AcceptChannelV2_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.AcceptChannelV2Eq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -469,10 +469,10 @@ public override bool Equals(object o) { * Serialize the AcceptChannelV2 object into a byte array which can be read by AcceptChannelV2_read */ public byte[] write() { - long ret = bindings.AcceptChannelV2_write(this.ptr); + long ret = Bindings.AcceptChannelV2Write(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -480,7 +480,7 @@ public byte[] write() { * Read a AcceptChannelV2 from a byte array, created by AcceptChannelV2_write */ public static Result_AcceptChannelV2DecodeErrorZ read(byte[] ser) { - long ret = bindings.AcceptChannelV2_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.AcceptChannelV2Read(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelV2DecodeErrorZ ret_hu_conv = Result_AcceptChannelV2DecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Amount.cs b/c_sharp/src/org/ldk/structs/Amount.cs index 3450ea901..513c76684 100644 --- a/c_sharp/src/org/ldk/structs/Amount.cs +++ b/c_sharp/src/org/ldk/structs/Amount.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class Amount : CommonBase { internal Amount(object _dummy, long ptr) : base(ptr) { } ~Amount() { - if (ptr != 0) { bindings.Amount_free(ptr); } + if (ptr != 0) { Bindings.AmountFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Amount_clone_ptr(this.ptr); + long ret = Bindings.AmountClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -26,7 +26,7 @@ internal long clone_ptr() { * Creates a copy of the Amount */ public Amount clone() { - long ret = bindings.Amount_clone(this.ptr); + long ret = Bindings.AmountClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs b/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs index 0fd351310..2cab1fa95 100644 --- a/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/AnchorDescriptor.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class AnchorDescriptor : CommonBase { internal AnchorDescriptor(object _dummy, long ptr) : base(ptr) { } ~AnchorDescriptor() { - if (ptr != 0) { bindings.AnchorDescriptor_free(ptr); } + if (ptr != 0) { Bindings.AnchorDescriptorFree(ptr); } } /** * The parameters required to derive the signer for the anchor input. */ public ChannelDerivationParameters get_channel_derivation_parameters() { - long ret = bindings.AnchorDescriptor_get_channel_derivation_parameters(this.ptr); + long ret = Bindings.AnchorDescriptorGetChannelDerivationParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelDerivationParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelDerivationParameters(null, ret); } @@ -31,7 +31,7 @@ public ChannelDerivationParameters get_channel_derivation_parameters() { * The parameters required to derive the signer for the anchor input. */ public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationParameters val) { - bindings.AnchorDescriptor_set_channel_derivation_parameters(this.ptr, val == null ? 0 : val.ptr); + Bindings.AnchorDescriptorSetChannelDerivationParameters(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -42,7 +42,7 @@ public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationP * output. */ public OutPoint get_outpoint() { - long ret = bindings.AnchorDescriptor_get_outpoint(this.ptr); + long ret = Bindings.AnchorDescriptorGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -55,7 +55,7 @@ public OutPoint get_outpoint() { * output. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.AnchorDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.AnchorDescriptorSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -65,7 +65,7 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * Constructs a new AnchorDescriptor given each field */ public static AnchorDescriptor of(org.ldk.structs.ChannelDerivationParameters channel_derivation_parameters_arg, org.ldk.structs.OutPoint outpoint_arg) { - long ret = bindings.AnchorDescriptor_new(channel_derivation_parameters_arg == null ? 0 : channel_derivation_parameters_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr); + long ret = Bindings.AnchorDescriptorNew(channel_derivation_parameters_arg == null ? 0 : channel_derivation_parameters_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr); GC.KeepAlive(channel_derivation_parameters_arg); GC.KeepAlive(outpoint_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -77,7 +77,7 @@ public static AnchorDescriptor of(org.ldk.structs.ChannelDerivationParameters ch } internal long clone_ptr() { - long ret = bindings.AnchorDescriptor_clone_ptr(this.ptr); + long ret = Bindings.AnchorDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -86,7 +86,7 @@ internal long clone_ptr() { * Creates a copy of the AnchorDescriptor */ public AnchorDescriptor clone() { - long ret = bindings.AnchorDescriptor_clone(this.ptr); + long ret = Bindings.AnchorDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.AnchorDescriptor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.AnchorDescriptor(null, ret); } @@ -100,7 +100,7 @@ public AnchorDescriptor clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.AnchorDescriptor b) { - bool ret = bindings.AnchorDescriptor_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.AnchorDescriptorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -116,7 +116,7 @@ public override bool Equals(object o) { * [`Self::unsigned_tx_input`]. */ public TxOut previous_utxo() { - long ret = bindings.AnchorDescriptor_previous_utxo(this.ptr); + long ret = Bindings.AnchorDescriptorPreviousUtxo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -128,7 +128,7 @@ public TxOut previous_utxo() { * transaction. */ public TxIn unsigned_tx_input() { - long ret = bindings.AnchorDescriptor_unsigned_tx_input(this.ptr); + long ret = Bindings.AnchorDescriptorUnsignedTxInput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxIn ret_conv = new TxIn(null, ret); @@ -139,10 +139,10 @@ public TxIn unsigned_tx_input() { * Returns the witness script of the anchor output in the commitment transaction. */ public byte[] witness_script() { - long ret = bindings.AnchorDescriptor_witness_script(this.ptr); + long ret = Bindings.AnchorDescriptorWitnessScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -151,11 +151,11 @@ public byte[] witness_script() { * transaction. */ public byte[] tx_input_witness(byte[] signature) { - long ret = bindings.AnchorDescriptor_tx_input_witness(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature, 64))); + long ret = Bindings.AnchorDescriptorTxInputWitness(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature, 64))); GC.KeepAlive(this); GC.KeepAlive(signature); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -163,7 +163,7 @@ public byte[] tx_input_witness(byte[] signature) { * Derives the channel signer required to sign the anchor input. */ public WriteableEcdsaChannelSigner derive_channel_signer(org.ldk.structs.SignerProvider signer_provider) { - long ret = bindings.AnchorDescriptor_derive_channel_signer(this.ptr, signer_provider.ptr); + long ret = Bindings.AnchorDescriptorDeriveChannelSigner(this.ptr, signer_provider.ptr); GC.KeepAlive(this); GC.KeepAlive(signer_provider); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/AnnouncementSignatures.cs b/c_sharp/src/org/ldk/structs/AnnouncementSignatures.cs index cebd823c9..69ff36e0a 100644 --- a/c_sharp/src/org/ldk/structs/AnnouncementSignatures.cs +++ b/c_sharp/src/org/ldk/structs/AnnouncementSignatures.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class AnnouncementSignatures : CommonBase { internal AnnouncementSignatures(object _dummy, long ptr) : base(ptr) { } ~AnnouncementSignatures() { - if (ptr != 0) { bindings.AnnouncementSignatures_free(ptr); } + if (ptr != 0) { Bindings.AnnouncementSignaturesFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.AnnouncementSignatures_get_channel_id(this.ptr); + long ret = Bindings.AnnouncementSignaturesGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.AnnouncementSignatures_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.AnnouncementSignaturesSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The short channel ID */ public long get_short_channel_id() { - long ret = bindings.AnnouncementSignatures_get_short_channel_id(this.ptr); + long ret = Bindings.AnnouncementSignaturesGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_short_channel_id() { * The short channel ID */ public void set_short_channel_id(long val) { - bindings.AnnouncementSignatures_set_short_channel_id(this.ptr, val); + Bindings.AnnouncementSignaturesSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,10 +59,10 @@ public void set_short_channel_id(long val) { * A signature by the node key */ public byte[] get_node_signature() { - long ret = bindings.AnnouncementSignatures_get_node_signature(this.ptr); + long ret = Bindings.AnnouncementSignaturesGetNodeSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -70,7 +70,7 @@ public byte[] get_node_signature() { * A signature by the node key */ public void set_node_signature(byte[] val) { - bindings.AnnouncementSignatures_set_node_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.AnnouncementSignaturesSetNodeSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,10 +79,10 @@ public void set_node_signature(byte[] val) { * A signature by the funding key */ public byte[] get_bitcoin_signature() { - long ret = bindings.AnnouncementSignatures_get_bitcoin_signature(this.ptr); + long ret = Bindings.AnnouncementSignaturesGetBitcoinSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -90,7 +90,7 @@ public byte[] get_bitcoin_signature() { * A signature by the funding key */ public void set_bitcoin_signature(byte[] val) { - bindings.AnnouncementSignatures_set_bitcoin_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.AnnouncementSignaturesSetBitcoinSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_bitcoin_signature(byte[] val) { * Constructs a new AnnouncementSignatures given each field */ public static AnnouncementSignatures of(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg) { - long ret = bindings.AnnouncementSignatures_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), short_channel_id_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_signature_arg, 64)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(bitcoin_signature_arg, 64))); + long ret = Bindings.AnnouncementSignaturesNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), short_channel_id_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_signature_arg, 64)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(bitcoin_signature_arg, 64))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(short_channel_id_arg); GC.KeepAlive(node_signature_arg); @@ -111,7 +111,7 @@ public static AnnouncementSignatures of(byte[] channel_id_arg, long short_channe } internal long clone_ptr() { - long ret = bindings.AnnouncementSignatures_clone_ptr(this.ptr); + long ret = Bindings.AnnouncementSignaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -120,7 +120,7 @@ internal long clone_ptr() { * Creates a copy of the AnnouncementSignatures */ public AnnouncementSignatures clone() { - long ret = bindings.AnnouncementSignatures_clone(this.ptr); + long ret = Bindings.AnnouncementSignaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.AnnouncementSignatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.AnnouncementSignatures(null, ret); } @@ -132,7 +132,7 @@ public AnnouncementSignatures clone() { * Generates a non-cryptographic 64-bit hash of the AnnouncementSignatures. */ public long hash() { - long ret = bindings.AnnouncementSignatures_hash(this.ptr); + long ret = Bindings.AnnouncementSignaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -146,7 +146,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.AnnouncementSignatures b) { - bool ret = bindings.AnnouncementSignatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.AnnouncementSignaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -161,10 +161,10 @@ public override bool Equals(object o) { * Serialize the AnnouncementSignatures object into a byte array which can be read by AnnouncementSignatures_read */ public byte[] write() { - long ret = bindings.AnnouncementSignatures_write(this.ptr); + long ret = Bindings.AnnouncementSignaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -172,7 +172,7 @@ public byte[] write() { * Read a AnnouncementSignatures from a byte array, created by AnnouncementSignatures_write */ public static Result_AnnouncementSignaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.AnnouncementSignatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.AnnouncementSignaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BackgroundProcessor.cs b/c_sharp/src/org/ldk/structs/BackgroundProcessor.cs index 188408db8..85f631e72 100644 --- a/c_sharp/src/org/ldk/structs/BackgroundProcessor.cs +++ b/c_sharp/src/org/ldk/structs/BackgroundProcessor.cs @@ -38,7 +38,7 @@ namespace org { namespace ldk { namespace structs { public class BackgroundProcessor : CommonBase { internal BackgroundProcessor(object _dummy, long ptr) : base(ptr) { } ~BackgroundProcessor() { - if (ptr != 0) { bindings.BackgroundProcessor_free(ptr); } + if (ptr != 0) { Bindings.BackgroundProcessorFree(ptr); } } /** @@ -88,7 +88,7 @@ internal BackgroundProcessor(object _dummy, long ptr) : base(ptr) { } * [`NetworkGraph::write`]: lightning::routing::gossip::NetworkGraph#impl-Writeable */ public static BackgroundProcessor start(org.ldk.structs.Persister persister, org.ldk.structs.EventHandler event_handler, org.ldk.structs.ChainMonitor chain_monitor, org.ldk.structs.ChannelManager channel_manager, org.ldk.structs.GossipSync gossip_sync, org.ldk.structs.PeerManager peer_manager, org.ldk.structs.Logger logger, org.ldk.structs.Option_WriteableScoreZ scorer) { - long ret = bindings.BackgroundProcessor_start(persister.ptr, event_handler.ptr, chain_monitor == null ? 0 : chain_monitor.ptr, channel_manager == null ? 0 : channel_manager.ptr, gossip_sync.ptr, peer_manager == null ? 0 : peer_manager.ptr, logger.ptr, scorer.ptr); + long ret = Bindings.BackgroundProcessorStart(persister.ptr, event_handler.ptr, chain_monitor == null ? 0 : chain_monitor.ptr, channel_manager == null ? 0 : channel_manager.ptr, gossip_sync.ptr, peer_manager == null ? 0 : peer_manager.ptr, logger.ptr, scorer.ptr); GC.KeepAlive(persister); GC.KeepAlive(event_handler); GC.KeepAlive(chain_monitor); @@ -123,7 +123,7 @@ public static BackgroundProcessor start(org.ldk.structs.Persister persister, org * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ public Result_NoneIOErrorZ join() { - long ret = bindings.BackgroundProcessor_join(this.ptr); + long ret = Bindings.BackgroundProcessorJoin(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneIOErrorZ ret_hu_conv = Result_NoneIOErrorZ.constr_from_ptr(ret); @@ -151,7 +151,7 @@ public Result_NoneIOErrorZ join() { * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ public Result_NoneIOErrorZ stop() { - long ret = bindings.BackgroundProcessor_stop(this.ptr); + long ret = Bindings.BackgroundProcessorStop(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneIOErrorZ ret_hu_conv = Result_NoneIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Balance.cs b/c_sharp/src/org/ldk/structs/Balance.cs index 74d10f64d..14c229c21 100644 --- a/c_sharp/src/org/ldk/structs/Balance.cs +++ b/c_sharp/src/org/ldk/structs/Balance.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class Balance : CommonBase { protected Balance(object _dummy, long ptr) : base(ptr) { } ~Balance() { - if (ptr != 0) { bindings.Balance_free(ptr); } + if (ptr != 0) { Bindings.BalanceFree(ptr); } } internal static Balance constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKBalance_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKBalanceTyFromPtr(ptr); switch (raw_ty) { case 0: return new Balance_ClaimableOnChannelClose(ptr); case 1: return new Balance_ClaimableAwaitingConfirmations(ptr); @@ -39,7 +39,7 @@ public class Balance_ClaimableOnChannelClose : Balance { */ public long amount_satoshis; internal Balance_ClaimableOnChannelClose(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_ClaimableOnChannelClose_get_amount_satoshis(ptr); + this.amount_satoshis = Bindings.LDKBalanceClaimableOnChannelCloseGetAmountSatoshis(ptr); } } /** A Balance of type ClaimableAwaitingConfirmations */ @@ -55,8 +55,8 @@ public class Balance_ClaimableAwaitingConfirmations : Balance { */ public int confirmation_height; internal Balance_ClaimableAwaitingConfirmations(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_ClaimableAwaitingConfirmations_get_amount_satoshis(ptr); - this.confirmation_height = bindings.LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr); + this.amount_satoshis = Bindings.LDKBalanceClaimableAwaitingConfirmationsGetAmountSatoshis(ptr); + this.confirmation_height = Bindings.LDKBalanceClaimableAwaitingConfirmationsGetConfirmationHeight(ptr); } } /** A Balance of type ContentiousClaimable */ @@ -80,13 +80,13 @@ public class Balance_ContentiousClaimable : Balance { */ public byte[] payment_preimage; internal Balance_ContentiousClaimable(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_ContentiousClaimable_get_amount_satoshis(ptr); - this.timeout_height = bindings.LDKBalance_ContentiousClaimable_get_timeout_height(ptr); - long payment_hash = bindings.LDKBalance_ContentiousClaimable_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + this.amount_satoshis = Bindings.LDKBalanceContentiousClaimableGetAmountSatoshis(ptr); + this.timeout_height = Bindings.LDKBalanceContentiousClaimableGetTimeoutHeight(ptr); + long payment_hash = Bindings.LDKBalanceContentiousClaimableGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long payment_preimage = bindings.LDKBalance_ContentiousClaimable_get_payment_preimage(ptr); - byte[] payment_preimage_conv = InternalUtils.decodeUint8Array(payment_preimage); + long payment_preimage = Bindings.LDKBalanceContentiousClaimableGetPaymentPreimage(ptr); + byte[] payment_preimage_conv = InternalUtils.DecodeUint8Array(payment_preimage); this.payment_preimage = payment_preimage_conv; } } @@ -107,10 +107,10 @@ public class Balance_MaybeTimeoutClaimableHTLC : Balance { */ public byte[] payment_hash; internal Balance_MaybeTimeoutClaimableHTLC(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_MaybeTimeoutClaimableHTLC_get_amount_satoshis(ptr); - this.claimable_height = bindings.LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(ptr); - long payment_hash = bindings.LDKBalance_MaybeTimeoutClaimableHTLC_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + this.amount_satoshis = Bindings.LDKBalanceMaybeTimeoutClaimableHTLCGetAmountSatoshis(ptr); + this.claimable_height = Bindings.LDKBalanceMaybeTimeoutClaimableHTLCGetClaimableHeight(ptr); + long payment_hash = Bindings.LDKBalanceMaybeTimeoutClaimableHTLCGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; } } @@ -131,10 +131,10 @@ public class Balance_MaybePreimageClaimableHTLC : Balance { */ public byte[] payment_hash; internal Balance_MaybePreimageClaimableHTLC(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_MaybePreimageClaimableHTLC_get_amount_satoshis(ptr); - this.expiry_height = bindings.LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(ptr); - long payment_hash = bindings.LDKBalance_MaybePreimageClaimableHTLC_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + this.amount_satoshis = Bindings.LDKBalanceMaybePreimageClaimableHTLCGetAmountSatoshis(ptr); + this.expiry_height = Bindings.LDKBalanceMaybePreimageClaimableHTLCGetExpiryHeight(ptr); + long payment_hash = Bindings.LDKBalanceMaybePreimageClaimableHTLCGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; } } @@ -148,11 +148,11 @@ public class Balance_CounterpartyRevokedOutputClaimable : Balance { */ public long amount_satoshis; internal Balance_CounterpartyRevokedOutputClaimable(long ptr) : base(null, ptr) { - this.amount_satoshis = bindings.LDKBalance_CounterpartyRevokedOutputClaimable_get_amount_satoshis(ptr); + this.amount_satoshis = Bindings.LDKBalanceCounterpartyRevokedOutputClaimableGetAmountSatoshis(ptr); } } internal long clone_ptr() { - long ret = bindings.Balance_clone_ptr(this.ptr); + long ret = Bindings.BalanceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -161,7 +161,7 @@ internal long clone_ptr() { * Creates a copy of the Balance */ public Balance clone() { - long ret = bindings.Balance_clone(this.ptr); + long ret = Bindings.BalanceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Balance ret_hu_conv = org.ldk.structs.Balance.constr_from_ptr(ret); @@ -173,7 +173,7 @@ public Balance clone() { * Utility method to constructs a new ClaimableOnChannelClose-variant Balance */ public static Balance claimable_on_channel_close(long amount_satoshis) { - long ret = bindings.Balance_claimable_on_channel_close(amount_satoshis); + long ret = Bindings.BalanceClaimableOnChannelClose(amount_satoshis); GC.KeepAlive(amount_satoshis); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Balance ret_hu_conv = org.ldk.structs.Balance.constr_from_ptr(ret); @@ -185,7 +185,7 @@ public static Balance claimable_on_channel_close(long amount_satoshis) { * Utility method to constructs a new ClaimableAwaitingConfirmations-variant Balance */ public static Balance claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height) { - long ret = bindings.Balance_claimable_awaiting_confirmations(amount_satoshis, confirmation_height); + long ret = Bindings.BalanceClaimableAwaitingConfirmations(amount_satoshis, confirmation_height); GC.KeepAlive(amount_satoshis); GC.KeepAlive(confirmation_height); if (ret >= 0 && ret <= 4096) { return null; } @@ -198,7 +198,7 @@ public static Balance claimable_awaiting_confirmations(long amount_satoshis, int * Utility method to constructs a new ContentiousClaimable-variant Balance */ public static Balance contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage) { - long ret = bindings.Balance_contentious_claimable(amount_satoshis, timeout_height, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage, 32))); + long ret = Bindings.BalanceContentiousClaimable(amount_satoshis, timeout_height, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage, 32))); GC.KeepAlive(amount_satoshis); GC.KeepAlive(timeout_height); GC.KeepAlive(payment_hash); @@ -213,7 +213,7 @@ public static Balance contentious_claimable(long amount_satoshis, int timeout_he * Utility method to constructs a new MaybeTimeoutClaimableHTLC-variant Balance */ public static Balance maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash) { - long ret = bindings.Balance_maybe_timeout_claimable_htlc(amount_satoshis, claimable_height, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32))); + long ret = Bindings.BalanceMaybeTimeoutClaimableHtlc(amount_satoshis, claimable_height, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32))); GC.KeepAlive(amount_satoshis); GC.KeepAlive(claimable_height); GC.KeepAlive(payment_hash); @@ -227,7 +227,7 @@ public static Balance maybe_timeout_claimable_htlc(long amount_satoshis, int cla * Utility method to constructs a new MaybePreimageClaimableHTLC-variant Balance */ public static Balance maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash) { - long ret = bindings.Balance_maybe_preimage_claimable_htlc(amount_satoshis, expiry_height, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32))); + long ret = Bindings.BalanceMaybePreimageClaimableHtlc(amount_satoshis, expiry_height, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32))); GC.KeepAlive(amount_satoshis); GC.KeepAlive(expiry_height); GC.KeepAlive(payment_hash); @@ -241,7 +241,7 @@ public static Balance maybe_preimage_claimable_htlc(long amount_satoshis, int ex * Utility method to constructs a new CounterpartyRevokedOutputClaimable-variant Balance */ public static Balance counterparty_revoked_output_claimable(long amount_satoshis) { - long ret = bindings.Balance_counterparty_revoked_output_claimable(amount_satoshis); + long ret = Bindings.BalanceCounterpartyRevokedOutputClaimable(amount_satoshis); GC.KeepAlive(amount_satoshis); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Balance ret_hu_conv = org.ldk.structs.Balance.constr_from_ptr(ret); @@ -254,7 +254,7 @@ public static Balance counterparty_revoked_output_claimable(long amount_satoshis * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Balance b) { - bool ret = bindings.Balance_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BalanceEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -273,7 +273,7 @@ public override bool Equals(object o) { * On-chain fees required to claim the balance are not included in this amount. */ public long claimable_amount_satoshis() { - long ret = bindings.Balance_claimable_amount_satoshis(this.ptr); + long ret = Bindings.BalanceClaimableAmountSatoshis(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Bech32Error.cs b/c_sharp/src/org/ldk/structs/Bech32Error.cs index 09dc3c0b9..0020b644e 100644 --- a/c_sharp/src/org/ldk/structs/Bech32Error.cs +++ b/c_sharp/src/org/ldk/structs/Bech32Error.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Bech32Error : CommonBase { protected Bech32Error(object _dummy, long ptr) : base(ptr) { } ~Bech32Error() { - if (ptr != 0) { bindings.Bech32Error_free(ptr); } + if (ptr != 0) { Bindings.Bech32ErrorFree(ptr); } } internal static Bech32Error constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKBech32Error_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKBech32ErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new Bech32Error_MissingSeparator(ptr); case 1: return new Bech32Error_InvalidChecksum(ptr); @@ -48,14 +48,14 @@ internal Bech32Error_InvalidLength(long ptr) : base(null, ptr) { public class Bech32Error_InvalidChar : Bech32Error { public int invalid_char; internal Bech32Error_InvalidChar(long ptr) : base(null, ptr) { - this.invalid_char = bindings.LDKBech32Error_InvalidChar_get_invalid_char(ptr); + this.invalid_char = Bindings.LDKBech32ErrorInvalidCharGetInvalidChar(ptr); } } /** A Bech32Error of type InvalidData */ public class Bech32Error_InvalidData : Bech32Error { public byte invalid_data; internal Bech32Error_InvalidData(long ptr) : base(null, ptr) { - this.invalid_data = bindings.LDKBech32Error_InvalidData_get_invalid_data(ptr); + this.invalid_data = Bindings.LDKBech32ErrorInvalidDataGetInvalidData(ptr); } } /** A Bech32Error of type InvalidPadding */ @@ -69,7 +69,7 @@ internal Bech32Error_MixedCase(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.Bech32Error_clone_ptr(this.ptr); + long ret = Bindings.Bech32ErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * Creates a new Bech32Error which has the same data as `orig` */ public Bech32Error clone() { - long ret = bindings.Bech32Error_clone(this.ptr); + long ret = Bindings.Bech32ErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bech32Error ret_hu_conv = org.ldk.structs.Bech32Error.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BestBlock.cs b/c_sharp/src/org/ldk/structs/BestBlock.cs index 3d46e2b06..38a694f94 100644 --- a/c_sharp/src/org/ldk/structs/BestBlock.cs +++ b/c_sharp/src/org/ldk/structs/BestBlock.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class BestBlock : CommonBase { internal BestBlock(object _dummy, long ptr) : base(ptr) { } ~BestBlock() { - if (ptr != 0) { bindings.BestBlock_free(ptr); } + if (ptr != 0) { Bindings.BestBlockFree(ptr); } } internal long clone_ptr() { - long ret = bindings.BestBlock_clone_ptr(this.ptr); + long ret = Bindings.BestBlockClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the BestBlock */ public BestBlock clone() { - long ret = bindings.BestBlock_clone(this.ptr); + long ret = Bindings.BestBlockClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); } @@ -39,7 +39,7 @@ public BestBlock clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BestBlock b) { - bool ret = bindings.BestBlock_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BestBlockEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -55,7 +55,7 @@ public override bool Equals(object o) { * network. */ public static BestBlock from_network(Network network) { - long ret = bindings.BestBlock_from_network(network); + long ret = Bindings.BestBlockFromNetwork(network); GC.KeepAlive(network); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); } @@ -67,7 +67,7 @@ public static BestBlock from_network(Network network) { * Returns a `BestBlock` as identified by the given block hash and height. */ public static BestBlock of(byte[] block_hash, int height) { - long ret = bindings.BestBlock_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(block_hash, 32)), height); + long ret = Bindings.BestBlockNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(block_hash, 32)), height); GC.KeepAlive(block_hash); GC.KeepAlive(height); if (ret >= 0 && ret <= 4096) { return null; } @@ -80,10 +80,10 @@ public static BestBlock of(byte[] block_hash, int height) { * Returns the best block hash. */ public byte[] block_hash() { - long ret = bindings.BestBlock_block_hash(this.ptr); + long ret = Bindings.BestBlockBlockHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -91,7 +91,7 @@ public byte[] block_hash() { * Returns the best block height. */ public int height() { - int ret = bindings.BestBlock_height(this.ptr); + int ret = Bindings.BestBlockHeight(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/BigEndianScalar.cs b/c_sharp/src/org/ldk/structs/BigEndianScalar.cs index d3bd35eb4..1823f95d1 100644 --- a/c_sharp/src/org/ldk/structs/BigEndianScalar.cs +++ b/c_sharp/src/org/ldk/structs/BigEndianScalar.cs @@ -10,13 +10,13 @@ public class BigEndianScalar : CommonBase { public readonly byte[] scalar_bytes; internal BigEndianScalar(object _dummy, long ptr) : base(ptr) { - this.scalar_bytes = InternalUtils.decodeUint8Array(bindings.BigEndianScalar_get_bytes(ptr)); + this.scalar_bytes = InternalUtils.DecodeUint8Array(Bindings.BigEndianScalarGetBytes(ptr)); } - public BigEndianScalar(byte[] scalar_bytes) : base(bindings.BigEndianScalar_new(InternalUtils.encodeUint8Array(scalar_bytes))) { - this.scalar_bytes = InternalUtils.decodeUint8Array(bindings.BigEndianScalar_get_bytes(ptr)); + public BigEndianScalar(byte[] scalar_bytes) : base(Bindings.BigEndianScalarNew(InternalUtils.EncodeUint8Array(scalar_bytes))) { + this.scalar_bytes = InternalUtils.DecodeUint8Array(Bindings.BigEndianScalarGetBytes(ptr)); } ~BigEndianScalar() { - if (ptr != 0) { bindings.BigEndianScalar_free(ptr); } + if (ptr != 0) { Bindings.BigEndianScalarFree(ptr); } } }} } } diff --git a/c_sharp/src/org/ldk/structs/BigSize.cs b/c_sharp/src/org/ldk/structs/BigSize.cs index 2a0b0a4e0..ec0d9c514 100644 --- a/c_sharp/src/org/ldk/structs/BigSize.cs +++ b/c_sharp/src/org/ldk/structs/BigSize.cs @@ -18,17 +18,17 @@ namespace org { namespace ldk { namespace structs { public class BigSize : CommonBase { internal BigSize(object _dummy, long ptr) : base(ptr) { } ~BigSize() { - if (ptr != 0) { bindings.BigSize_free(ptr); } + if (ptr != 0) { Bindings.BigSizeFree(ptr); } } public long get_a() { - long ret = bindings.BigSize_get_a(this.ptr); + long ret = Bindings.BigSizeGetA(this.ptr); GC.KeepAlive(this); return ret; } public void set_a(long val) { - bindings.BigSize_set_a(this.ptr, val); + Bindings.BigSizeSetA(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,7 +37,7 @@ public void set_a(long val) { * Constructs a new BigSize given each field */ public static BigSize of(long a_arg) { - long ret = bindings.BigSize_new(a_arg); + long ret = Bindings.BigSizeNew(a_arg); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BigSize ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BigSize(null, ret); } @@ -46,7 +46,7 @@ public static BigSize of(long a_arg) { } internal long clone_ptr() { - long ret = bindings.BigSize_clone_ptr(this.ptr); + long ret = Bindings.BigSizeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -55,7 +55,7 @@ internal long clone_ptr() { * Creates a copy of the BigSize */ public BigSize clone() { - long ret = bindings.BigSize_clone(this.ptr); + long ret = Bindings.BigSizeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BigSize ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BigSize(null, ret); } @@ -67,7 +67,7 @@ public BigSize clone() { * Generates a non-cryptographic 64-bit hash of the BigSize. */ public long hash() { - long ret = bindings.BigSize_hash(this.ptr); + long ret = Bindings.BigSizeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BigSize b) { - bool ret = bindings.BigSize_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BigSizeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -96,10 +96,10 @@ public override bool Equals(object o) { * Serialize the BigSize object into a byte array which can be read by BigSize_read */ public byte[] write() { - long ret = bindings.BigSize_write(this.ptr); + long ret = Bindings.BigSizeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -107,7 +107,7 @@ public byte[] write() { * Read a BigSize from a byte array, created by BigSize_write */ public static Result_BigSizeDecodeErrorZ read(byte[] ser) { - long ret = bindings.BigSize_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BigSizeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BigSizeDecodeErrorZ ret_hu_conv = Result_BigSizeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedForward.cs b/c_sharp/src/org/ldk/structs/BlindedForward.cs index 12a542ddc..e4af60777 100644 --- a/c_sharp/src/org/ldk/structs/BlindedForward.cs +++ b/c_sharp/src/org/ldk/structs/BlindedForward.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class BlindedForward : CommonBase { internal BlindedForward(object _dummy, long ptr) : base(ptr) { } ~BlindedForward() { - if (ptr != 0) { bindings.BlindedForward_free(ptr); } + if (ptr != 0) { Bindings.BlindedForwardFree(ptr); } } /** @@ -21,10 +21,10 @@ internal BlindedForward(object _dummy, long ptr) : base(ptr) { } * [`msgs::UpdateAddHTLC::blinding_point`]. */ public byte[] get_inbound_blinding_point() { - long ret = bindings.BlindedForward_get_inbound_blinding_point(this.ptr); + long ret = Bindings.BlindedForwardGetInboundBlindingPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_inbound_blinding_point() { * [`msgs::UpdateAddHTLC::blinding_point`]. */ public void set_inbound_blinding_point(byte[] val) { - bindings.BlindedForward_set_inbound_blinding_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.BlindedForwardSetInboundBlindingPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,7 +44,7 @@ public void set_inbound_blinding_point(byte[] val) { * the introduction node. */ public BlindedFailure get_failure() { - BlindedFailure ret = bindings.BlindedForward_get_failure(this.ptr); + BlindedFailure ret = Bindings.BlindedForwardGetFailure(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public BlindedFailure get_failure() { * the introduction node. */ public void set_failure(BlindedFailure val) { - bindings.BlindedForward_set_failure(this.ptr, val); + Bindings.BlindedForwardSetFailure(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_failure(BlindedFailure val) { * Constructs a new BlindedForward given each field */ public static BlindedForward of(byte[] inbound_blinding_point_arg, BlindedFailure failure_arg) { - long ret = bindings.BlindedForward_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(inbound_blinding_point_arg, 33)), failure_arg); + long ret = Bindings.BlindedForwardNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(inbound_blinding_point_arg, 33)), failure_arg); GC.KeepAlive(inbound_blinding_point_arg); GC.KeepAlive(failure_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -73,7 +73,7 @@ public static BlindedForward of(byte[] inbound_blinding_point_arg, BlindedFailur } internal long clone_ptr() { - long ret = bindings.BlindedForward_clone_ptr(this.ptr); + long ret = Bindings.BlindedForwardClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedForward */ public BlindedForward clone() { - long ret = bindings.BlindedForward_clone(this.ptr); + long ret = Bindings.BlindedForwardClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedForward ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedForward(null, ret); } @@ -94,7 +94,7 @@ public BlindedForward clone() { * Generates a non-cryptographic 64-bit hash of the BlindedForward. */ public long hash() { - long ret = bindings.BlindedForward_hash(this.ptr); + long ret = Bindings.BlindedForwardHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -108,7 +108,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedForward b) { - bool ret = bindings.BlindedForward_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedForwardEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -123,10 +123,10 @@ public override bool Equals(object o) { * Serialize the BlindedForward object into a byte array which can be read by BlindedForward_read */ public byte[] write() { - long ret = bindings.BlindedForward_write(this.ptr); + long ret = Bindings.BlindedForwardWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -134,7 +134,7 @@ public byte[] write() { * Read a BlindedForward from a byte array, created by BlindedForward_write */ public static Result_BlindedForwardDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedForward_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedForwardRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedForwardDecodeErrorZ ret_hu_conv = Result_BlindedForwardDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedHop.cs b/c_sharp/src/org/ldk/structs/BlindedHop.cs index 95bbe09ee..2c83da842 100644 --- a/c_sharp/src/org/ldk/structs/BlindedHop.cs +++ b/c_sharp/src/org/ldk/structs/BlindedHop.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class BlindedHop : CommonBase { internal BlindedHop(object _dummy, long ptr) : base(ptr) { } ~BlindedHop() { - if (ptr != 0) { bindings.BlindedHop_free(ptr); } + if (ptr != 0) { Bindings.BlindedHopFree(ptr); } } /** * The blinded node id of this hop in a [`BlindedPath`]. */ public byte[] get_blinded_node_id() { - long ret = bindings.BlindedHop_get_blinded_node_id(this.ptr); + long ret = Bindings.BlindedHopGetBlindedNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_blinded_node_id() { * The blinded node id of this hop in a [`BlindedPath`]. */ public void set_blinded_node_id(byte[] val) { - bindings.BlindedHop_set_blinded_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.BlindedHopSetBlindedNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,10 +43,10 @@ public void set_blinded_node_id(byte[] val) { * Returns a copy of the field. */ public byte[] get_encrypted_payload() { - long ret = bindings.BlindedHop_get_encrypted_payload(this.ptr); + long ret = Bindings.BlindedHopGetEncryptedPayload(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_encrypted_payload() { * The encrypted payload intended for this hop in a [`BlindedPath`]. */ public void set_encrypted_payload(byte[] val) { - bindings.BlindedHop_set_encrypted_payload(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.BlindedHopSetEncryptedPayload(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_encrypted_payload(byte[] val) { * Constructs a new BlindedHop given each field */ public static BlindedHop of(byte[] blinded_node_id_arg, byte[] encrypted_payload_arg) { - long ret = bindings.BlindedHop_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(blinded_node_id_arg, 33)), InternalUtils.encodeUint8Array(encrypted_payload_arg)); + long ret = Bindings.BlindedHopNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(blinded_node_id_arg, 33)), InternalUtils.EncodeUint8Array(encrypted_payload_arg)); GC.KeepAlive(blinded_node_id_arg); GC.KeepAlive(encrypted_payload_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -73,7 +73,7 @@ public static BlindedHop of(byte[] blinded_node_id_arg, byte[] encrypted_payload } internal long clone_ptr() { - long ret = bindings.BlindedHop_clone_ptr(this.ptr); + long ret = Bindings.BlindedHopClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedHop */ public BlindedHop clone() { - long ret = bindings.BlindedHop_clone(this.ptr); + long ret = Bindings.BlindedHopClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedHop(null, ret); } @@ -94,7 +94,7 @@ public BlindedHop clone() { * Generates a non-cryptographic 64-bit hash of the BlindedHop. */ public long hash() { - long ret = bindings.BlindedHop_hash(this.ptr); + long ret = Bindings.BlindedHopHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -108,7 +108,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedHop b) { - bool ret = bindings.BlindedHop_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedHopEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -123,10 +123,10 @@ public override bool Equals(object o) { * Serialize the BlindedHop object into a byte array which can be read by BlindedHop_read */ public byte[] write() { - long ret = bindings.BlindedHop_write(this.ptr); + long ret = Bindings.BlindedHopWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -134,7 +134,7 @@ public byte[] write() { * Read a BlindedHop from a byte array, created by BlindedHop_write */ public static Result_BlindedHopDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedHop_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedHopRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopDecodeErrorZ ret_hu_conv = Result_BlindedHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedHopFeatures.cs b/c_sharp/src/org/ldk/structs/BlindedHopFeatures.cs index d6de7e38b..d7bdcdf81 100644 --- a/c_sharp/src/org/ldk/structs/BlindedHopFeatures.cs +++ b/c_sharp/src/org/ldk/structs/BlindedHopFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class BlindedHopFeatures : CommonBase { internal BlindedHopFeatures(object _dummy, long ptr) : base(ptr) { } ~BlindedHopFeatures() { - if (ptr != 0) { bindings.BlindedHopFeatures_free(ptr); } + if (ptr != 0) { Bindings.BlindedHopFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal BlindedHopFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedHopFeatures b) { - bool ret = bindings.BlindedHopFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedHopFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((BlindedHopFeatures)o); } internal long clone_ptr() { - long ret = bindings.BlindedHopFeatures_clone_ptr(this.ptr); + long ret = Bindings.BlindedHopFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedHopFeatures */ public BlindedHopFeatures clone() { - long ret = bindings.BlindedHopFeatures_clone(this.ptr); + long ret = Bindings.BlindedHopFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedHopFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedHopFeatures(null, ret); } @@ -54,7 +54,7 @@ public BlindedHopFeatures clone() { * Generates a non-cryptographic 64-bit hash of the BlindedHopFeatures. */ public long hash() { - long ret = bindings.BlindedHopFeatures_hash(this.ptr); + long ret = Bindings.BlindedHopFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static BlindedHopFeatures empty() { - long ret = bindings.BlindedHopFeatures_empty(); + long ret = Bindings.BlindedHopFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedHopFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedHopFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static BlindedHopFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.BlindedHopFeatures other) { - bool ret = bindings.BlindedHopFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.BlindedHopFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.BlindedHopFeatures other) * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.BlindedHopFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.BlindedHopFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.BlindedHopFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.BlindedHopFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.BlindedHopFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.BlindedHopFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.BlindedHopFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.BlindedHopFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.BlindedHopFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.BlindedHopFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the BlindedHopFeatures object into a byte array which can be read by BlindedHopFeatures_read */ public byte[] write() { - long ret = bindings.BlindedHopFeatures_write(this.ptr); + long ret = Bindings.BlindedHopFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a BlindedHopFeatures from a byte array, created by BlindedHopFeatures_write */ public static Result_BlindedHopFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedHopFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedHopFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopFeaturesDecodeErrorZ ret_hu_conv = Result_BlindedHopFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedPath.cs b/c_sharp/src/org/ldk/structs/BlindedPath.cs index 4a24c4f3b..fc7761a9d 100644 --- a/c_sharp/src/org/ldk/structs/BlindedPath.cs +++ b/c_sharp/src/org/ldk/structs/BlindedPath.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class BlindedPath : CommonBase { internal BlindedPath(object _dummy, long ptr) : base(ptr) { } ~BlindedPath() { - if (ptr != 0) { bindings.BlindedPath_free(ptr); } + if (ptr != 0) { Bindings.BlindedPathFree(ptr); } } /** @@ -24,10 +24,10 @@ internal BlindedPath(object _dummy, long ptr) : base(ptr) { } * [`encrypted_payload`]: BlindedHop::encrypted_payload */ public byte[] get_introduction_node_id() { - long ret = bindings.BlindedPath_get_introduction_node_id(this.ptr); + long ret = Bindings.BlindedPathGetIntroductionNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -39,7 +39,7 @@ public byte[] get_introduction_node_id() { * [`encrypted_payload`]: BlindedHop::encrypted_payload */ public void set_introduction_node_id(byte[] val) { - bindings.BlindedPath_set_introduction_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.BlindedPathSetIntroductionNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -51,10 +51,10 @@ public void set_introduction_node_id(byte[] val) { * [`encrypted_payload`]: BlindedHop::encrypted_payload */ public byte[] get_blinding_point() { - long ret = bindings.BlindedPath_get_blinding_point(this.ptr); + long ret = Bindings.BlindedPathGetBlindingPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -65,7 +65,7 @@ public byte[] get_blinding_point() { * [`encrypted_payload`]: BlindedHop::encrypted_payload */ public void set_blinding_point(byte[] val) { - bindings.BlindedPath_set_blinding_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.BlindedPathSetBlindingPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -74,18 +74,18 @@ public void set_blinding_point(byte[] val) { * The hops composing the blinded path. */ public BlindedHop[] get_blinded_hops() { - long ret = bindings.BlindedPath_get_blinded_hops(this.ptr); + long ret = Bindings.BlindedPathGetBlindedHops(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_12_len = InternalUtils.getArrayLength(ret); + int ret_conv_12_len = InternalUtils.GetArrayLength(ret); BlindedHop[] ret_conv_12_arr = new BlindedHop[ret_conv_12_len]; for (int m = 0; m < ret_conv_12_len; m++) { - long ret_conv_12 = InternalUtils.getU64ArrayElem(ret, m); + long ret_conv_12 = InternalUtils.GetU64ArrayElem(ret, m); org.ldk.structs.BlindedHop ret_conv_12_hu_conv = null; if (ret_conv_12 < 0 || ret_conv_12 > 4096) { ret_conv_12_hu_conv = new org.ldk.structs.BlindedHop(null, ret_conv_12); } if (ret_conv_12_hu_conv != null) { ret_conv_12_hu_conv.ptrs_to.AddLast(this); }; ret_conv_12_arr[m] = ret_conv_12_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_12_arr; } @@ -93,7 +93,7 @@ public BlindedHop[] get_blinded_hops() { * The hops composing the blinded path. */ public void set_blinded_hops(BlindedHop[] val) { - bindings.BlindedPath_set_blinded_hops(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_12 => val_conv_12 == null ? 0 : val_conv_12.ptr))); + Bindings.BlindedPathSetBlindedHops(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_12 => val_conv_12 == null ? 0 : val_conv_12.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (BlindedHop val_conv_12 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_12); }; }; @@ -103,7 +103,7 @@ public void set_blinded_hops(BlindedHop[] val) { * Constructs a new BlindedPath given each field */ public static BlindedPath of(byte[] introduction_node_id_arg, byte[] blinding_point_arg, BlindedHop[] blinded_hops_arg) { - long ret = bindings.BlindedPath_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(introduction_node_id_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(blinding_point_arg, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(blinded_hops_arg, blinded_hops_arg_conv_12 => blinded_hops_arg_conv_12 == null ? 0 : blinded_hops_arg_conv_12.ptr))); + long ret = Bindings.BlindedPathNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(introduction_node_id_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(blinding_point_arg, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(blinded_hops_arg, blinded_hops_arg_conv_12 => blinded_hops_arg_conv_12 == null ? 0 : blinded_hops_arg_conv_12.ptr))); GC.KeepAlive(introduction_node_id_arg); GC.KeepAlive(blinding_point_arg); GC.KeepAlive(blinded_hops_arg); @@ -115,7 +115,7 @@ public static BlindedPath of(byte[] introduction_node_id_arg, byte[] blinding_po } internal long clone_ptr() { - long ret = bindings.BlindedPath_clone_ptr(this.ptr); + long ret = Bindings.BlindedPathClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -124,7 +124,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedPath */ public BlindedPath clone() { - long ret = bindings.BlindedPath_clone(this.ptr); + long ret = Bindings.BlindedPathClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); } @@ -136,7 +136,7 @@ public BlindedPath clone() { * Generates a non-cryptographic 64-bit hash of the BlindedPath. */ public long hash() { - long ret = bindings.BlindedPath_hash(this.ptr); + long ret = Bindings.BlindedPathHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -150,7 +150,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedPath b) { - bool ret = bindings.BlindedPath_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedPathEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -165,7 +165,7 @@ public override bool Equals(object o) { * Create a one-hop blinded path for a message. */ public static Result_BlindedPathNoneZ one_hop_for_message(byte[] recipient_node_id, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.BlindedPath_one_hop_for_message(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(recipient_node_id, 33)), entropy_source.ptr); + long ret = Bindings.BlindedPathOneHopForMessage(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(recipient_node_id, 33)), entropy_source.ptr); GC.KeepAlive(recipient_node_id); GC.KeepAlive(entropy_source); if (ret >= 0 && ret <= 4096) { return null; } @@ -181,7 +181,7 @@ public static Result_BlindedPathNoneZ one_hop_for_message(byte[] recipient_node_ * Errors if no hops are provided or if `node_pk`(s) are invalid. */ public static Result_BlindedPathNoneZ new_for_message(byte[][] node_pks, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.BlindedPath_new_for_message(InternalUtils.encodeUint64Array(InternalUtils.mapArray(node_pks, node_pks_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_pks_conv_8, 33)))), entropy_source.ptr); + long ret = Bindings.BlindedPathNewForMessage(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(node_pks, node_pks_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_pks_conv_8, 33)))), entropy_source.ptr); GC.KeepAlive(node_pks); GC.KeepAlive(entropy_source); if (ret >= 0 && ret <= 4096) { return null; } @@ -194,10 +194,10 @@ public static Result_BlindedPathNoneZ new_for_message(byte[][] node_pks, org.ldk * Serialize the BlindedPath object into a byte array which can be read by BlindedPath_read */ public byte[] write() { - long ret = bindings.BlindedPath_write(this.ptr); + long ret = Bindings.BlindedPathWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -205,7 +205,7 @@ public byte[] write() { * Read a BlindedPath from a byte array, created by BlindedPath_write */ public static Result_BlindedPathDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedPath_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedPathRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathDecodeErrorZ ret_hu_conv = Result_BlindedPathDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedPathCandidate.cs b/c_sharp/src/org/ldk/structs/BlindedPathCandidate.cs index e0393bfd2..2ab4efff3 100644 --- a/c_sharp/src/org/ldk/structs/BlindedPathCandidate.cs +++ b/c_sharp/src/org/ldk/structs/BlindedPathCandidate.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class BlindedPathCandidate : CommonBase { internal BlindedPathCandidate(object _dummy, long ptr) : base(ptr) { } ~BlindedPathCandidate() { - if (ptr != 0) { bindings.BlindedPathCandidate_free(ptr); } + if (ptr != 0) { Bindings.BlindedPathCandidateFree(ptr); } } internal long clone_ptr() { - long ret = bindings.BlindedPathCandidate_clone_ptr(this.ptr); + long ret = Bindings.BlindedPathCandidateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedPathCandidate */ public BlindedPathCandidate clone() { - long ret = bindings.BlindedPathCandidate_clone(this.ptr); + long ret = Bindings.BlindedPathCandidateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPathCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPathCandidate(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs b/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs index e788659bc..d74994efb 100644 --- a/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs +++ b/c_sharp/src/org/ldk/structs/BlindedPayInfo.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class BlindedPayInfo : CommonBase { internal BlindedPayInfo(object _dummy, long ptr) : base(ptr) { } ~BlindedPayInfo() { - if (ptr != 0) { bindings.BlindedPayInfo_free(ptr); } + if (ptr != 0) { Bindings.BlindedPayInfoFree(ptr); } } /** * Base fee charged (in millisatoshi) for the entire blinded path. */ public int get_fee_base_msat() { - int ret = bindings.BlindedPayInfo_get_fee_base_msat(this.ptr); + int ret = Bindings.BlindedPayInfoGetFeeBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public int get_fee_base_msat() { * Base fee charged (in millisatoshi) for the entire blinded path. */ public void set_fee_base_msat(int val) { - bindings.BlindedPayInfo_set_fee_base_msat(this.ptr, val); + Bindings.BlindedPayInfoSetFeeBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -38,7 +38,7 @@ public void set_fee_base_msat(int val) { * (i.e., 10,000 is 1%). */ public int get_fee_proportional_millionths() { - int ret = bindings.BlindedPayInfo_get_fee_proportional_millionths(this.ptr); + int ret = Bindings.BlindedPayInfoGetFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public int get_fee_proportional_millionths() { * (i.e., 10,000 is 1%). */ public void set_fee_proportional_millionths(int val) { - bindings.BlindedPayInfo_set_fee_proportional_millionths(this.ptr, val); + Bindings.BlindedPayInfoSetFeeProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -58,7 +58,7 @@ public void set_fee_proportional_millionths(int val) { * path. */ public short get_cltv_expiry_delta() { - short ret = bindings.BlindedPayInfo_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.BlindedPayInfoGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public short get_cltv_expiry_delta() { * path. */ public void set_cltv_expiry_delta(short val) { - bindings.BlindedPayInfo_set_cltv_expiry_delta(this.ptr, val); + Bindings.BlindedPayInfoSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_cltv_expiry_delta(short val) { * seen by the recipient. */ public long get_htlc_minimum_msat() { - long ret = bindings.BlindedPayInfo_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.BlindedPayInfoGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ public long get_htlc_minimum_msat() { * seen by the recipient. */ public void set_htlc_minimum_msat(long val) { - bindings.BlindedPayInfo_set_htlc_minimum_msat(this.ptr, val); + Bindings.BlindedPayInfoSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_htlc_minimum_msat(long val) { * seen by the recipient. */ public long get_htlc_maximum_msat() { - long ret = bindings.BlindedPayInfo_get_htlc_maximum_msat(this.ptr); + long ret = Bindings.BlindedPayInfoGetHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -112,7 +112,7 @@ public long get_htlc_maximum_msat() { * seen by the recipient. */ public void set_htlc_maximum_msat(long val) { - bindings.BlindedPayInfo_set_htlc_maximum_msat(this.ptr, val); + Bindings.BlindedPayInfoSetHtlcMaximumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -122,7 +122,7 @@ public void set_htlc_maximum_msat(long val) { * onion payload. */ public BlindedHopFeatures get_features() { - long ret = bindings.BlindedPayInfo_get_features(this.ptr); + long ret = Bindings.BlindedPayInfoGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedHopFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedHopFeatures(null, ret); } @@ -135,7 +135,7 @@ public BlindedHopFeatures get_features() { * onion payload. */ public void set_features(org.ldk.structs.BlindedHopFeatures val) { - bindings.BlindedPayInfo_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.BlindedPayInfoSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -145,7 +145,7 @@ public void set_features(org.ldk.structs.BlindedHopFeatures val) { * Constructs a new BlindedPayInfo given each field */ public static BlindedPayInfo of(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, org.ldk.structs.BlindedHopFeatures features_arg) { - long ret = bindings.BlindedPayInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, features_arg == null ? 0 : features_arg.ptr); + long ret = Bindings.BlindedPayInfoNew(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, features_arg == null ? 0 : features_arg.ptr); GC.KeepAlive(fee_base_msat_arg); GC.KeepAlive(fee_proportional_millionths_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -160,7 +160,7 @@ public static BlindedPayInfo of(int fee_base_msat_arg, int fee_proportional_mill } internal long clone_ptr() { - long ret = bindings.BlindedPayInfo_clone_ptr(this.ptr); + long ret = Bindings.BlindedPayInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -169,7 +169,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedPayInfo */ public BlindedPayInfo clone() { - long ret = bindings.BlindedPayInfo_clone(this.ptr); + long ret = Bindings.BlindedPayInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPayInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPayInfo(null, ret); } @@ -181,7 +181,7 @@ public BlindedPayInfo clone() { * Generates a non-cryptographic 64-bit hash of the BlindedPayInfo. */ public long hash() { - long ret = bindings.BlindedPayInfo_hash(this.ptr); + long ret = Bindings.BlindedPayInfoHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -195,7 +195,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedPayInfo b) { - bool ret = bindings.BlindedPayInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedPayInfoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -210,10 +210,10 @@ public override bool Equals(object o) { * Serialize the BlindedPayInfo object into a byte array which can be read by BlindedPayInfo_read */ public byte[] write() { - long ret = bindings.BlindedPayInfo_write(this.ptr); + long ret = Bindings.BlindedPayInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -221,7 +221,7 @@ public byte[] write() { * Read a BlindedPayInfo from a byte array, created by BlindedPayInfo_write */ public static Result_BlindedPayInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedPayInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedPayInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPayInfoDecodeErrorZ ret_hu_conv = Result_BlindedPayInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/BlindedTail.cs b/c_sharp/src/org/ldk/structs/BlindedTail.cs index a92b3ac72..8587a6d1d 100644 --- a/c_sharp/src/org/ldk/structs/BlindedTail.cs +++ b/c_sharp/src/org/ldk/structs/BlindedTail.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class BlindedTail : CommonBase { internal BlindedTail(object _dummy, long ptr) : base(ptr) { } ~BlindedTail() { - if (ptr != 0) { bindings.BlindedTail_free(ptr); } + if (ptr != 0) { Bindings.BlindedTailFree(ptr); } } /** @@ -24,18 +24,18 @@ internal BlindedTail(object _dummy, long ptr) : base(ptr) { } * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public BlindedHop[] get_hops() { - long ret = bindings.BlindedTail_get_hops(this.ptr); + long ret = Bindings.BlindedTailGetHops(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_12_len = InternalUtils.getArrayLength(ret); + int ret_conv_12_len = InternalUtils.GetArrayLength(ret); BlindedHop[] ret_conv_12_arr = new BlindedHop[ret_conv_12_len]; for (int m = 0; m < ret_conv_12_len; m++) { - long ret_conv_12 = InternalUtils.getU64ArrayElem(ret, m); + long ret_conv_12 = InternalUtils.GetU64ArrayElem(ret, m); org.ldk.structs.BlindedHop ret_conv_12_hu_conv = null; if (ret_conv_12 < 0 || ret_conv_12 > 4096) { ret_conv_12_hu_conv = new org.ldk.structs.BlindedHop(null, ret_conv_12); } if (ret_conv_12_hu_conv != null) { ret_conv_12_hu_conv.ptrs_to.AddLast(this); }; ret_conv_12_arr[m] = ret_conv_12_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_12_arr; } @@ -45,7 +45,7 @@ public BlindedHop[] get_hops() { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public void set_hops(BlindedHop[] val) { - bindings.BlindedTail_set_hops(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_12 => val_conv_12 == null ? 0 : val_conv_12.ptr))); + Bindings.BlindedTailSetHops(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_12 => val_conv_12 == null ? 0 : val_conv_12.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (BlindedHop val_conv_12 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_12); }; }; @@ -57,10 +57,10 @@ public void set_hops(BlindedHop[] val) { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public byte[] get_blinding_point() { - long ret = bindings.BlindedTail_get_blinding_point(this.ptr); + long ret = Bindings.BlindedTailGetBlindingPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -70,7 +70,7 @@ public byte[] get_blinding_point() { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public void set_blinding_point(byte[] val) { - bindings.BlindedTail_set_blinding_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.BlindedTailSetBlindingPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -80,7 +80,7 @@ public void set_blinding_point(byte[] val) { * inferring the destination. May be 0. */ public int get_excess_final_cltv_expiry_delta() { - int ret = bindings.BlindedTail_get_excess_final_cltv_expiry_delta(this.ptr); + int ret = Bindings.BlindedTailGetExcessFinalCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ public int get_excess_final_cltv_expiry_delta() { * inferring the destination. May be 0. */ public void set_excess_final_cltv_expiry_delta(int val) { - bindings.BlindedTail_set_excess_final_cltv_expiry_delta(this.ptr, val); + Bindings.BlindedTailSetExcessFinalCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_excess_final_cltv_expiry_delta(int val) { * The total amount paid on this [`Path`], excluding the fees. */ public long get_final_value_msat() { - long ret = bindings.BlindedTail_get_final_value_msat(this.ptr); + long ret = Bindings.BlindedTailGetFinalValueMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -108,7 +108,7 @@ public long get_final_value_msat() { * The total amount paid on this [`Path`], excluding the fees. */ public void set_final_value_msat(long val) { - bindings.BlindedTail_set_final_value_msat(this.ptr, val); + Bindings.BlindedTailSetFinalValueMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -117,7 +117,7 @@ public void set_final_value_msat(long val) { * Constructs a new BlindedTail given each field */ public static BlindedTail of(BlindedHop[] hops_arg, byte[] blinding_point_arg, int excess_final_cltv_expiry_delta_arg, long final_value_msat_arg) { - long ret = bindings.BlindedTail_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(hops_arg, hops_arg_conv_12 => hops_arg_conv_12 == null ? 0 : hops_arg_conv_12.ptr)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(blinding_point_arg, 33)), excess_final_cltv_expiry_delta_arg, final_value_msat_arg); + long ret = Bindings.BlindedTailNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(hops_arg, hops_arg_conv_12 => hops_arg_conv_12 == null ? 0 : hops_arg_conv_12.ptr)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(blinding_point_arg, 33)), excess_final_cltv_expiry_delta_arg, final_value_msat_arg); GC.KeepAlive(hops_arg); GC.KeepAlive(blinding_point_arg); GC.KeepAlive(excess_final_cltv_expiry_delta_arg); @@ -130,7 +130,7 @@ public static BlindedTail of(BlindedHop[] hops_arg, byte[] blinding_point_arg, i } internal long clone_ptr() { - long ret = bindings.BlindedTail_clone_ptr(this.ptr); + long ret = Bindings.BlindedTailClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -139,7 +139,7 @@ internal long clone_ptr() { * Creates a copy of the BlindedTail */ public BlindedTail clone() { - long ret = bindings.BlindedTail_clone(this.ptr); + long ret = Bindings.BlindedTailClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedTail ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedTail(null, ret); } @@ -151,7 +151,7 @@ public BlindedTail clone() { * Generates a non-cryptographic 64-bit hash of the BlindedTail. */ public long hash() { - long ret = bindings.BlindedTail_hash(this.ptr); + long ret = Bindings.BlindedTailHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -165,7 +165,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.BlindedTail b) { - bool ret = bindings.BlindedTail_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BlindedTailEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -180,10 +180,10 @@ public override bool Equals(object o) { * Serialize the BlindedTail object into a byte array which can be read by BlindedTail_read */ public byte[] write() { - long ret = bindings.BlindedTail_write(this.ptr); + long ret = Bindings.BlindedTailWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -191,7 +191,7 @@ public byte[] write() { * Read a BlindedTail from a byte array, created by BlindedTail_write */ public static Result_BlindedTailDecodeErrorZ read(byte[] ser) { - long ret = bindings.BlindedTail_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BlindedTailRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedTailDecodeErrorZ ret_hu_conv = Result_BlindedTailDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Bolt11Invoice.cs b/c_sharp/src/org/ldk/structs/Bolt11Invoice.cs index 753798b9d..f074edb83 100644 --- a/c_sharp/src/org/ldk/structs/Bolt11Invoice.cs +++ b/c_sharp/src/org/ldk/structs/Bolt11Invoice.cs @@ -19,7 +19,7 @@ namespace org { namespace ldk { namespace structs { public class Bolt11Invoice : CommonBase { internal Bolt11Invoice(object _dummy, long ptr) : base(ptr) { } ~Bolt11Invoice() { - if (ptr != 0) { bindings.Bolt11Invoice_free(ptr); } + if (ptr != 0) { Bindings.Bolt11InvoiceFree(ptr); } } /** @@ -28,7 +28,7 @@ internal Bolt11Invoice(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Bolt11Invoice b) { - bool ret = bindings.Bolt11Invoice_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Bolt11InvoiceEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -40,7 +40,7 @@ public override bool Equals(object o) { return this.eq((Bolt11Invoice)o); } internal long clone_ptr() { - long ret = bindings.Bolt11Invoice_clone_ptr(this.ptr); + long ret = Bindings.Bolt11InvoiceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt11Invoice */ public Bolt11Invoice clone() { - long ret = bindings.Bolt11Invoice_clone(this.ptr); + long ret = Bindings.Bolt11InvoiceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11Invoice(null, ret); } @@ -61,7 +61,7 @@ public Bolt11Invoice clone() { * Generates a non-cryptographic 64-bit hash of the Bolt11Invoice. */ public long hash() { - long ret = bindings.Bolt11Invoice_hash(this.ptr); + long ret = Bindings.Bolt11InvoiceHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,10 +73,10 @@ public override int GetHashCode() { * The hash of the [`RawBolt11Invoice`] that was signed. */ public byte[] signable_hash() { - long ret = bindings.Bolt11Invoice_signable_hash(this.ptr); + long ret = Bindings.Bolt11InvoiceSignableHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -84,7 +84,7 @@ public byte[] signable_hash() { * Transform the `Bolt11Invoice` into its unchecked version. */ public SignedRawBolt11Invoice into_signed_raw() { - long ret = bindings.Bolt11Invoice_into_signed_raw(this.ptr); + long ret = Bindings.Bolt11InvoiceIntoSignedRaw(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SignedRawBolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.SignedRawBolt11Invoice(null, ret); } @@ -97,7 +97,7 @@ public SignedRawBolt11Invoice into_signed_raw() { * Check that the invoice is signed correctly and that key recovery works */ public Result_NoneBolt11SemanticErrorZ check_signature() { - long ret = bindings.Bolt11Invoice_check_signature(this.ptr); + long ret = Bindings.Bolt11InvoiceCheckSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt11SemanticErrorZ ret_hu_conv = Result_NoneBolt11SemanticErrorZ.constr_from_ptr(ret); @@ -127,7 +127,7 @@ public Result_NoneBolt11SemanticErrorZ check_signature() { * ``` */ public static Result_Bolt11InvoiceBolt11SemanticErrorZ from_signed(org.ldk.structs.SignedRawBolt11Invoice signed_invoice) { - long ret = bindings.Bolt11Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr); + long ret = Bindings.Bolt11InvoiceFromSigned(signed_invoice == null ? 0 : signed_invoice.ptr); GC.KeepAlive(signed_invoice); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret); @@ -139,7 +139,7 @@ public static Result_Bolt11InvoiceBolt11SemanticErrorZ from_signed(org.ldk.struc * Returns the `Bolt11Invoice`'s timestamp (should equal its creation time) */ public long timestamp() { - long ret = bindings.Bolt11Invoice_timestamp(this.ptr); + long ret = Bindings.Bolt11InvoiceTimestamp(this.ptr); GC.KeepAlive(this); return ret; } @@ -148,7 +148,7 @@ public long timestamp() { * Returns the `Bolt11Invoice`'s timestamp as a duration since the Unix epoch */ public long duration_since_epoch() { - long ret = bindings.Bolt11Invoice_duration_since_epoch(this.ptr); + long ret = Bindings.Bolt11InvoiceDurationSinceEpoch(this.ptr); GC.KeepAlive(this); return ret; } @@ -157,10 +157,10 @@ public long duration_since_epoch() { * Returns the hash to which we will receive the preimage on completion of the payment */ public byte[] payment_hash() { - long ret = bindings.Bolt11Invoice_payment_hash(this.ptr); + long ret = Bindings.Bolt11InvoicePaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -170,10 +170,10 @@ public byte[] payment_hash() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] payee_pub_key() { - long ret = bindings.Bolt11Invoice_payee_pub_key(this.ptr); + long ret = Bindings.Bolt11InvoicePayeePubKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,10 +181,10 @@ public byte[] payee_pub_key() { * Get the payment secret if one was included in the invoice */ public byte[] payment_secret() { - long ret = bindings.Bolt11Invoice_payment_secret(this.ptr); + long ret = Bindings.Bolt11InvoicePaymentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -192,7 +192,7 @@ public byte[] payment_secret() { * Get the payment metadata blob if one was included in the invoice */ public Option_CVec_u8ZZ payment_metadata() { - long ret = bindings.Bolt11Invoice_payment_metadata(this.ptr); + long ret = Bindings.Bolt11InvoicePaymentMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -206,7 +206,7 @@ public Option_CVec_u8ZZ payment_metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Bolt11InvoiceFeatures features() { - long ret = bindings.Bolt11Invoice_features(this.ptr); + long ret = Bindings.Bolt11InvoiceFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, ret); } @@ -218,10 +218,10 @@ public Bolt11InvoiceFeatures features() { * Recover the payee's public key (only to be used if none was included in the invoice) */ public byte[] recover_payee_pub_key() { - long ret = bindings.Bolt11Invoice_recover_payee_pub_key(this.ptr); + long ret = Bindings.Bolt11InvoiceRecoverPayeePubKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -230,7 +230,7 @@ public byte[] recover_payee_pub_key() { * Returning None if overflow occurred. */ public Option_u64Z expires_at() { - long ret = bindings.Bolt11Invoice_expires_at(this.ptr); + long ret = Bindings.Bolt11InvoiceExpiresAt(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -242,7 +242,7 @@ public Option_u64Z expires_at() { * Returns the invoice's expiry time, if present, otherwise [`DEFAULT_EXPIRY_TIME`]. */ public long expiry_time() { - long ret = bindings.Bolt11Invoice_expiry_time(this.ptr); + long ret = Bindings.Bolt11InvoiceExpiryTime(this.ptr); GC.KeepAlive(this); return ret; } @@ -251,7 +251,7 @@ public long expiry_time() { * Returns whether the invoice has expired. */ public bool is_expired() { - bool ret = bindings.Bolt11Invoice_is_expired(this.ptr); + bool ret = Bindings.Bolt11InvoiceIsExpired(this.ptr); GC.KeepAlive(this); return ret; } @@ -260,7 +260,7 @@ public bool is_expired() { * Returns the Duration remaining until the invoice expires. */ public long duration_until_expiry() { - long ret = bindings.Bolt11Invoice_duration_until_expiry(this.ptr); + long ret = Bindings.Bolt11InvoiceDurationUntilExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -270,7 +270,7 @@ public long duration_until_expiry() { * `time` is the timestamp as a duration since the Unix epoch. */ public long expiration_remaining_from_epoch(long time) { - long ret = bindings.Bolt11Invoice_expiration_remaining_from_epoch(this.ptr, time); + long ret = Bindings.Bolt11InvoiceExpirationRemainingFromEpoch(this.ptr, time); GC.KeepAlive(this); GC.KeepAlive(time); return ret; @@ -281,7 +281,7 @@ public long expiration_remaining_from_epoch(long time) { * `at_time` is the timestamp as a duration since the Unix epoch. */ public bool would_expire(long at_time) { - bool ret = bindings.Bolt11Invoice_would_expire(this.ptr, at_time); + bool ret = Bindings.Bolt11InvoiceWouldExpire(this.ptr, at_time); GC.KeepAlive(this); GC.KeepAlive(at_time); return ret; @@ -292,7 +292,7 @@ public bool would_expire(long at_time) { * [`DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA`]. */ public long min_final_cltv_expiry_delta() { - long ret = bindings.Bolt11Invoice_min_final_cltv_expiry_delta(this.ptr); + long ret = Bindings.Bolt11InvoiceMinFinalCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -301,17 +301,17 @@ public long min_final_cltv_expiry_delta() { * Returns a list of all fallback addresses as [`Address`]es */ public string[] fallback_addresses() { - long ret = bindings.Bolt11Invoice_fallback_addresses(this.ptr); + long ret = Bindings.Bolt11InvoiceFallbackAddresses(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); string[] ret_conv_8_arr = new string[ret_conv_8_len]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - string ret_conv_8_conv = InternalUtils.decodeString(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + string ret_conv_8_conv = InternalUtils.DecodeString(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -319,18 +319,18 @@ public string[] fallback_addresses() { * Returns a list of all routes included in the invoice */ public PrivateRoute[] private_routes() { - long ret = bindings.Bolt11Invoice_private_routes(this.ptr); + long ret = Bindings.Bolt11InvoicePrivateRoutes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_14_len = InternalUtils.getArrayLength(ret); + int ret_conv_14_len = InternalUtils.GetArrayLength(ret); PrivateRoute[] ret_conv_14_arr = new PrivateRoute[ret_conv_14_len]; for (int o = 0; o < ret_conv_14_len; o++) { - long ret_conv_14 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_14 = InternalUtils.GetU64ArrayElem(ret, o); org.ldk.structs.PrivateRoute ret_conv_14_hu_conv = null; if (ret_conv_14 < 0 || ret_conv_14 > 4096) { ret_conv_14_hu_conv = new org.ldk.structs.PrivateRoute(null, ret_conv_14); } if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); }; ret_conv_14_arr[o] = ret_conv_14_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_14_arr; } @@ -338,18 +338,18 @@ public PrivateRoute[] private_routes() { * Returns a list of all routes included in the invoice as the underlying hints */ public RouteHint[] route_hints() { - long ret = bindings.Bolt11Invoice_route_hints(this.ptr); + long ret = Bindings.Bolt11InvoiceRouteHints(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_11_len = InternalUtils.getArrayLength(ret); + int ret_conv_11_len = InternalUtils.GetArrayLength(ret); RouteHint[] ret_conv_11_arr = new RouteHint[ret_conv_11_len]; for (int l = 0; l < ret_conv_11_len; l++) { - long ret_conv_11 = InternalUtils.getU64ArrayElem(ret, l); + long ret_conv_11 = InternalUtils.GetU64ArrayElem(ret, l); org.ldk.structs.RouteHint ret_conv_11_hu_conv = null; if (ret_conv_11 < 0 || ret_conv_11 > 4096) { ret_conv_11_hu_conv = new org.ldk.structs.RouteHint(null, ret_conv_11); } if (ret_conv_11_hu_conv != null) { ret_conv_11_hu_conv.ptrs_to.AddLast(this); }; ret_conv_11_arr[l] = ret_conv_11_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_11_arr; } @@ -357,7 +357,7 @@ public RouteHint[] route_hints() { * Returns the currency for which the invoice was issued */ public Currency currency() { - Currency ret = bindings.Bolt11Invoice_currency(this.ptr); + Currency ret = Bindings.Bolt11InvoiceCurrency(this.ptr); GC.KeepAlive(this); return ret; } @@ -366,7 +366,7 @@ public Currency currency() { * Returns the amount if specified in the invoice as millisatoshis. */ public Option_u64Z amount_milli_satoshis() { - long ret = bindings.Bolt11Invoice_amount_milli_satoshis(this.ptr); + long ret = Bindings.Bolt11InvoiceAmountMilliSatoshis(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -378,7 +378,7 @@ public Option_u64Z amount_milli_satoshis() { * Read a Bolt11Invoice object from a string */ public static Result_Bolt11InvoiceParseOrSemanticErrorZ from_str(string s) { - long ret = bindings.Bolt11Invoice_from_str(InternalUtils.encodeString(s)); + long ret = Bindings.Bolt11InvoiceFromStr(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceParseOrSemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceParseOrSemanticErrorZ.constr_from_ptr(ret); @@ -389,10 +389,10 @@ public static Result_Bolt11InvoiceParseOrSemanticErrorZ from_str(string s) { * Get the string representation of a Bolt11Invoice object */ public string to_str() { - long ret = bindings.Bolt11Invoice_to_str(this.ptr); + long ret = Bindings.Bolt11InvoiceToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Bolt11InvoiceFeatures.cs b/c_sharp/src/org/ldk/structs/Bolt11InvoiceFeatures.cs index 7b649b24c..08855f6ad 100644 --- a/c_sharp/src/org/ldk/structs/Bolt11InvoiceFeatures.cs +++ b/c_sharp/src/org/ldk/structs/Bolt11InvoiceFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class Bolt11InvoiceFeatures : CommonBase { internal Bolt11InvoiceFeatures(object _dummy, long ptr) : base(ptr) { } ~Bolt11InvoiceFeatures() { - if (ptr != 0) { bindings.Bolt11InvoiceFeatures_free(ptr); } + if (ptr != 0) { Bindings.Bolt11InvoiceFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal Bolt11InvoiceFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Bolt11InvoiceFeatures b) { - bool ret = bindings.Bolt11InvoiceFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((Bolt11InvoiceFeatures)o); } internal long clone_ptr() { - long ret = bindings.Bolt11InvoiceFeatures_clone_ptr(this.ptr); + long ret = Bindings.Bolt11InvoiceFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt11InvoiceFeatures */ public Bolt11InvoiceFeatures clone() { - long ret = bindings.Bolt11InvoiceFeatures_clone(this.ptr); + long ret = Bindings.Bolt11InvoiceFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, ret); } @@ -54,7 +54,7 @@ public Bolt11InvoiceFeatures clone() { * Generates a non-cryptographic 64-bit hash of the Bolt11InvoiceFeatures. */ public long hash() { - long ret = bindings.Bolt11InvoiceFeatures_hash(this.ptr); + long ret = Bindings.Bolt11InvoiceFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static Bolt11InvoiceFeatures empty() { - long ret = bindings.Bolt11InvoiceFeatures_empty(); + long ret = Bindings.Bolt11InvoiceFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static Bolt11InvoiceFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.Bolt11InvoiceFeatures other) { - bool ret = bindings.Bolt11InvoiceFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.Bolt11InvoiceFeatures oth * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.Bolt11InvoiceFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.Bolt11InvoiceFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.Bolt11InvoiceFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.Bolt11InvoiceFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.Bolt11InvoiceFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.Bolt11InvoiceFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.Bolt11InvoiceFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.Bolt11InvoiceFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.Bolt11InvoiceFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the Bolt11InvoiceFeatures object into a byte array which can be read by Bolt11InvoiceFeatures_read */ public byte[] write() { - long ret = bindings.Bolt11InvoiceFeatures_write(this.ptr); + long ret = Bindings.Bolt11InvoiceFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a Bolt11InvoiceFeatures from a byte array, created by Bolt11InvoiceFeatures_write */ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.Bolt11InvoiceFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.Bolt11InvoiceFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt11InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -192,7 +192,7 @@ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ read(byte[] ser) { * Set this feature as optional. */ public void set_variable_length_onion_optional() { - bindings.Bolt11InvoiceFeatures_set_variable_length_onion_optional(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetVariableLengthOnionOptional(this.ptr); GC.KeepAlive(this); } @@ -200,7 +200,7 @@ public void set_variable_length_onion_optional() { * Set this feature as required. */ public void set_variable_length_onion_required() { - bindings.Bolt11InvoiceFeatures_set_variable_length_onion_required(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetVariableLengthOnionRequired(this.ptr); GC.KeepAlive(this); } @@ -208,7 +208,7 @@ public void set_variable_length_onion_required() { * Checks if this feature is supported. */ public bool supports_variable_length_onion() { - bool ret = bindings.Bolt11InvoiceFeatures_supports_variable_length_onion(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesSupportsVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public bool supports_variable_length_onion() { * Checks if this feature is required. */ public bool requires_variable_length_onion() { - bool ret = bindings.Bolt11InvoiceFeatures_requires_variable_length_onion(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -226,7 +226,7 @@ public bool requires_variable_length_onion() { * Set this feature as optional. */ public void set_payment_secret_optional() { - bindings.Bolt11InvoiceFeatures_set_payment_secret_optional(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetPaymentSecretOptional(this.ptr); GC.KeepAlive(this); } @@ -234,7 +234,7 @@ public void set_payment_secret_optional() { * Set this feature as required. */ public void set_payment_secret_required() { - bindings.Bolt11InvoiceFeatures_set_payment_secret_required(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetPaymentSecretRequired(this.ptr); GC.KeepAlive(this); } @@ -242,7 +242,7 @@ public void set_payment_secret_required() { * Checks if this feature is supported. */ public bool supports_payment_secret() { - bool ret = bindings.Bolt11InvoiceFeatures_supports_payment_secret(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesSupportsPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -251,7 +251,7 @@ public bool supports_payment_secret() { * Checks if this feature is required. */ public bool requires_payment_secret() { - bool ret = bindings.Bolt11InvoiceFeatures_requires_payment_secret(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -260,7 +260,7 @@ public bool requires_payment_secret() { * Set this feature as optional. */ public void set_basic_mpp_optional() { - bindings.Bolt11InvoiceFeatures_set_basic_mpp_optional(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetBasicMppOptional(this.ptr); GC.KeepAlive(this); } @@ -268,7 +268,7 @@ public void set_basic_mpp_optional() { * Set this feature as required. */ public void set_basic_mpp_required() { - bindings.Bolt11InvoiceFeatures_set_basic_mpp_required(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetBasicMppRequired(this.ptr); GC.KeepAlive(this); } @@ -276,7 +276,7 @@ public void set_basic_mpp_required() { * Checks if this feature is supported. */ public bool supports_basic_mpp() { - bool ret = bindings.Bolt11InvoiceFeatures_supports_basic_mpp(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesSupportsBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -285,7 +285,7 @@ public bool supports_basic_mpp() { * Checks if this feature is required. */ public bool requires_basic_mpp() { - bool ret = bindings.Bolt11InvoiceFeatures_requires_basic_mpp(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -294,7 +294,7 @@ public bool requires_basic_mpp() { * Set this feature as optional. */ public void set_payment_metadata_optional() { - bindings.Bolt11InvoiceFeatures_set_payment_metadata_optional(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetPaymentMetadataOptional(this.ptr); GC.KeepAlive(this); } @@ -302,7 +302,7 @@ public void set_payment_metadata_optional() { * Set this feature as required. */ public void set_payment_metadata_required() { - bindings.Bolt11InvoiceFeatures_set_payment_metadata_required(this.ptr); + Bindings.Bolt11InvoiceFeaturesSetPaymentMetadataRequired(this.ptr); GC.KeepAlive(this); } @@ -310,7 +310,7 @@ public void set_payment_metadata_required() { * Checks if this feature is supported. */ public bool supports_payment_metadata() { - bool ret = bindings.Bolt11InvoiceFeatures_supports_payment_metadata(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesSupportsPaymentMetadata(this.ptr); GC.KeepAlive(this); return ret; } @@ -319,7 +319,7 @@ public bool supports_payment_metadata() { * Checks if this feature is required. */ public bool requires_payment_metadata() { - bool ret = bindings.Bolt11InvoiceFeatures_requires_payment_metadata(this.ptr); + bool ret = Bindings.Bolt11InvoiceFeaturesRequiresPaymentMetadata(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Bolt11InvoiceSignature.cs b/c_sharp/src/org/ldk/structs/Bolt11InvoiceSignature.cs index aed040ab5..f45232423 100644 --- a/c_sharp/src/org/ldk/structs/Bolt11InvoiceSignature.cs +++ b/c_sharp/src/org/ldk/structs/Bolt11InvoiceSignature.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Bolt11InvoiceSignature : CommonBase { internal Bolt11InvoiceSignature(object _dummy, long ptr) : base(ptr) { } ~Bolt11InvoiceSignature() { - if (ptr != 0) { bindings.Bolt11InvoiceSignature_free(ptr); } + if (ptr != 0) { Bindings.Bolt11InvoiceSignatureFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Bolt11InvoiceSignature_clone_ptr(this.ptr); + long ret = Bindings.Bolt11InvoiceSignatureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt11InvoiceSignature */ public Bolt11InvoiceSignature clone() { - long ret = bindings.Bolt11InvoiceSignature_clone(this.ptr); + long ret = Bindings.Bolt11InvoiceSignatureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceSignature(null, ret); } @@ -37,7 +37,7 @@ public Bolt11InvoiceSignature clone() { * Generates a non-cryptographic 64-bit hash of the Bolt11InvoiceSignature. */ public long hash() { - long ret = bindings.Bolt11InvoiceSignature_hash(this.ptr); + long ret = Bindings.Bolt11InvoiceSignatureHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Bolt11InvoiceSignature b) { - bool ret = bindings.Bolt11InvoiceSignature_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Bolt11InvoiceSignatureEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/Bolt11ParseError.cs b/c_sharp/src/org/ldk/structs/Bolt11ParseError.cs index abf9712f2..2ffcf5cec 100644 --- a/c_sharp/src/org/ldk/structs/Bolt11ParseError.cs +++ b/c_sharp/src/org/ldk/structs/Bolt11ParseError.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Bolt11ParseError : CommonBase { protected Bolt11ParseError(object _dummy, long ptr) : base(ptr) { } ~Bolt11ParseError() { - if (ptr != 0) { bindings.Bolt11ParseError_free(ptr); } + if (ptr != 0) { Bindings.Bolt11ParseErrorFree(ptr); } } internal static Bolt11ParseError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKBolt11ParseError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKBolt11ParseErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new Bolt11ParseError_Bech32Error(ptr); case 1: return new Bolt11ParseError_ParseAmountError(ptr); @@ -45,7 +45,7 @@ internal static Bolt11ParseError constr_from_ptr(long ptr) { public class Bolt11ParseError_Bech32Error : Bolt11ParseError { public Bech32Error bech32_error; internal Bolt11ParseError_Bech32Error(long ptr) : base(null, ptr) { - long bech32_error = bindings.LDKBolt11ParseError_Bech32Error_get_bech32_error(ptr); + long bech32_error = Bindings.LDKBolt11ParseErrorBech32ErrorGetBech32Error(ptr); org.ldk.structs.Bech32Error bech32_error_hu_conv = org.ldk.structs.Bech32Error.constr_from_ptr(bech32_error); if (bech32_error_hu_conv != null) { bech32_error_hu_conv.ptrs_to.AddLast(this); }; this.bech32_error = bech32_error_hu_conv; @@ -55,7 +55,7 @@ internal Bolt11ParseError_Bech32Error(long ptr) : base(null, ptr) { public class Bolt11ParseError_ParseAmountError : Bolt11ParseError { public UnqualifiedError parse_amount_error; internal Bolt11ParseError_ParseAmountError(long ptr) : base(null, ptr) { - int parse_amount_error = bindings.LDKBolt11ParseError_ParseAmountError_get_parse_amount_error(ptr); + int parse_amount_error = Bindings.LDKBolt11ParseErrorParseAmountErrorGetParseAmountError(ptr); UnqualifiedError parse_amount_error_conv = new UnqualifiedError(parse_amount_error); this.parse_amount_error = parse_amount_error_conv; } @@ -64,7 +64,7 @@ internal Bolt11ParseError_ParseAmountError(long ptr) : base(null, ptr) { public class Bolt11ParseError_MalformedSignature : Bolt11ParseError { public Secp256k1Error malformed_signature; internal Bolt11ParseError_MalformedSignature(long ptr) : base(null, ptr) { - this.malformed_signature = bindings.LDKBolt11ParseError_MalformedSignature_get_malformed_signature(ptr); + this.malformed_signature = Bindings.LDKBolt11ParseErrorMalformedSignatureGetMalformedSignature(ptr); } } /** A Bolt11ParseError of type BadPrefix */ @@ -101,7 +101,7 @@ internal Bolt11ParseError_UnexpectedEndOfTaggedFields(long ptr) : base(null, ptr public class Bolt11ParseError_DescriptionDecodeError : Bolt11ParseError { public UnqualifiedError description_decode_error; internal Bolt11ParseError_DescriptionDecodeError(long ptr) : base(null, ptr) { - int description_decode_error = bindings.LDKBolt11ParseError_DescriptionDecodeError_get_description_decode_error(ptr); + int description_decode_error = Bindings.LDKBolt11ParseErrorDescriptionDecodeErrorGetDescriptionDecodeError(ptr); UnqualifiedError description_decode_error_conv = new UnqualifiedError(description_decode_error); this.description_decode_error = description_decode_error_conv; } @@ -140,8 +140,8 @@ internal Bolt11ParseError_InvalidRecoveryId(long ptr) : base(null, ptr) { public class Bolt11ParseError_InvalidSliceLength : Bolt11ParseError { public string invalid_slice_length; internal Bolt11ParseError_InvalidSliceLength(long ptr) : base(null, ptr) { - long invalid_slice_length = bindings.LDKBolt11ParseError_InvalidSliceLength_get_invalid_slice_length(ptr); - string invalid_slice_length_conv = InternalUtils.decodeString(invalid_slice_length); + long invalid_slice_length = Bindings.LDKBolt11ParseErrorInvalidSliceLengthGetInvalidSliceLength(ptr); + string invalid_slice_length_conv = InternalUtils.DecodeString(invalid_slice_length); this.invalid_slice_length = invalid_slice_length_conv; } } @@ -151,7 +151,7 @@ internal Bolt11ParseError_Skip(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.Bolt11ParseError_clone_ptr(this.ptr); + long ret = Bindings.Bolt11ParseErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -160,7 +160,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt11ParseError */ public Bolt11ParseError clone() { - long ret = bindings.Bolt11ParseError_clone(this.ptr); + long ret = Bindings.Bolt11ParseErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -172,7 +172,7 @@ public Bolt11ParseError clone() { * Utility method to constructs a new Bech32Error-variant Bolt11ParseError */ public static Bolt11ParseError bech32_error(org.ldk.structs.Bech32Error a) { - long ret = bindings.Bolt11ParseError_bech32_error(a.ptr); + long ret = Bindings.Bolt11ParseErrorBech32Error(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -185,7 +185,7 @@ public static Bolt11ParseError bech32_error(org.ldk.structs.Bech32Error a) { * Utility method to constructs a new ParseAmountError-variant Bolt11ParseError */ public static Bolt11ParseError parse_amount_error(org.ldk.util.UnqualifiedError a) { - long ret = bindings.Bolt11ParseError_parse_amount_error(0); + long ret = Bindings.Bolt11ParseErrorParseAmountError(0); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -197,7 +197,7 @@ public static Bolt11ParseError parse_amount_error(org.ldk.util.UnqualifiedError * Utility method to constructs a new MalformedSignature-variant Bolt11ParseError */ public static Bolt11ParseError malformed_signature(Secp256k1Error a) { - long ret = bindings.Bolt11ParseError_malformed_signature(a); + long ret = Bindings.Bolt11ParseErrorMalformedSignature(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -209,7 +209,7 @@ public static Bolt11ParseError malformed_signature(Secp256k1Error a) { * Utility method to constructs a new BadPrefix-variant Bolt11ParseError */ public static Bolt11ParseError bad_prefix() { - long ret = bindings.Bolt11ParseError_bad_prefix(); + long ret = Bindings.Bolt11ParseErrorBadPrefix(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -220,7 +220,7 @@ public static Bolt11ParseError bad_prefix() { * Utility method to constructs a new UnknownCurrency-variant Bolt11ParseError */ public static Bolt11ParseError unknown_currency() { - long ret = bindings.Bolt11ParseError_unknown_currency(); + long ret = Bindings.Bolt11ParseErrorUnknownCurrency(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -231,7 +231,7 @@ public static Bolt11ParseError unknown_currency() { * Utility method to constructs a new UnknownSiPrefix-variant Bolt11ParseError */ public static Bolt11ParseError unknown_si_prefix() { - long ret = bindings.Bolt11ParseError_unknown_si_prefix(); + long ret = Bindings.Bolt11ParseErrorUnknownSiPrefix(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -242,7 +242,7 @@ public static Bolt11ParseError unknown_si_prefix() { * Utility method to constructs a new MalformedHRP-variant Bolt11ParseError */ public static Bolt11ParseError malformed_hrp() { - long ret = bindings.Bolt11ParseError_malformed_hrp(); + long ret = Bindings.Bolt11ParseErrorMalformedHrp(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -253,7 +253,7 @@ public static Bolt11ParseError malformed_hrp() { * Utility method to constructs a new TooShortDataPart-variant Bolt11ParseError */ public static Bolt11ParseError too_short_data_part() { - long ret = bindings.Bolt11ParseError_too_short_data_part(); + long ret = Bindings.Bolt11ParseErrorTooShortDataPart(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -264,7 +264,7 @@ public static Bolt11ParseError too_short_data_part() { * Utility method to constructs a new UnexpectedEndOfTaggedFields-variant Bolt11ParseError */ public static Bolt11ParseError unexpected_end_of_tagged_fields() { - long ret = bindings.Bolt11ParseError_unexpected_end_of_tagged_fields(); + long ret = Bindings.Bolt11ParseErrorUnexpectedEndOfTaggedFields(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -275,7 +275,7 @@ public static Bolt11ParseError unexpected_end_of_tagged_fields() { * Utility method to constructs a new DescriptionDecodeError-variant Bolt11ParseError */ public static Bolt11ParseError description_decode_error(org.ldk.util.UnqualifiedError a) { - long ret = bindings.Bolt11ParseError_description_decode_error(0); + long ret = Bindings.Bolt11ParseErrorDescriptionDecodeError(0); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -287,7 +287,7 @@ public static Bolt11ParseError description_decode_error(org.ldk.util.Unqualified * Utility method to constructs a new PaddingError-variant Bolt11ParseError */ public static Bolt11ParseError padding_error() { - long ret = bindings.Bolt11ParseError_padding_error(); + long ret = Bindings.Bolt11ParseErrorPaddingError(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -298,7 +298,7 @@ public static Bolt11ParseError padding_error() { * Utility method to constructs a new IntegerOverflowError-variant Bolt11ParseError */ public static Bolt11ParseError integer_overflow_error() { - long ret = bindings.Bolt11ParseError_integer_overflow_error(); + long ret = Bindings.Bolt11ParseErrorIntegerOverflowError(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -309,7 +309,7 @@ public static Bolt11ParseError integer_overflow_error() { * Utility method to constructs a new InvalidSegWitProgramLength-variant Bolt11ParseError */ public static Bolt11ParseError invalid_seg_wit_program_length() { - long ret = bindings.Bolt11ParseError_invalid_seg_wit_program_length(); + long ret = Bindings.Bolt11ParseErrorInvalidSegWitProgramLength(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -320,7 +320,7 @@ public static Bolt11ParseError invalid_seg_wit_program_length() { * Utility method to constructs a new InvalidPubKeyHashLength-variant Bolt11ParseError */ public static Bolt11ParseError invalid_pub_key_hash_length() { - long ret = bindings.Bolt11ParseError_invalid_pub_key_hash_length(); + long ret = Bindings.Bolt11ParseErrorInvalidPubKeyHashLength(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -331,7 +331,7 @@ public static Bolt11ParseError invalid_pub_key_hash_length() { * Utility method to constructs a new InvalidScriptHashLength-variant Bolt11ParseError */ public static Bolt11ParseError invalid_script_hash_length() { - long ret = bindings.Bolt11ParseError_invalid_script_hash_length(); + long ret = Bindings.Bolt11ParseErrorInvalidScriptHashLength(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -342,7 +342,7 @@ public static Bolt11ParseError invalid_script_hash_length() { * Utility method to constructs a new InvalidRecoveryId-variant Bolt11ParseError */ public static Bolt11ParseError invalid_recovery_id() { - long ret = bindings.Bolt11ParseError_invalid_recovery_id(); + long ret = Bindings.Bolt11ParseErrorInvalidRecoveryId(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -353,7 +353,7 @@ public static Bolt11ParseError invalid_recovery_id() { * Utility method to constructs a new InvalidSliceLength-variant Bolt11ParseError */ public static Bolt11ParseError invalid_slice_length(string a) { - long ret = bindings.Bolt11ParseError_invalid_slice_length(InternalUtils.encodeString(a)); + long ret = Bindings.Bolt11ParseErrorInvalidSliceLength(InternalUtils.EncodeString(a)); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); @@ -365,7 +365,7 @@ public static Bolt11ParseError invalid_slice_length(string a) { * Utility method to constructs a new Skip-variant Bolt11ParseError */ public static Bolt11ParseError skip() { - long ret = bindings.Bolt11ParseError_skip(); + long ret = Bindings.Bolt11ParseErrorSkip(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11ParseError ret_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -377,7 +377,7 @@ public static Bolt11ParseError skip() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Bolt11ParseError b) { - bool ret = bindings.Bolt11ParseError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Bolt11ParseErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -391,10 +391,10 @@ public override bool Equals(object o) { * Get the string representation of a Bolt11ParseError object */ public string to_str() { - long ret = bindings.Bolt11ParseError_to_str(this.ptr); + long ret = Bindings.Bolt11ParseErrorToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Bolt12Invoice.cs b/c_sharp/src/org/ldk/structs/Bolt12Invoice.cs index 35f4e6517..3ce1e4ed6 100644 --- a/c_sharp/src/org/ldk/structs/Bolt12Invoice.cs +++ b/c_sharp/src/org/ldk/structs/Bolt12Invoice.cs @@ -19,11 +19,11 @@ namespace org { namespace ldk { namespace structs { public class Bolt12Invoice : CommonBase { internal Bolt12Invoice(object _dummy, long ptr) : base(ptr) { } ~Bolt12Invoice() { - if (ptr != 0) { bindings.Bolt12Invoice_free(ptr); } + if (ptr != 0) { Bindings.Bolt12InvoiceFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Bolt12Invoice_clone_ptr(this.ptr); + long ret = Bindings.Bolt12InvoiceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -32,7 +32,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt12Invoice */ public Bolt12Invoice clone() { - long ret = bindings.Bolt12Invoice_clone(this.ptr); + long ret = Bindings.Bolt12InvoiceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12Invoice(null, ret); } @@ -48,7 +48,7 @@ public Bolt12Invoice clone() { * [`Offer::chains`]: crate::offers::offer::Offer::chains */ public Option_CVec_ThirtyTwoBytesZZ offer_chains() { - long ret = bindings.Bolt12Invoice_offer_chains(this.ptr); + long ret = Bindings.Bolt12InvoiceOfferChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); @@ -66,10 +66,10 @@ public Option_CVec_ThirtyTwoBytesZZ offer_chains() { * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain */ public byte[] chain() { - long ret = bindings.Bolt12Invoice_chain(this.ptr); + long ret = Bindings.Bolt12InvoiceChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -83,7 +83,7 @@ public byte[] chain() { * [`Offer::metadata`]: crate::offers::offer::Offer::metadata */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.Bolt12Invoice_metadata(this.ptr); + long ret = Bindings.Bolt12InvoiceMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -103,7 +103,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.Bolt12Invoice_amount(this.ptr); + long ret = Bindings.Bolt12InvoiceAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -123,7 +123,7 @@ public Amount amount() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OfferFeatures offer_features() { - long ret = bindings.Bolt12Invoice_offer_features(this.ptr); + long ret = Bindings.Bolt12InvoiceOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -139,7 +139,7 @@ public OfferFeatures offer_features() { * [`Offer::description`]: crate::offers::offer::Offer::description */ public PrintableString description() { - long ret = bindings.Bolt12Invoice_description(this.ptr); + long ret = Bindings.Bolt12InvoiceDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -155,7 +155,7 @@ public PrintableString description() { * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry */ public Option_u64Z absolute_expiry() { - long ret = bindings.Bolt12Invoice_absolute_expiry(this.ptr); + long ret = Bindings.Bolt12InvoiceAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -173,7 +173,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.Bolt12Invoice_issuer(this.ptr); + long ret = Bindings.Bolt12InvoiceIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -189,18 +189,18 @@ public PrintableString issuer() { * [`Offer::paths`]: crate::offers::offer::Offer::paths */ public BlindedPath[] message_paths() { - long ret = bindings.Bolt12Invoice_message_paths(this.ptr); + long ret = Bindings.Bolt12InvoiceMessagePaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -215,7 +215,7 @@ public BlindedPath[] message_paths() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Quantity supported_quantity() { - long ret = bindings.Bolt12Invoice_supported_quantity(this.ptr); + long ret = Bindings.Bolt12InvoiceSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -229,10 +229,10 @@ public Quantity supported_quantity() { * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. */ public byte[] payer_metadata() { - long ret = bindings.Bolt12Invoice_payer_metadata(this.ptr); + long ret = Bindings.Bolt12InvoicePayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -242,7 +242,7 @@ public byte[] payer_metadata() { * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. */ public InvoiceRequestFeatures invoice_request_features() { - long ret = bindings.Bolt12Invoice_invoice_request_features(this.ptr); + long ret = Bindings.Bolt12InvoiceInvoiceRequestFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -256,7 +256,7 @@ public InvoiceRequestFeatures invoice_request_features() { * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. */ public Option_u64Z quantity() { - long ret = bindings.Bolt12Invoice_quantity(this.ptr); + long ret = Bindings.Bolt12InvoiceQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -271,10 +271,10 @@ public Option_u64Z quantity() { * [`message_paths`]: Self::message_paths */ public byte[] payer_id() { - long ret = bindings.Bolt12Invoice_payer_id(this.ptr); + long ret = Bindings.Bolt12InvoicePayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -286,7 +286,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.Bolt12Invoice_payer_note(this.ptr); + long ret = Bindings.Bolt12InvoicePayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -298,7 +298,7 @@ public PrintableString payer_note() { * Duration since the Unix epoch when the invoice was created. */ public long created_at() { - long ret = bindings.Bolt12Invoice_created_at(this.ptr); + long ret = Bindings.Bolt12InvoiceCreatedAt(this.ptr); GC.KeepAlive(this); return ret; } @@ -308,7 +308,7 @@ public long created_at() { * should no longer be paid. */ public long relative_expiry() { - long ret = bindings.Bolt12Invoice_relative_expiry(this.ptr); + long ret = Bindings.Bolt12InvoiceRelativeExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -317,7 +317,7 @@ public long relative_expiry() { * Whether the invoice has expired. */ public bool is_expired() { - bool ret = bindings.Bolt12Invoice_is_expired(this.ptr); + bool ret = Bindings.Bolt12InvoiceIsExpired(this.ptr); GC.KeepAlive(this); return ret; } @@ -326,10 +326,10 @@ public bool is_expired() { * SHA256 hash of the payment preimage that will be given in return for paying the invoice. */ public byte[] payment_hash() { - long ret = bindings.Bolt12Invoice_payment_hash(this.ptr); + long ret = Bindings.Bolt12InvoicePaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -337,7 +337,7 @@ public byte[] payment_hash() { * The minimum amount required for a successful payment of the invoice. */ public long amount_msats() { - long ret = bindings.Bolt12Invoice_amount_msats(this.ptr); + long ret = Bindings.Bolt12InvoiceAmountMsats(this.ptr); GC.KeepAlive(this); return ret; } @@ -346,7 +346,7 @@ public long amount_msats() { * Features pertaining to paying an invoice. */ public Bolt12InvoiceFeatures invoice_features() { - long ret = bindings.Bolt12Invoice_invoice_features(this.ptr); + long ret = Bindings.Bolt12InvoiceInvoiceFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, ret); } @@ -358,10 +358,10 @@ public Bolt12InvoiceFeatures invoice_features() { * The public key corresponding to the key used to sign the invoice. */ public byte[] signing_pubkey() { - long ret = bindings.Bolt12Invoice_signing_pubkey(this.ptr); + long ret = Bindings.Bolt12InvoiceSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -369,10 +369,10 @@ public byte[] signing_pubkey() { * Signature of the invoice verified using [`Bolt12Invoice::signing_pubkey`]. */ public byte[] signature() { - long ret = bindings.Bolt12Invoice_signature(this.ptr); + long ret = Bindings.Bolt12InvoiceSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -380,10 +380,10 @@ public byte[] signature() { * Hash that was used for signing the invoice. */ public byte[] signable_hash() { - long ret = bindings.Bolt12Invoice_signable_hash(this.ptr); + long ret = Bindings.Bolt12InvoiceSignableHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -392,7 +392,7 @@ public byte[] signable_hash() { * the associated [`PaymentId`] to use when sending the payment. */ public Result_ThirtyTwoBytesNoneZ verify(org.ldk.structs.ExpandedKey key) { - long ret = bindings.Bolt12Invoice_verify(this.ptr, key == null ? 0 : key.ptr); + long ret = Bindings.Bolt12InvoiceVerify(this.ptr, key == null ? 0 : key.ptr); GC.KeepAlive(this); GC.KeepAlive(key); if (ret >= 0 && ret <= 4096) { return null; } @@ -405,10 +405,10 @@ public Result_ThirtyTwoBytesNoneZ verify(org.ldk.structs.ExpandedKey key) { * Serialize the Bolt12Invoice object into a byte array which can be read by Bolt12Invoice_read */ public byte[] write() { - long ret = bindings.Bolt12Invoice_write(this.ptr); + long ret = Bindings.Bolt12InvoiceWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Bolt12InvoiceFeatures.cs b/c_sharp/src/org/ldk/structs/Bolt12InvoiceFeatures.cs index 98b72e127..7b18e1041 100644 --- a/c_sharp/src/org/ldk/structs/Bolt12InvoiceFeatures.cs +++ b/c_sharp/src/org/ldk/structs/Bolt12InvoiceFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class Bolt12InvoiceFeatures : CommonBase { internal Bolt12InvoiceFeatures(object _dummy, long ptr) : base(ptr) { } ~Bolt12InvoiceFeatures() { - if (ptr != 0) { bindings.Bolt12InvoiceFeatures_free(ptr); } + if (ptr != 0) { Bindings.Bolt12InvoiceFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal Bolt12InvoiceFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Bolt12InvoiceFeatures b) { - bool ret = bindings.Bolt12InvoiceFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Bolt12InvoiceFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((Bolt12InvoiceFeatures)o); } internal long clone_ptr() { - long ret = bindings.Bolt12InvoiceFeatures_clone_ptr(this.ptr); + long ret = Bindings.Bolt12InvoiceFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt12InvoiceFeatures */ public Bolt12InvoiceFeatures clone() { - long ret = bindings.Bolt12InvoiceFeatures_clone(this.ptr); + long ret = Bindings.Bolt12InvoiceFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, ret); } @@ -54,7 +54,7 @@ public Bolt12InvoiceFeatures clone() { * Generates a non-cryptographic 64-bit hash of the Bolt12InvoiceFeatures. */ public long hash() { - long ret = bindings.Bolt12InvoiceFeatures_hash(this.ptr); + long ret = Bindings.Bolt12InvoiceFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static Bolt12InvoiceFeatures empty() { - long ret = bindings.Bolt12InvoiceFeatures_empty(); + long ret = Bindings.Bolt12InvoiceFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static Bolt12InvoiceFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.Bolt12InvoiceFeatures other) { - bool ret = bindings.Bolt12InvoiceFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.Bolt12InvoiceFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.Bolt12InvoiceFeatures oth * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.Bolt12InvoiceFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.Bolt12InvoiceFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.Bolt12InvoiceFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.Bolt12InvoiceFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.Bolt12InvoiceFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.Bolt12InvoiceFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.Bolt12InvoiceFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.Bolt12InvoiceFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.Bolt12InvoiceFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.Bolt12InvoiceFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the Bolt12InvoiceFeatures object into a byte array which can be read by Bolt12InvoiceFeatures_read */ public byte[] write() { - long ret = bindings.Bolt12InvoiceFeatures_write(this.ptr); + long ret = Bindings.Bolt12InvoiceFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a Bolt12InvoiceFeatures from a byte array, created by Bolt12InvoiceFeatures_write */ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.Bolt12InvoiceFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.Bolt12InvoiceFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt12InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt12InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -192,7 +192,7 @@ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ read(byte[] ser) { * Set this feature as optional. */ public void set_basic_mpp_optional() { - bindings.Bolt12InvoiceFeatures_set_basic_mpp_optional(this.ptr); + Bindings.Bolt12InvoiceFeaturesSetBasicMppOptional(this.ptr); GC.KeepAlive(this); } @@ -200,7 +200,7 @@ public void set_basic_mpp_optional() { * Set this feature as required. */ public void set_basic_mpp_required() { - bindings.Bolt12InvoiceFeatures_set_basic_mpp_required(this.ptr); + Bindings.Bolt12InvoiceFeaturesSetBasicMppRequired(this.ptr); GC.KeepAlive(this); } @@ -208,7 +208,7 @@ public void set_basic_mpp_required() { * Checks if this feature is supported. */ public bool supports_basic_mpp() { - bool ret = bindings.Bolt12InvoiceFeatures_supports_basic_mpp(this.ptr); + bool ret = Bindings.Bolt12InvoiceFeaturesSupportsBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public bool supports_basic_mpp() { * Checks if this feature is required. */ public bool requires_basic_mpp() { - bool ret = bindings.Bolt12InvoiceFeatures_requires_basic_mpp(this.ptr); + bool ret = Bindings.Bolt12InvoiceFeaturesRequiresBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Bolt12ParseError.cs b/c_sharp/src/org/ldk/structs/Bolt12ParseError.cs index ee1f06e20..162d7b564 100644 --- a/c_sharp/src/org/ldk/structs/Bolt12ParseError.cs +++ b/c_sharp/src/org/ldk/structs/Bolt12ParseError.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Bolt12ParseError : CommonBase { internal Bolt12ParseError(object _dummy, long ptr) : base(ptr) { } ~Bolt12ParseError() { - if (ptr != 0) { bindings.Bolt12ParseError_free(ptr); } + if (ptr != 0) { Bindings.Bolt12ParseErrorFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Bolt12ParseError_clone_ptr(this.ptr); + long ret = Bindings.Bolt12ParseErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the Bolt12ParseError */ public Bolt12ParseError clone() { - long ret = bindings.Bolt12ParseError_clone(this.ptr); + long ret = Bindings.Bolt12ParseErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12ParseError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12ParseError(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/BroadcasterInterface.cs b/c_sharp/src/org/ldk/structs/BroadcasterInterface.cs index 2ce07039c..40cf141d1 100644 --- a/c_sharp/src/org/ldk/structs/BroadcasterInterface.cs +++ b/c_sharp/src/org/ldk/structs/BroadcasterInterface.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of BroadcasterInterface */ -public interface BroadcasterInterfaceInterface { +public interface IBroadcasterInterface { /**Sends a list of transactions out to (hopefully) be mined. * This only needs to handle the actual broadcasting of transactions, LDK will automatically * rebroadcast transactions that haven't made it into a block. @@ -31,38 +31,38 @@ public interface BroadcasterInterfaceInterface { * An interface to send a transaction to the Bitcoin network. */ public class BroadcasterInterface : CommonBase { - internal bindings.LDKBroadcasterInterface bindings_instance; + internal Bindings.LDKBroadcasterInterface bindings_instance; internal long instance_idx; internal BroadcasterInterface(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~BroadcasterInterface() { - if (ptr != 0) { bindings.BroadcasterInterface_free(ptr); } + if (ptr != 0) { Bindings.BroadcasterInterfaceFree(ptr); } } private class LDKBroadcasterInterfaceHolder { internal BroadcasterInterface held; } - private class LDKBroadcasterInterfaceImpl : bindings.LDKBroadcasterInterface { - internal LDKBroadcasterInterfaceImpl(BroadcasterInterfaceInterface arg, LDKBroadcasterInterfaceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private BroadcasterInterfaceInterface arg; + private class LDKBroadcasterInterfaceImpl : Bindings.LDKBroadcasterInterface { + internal LDKBroadcasterInterfaceImpl(IBroadcasterInterface arg, LDKBroadcasterInterfaceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IBroadcasterInterface arg; private LDKBroadcasterInterfaceHolder impl_holder; - public void broadcast_transactions(long _txs) { - int _txs_conv_8_len = InternalUtils.getArrayLength(_txs); + public void BroadcastTransactions(long _txs) { + int _txs_conv_8_len = InternalUtils.GetArrayLength(_txs); byte[][] _txs_conv_8_arr = new byte[_txs_conv_8_len][]; for (int i = 0; i < _txs_conv_8_len; i++) { - long _txs_conv_8 = InternalUtils.getU64ArrayElem(_txs, i); - byte[] _txs_conv_8_conv = InternalUtils.decodeUint8Array(_txs_conv_8); + long _txs_conv_8 = InternalUtils.GetU64ArrayElem(_txs, i); + byte[] _txs_conv_8_conv = InternalUtils.DecodeUint8Array(_txs_conv_8); _txs_conv_8_arr[i] = _txs_conv_8_conv; } - bindings.free_buffer(_txs); + Bindings.FreeBuffer(_txs); arg.broadcast_transactions(_txs_conv_8_arr); GC.KeepAlive(arg); } } /** Creates a new instance of BroadcasterInterface from a given implementation */ - public static BroadcasterInterface new_impl(BroadcasterInterfaceInterface arg) { + public static BroadcasterInterface new_impl(IBroadcasterInterface arg) { LDKBroadcasterInterfaceHolder impl_holder = new LDKBroadcasterInterfaceHolder(); LDKBroadcasterInterfaceImpl impl = new LDKBroadcasterInterfaceImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKBroadcasterInterface_new(impl); + long[] ptr_idx = Bindings.LDKBroadcasterInterfaceNew(impl); impl_holder.held = new BroadcasterInterface(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -86,7 +86,7 @@ public static BroadcasterInterface new_impl(BroadcasterInterfaceInterface arg) { * */ public void broadcast_transactions(byte[][] txs) { - bindings.BroadcasterInterface_broadcast_transactions(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(txs, txs_conv_8 => InternalUtils.encodeUint8Array(txs_conv_8)))); + Bindings.BroadcasterInterfaceBroadcastTransactions(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(txs, txs_conv_8 => InternalUtils.EncodeUint8Array(txs_conv_8)))); GC.KeepAlive(this); GC.KeepAlive(txs); } diff --git a/c_sharp/src/org/ldk/structs/BuiltCommitmentTransaction.cs b/c_sharp/src/org/ldk/structs/BuiltCommitmentTransaction.cs index 9b78bfeb0..1a2bc2e0f 100644 --- a/c_sharp/src/org/ldk/structs/BuiltCommitmentTransaction.cs +++ b/c_sharp/src/org/ldk/structs/BuiltCommitmentTransaction.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class BuiltCommitmentTransaction : CommonBase { internal BuiltCommitmentTransaction(object _dummy, long ptr) : base(ptr) { } ~BuiltCommitmentTransaction() { - if (ptr != 0) { bindings.BuiltCommitmentTransaction_free(ptr); } + if (ptr != 0) { Bindings.BuiltCommitmentTransactionFree(ptr); } } /** * The commitment transaction */ public byte[] get_transaction() { - long ret = bindings.BuiltCommitmentTransaction_get_transaction(this.ptr); + long ret = Bindings.BuiltCommitmentTransactionGetTransaction(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_transaction() { * The commitment transaction */ public void set_transaction(byte[] val) { - bindings.BuiltCommitmentTransaction_set_transaction(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.BuiltCommitmentTransactionSetTransaction(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -42,10 +42,10 @@ public void set_transaction(byte[] val) { * multiple times. */ public byte[] get_txid() { - long ret = bindings.BuiltCommitmentTransaction_get_txid(this.ptr); + long ret = Bindings.BuiltCommitmentTransactionGetTxid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -56,7 +56,7 @@ public byte[] get_txid() { * multiple times. */ public void set_txid(byte[] val) { - bindings.BuiltCommitmentTransaction_set_txid(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.BuiltCommitmentTransactionSetTxid(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -65,7 +65,7 @@ public void set_txid(byte[] val) { * Constructs a new BuiltCommitmentTransaction given each field */ public static BuiltCommitmentTransaction of(byte[] transaction_arg, byte[] txid_arg) { - long ret = bindings.BuiltCommitmentTransaction_new(InternalUtils.encodeUint8Array(transaction_arg), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(txid_arg, 32))); + long ret = Bindings.BuiltCommitmentTransactionNew(InternalUtils.EncodeUint8Array(transaction_arg), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(txid_arg, 32))); GC.KeepAlive(transaction_arg); GC.KeepAlive(txid_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -75,7 +75,7 @@ public static BuiltCommitmentTransaction of(byte[] transaction_arg, byte[] txid_ } internal long clone_ptr() { - long ret = bindings.BuiltCommitmentTransaction_clone_ptr(this.ptr); + long ret = Bindings.BuiltCommitmentTransactionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ internal long clone_ptr() { * Creates a copy of the BuiltCommitmentTransaction */ public BuiltCommitmentTransaction clone() { - long ret = bindings.BuiltCommitmentTransaction_clone(this.ptr); + long ret = Bindings.BuiltCommitmentTransactionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BuiltCommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BuiltCommitmentTransaction(null, ret); } @@ -96,10 +96,10 @@ public BuiltCommitmentTransaction clone() { * Serialize the BuiltCommitmentTransaction object into a byte array which can be read by BuiltCommitmentTransaction_read */ public byte[] write() { - long ret = bindings.BuiltCommitmentTransaction_write(this.ptr); + long ret = Bindings.BuiltCommitmentTransactionWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -107,7 +107,7 @@ public byte[] write() { * Read a BuiltCommitmentTransaction from a byte array, created by BuiltCommitmentTransaction_write */ public static Result_BuiltCommitmentTransactionDecodeErrorZ read(byte[] ser) { - long ret = bindings.BuiltCommitmentTransaction_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.BuiltCommitmentTransactionRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -120,12 +120,12 @@ public static Result_BuiltCommitmentTransactionDecodeErrorZ read(byte[] ser) { * This can be used to verify a signature. */ public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_satoshis) { - long ret = bindings.BuiltCommitmentTransaction_get_sighash_all(this.ptr, InternalUtils.encodeUint8Array(funding_redeemscript), channel_value_satoshis); + long ret = Bindings.BuiltCommitmentTransactionGetSighashAll(this.ptr, InternalUtils.EncodeUint8Array(funding_redeemscript), channel_value_satoshis); GC.KeepAlive(this); GC.KeepAlive(funding_redeemscript); GC.KeepAlive(channel_value_satoshis); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -133,13 +133,13 @@ public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_sa * Signs the counterparty's commitment transaction. */ public byte[] sign_counterparty_commitment(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis) { - long ret = bindings.BuiltCommitmentTransaction_sign_counterparty_commitment(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_key, 32)), InternalUtils.encodeUint8Array(funding_redeemscript), channel_value_satoshis); + long ret = Bindings.BuiltCommitmentTransactionSignCounterpartyCommitment(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_key, 32)), InternalUtils.EncodeUint8Array(funding_redeemscript), channel_value_satoshis); GC.KeepAlive(this); GC.KeepAlive(funding_key); GC.KeepAlive(funding_redeemscript); GC.KeepAlive(channel_value_satoshis); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -147,14 +147,14 @@ public byte[] sign_counterparty_commitment(byte[] funding_key, byte[] funding_re * Signs the holder commitment transaction because we are about to broadcast it. */ public byte[] sign_holder_commitment(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.BuiltCommitmentTransaction_sign_holder_commitment(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_key, 32)), InternalUtils.encodeUint8Array(funding_redeemscript), channel_value_satoshis, entropy_source.ptr); + long ret = Bindings.BuiltCommitmentTransactionSignHolderCommitment(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_key, 32)), InternalUtils.EncodeUint8Array(funding_redeemscript), channel_value_satoshis, entropy_source.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_key); GC.KeepAlive(funding_redeemscript); GC.KeepAlive(channel_value_satoshis); GC.KeepAlive(entropy_source); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); if (this != null) { this.ptrs_to.AddLast(entropy_source); }; return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/BumpTransactionEvent.cs b/c_sharp/src/org/ldk/structs/BumpTransactionEvent.cs index 95b58176c..1ef5081b4 100644 --- a/c_sharp/src/org/ldk/structs/BumpTransactionEvent.cs +++ b/c_sharp/src/org/ldk/structs/BumpTransactionEvent.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class BumpTransactionEvent : CommonBase { protected BumpTransactionEvent(object _dummy, long ptr) : base(ptr) { } ~BumpTransactionEvent() { - if (ptr != 0) { bindings.BumpTransactionEvent_free(ptr); } + if (ptr != 0) { Bindings.BumpTransactionEventFree(ptr); } } internal static BumpTransactionEvent constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKBumpTransactionEvent_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKBumpTransactionEventTyFromPtr(ptr); switch (raw_ty) { case 0: return new BumpTransactionEvent_ChannelClose(ptr); case 1: return new BumpTransactionEvent_HTLCResolution(ptr); @@ -61,28 +61,28 @@ public class BumpTransactionEvent_ChannelClose : BumpTransactionEvent { */ public HTLCOutputInCommitment[] pending_htlcs; internal BumpTransactionEvent_ChannelClose(long ptr) : base(null, ptr) { - long claim_id = bindings.LDKBumpTransactionEvent_ChannelClose_get_claim_id(ptr); - byte[] claim_id_conv = InternalUtils.decodeUint8Array(claim_id); + long claim_id = Bindings.LDKBumpTransactionEventChannelCloseGetClaimId(ptr); + byte[] claim_id_conv = InternalUtils.DecodeUint8Array(claim_id); this.claim_id = claim_id_conv; - this.package_target_feerate_sat_per_1000_weight = bindings.LDKBumpTransactionEvent_ChannelClose_get_package_target_feerate_sat_per_1000_weight(ptr); - long commitment_tx = bindings.LDKBumpTransactionEvent_ChannelClose_get_commitment_tx(ptr); - byte[] commitment_tx_conv = InternalUtils.decodeUint8Array(commitment_tx); + this.package_target_feerate_sat_per_1000_weight = Bindings.LDKBumpTransactionEventChannelCloseGetPackageTargetFeerateSatPer1000Weight(ptr); + long commitment_tx = Bindings.LDKBumpTransactionEventChannelCloseGetCommitmentTx(ptr); + byte[] commitment_tx_conv = InternalUtils.DecodeUint8Array(commitment_tx); this.commitment_tx = commitment_tx_conv; - this.commitment_tx_fee_satoshis = bindings.LDKBumpTransactionEvent_ChannelClose_get_commitment_tx_fee_satoshis(ptr); - long anchor_descriptor = bindings.LDKBumpTransactionEvent_ChannelClose_get_anchor_descriptor(ptr); + this.commitment_tx_fee_satoshis = Bindings.LDKBumpTransactionEventChannelCloseGetCommitmentTxFeeSatoshis(ptr); + long anchor_descriptor = Bindings.LDKBumpTransactionEventChannelCloseGetAnchorDescriptor(ptr); org.ldk.structs.AnchorDescriptor anchor_descriptor_hu_conv = null; if (anchor_descriptor < 0 || anchor_descriptor > 4096) { anchor_descriptor_hu_conv = new org.ldk.structs.AnchorDescriptor(null, anchor_descriptor); } if (anchor_descriptor_hu_conv != null) { anchor_descriptor_hu_conv.ptrs_to.AddLast(this); }; this.anchor_descriptor = anchor_descriptor_hu_conv; - long pending_htlcs = bindings.LDKBumpTransactionEvent_ChannelClose_get_pending_htlcs(ptr); - int pending_htlcs_conv_24_len = InternalUtils.getArrayLength(pending_htlcs); + long pending_htlcs = Bindings.LDKBumpTransactionEventChannelCloseGetPendingHtlcs(ptr); + int pending_htlcs_conv_24_len = InternalUtils.GetArrayLength(pending_htlcs); HTLCOutputInCommitment[] pending_htlcs_conv_24_arr = new HTLCOutputInCommitment[pending_htlcs_conv_24_len]; for (int y = 0; y < pending_htlcs_conv_24_len; y++) { - long pending_htlcs_conv_24 = InternalUtils.getU64ArrayElem(pending_htlcs, y); + long pending_htlcs_conv_24 = InternalUtils.GetU64ArrayElem(pending_htlcs, y); org.ldk.structs.HTLCOutputInCommitment pending_htlcs_conv_24_hu_conv = null; if (pending_htlcs_conv_24 < 0 || pending_htlcs_conv_24 > 4096) { pending_htlcs_conv_24_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, pending_htlcs_conv_24); } if (pending_htlcs_conv_24_hu_conv != null) { pending_htlcs_conv_24_hu_conv.ptrs_to.AddLast(this); }; pending_htlcs_conv_24_arr[y] = pending_htlcs_conv_24_hu_conv; } - bindings.free_buffer(pending_htlcs); + Bindings.FreeBuffer(pending_htlcs); this.pending_htlcs = pending_htlcs_conv_24_arr; } } @@ -111,26 +111,26 @@ public class BumpTransactionEvent_HTLCResolution : BumpTransactionEvent { */ public int tx_lock_time; internal BumpTransactionEvent_HTLCResolution(long ptr) : base(null, ptr) { - long claim_id = bindings.LDKBumpTransactionEvent_HTLCResolution_get_claim_id(ptr); - byte[] claim_id_conv = InternalUtils.decodeUint8Array(claim_id); + long claim_id = Bindings.LDKBumpTransactionEventHTLCResolutionGetClaimId(ptr); + byte[] claim_id_conv = InternalUtils.DecodeUint8Array(claim_id); this.claim_id = claim_id_conv; - this.target_feerate_sat_per_1000_weight = bindings.LDKBumpTransactionEvent_HTLCResolution_get_target_feerate_sat_per_1000_weight(ptr); - long htlc_descriptors = bindings.LDKBumpTransactionEvent_HTLCResolution_get_htlc_descriptors(ptr); - int htlc_descriptors_conv_16_len = InternalUtils.getArrayLength(htlc_descriptors); + this.target_feerate_sat_per_1000_weight = Bindings.LDKBumpTransactionEventHTLCResolutionGetTargetFeerateSatPer1000Weight(ptr); + long htlc_descriptors = Bindings.LDKBumpTransactionEventHTLCResolutionGetHtlcDescriptors(ptr); + int htlc_descriptors_conv_16_len = InternalUtils.GetArrayLength(htlc_descriptors); HTLCDescriptor[] htlc_descriptors_conv_16_arr = new HTLCDescriptor[htlc_descriptors_conv_16_len]; for (int q = 0; q < htlc_descriptors_conv_16_len; q++) { - long htlc_descriptors_conv_16 = InternalUtils.getU64ArrayElem(htlc_descriptors, q); + long htlc_descriptors_conv_16 = InternalUtils.GetU64ArrayElem(htlc_descriptors, q); org.ldk.structs.HTLCDescriptor htlc_descriptors_conv_16_hu_conv = null; if (htlc_descriptors_conv_16 < 0 || htlc_descriptors_conv_16 > 4096) { htlc_descriptors_conv_16_hu_conv = new org.ldk.structs.HTLCDescriptor(null, htlc_descriptors_conv_16); } if (htlc_descriptors_conv_16_hu_conv != null) { htlc_descriptors_conv_16_hu_conv.ptrs_to.AddLast(this); }; htlc_descriptors_conv_16_arr[q] = htlc_descriptors_conv_16_hu_conv; } - bindings.free_buffer(htlc_descriptors); + Bindings.FreeBuffer(htlc_descriptors); this.htlc_descriptors = htlc_descriptors_conv_16_arr; - this.tx_lock_time = bindings.LDKBumpTransactionEvent_HTLCResolution_get_tx_lock_time(ptr); + this.tx_lock_time = Bindings.LDKBumpTransactionEventHTLCResolutionGetTxLockTime(ptr); } } internal long clone_ptr() { - long ret = bindings.BumpTransactionEvent_clone_ptr(this.ptr); + long ret = Bindings.BumpTransactionEventClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -139,7 +139,7 @@ internal long clone_ptr() { * Creates a copy of the BumpTransactionEvent */ public BumpTransactionEvent clone() { - long ret = bindings.BumpTransactionEvent_clone(this.ptr); + long ret = Bindings.BumpTransactionEventClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BumpTransactionEvent ret_hu_conv = org.ldk.structs.BumpTransactionEvent.constr_from_ptr(ret); @@ -151,7 +151,7 @@ public BumpTransactionEvent clone() { * Utility method to constructs a new ChannelClose-variant BumpTransactionEvent */ public static BumpTransactionEvent channel_close(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, org.ldk.structs.AnchorDescriptor anchor_descriptor, HTLCOutputInCommitment[] pending_htlcs) { - long ret = bindings.BumpTransactionEvent_channel_close(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(claim_id, 32)), package_target_feerate_sat_per_1000_weight, InternalUtils.encodeUint8Array(commitment_tx), commitment_tx_fee_satoshis, anchor_descriptor == null ? 0 : anchor_descriptor.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(pending_htlcs, pending_htlcs_conv_24 => pending_htlcs_conv_24 == null ? 0 : pending_htlcs_conv_24.ptr))); + long ret = Bindings.BumpTransactionEventChannelClose(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(claim_id, 32)), package_target_feerate_sat_per_1000_weight, InternalUtils.EncodeUint8Array(commitment_tx), commitment_tx_fee_satoshis, anchor_descriptor == null ? 0 : anchor_descriptor.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(pending_htlcs, pending_htlcs_conv_24 => pending_htlcs_conv_24 == null ? 0 : pending_htlcs_conv_24.ptr))); GC.KeepAlive(claim_id); GC.KeepAlive(package_target_feerate_sat_per_1000_weight); GC.KeepAlive(commitment_tx); @@ -170,7 +170,7 @@ public static BumpTransactionEvent channel_close(byte[] claim_id, int package_ta * Utility method to constructs a new HTLCResolution-variant BumpTransactionEvent */ public static BumpTransactionEvent htlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, HTLCDescriptor[] htlc_descriptors, int tx_lock_time) { - long ret = bindings.BumpTransactionEvent_htlcresolution(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(claim_id, 32)), target_feerate_sat_per_1000_weight, InternalUtils.encodeUint64Array(InternalUtils.mapArray(htlc_descriptors, htlc_descriptors_conv_16 => htlc_descriptors_conv_16 == null ? 0 : htlc_descriptors_conv_16.ptr)), tx_lock_time); + long ret = Bindings.BumpTransactionEventHtlcresolution(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(claim_id, 32)), target_feerate_sat_per_1000_weight, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(htlc_descriptors, htlc_descriptors_conv_16 => htlc_descriptors_conv_16 == null ? 0 : htlc_descriptors_conv_16.ptr)), tx_lock_time); GC.KeepAlive(claim_id); GC.KeepAlive(target_feerate_sat_per_1000_weight); GC.KeepAlive(htlc_descriptors); @@ -187,7 +187,7 @@ public static BumpTransactionEvent htlcresolution(byte[] claim_id, int target_fe * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.BumpTransactionEvent b) { - bool ret = bindings.BumpTransactionEvent_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.BumpTransactionEventEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/BumpTransactionEventHandler.cs b/c_sharp/src/org/ldk/structs/BumpTransactionEventHandler.cs index 08202f7b0..5fd760d82 100644 --- a/c_sharp/src/org/ldk/structs/BumpTransactionEventHandler.cs +++ b/c_sharp/src/org/ldk/structs/BumpTransactionEventHandler.cs @@ -16,7 +16,7 @@ namespace org { namespace ldk { namespace structs { public class BumpTransactionEventHandler : CommonBase { internal BumpTransactionEventHandler(object _dummy, long ptr) : base(ptr) { } ~BumpTransactionEventHandler() { - if (ptr != 0) { bindings.BumpTransactionEventHandler_free(ptr); } + if (ptr != 0) { Bindings.BumpTransactionEventHandlerFree(ptr); } } /** @@ -25,7 +25,7 @@ internal BumpTransactionEventHandler(object _dummy, long ptr) : base(ptr) { } * [`Event::BumpTransaction`]: crate::events::Event::BumpTransaction */ public static BumpTransactionEventHandler of(org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.CoinSelectionSource utxo_source, org.ldk.structs.SignerProvider signer_provider, org.ldk.structs.Logger logger) { - long ret = bindings.BumpTransactionEventHandler_new(broadcaster.ptr, utxo_source.ptr, signer_provider.ptr, logger.ptr); + long ret = Bindings.BumpTransactionEventHandlerNew(broadcaster.ptr, utxo_source.ptr, signer_provider.ptr, logger.ptr); GC.KeepAlive(broadcaster); GC.KeepAlive(utxo_source); GC.KeepAlive(signer_provider); @@ -44,7 +44,7 @@ public static BumpTransactionEventHandler of(org.ldk.structs.BroadcasterInterfac * Handles all variants of [`BumpTransactionEvent`]. */ public void handle_event(org.ldk.structs.BumpTransactionEvent _event) { - bindings.BumpTransactionEventHandler_handle_event(this.ptr, _event == null ? 0 : _event.ptr); + Bindings.BumpTransactionEventHandlerHandleEvent(this.ptr, _event == null ? 0 : _event.ptr); GC.KeepAlive(this); GC.KeepAlive(_event); } diff --git a/c_sharp/src/org/ldk/structs/CandidateRouteHop.cs b/c_sharp/src/org/ldk/structs/CandidateRouteHop.cs index 39a5020a8..92af740e2 100644 --- a/c_sharp/src/org/ldk/structs/CandidateRouteHop.cs +++ b/c_sharp/src/org/ldk/structs/CandidateRouteHop.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class CandidateRouteHop : CommonBase { protected CandidateRouteHop(object _dummy, long ptr) : base(ptr) { } ~CandidateRouteHop() { - if (ptr != 0) { bindings.CandidateRouteHop_free(ptr); } + if (ptr != 0) { Bindings.CandidateRouteHopFree(ptr); } } internal static CandidateRouteHop constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCandidateRouteHop_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCandidateRouteHopTyFromPtr(ptr); switch (raw_ty) { case 0: return new CandidateRouteHop_FirstHop(ptr); case 1: return new CandidateRouteHop_PublicHop(ptr); @@ -34,7 +34,7 @@ internal static CandidateRouteHop constr_from_ptr(long ptr) { public class CandidateRouteHop_FirstHop : CandidateRouteHop { public FirstHopCandidate first_hop; internal CandidateRouteHop_FirstHop(long ptr) : base(null, ptr) { - long first_hop = bindings.LDKCandidateRouteHop_FirstHop_get_first_hop(ptr); + long first_hop = Bindings.LDKCandidateRouteHopFirstHopGetFirstHop(ptr); org.ldk.structs.FirstHopCandidate first_hop_hu_conv = null; if (first_hop < 0 || first_hop > 4096) { first_hop_hu_conv = new org.ldk.structs.FirstHopCandidate(null, first_hop); } if (first_hop_hu_conv != null) { first_hop_hu_conv.ptrs_to.AddLast(this); }; this.first_hop = first_hop_hu_conv; @@ -44,7 +44,7 @@ internal CandidateRouteHop_FirstHop(long ptr) : base(null, ptr) { public class CandidateRouteHop_PublicHop : CandidateRouteHop { public PublicHopCandidate public_hop; internal CandidateRouteHop_PublicHop(long ptr) : base(null, ptr) { - long public_hop = bindings.LDKCandidateRouteHop_PublicHop_get_public_hop(ptr); + long public_hop = Bindings.LDKCandidateRouteHopPublicHopGetPublicHop(ptr); org.ldk.structs.PublicHopCandidate public_hop_hu_conv = null; if (public_hop < 0 || public_hop > 4096) { public_hop_hu_conv = new org.ldk.structs.PublicHopCandidate(null, public_hop); } if (public_hop_hu_conv != null) { public_hop_hu_conv.ptrs_to.AddLast(this); }; this.public_hop = public_hop_hu_conv; @@ -54,7 +54,7 @@ internal CandidateRouteHop_PublicHop(long ptr) : base(null, ptr) { public class CandidateRouteHop_PrivateHop : CandidateRouteHop { public PrivateHopCandidate private_hop; internal CandidateRouteHop_PrivateHop(long ptr) : base(null, ptr) { - long private_hop = bindings.LDKCandidateRouteHop_PrivateHop_get_private_hop(ptr); + long private_hop = Bindings.LDKCandidateRouteHopPrivateHopGetPrivateHop(ptr); org.ldk.structs.PrivateHopCandidate private_hop_hu_conv = null; if (private_hop < 0 || private_hop > 4096) { private_hop_hu_conv = new org.ldk.structs.PrivateHopCandidate(null, private_hop); } if (private_hop_hu_conv != null) { private_hop_hu_conv.ptrs_to.AddLast(this); }; this.private_hop = private_hop_hu_conv; @@ -64,7 +64,7 @@ internal CandidateRouteHop_PrivateHop(long ptr) : base(null, ptr) { public class CandidateRouteHop_Blinded : CandidateRouteHop { public BlindedPathCandidate blinded; internal CandidateRouteHop_Blinded(long ptr) : base(null, ptr) { - long blinded = bindings.LDKCandidateRouteHop_Blinded_get_blinded(ptr); + long blinded = Bindings.LDKCandidateRouteHopBlindedGetBlinded(ptr); org.ldk.structs.BlindedPathCandidate blinded_hu_conv = null; if (blinded < 0 || blinded > 4096) { blinded_hu_conv = new org.ldk.structs.BlindedPathCandidate(null, blinded); } if (blinded_hu_conv != null) { blinded_hu_conv.ptrs_to.AddLast(this); }; this.blinded = blinded_hu_conv; @@ -74,14 +74,14 @@ internal CandidateRouteHop_Blinded(long ptr) : base(null, ptr) { public class CandidateRouteHop_OneHopBlinded : CandidateRouteHop { public OneHopBlindedPathCandidate one_hop_blinded; internal CandidateRouteHop_OneHopBlinded(long ptr) : base(null, ptr) { - long one_hop_blinded = bindings.LDKCandidateRouteHop_OneHopBlinded_get_one_hop_blinded(ptr); + long one_hop_blinded = Bindings.LDKCandidateRouteHopOneHopBlindedGetOneHopBlinded(ptr); org.ldk.structs.OneHopBlindedPathCandidate one_hop_blinded_hu_conv = null; if (one_hop_blinded < 0 || one_hop_blinded > 4096) { one_hop_blinded_hu_conv = new org.ldk.structs.OneHopBlindedPathCandidate(null, one_hop_blinded); } if (one_hop_blinded_hu_conv != null) { one_hop_blinded_hu_conv.ptrs_to.AddLast(this); }; this.one_hop_blinded = one_hop_blinded_hu_conv; } } internal long clone_ptr() { - long ret = bindings.CandidateRouteHop_clone_ptr(this.ptr); + long ret = Bindings.CandidateRouteHopClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ internal long clone_ptr() { * Creates a copy of the CandidateRouteHop */ public CandidateRouteHop clone() { - long ret = bindings.CandidateRouteHop_clone(this.ptr); + long ret = Bindings.CandidateRouteHopClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -102,7 +102,7 @@ public CandidateRouteHop clone() { * Utility method to constructs a new FirstHop-variant CandidateRouteHop */ public static CandidateRouteHop first_hop(org.ldk.structs.FirstHopCandidate a) { - long ret = bindings.CandidateRouteHop_first_hop(a == null ? 0 : a.ptr); + long ret = Bindings.CandidateRouteHopFirstHop(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -115,7 +115,7 @@ public static CandidateRouteHop first_hop(org.ldk.structs.FirstHopCandidate a) { * Utility method to constructs a new PublicHop-variant CandidateRouteHop */ public static CandidateRouteHop public_hop(org.ldk.structs.PublicHopCandidate a) { - long ret = bindings.CandidateRouteHop_public_hop(a == null ? 0 : a.ptr); + long ret = Bindings.CandidateRouteHopPublicHop(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -128,7 +128,7 @@ public static CandidateRouteHop public_hop(org.ldk.structs.PublicHopCandidate a) * Utility method to constructs a new PrivateHop-variant CandidateRouteHop */ public static CandidateRouteHop private_hop(org.ldk.structs.PrivateHopCandidate a) { - long ret = bindings.CandidateRouteHop_private_hop(a == null ? 0 : a.ptr); + long ret = Bindings.CandidateRouteHopPrivateHop(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -141,7 +141,7 @@ public static CandidateRouteHop private_hop(org.ldk.structs.PrivateHopCandidate * Utility method to constructs a new Blinded-variant CandidateRouteHop */ public static CandidateRouteHop blinded(org.ldk.structs.BlindedPathCandidate a) { - long ret = bindings.CandidateRouteHop_blinded(a == null ? 0 : a.ptr); + long ret = Bindings.CandidateRouteHopBlinded(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -154,7 +154,7 @@ public static CandidateRouteHop blinded(org.ldk.structs.BlindedPathCandidate a) * Utility method to constructs a new OneHopBlinded-variant CandidateRouteHop */ public static CandidateRouteHop one_hop_blinded(org.ldk.structs.OneHopBlindedPathCandidate a) { - long ret = bindings.CandidateRouteHop_one_hop_blinded(a == null ? 0 : a.ptr); + long ret = Bindings.CandidateRouteHopOneHopBlinded(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CandidateRouteHop ret_hu_conv = org.ldk.structs.CandidateRouteHop.constr_from_ptr(ret); @@ -171,7 +171,7 @@ public static CandidateRouteHop one_hop_blinded(org.ldk.structs.OneHopBlindedPat * globally unique and identifies this channel in a global namespace. */ public Option_u64Z globally_unique_short_channel_id() { - long ret = bindings.CandidateRouteHop_globally_unique_short_channel_id(this.ptr); + long ret = Bindings.CandidateRouteHopGloballyUniqueShortChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -187,7 +187,7 @@ public Option_u64Z globally_unique_short_channel_id() { * next-hop goes on chain with a payment preimage. */ public int cltv_expiry_delta() { - int ret = bindings.CandidateRouteHop_cltv_expiry_delta(this.ptr); + int ret = Bindings.CandidateRouteHopCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -196,7 +196,7 @@ public int cltv_expiry_delta() { * Returns the minimum amount that can be sent over this hop, in millisatoshis. */ public long htlc_minimum_msat() { - long ret = bindings.CandidateRouteHop_htlc_minimum_msat(this.ptr); + long ret = Bindings.CandidateRouteHopHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -205,7 +205,7 @@ public long htlc_minimum_msat() { * Returns the fees that must be paid to route an HTLC over this channel. */ public RoutingFees fees() { - long ret = bindings.CandidateRouteHop_fees(this.ptr); + long ret = Bindings.CandidateRouteHopFees(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); } @@ -221,7 +221,7 @@ public RoutingFees fees() { * For [`Self::FirstHop`] we return payer's node id. */ public NodeId source() { - long ret = bindings.CandidateRouteHop_source(this.ptr); + long ret = Bindings.CandidateRouteHopSource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -243,7 +243,7 @@ public NodeId source() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public NodeId target() { - long ret = bindings.CandidateRouteHop_target(this.ptr); + long ret = Bindings.CandidateRouteHopTarget(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ChainMonitor.cs b/c_sharp/src/org/ldk/structs/ChainMonitor.cs index b3285516b..e2bfd3836 100644 --- a/c_sharp/src/org/ldk/structs/ChainMonitor.cs +++ b/c_sharp/src/org/ldk/structs/ChainMonitor.cs @@ -27,7 +27,7 @@ namespace org { namespace ldk { namespace structs { public class ChainMonitor : CommonBase { internal ChainMonitor(object _dummy, long ptr) : base(ptr) { } ~ChainMonitor() { - if (ptr != 0) { bindings.ChainMonitor_free(ptr); } + if (ptr != 0) { Bindings.ChainMonitorFree(ptr); } } /** @@ -40,7 +40,7 @@ internal ChainMonitor(object _dummy, long ptr) : base(ptr) { } * transactions relevant to the watched channels. */ public static ChainMonitor of(org.ldk.structs.Option_FilterZ chain_source, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.Logger logger, org.ldk.structs.FeeEstimator feeest, org.ldk.structs.Persist persister) { - long ret = bindings.ChainMonitor_new(chain_source.ptr, broadcaster.ptr, logger.ptr, feeest.ptr, persister.ptr); + long ret = Bindings.ChainMonitorNew(chain_source.ptr, broadcaster.ptr, logger.ptr, feeest.ptr, persister.ptr); GC.KeepAlive(chain_source); GC.KeepAlive(broadcaster); GC.KeepAlive(logger); @@ -69,19 +69,19 @@ public static ChainMonitor of(org.ldk.structs.Option_FilterZ chain_source, org.l * inclusion in the return value. */ public Balance[] get_claimable_balances(ChannelDetails[] ignored_channels) { - long ret = bindings.ChainMonitor_get_claimable_balances(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(ignored_channels, ignored_channels_conv_16 => ignored_channels_conv_16 == null ? 0 : ignored_channels_conv_16.ptr))); + long ret = Bindings.ChainMonitorGetClaimableBalances(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ignored_channels, ignored_channels_conv_16 => ignored_channels_conv_16 == null ? 0 : ignored_channels_conv_16.ptr))); GC.KeepAlive(this); GC.KeepAlive(ignored_channels); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_9_len = InternalUtils.getArrayLength(ret); + int ret_conv_9_len = InternalUtils.GetArrayLength(ret); Balance[] ret_conv_9_arr = new Balance[ret_conv_9_len]; for (int j = 0; j < ret_conv_9_len; j++) { - long ret_conv_9 = InternalUtils.getU64ArrayElem(ret, j); + long ret_conv_9 = InternalUtils.GetU64ArrayElem(ret, j); org.ldk.structs.Balance ret_conv_9_hu_conv = org.ldk.structs.Balance.constr_from_ptr(ret_conv_9); if (ret_conv_9_hu_conv != null) { ret_conv_9_hu_conv.ptrs_to.AddLast(this); }; ret_conv_9_arr[j] = ret_conv_9_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); foreach (ChannelDetails ignored_channels_conv_16 in ignored_channels) { if (this != null) { this.ptrs_to.AddLast(ignored_channels_conv_16); }; }; return ret_conv_9_arr; } @@ -94,7 +94,7 @@ public Balance[] get_claimable_balances(ChannelDetails[] ignored_channels) { * indefinitely. */ public Result_LockedChannelMonitorNoneZ get_monitor(org.ldk.structs.OutPoint funding_txo) { - long ret = bindings.ChainMonitor_get_monitor(this.ptr, funding_txo == null ? 0 : funding_txo.ptr); + long ret = Bindings.ChainMonitorGetMonitor(this.ptr, funding_txo == null ? 0 : funding_txo.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_txo); if (ret >= 0 && ret <= 4096) { return null; } @@ -110,18 +110,18 @@ public Result_LockedChannelMonitorNoneZ get_monitor(org.ldk.structs.OutPoint fun * monitoring for on-chain state resolutions. */ public OutPoint[] list_monitors() { - long ret = bindings.ChainMonitor_list_monitors(this.ptr); + long ret = Bindings.ChainMonitorListMonitors(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_10_len = InternalUtils.getArrayLength(ret); + int ret_conv_10_len = InternalUtils.GetArrayLength(ret); OutPoint[] ret_conv_10_arr = new OutPoint[ret_conv_10_len]; for (int k = 0; k < ret_conv_10_len; k++) { - long ret_conv_10 = InternalUtils.getU64ArrayElem(ret, k); + long ret_conv_10 = InternalUtils.GetU64ArrayElem(ret, k); org.ldk.structs.OutPoint ret_conv_10_hu_conv = null; if (ret_conv_10 < 0 || ret_conv_10 > 4096) { ret_conv_10_hu_conv = new org.ldk.structs.OutPoint(null, ret_conv_10); } if (ret_conv_10_hu_conv != null) { ret_conv_10_hu_conv.ptrs_to.AddLast(this); }; ret_conv_10_arr[k] = ret_conv_10_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_10_arr; } @@ -129,18 +129,18 @@ public OutPoint[] list_monitors() { * Lists the pending updates for each [`ChannelMonitor`] (by `OutPoint` being monitored). */ public TwoTuple_OutPointCVec_MonitorUpdateIdZZ[] list_pending_monitor_updates() { - long ret = bindings.ChainMonitor_list_pending_monitor_updates(this.ptr); + long ret = Bindings.ChainMonitorListPendingMonitorUpdates(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_41_len = InternalUtils.getArrayLength(ret); + int ret_conv_41_len = InternalUtils.GetArrayLength(ret); TwoTuple_OutPointCVec_MonitorUpdateIdZZ[] ret_conv_41_arr = new TwoTuple_OutPointCVec_MonitorUpdateIdZZ[ret_conv_41_len]; for (int p = 0; p < ret_conv_41_len; p++) { - long ret_conv_41 = InternalUtils.getU64ArrayElem(ret, p); + long ret_conv_41 = InternalUtils.GetU64ArrayElem(ret, p); TwoTuple_OutPointCVec_MonitorUpdateIdZZ ret_conv_41_hu_conv = new TwoTuple_OutPointCVec_MonitorUpdateIdZZ(null, ret_conv_41); if (ret_conv_41_hu_conv != null) { ret_conv_41_hu_conv.ptrs_to.AddLast(this); }; ret_conv_41_arr[p] = ret_conv_41_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_41_arr; } @@ -160,7 +160,7 @@ public TwoTuple_OutPointCVec_MonitorUpdateIdZZ[] list_pending_monitor_updates() * registered [`ChannelMonitor`]s. */ public Result_NoneAPIErrorZ channel_monitor_updated(org.ldk.structs.OutPoint funding_txo, org.ldk.structs.MonitorUpdateId completed_update_id) { - long ret = bindings.ChainMonitor_channel_monitor_updated(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, completed_update_id == null ? 0 : completed_update_id.ptr); + long ret = Bindings.ChainMonitorChannelMonitorUpdated(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, completed_update_id == null ? 0 : completed_update_id.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_txo); GC.KeepAlive(completed_update_id); @@ -182,7 +182,7 @@ public Result_NoneAPIErrorZ channel_monitor_updated(org.ldk.structs.OutPoint fun * [`EventsProvider::process_pending_events`]: crate::events::EventsProvider::process_pending_events */ public Future get_update_future() { - long ret = bindings.ChainMonitor_get_update_future(this.ptr); + long ret = Bindings.ChainMonitorGetUpdateFuture(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Future ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Future(null, ret); } @@ -198,7 +198,7 @@ public Future get_update_future() { * connections, like on mobile. */ public void rebroadcast_pending_claims() { - bindings.ChainMonitor_rebroadcast_pending_claims(this.ptr); + Bindings.ChainMonitorRebroadcastPendingClaims(this.ptr); GC.KeepAlive(this); } @@ -207,7 +207,7 @@ public void rebroadcast_pending_claims() { * This copies the `inner` pointer in this_arg and thus the returned Listen must be freed before this_arg is */ public Listen as_Listen() { - long ret = bindings.ChainMonitor_as_Listen(this.ptr); + long ret = Bindings.ChainMonitorAsListen(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Listen ret_hu_conv = new Listen(null, ret); @@ -220,7 +220,7 @@ public Listen as_Listen() { * This copies the `inner` pointer in this_arg and thus the returned Confirm must be freed before this_arg is */ public Confirm as_Confirm() { - long ret = bindings.ChainMonitor_as_Confirm(this.ptr); + long ret = Bindings.ChainMonitorAsConfirm(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Confirm ret_hu_conv = new Confirm(null, ret); @@ -233,7 +233,7 @@ public Confirm as_Confirm() { * This copies the `inner` pointer in this_arg and thus the returned Watch must be freed before this_arg is */ public Watch as_Watch() { - long ret = bindings.ChainMonitor_as_Watch(this.ptr); + long ret = Bindings.ChainMonitorAsWatch(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Watch ret_hu_conv = new Watch(null, ret); @@ -246,7 +246,7 @@ public Watch as_Watch() { * This copies the `inner` pointer in this_arg and thus the returned EventsProvider must be freed before this_arg is */ public EventsProvider as_EventsProvider() { - long ret = bindings.ChainMonitor_as_EventsProvider(this.ptr); + long ret = Bindings.ChainMonitorAsEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EventsProvider ret_hu_conv = new EventsProvider(null, ret); diff --git a/c_sharp/src/org/ldk/structs/ChainParameters.cs b/c_sharp/src/org/ldk/structs/ChainParameters.cs index 2341a1ecb..a8d84f90e 100644 --- a/c_sharp/src/org/ldk/structs/ChainParameters.cs +++ b/c_sharp/src/org/ldk/structs/ChainParameters.cs @@ -16,14 +16,14 @@ namespace org { namespace ldk { namespace structs { public class ChainParameters : CommonBase { internal ChainParameters(object _dummy, long ptr) : base(ptr) { } ~ChainParameters() { - if (ptr != 0) { bindings.ChainParameters_free(ptr); } + if (ptr != 0) { Bindings.ChainParametersFree(ptr); } } /** * The network for determining the `chain_hash` in Lightning messages. */ public Network get_network() { - Network ret = bindings.ChainParameters_get_network(this.ptr); + Network ret = Bindings.ChainParametersGetNetwork(this.ptr); GC.KeepAlive(this); return ret; } @@ -32,7 +32,7 @@ public Network get_network() { * The network for determining the `chain_hash` in Lightning messages. */ public void set_network(Network val) { - bindings.ChainParameters_set_network(this.ptr, val); + Bindings.ChainParametersSetNetwork(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_network(Network val) { * Used to track on-chain channel funding outputs and send payments with reliable timelocks. */ public BestBlock get_best_block() { - long ret = bindings.ChainParameters_get_best_block(this.ptr); + long ret = Bindings.ChainParametersGetBestBlock(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); } @@ -57,7 +57,7 @@ public BestBlock get_best_block() { * Used to track on-chain channel funding outputs and send payments with reliable timelocks. */ public void set_best_block(org.ldk.structs.BestBlock val) { - bindings.ChainParameters_set_best_block(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChainParametersSetBestBlock(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -67,7 +67,7 @@ public void set_best_block(org.ldk.structs.BestBlock val) { * Constructs a new ChainParameters given each field */ public static ChainParameters of(Network network_arg, org.ldk.structs.BestBlock best_block_arg) { - long ret = bindings.ChainParameters_new(network_arg, best_block_arg == null ? 0 : best_block_arg.ptr); + long ret = Bindings.ChainParametersNew(network_arg, best_block_arg == null ? 0 : best_block_arg.ptr); GC.KeepAlive(network_arg); GC.KeepAlive(best_block_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -78,7 +78,7 @@ public static ChainParameters of(Network network_arg, org.ldk.structs.BestBlock } internal long clone_ptr() { - long ret = bindings.ChainParameters_clone_ptr(this.ptr); + long ret = Bindings.ChainParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -87,7 +87,7 @@ internal long clone_ptr() { * Creates a copy of the ChainParameters */ public ChainParameters clone() { - long ret = bindings.ChainParameters_clone(this.ptr); + long ret = Bindings.ChainParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChainParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChainParameters(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ChannelAnnouncement.cs b/c_sharp/src/org/ldk/structs/ChannelAnnouncement.cs index 336821233..1b531738a 100644 --- a/c_sharp/src/org/ldk/structs/ChannelAnnouncement.cs +++ b/c_sharp/src/org/ldk/structs/ChannelAnnouncement.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class ChannelAnnouncement : CommonBase { internal ChannelAnnouncement(object _dummy, long ptr) : base(ptr) { } ~ChannelAnnouncement() { - if (ptr != 0) { bindings.ChannelAnnouncement_free(ptr); } + if (ptr != 0) { Bindings.ChannelAnnouncementFree(ptr); } } /** * Authentication of the announcement by the first public node */ public byte[] get_node_signature_1() { - long ret = bindings.ChannelAnnouncement_get_node_signature_1(this.ptr); + long ret = Bindings.ChannelAnnouncementGetNodeSignature1(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_node_signature_1() { * Authentication of the announcement by the first public node */ public void set_node_signature_1(byte[] val) { - bindings.ChannelAnnouncement_set_node_signature_1(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ChannelAnnouncementSetNodeSignature1(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_node_signature_1(byte[] val) { * Authentication of the announcement by the second public node */ public byte[] get_node_signature_2() { - long ret = bindings.ChannelAnnouncement_get_node_signature_2(this.ptr); + long ret = Bindings.ChannelAnnouncementGetNodeSignature2(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_node_signature_2() { * Authentication of the announcement by the second public node */ public void set_node_signature_2(byte[] val) { - bindings.ChannelAnnouncement_set_node_signature_2(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ChannelAnnouncementSetNodeSignature2(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,10 +61,10 @@ public void set_node_signature_2(byte[] val) { * Proof of funding UTXO ownership by the first public node */ public byte[] get_bitcoin_signature_1() { - long ret = bindings.ChannelAnnouncement_get_bitcoin_signature_1(this.ptr); + long ret = Bindings.ChannelAnnouncementGetBitcoinSignature1(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -72,7 +72,7 @@ public byte[] get_bitcoin_signature_1() { * Proof of funding UTXO ownership by the first public node */ public void set_bitcoin_signature_1(byte[] val) { - bindings.ChannelAnnouncement_set_bitcoin_signature_1(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ChannelAnnouncementSetBitcoinSignature1(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,10 +81,10 @@ public void set_bitcoin_signature_1(byte[] val) { * Proof of funding UTXO ownership by the second public node */ public byte[] get_bitcoin_signature_2() { - long ret = bindings.ChannelAnnouncement_get_bitcoin_signature_2(this.ptr); + long ret = Bindings.ChannelAnnouncementGetBitcoinSignature2(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -92,7 +92,7 @@ public byte[] get_bitcoin_signature_2() { * Proof of funding UTXO ownership by the second public node */ public void set_bitcoin_signature_2(byte[] val) { - bindings.ChannelAnnouncement_set_bitcoin_signature_2(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ChannelAnnouncementSetBitcoinSignature2(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_bitcoin_signature_2(byte[] val) { * The actual announcement */ public UnsignedChannelAnnouncement get_contents() { - long ret = bindings.ChannelAnnouncement_get_contents(this.ptr); + long ret = Bindings.ChannelAnnouncementGetContents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, ret); } @@ -113,7 +113,7 @@ public UnsignedChannelAnnouncement get_contents() { * The actual announcement */ public void set_contents(org.ldk.structs.UnsignedChannelAnnouncement val) { - bindings.ChannelAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelAnnouncementSetContents(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -123,7 +123,7 @@ public void set_contents(org.ldk.structs.UnsignedChannelAnnouncement val) { * Constructs a new ChannelAnnouncement given each field */ public static ChannelAnnouncement of(byte[] node_signature_1_arg, byte[] node_signature_2_arg, byte[] bitcoin_signature_1_arg, byte[] bitcoin_signature_2_arg, org.ldk.structs.UnsignedChannelAnnouncement contents_arg) { - long ret = bindings.ChannelAnnouncement_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_signature_1_arg, 64)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_signature_2_arg, 64)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(bitcoin_signature_1_arg, 64)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(bitcoin_signature_2_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); + long ret = Bindings.ChannelAnnouncementNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_signature_1_arg, 64)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_signature_2_arg, 64)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(bitcoin_signature_1_arg, 64)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(bitcoin_signature_2_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); GC.KeepAlive(node_signature_1_arg); GC.KeepAlive(node_signature_2_arg); GC.KeepAlive(bitcoin_signature_1_arg); @@ -137,7 +137,7 @@ public static ChannelAnnouncement of(byte[] node_signature_1_arg, byte[] node_si } internal long clone_ptr() { - long ret = bindings.ChannelAnnouncement_clone_ptr(this.ptr); + long ret = Bindings.ChannelAnnouncementClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -146,7 +146,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelAnnouncement */ public ChannelAnnouncement clone() { - long ret = bindings.ChannelAnnouncement_clone(this.ptr); + long ret = Bindings.ChannelAnnouncementClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, ret); } @@ -158,7 +158,7 @@ public ChannelAnnouncement clone() { * Generates a non-cryptographic 64-bit hash of the ChannelAnnouncement. */ public long hash() { - long ret = bindings.ChannelAnnouncement_hash(this.ptr); + long ret = Bindings.ChannelAnnouncementHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -172,7 +172,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelAnnouncement b) { - bool ret = bindings.ChannelAnnouncement_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelAnnouncementEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -187,10 +187,10 @@ public override bool Equals(object o) { * Serialize the ChannelAnnouncement object into a byte array which can be read by ChannelAnnouncement_read */ public byte[] write() { - long ret = bindings.ChannelAnnouncement_write(this.ptr); + long ret = Bindings.ChannelAnnouncementWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -198,7 +198,7 @@ public byte[] write() { * Read a ChannelAnnouncement from a byte array, created by ChannelAnnouncement_write */ public static Result_ChannelAnnouncementDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelAnnouncement_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelAnnouncementRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelConfig.cs b/c_sharp/src/org/ldk/structs/ChannelConfig.cs index 9f86419eb..26a65f49a 100644 --- a/c_sharp/src/org/ldk/structs/ChannelConfig.cs +++ b/c_sharp/src/org/ldk/structs/ChannelConfig.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelConfig : CommonBase { internal ChannelConfig(object _dummy, long ptr) : base(ptr) { } ~ChannelConfig() { - if (ptr != 0) { bindings.ChannelConfig_free(ptr); } + if (ptr != 0) { Bindings.ChannelConfigFree(ptr); } } /** @@ -25,7 +25,7 @@ internal ChannelConfig(object _dummy, long ptr) : base(ptr) { } * Default value: 0. */ public int get_forwarding_fee_proportional_millionths() { - int ret = bindings.ChannelConfig_get_forwarding_fee_proportional_millionths(this.ptr); + int ret = Bindings.ChannelConfigGetForwardingFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -39,7 +39,7 @@ public int get_forwarding_fee_proportional_millionths() { * Default value: 0. */ public void set_forwarding_fee_proportional_millionths(int val) { - bindings.ChannelConfig_set_forwarding_fee_proportional_millionths(this.ptr, val); + Bindings.ChannelConfigSetForwardingFeeProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_forwarding_fee_proportional_millionths(int val) { * [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths */ public int get_forwarding_fee_base_msat() { - int ret = bindings.ChannelConfig_get_forwarding_fee_base_msat(this.ptr); + int ret = Bindings.ChannelConfigGetForwardingFeeBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -79,7 +79,7 @@ public int get_forwarding_fee_base_msat() { * [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths */ public void set_forwarding_fee_base_msat(int val) { - bindings.ChannelConfig_set_forwarding_fee_base_msat(this.ptr, val); + Bindings.ChannelConfigSetForwardingFeeBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -106,7 +106,7 @@ public void set_forwarding_fee_base_msat(int val) { * [`MIN_CLTV_EXPIRY_DELTA`]: crate::ln::channelmanager::MIN_CLTV_EXPIRY_DELTA */ public short get_cltv_expiry_delta() { - short ret = bindings.ChannelConfig_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.ChannelConfigGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -133,7 +133,7 @@ public short get_cltv_expiry_delta() { * [`MIN_CLTV_EXPIRY_DELTA`]: crate::ln::channelmanager::MIN_CLTV_EXPIRY_DELTA */ public void set_cltv_expiry_delta(short val) { - bindings.ChannelConfig_set_cltv_expiry_delta(this.ptr, val); + Bindings.ChannelConfigSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -162,7 +162,7 @@ public void set_cltv_expiry_delta(short val) { * Default value: [`MaxDustHTLCExposure::FeeRateMultiplier`] with a multiplier of 5000. */ public MaxDustHTLCExposure get_max_dust_htlc_exposure() { - long ret = bindings.ChannelConfig_get_max_dust_htlc_exposure(this.ptr); + long ret = Bindings.ChannelConfigGetMaxDustHtlcExposure(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MaxDustHTLCExposure ret_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(ret); @@ -194,7 +194,7 @@ public MaxDustHTLCExposure get_max_dust_htlc_exposure() { * Default value: [`MaxDustHTLCExposure::FeeRateMultiplier`] with a multiplier of 5000. */ public void set_max_dust_htlc_exposure(org.ldk.structs.MaxDustHTLCExposure val) { - bindings.ChannelConfig_set_max_dust_htlc_exposure(this.ptr, val.ptr); + Bindings.ChannelConfigSetMaxDustHtlcExposure(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -225,7 +225,7 @@ public void set_max_dust_htlc_exposure(org.ldk.structs.MaxDustHTLCExposure val) * [`ChannelCloseMinimum`]: crate::chain::chaininterface::ConfirmationTarget::ChannelCloseMinimum */ public long get_force_close_avoidance_max_fee_satoshis() { - long ret = bindings.ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this.ptr); + long ret = Bindings.ChannelConfigGetForceCloseAvoidanceMaxFeeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -255,7 +255,7 @@ public long get_force_close_avoidance_max_fee_satoshis() { * [`ChannelCloseMinimum`]: crate::chain::chaininterface::ConfirmationTarget::ChannelCloseMinimum */ public void set_force_close_avoidance_max_fee_satoshis(long val) { - bindings.ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this.ptr, val); + Bindings.ChannelConfigSetForceCloseAvoidanceMaxFeeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -294,7 +294,7 @@ public void set_force_close_avoidance_max_fee_satoshis(long val) { * [`PaymentClaimable::counterparty_skimmed_fee_msat`]: crate::events::Event::PaymentClaimable::counterparty_skimmed_fee_msat */ public bool get_accept_underpaying_htlcs() { - bool ret = bindings.ChannelConfig_get_accept_underpaying_htlcs(this.ptr); + bool ret = Bindings.ChannelConfigGetAcceptUnderpayingHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -333,7 +333,7 @@ public bool get_accept_underpaying_htlcs() { * [`PaymentClaimable::counterparty_skimmed_fee_msat`]: crate::events::Event::PaymentClaimable::counterparty_skimmed_fee_msat */ public void set_accept_underpaying_htlcs(bool val) { - bindings.ChannelConfig_set_accept_underpaying_htlcs(this.ptr, val); + Bindings.ChannelConfigSetAcceptUnderpayingHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -342,7 +342,7 @@ public void set_accept_underpaying_htlcs(bool val) { * Constructs a new ChannelConfig given each field */ public static ChannelConfig of(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, org.ldk.structs.MaxDustHTLCExposure max_dust_htlc_exposure_arg, long force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg) { - long ret = bindings.ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_arg.ptr, force_close_avoidance_max_fee_satoshis_arg, accept_underpaying_htlcs_arg); + long ret = Bindings.ChannelConfigNew(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_arg.ptr, force_close_avoidance_max_fee_satoshis_arg, accept_underpaying_htlcs_arg); GC.KeepAlive(forwarding_fee_proportional_millionths_arg); GC.KeepAlive(forwarding_fee_base_msat_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -357,7 +357,7 @@ public static ChannelConfig of(int forwarding_fee_proportional_millionths_arg, i } internal long clone_ptr() { - long ret = bindings.ChannelConfig_clone_ptr(this.ptr); + long ret = Bindings.ChannelConfigClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -366,7 +366,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelConfig */ public ChannelConfig clone() { - long ret = bindings.ChannelConfig_clone(this.ptr); + long ret = Bindings.ChannelConfigClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelConfig(null, ret); } @@ -380,7 +380,7 @@ public ChannelConfig clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelConfig b) { - bool ret = bindings.ChannelConfig_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelConfigEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -395,7 +395,7 @@ public override bool Equals(object o) { * Applies the given [`ChannelConfigUpdate`] as a partial update to the [`ChannelConfig`]. */ public void apply(org.ldk.structs.ChannelConfigUpdate update) { - bindings.ChannelConfig_apply(this.ptr, update == null ? 0 : update.ptr); + Bindings.ChannelConfigApply(this.ptr, update == null ? 0 : update.ptr); GC.KeepAlive(this); GC.KeepAlive(update); if (this != null) { this.ptrs_to.AddLast(update); }; @@ -405,7 +405,7 @@ public void apply(org.ldk.structs.ChannelConfigUpdate update) { * Creates a "default" ChannelConfig. See struct and individual field documentaiton for details on which values are used. */ public static ChannelConfig with_default() { - long ret = bindings.ChannelConfig_default(); + long ret = Bindings.ChannelConfigDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelConfig(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -416,10 +416,10 @@ public static ChannelConfig with_default() { * Serialize the ChannelConfig object into a byte array which can be read by ChannelConfig_read */ public byte[] write() { - long ret = bindings.ChannelConfig_write(this.ptr); + long ret = Bindings.ChannelConfigWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -427,7 +427,7 @@ public byte[] write() { * Read a ChannelConfig from a byte array, created by ChannelConfig_write */ public static Result_ChannelConfigDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelConfig_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelConfigRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelConfigUpdate.cs b/c_sharp/src/org/ldk/structs/ChannelConfigUpdate.cs index 03dcff3fc..91900617e 100644 --- a/c_sharp/src/org/ldk/structs/ChannelConfigUpdate.cs +++ b/c_sharp/src/org/ldk/structs/ChannelConfigUpdate.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class ChannelConfigUpdate : CommonBase { internal ChannelConfigUpdate(object _dummy, long ptr) : base(ptr) { } ~ChannelConfigUpdate() { - if (ptr != 0) { bindings.ChannelConfigUpdate_free(ptr); } + if (ptr != 0) { Bindings.ChannelConfigUpdateFree(ptr); } } public Option_u32Z get_forwarding_fee_proportional_millionths() { - long ret = bindings.ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(this.ptr); + long ret = Bindings.ChannelConfigUpdateGetForwardingFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -25,14 +25,14 @@ public Option_u32Z get_forwarding_fee_proportional_millionths() { } public void set_forwarding_fee_proportional_millionths(org.ldk.structs.Option_u32Z val) { - bindings.ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(this.ptr, val.ptr); + Bindings.ChannelConfigUpdateSetForwardingFeeProportionalMillionths(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } public Option_u32Z get_forwarding_fee_base_msat() { - long ret = bindings.ChannelConfigUpdate_get_forwarding_fee_base_msat(this.ptr); + long ret = Bindings.ChannelConfigUpdateGetForwardingFeeBaseMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -41,14 +41,14 @@ public Option_u32Z get_forwarding_fee_base_msat() { } public void set_forwarding_fee_base_msat(org.ldk.structs.Option_u32Z val) { - bindings.ChannelConfigUpdate_set_forwarding_fee_base_msat(this.ptr, val.ptr); + Bindings.ChannelConfigUpdateSetForwardingFeeBaseMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } public Option_u16Z get_cltv_expiry_delta() { - long ret = bindings.ChannelConfigUpdate_get_cltv_expiry_delta(this.ptr); + long ret = Bindings.ChannelConfigUpdateGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); @@ -57,7 +57,7 @@ public Option_u16Z get_cltv_expiry_delta() { } public void set_cltv_expiry_delta(org.ldk.structs.Option_u16Z val) { - bindings.ChannelConfigUpdate_set_cltv_expiry_delta(this.ptr, val.ptr); + Bindings.ChannelConfigUpdateSetCltvExpiryDelta(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -67,7 +67,7 @@ public void set_cltv_expiry_delta(org.ldk.structs.Option_u16Z val) { * Returns a copy of the field. */ public Option_MaxDustHTLCExposureZ get_max_dust_htlc_exposure_msat() { - long ret = bindings.ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(this.ptr); + long ret = Bindings.ChannelConfigUpdateGetMaxDustHtlcExposureMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MaxDustHTLCExposureZ ret_hu_conv = org.ldk.structs.Option_MaxDustHTLCExposureZ.constr_from_ptr(ret); @@ -76,14 +76,14 @@ public Option_MaxDustHTLCExposureZ get_max_dust_htlc_exposure_msat() { } public void set_max_dust_htlc_exposure_msat(org.ldk.structs.Option_MaxDustHTLCExposureZ val) { - bindings.ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(this.ptr, val.ptr); + Bindings.ChannelConfigUpdateSetMaxDustHtlcExposureMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } public Option_u64Z get_force_close_avoidance_max_fee_satoshis() { - long ret = bindings.ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(this.ptr); + long ret = Bindings.ChannelConfigUpdateGetForceCloseAvoidanceMaxFeeSatoshis(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -92,7 +92,7 @@ public Option_u64Z get_force_close_avoidance_max_fee_satoshis() { } public void set_force_close_avoidance_max_fee_satoshis(org.ldk.structs.Option_u64Z val) { - bindings.ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(this.ptr, val.ptr); + Bindings.ChannelConfigUpdateSetForceCloseAvoidanceMaxFeeSatoshis(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -102,7 +102,7 @@ public void set_force_close_avoidance_max_fee_satoshis(org.ldk.structs.Option_u6 * Constructs a new ChannelConfigUpdate given each field */ public static ChannelConfigUpdate of(org.ldk.structs.Option_u32Z forwarding_fee_proportional_millionths_arg, org.ldk.structs.Option_u32Z forwarding_fee_base_msat_arg, org.ldk.structs.Option_u16Z cltv_expiry_delta_arg, org.ldk.structs.Option_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, org.ldk.structs.Option_u64Z force_close_avoidance_max_fee_satoshis_arg) { - long ret = bindings.ChannelConfigUpdate_new(forwarding_fee_proportional_millionths_arg.ptr, forwarding_fee_base_msat_arg.ptr, cltv_expiry_delta_arg.ptr, max_dust_htlc_exposure_msat_arg.ptr, force_close_avoidance_max_fee_satoshis_arg.ptr); + long ret = Bindings.ChannelConfigUpdateNew(forwarding_fee_proportional_millionths_arg.ptr, forwarding_fee_base_msat_arg.ptr, cltv_expiry_delta_arg.ptr, max_dust_htlc_exposure_msat_arg.ptr, force_close_avoidance_max_fee_satoshis_arg.ptr); GC.KeepAlive(forwarding_fee_proportional_millionths_arg); GC.KeepAlive(forwarding_fee_base_msat_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -123,7 +123,7 @@ public static ChannelConfigUpdate of(org.ldk.structs.Option_u32Z forwarding_fee_ * Creates a "default" ChannelConfigUpdate. See struct and individual field documentaiton for details on which values are used. */ public static ChannelConfigUpdate with_default() { - long ret = bindings.ChannelConfigUpdate_default(); + long ret = Bindings.ChannelConfigUpdateDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelConfigUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelConfigUpdate(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/ChannelCounterparty.cs b/c_sharp/src/org/ldk/structs/ChannelCounterparty.cs index c994ea6c1..b51570911 100644 --- a/c_sharp/src/org/ldk/structs/ChannelCounterparty.cs +++ b/c_sharp/src/org/ldk/structs/ChannelCounterparty.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class ChannelCounterparty : CommonBase { internal ChannelCounterparty(object _dummy, long ptr) : base(ptr) { } ~ChannelCounterparty() { - if (ptr != 0) { bindings.ChannelCounterparty_free(ptr); } + if (ptr != 0) { Bindings.ChannelCounterpartyFree(ptr); } } /** * The node_id of our counterparty */ public byte[] get_node_id() { - long ret = bindings.ChannelCounterparty_get_node_id(this.ptr); + long ret = Bindings.ChannelCounterpartyGetNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_node_id() { * The node_id of our counterparty */ public void set_node_id(byte[] val) { - bindings.ChannelCounterparty_set_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ChannelCounterpartySetNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -42,7 +42,7 @@ public void set_node_id(byte[] val) { * many routing-relevant features are present in the init context. */ public InitFeatures get_features() { - long ret = bindings.ChannelCounterparty_get_features(this.ptr); + long ret = Bindings.ChannelCounterpartyGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } @@ -56,7 +56,7 @@ public InitFeatures get_features() { * many routing-relevant features are present in the init context. */ public void set_features(org.ldk.structs.InitFeatures val) { - bindings.ChannelCounterparty_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelCounterpartySetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -72,7 +72,7 @@ public void set_features(org.ldk.structs.InitFeatures val) { * [`inbound_capacity_msat`]: ChannelDetails::inbound_capacity_msat */ public long get_unspendable_punishment_reserve() { - long ret = bindings.ChannelCounterparty_get_unspendable_punishment_reserve(this.ptr); + long ret = Bindings.ChannelCounterpartyGetUnspendablePunishmentReserve(this.ptr); GC.KeepAlive(this); return ret; } @@ -87,7 +87,7 @@ public long get_unspendable_punishment_reserve() { * [`inbound_capacity_msat`]: ChannelDetails::inbound_capacity_msat */ public void set_unspendable_punishment_reserve(long val) { - bindings.ChannelCounterparty_set_unspendable_punishment_reserve(this.ptr, val); + Bindings.ChannelCounterpartySetUnspendablePunishmentReserve(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_unspendable_punishment_reserve(long val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public CounterpartyForwardingInfo get_forwarding_info() { - long ret = bindings.ChannelCounterparty_get_forwarding_info(this.ptr); + long ret = Bindings.ChannelCounterpartyGetForwardingInfo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyForwardingInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyForwardingInfo(null, ret); } @@ -114,7 +114,7 @@ public CounterpartyForwardingInfo get_forwarding_info() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_forwarding_info(org.ldk.structs.CounterpartyForwardingInfo val) { - bindings.ChannelCounterparty_set_forwarding_info(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelCounterpartySetForwardingInfo(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -126,7 +126,7 @@ public void set_forwarding_info(org.ldk.structs.CounterpartyForwardingInfo val) * from the remote peer, or for `ChannelCounterparty` objects serialized prior to LDK 0.0.107. */ public Option_u64Z get_outbound_htlc_minimum_msat() { - long ret = bindings.ChannelCounterparty_get_outbound_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelCounterpartyGetOutboundHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -140,7 +140,7 @@ public Option_u64Z get_outbound_htlc_minimum_msat() { * from the remote peer, or for `ChannelCounterparty` objects serialized prior to LDK 0.0.107. */ public void set_outbound_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { - bindings.ChannelCounterparty_set_outbound_htlc_minimum_msat(this.ptr, val.ptr); + Bindings.ChannelCounterpartySetOutboundHtlcMinimumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -150,7 +150,7 @@ public void set_outbound_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { * The largest value HTLC (in msat) the remote peer currently will accept, for this channel. */ public Option_u64Z get_outbound_htlc_maximum_msat() { - long ret = bindings.ChannelCounterparty_get_outbound_htlc_maximum_msat(this.ptr); + long ret = Bindings.ChannelCounterpartyGetOutboundHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -162,7 +162,7 @@ public Option_u64Z get_outbound_htlc_maximum_msat() { * The largest value HTLC (in msat) the remote peer currently will accept, for this channel. */ public void set_outbound_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { - bindings.ChannelCounterparty_set_outbound_htlc_maximum_msat(this.ptr, val.ptr); + Bindings.ChannelCounterpartySetOutboundHtlcMaximumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -174,7 +174,7 @@ public void set_outbound_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { * Note that forwarding_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static ChannelCounterparty of(byte[] node_id_arg, org.ldk.structs.InitFeatures features_arg, long unspendable_punishment_reserve_arg, org.ldk.structs.CounterpartyForwardingInfo forwarding_info_arg, org.ldk.structs.Option_u64Z outbound_htlc_minimum_msat_arg, org.ldk.structs.Option_u64Z outbound_htlc_maximum_msat_arg) { - long ret = bindings.ChannelCounterparty_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_arg, 33)), features_arg == null ? 0 : features_arg.ptr, unspendable_punishment_reserve_arg, forwarding_info_arg == null ? 0 : forwarding_info_arg.ptr, outbound_htlc_minimum_msat_arg.ptr, outbound_htlc_maximum_msat_arg.ptr); + long ret = Bindings.ChannelCounterpartyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id_arg, 33)), features_arg == null ? 0 : features_arg.ptr, unspendable_punishment_reserve_arg, forwarding_info_arg == null ? 0 : forwarding_info_arg.ptr, outbound_htlc_minimum_msat_arg.ptr, outbound_htlc_maximum_msat_arg.ptr); GC.KeepAlive(node_id_arg); GC.KeepAlive(features_arg); GC.KeepAlive(unspendable_punishment_reserve_arg); @@ -192,7 +192,7 @@ public static ChannelCounterparty of(byte[] node_id_arg, org.ldk.structs.InitFea } internal long clone_ptr() { - long ret = bindings.ChannelCounterparty_clone_ptr(this.ptr); + long ret = Bindings.ChannelCounterpartyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -201,7 +201,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelCounterparty */ public ChannelCounterparty clone() { - long ret = bindings.ChannelCounterparty_clone(this.ptr); + long ret = Bindings.ChannelCounterpartyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelCounterparty ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelCounterparty(null, ret); } @@ -213,10 +213,10 @@ public ChannelCounterparty clone() { * Serialize the ChannelCounterparty object into a byte array which can be read by ChannelCounterparty_read */ public byte[] write() { - long ret = bindings.ChannelCounterparty_write(this.ptr); + long ret = Bindings.ChannelCounterpartyWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -224,7 +224,7 @@ public byte[] write() { * Read a ChannelCounterparty from a byte array, created by ChannelCounterparty_write */ public static Result_ChannelCounterpartyDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelCounterparty_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelCounterpartyRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelCounterpartyDecodeErrorZ ret_hu_conv = Result_ChannelCounterpartyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelDerivationParameters.cs b/c_sharp/src/org/ldk/structs/ChannelDerivationParameters.cs index 0b0d2d1d6..0464353a4 100644 --- a/c_sharp/src/org/ldk/structs/ChannelDerivationParameters.cs +++ b/c_sharp/src/org/ldk/structs/ChannelDerivationParameters.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ChannelDerivationParameters : CommonBase { internal ChannelDerivationParameters(object _dummy, long ptr) : base(ptr) { } ~ChannelDerivationParameters() { - if (ptr != 0) { bindings.ChannelDerivationParameters_free(ptr); } + if (ptr != 0) { Bindings.ChannelDerivationParametersFree(ptr); } } /** * The value in satoshis of the channel we're attempting to spend the anchor output of. */ public long get_value_satoshis() { - long ret = bindings.ChannelDerivationParameters_get_value_satoshis(this.ptr); + long ret = Bindings.ChannelDerivationParametersGetValueSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public long get_value_satoshis() { * The value in satoshis of the channel we're attempting to spend the anchor output of. */ public void set_value_satoshis(long val) { - bindings.ChannelDerivationParameters_set_value_satoshis(this.ptr, val); + Bindings.ChannelDerivationParametersSetValueSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,10 +37,10 @@ public void set_value_satoshis(long val) { * The unique identifier to re-derive the signer for the associated channel. */ public byte[] get_keys_id() { - long ret = bindings.ChannelDerivationParameters_get_keys_id(this.ptr); + long ret = Bindings.ChannelDerivationParametersGetKeysId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -48,7 +48,7 @@ public byte[] get_keys_id() { * The unique identifier to re-derive the signer for the associated channel. */ public void set_keys_id(byte[] val) { - bindings.ChannelDerivationParameters_set_keys_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ChannelDerivationParametersSetKeysId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -58,7 +58,7 @@ public void set_keys_id(byte[] val) { * [`ChannelSigner::provide_channel_parameters`]. */ public ChannelTransactionParameters get_transaction_parameters() { - long ret = bindings.ChannelDerivationParameters_get_transaction_parameters(this.ptr); + long ret = Bindings.ChannelDerivationParametersGetTransactionParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, ret); } @@ -71,7 +71,7 @@ public ChannelTransactionParameters get_transaction_parameters() { * [`ChannelSigner::provide_channel_parameters`]. */ public void set_transaction_parameters(org.ldk.structs.ChannelTransactionParameters val) { - bindings.ChannelDerivationParameters_set_transaction_parameters(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelDerivationParametersSetTransactionParameters(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -81,7 +81,7 @@ public void set_transaction_parameters(org.ldk.structs.ChannelTransactionParamet * Constructs a new ChannelDerivationParameters given each field */ public static ChannelDerivationParameters of(long value_satoshis_arg, byte[] keys_id_arg, org.ldk.structs.ChannelTransactionParameters transaction_parameters_arg) { - long ret = bindings.ChannelDerivationParameters_new(value_satoshis_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(keys_id_arg, 32)), transaction_parameters_arg == null ? 0 : transaction_parameters_arg.ptr); + long ret = Bindings.ChannelDerivationParametersNew(value_satoshis_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(keys_id_arg, 32)), transaction_parameters_arg == null ? 0 : transaction_parameters_arg.ptr); GC.KeepAlive(value_satoshis_arg); GC.KeepAlive(keys_id_arg); GC.KeepAlive(transaction_parameters_arg); @@ -93,7 +93,7 @@ public static ChannelDerivationParameters of(long value_satoshis_arg, byte[] key } internal long clone_ptr() { - long ret = bindings.ChannelDerivationParameters_clone_ptr(this.ptr); + long ret = Bindings.ChannelDerivationParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelDerivationParameters */ public ChannelDerivationParameters clone() { - long ret = bindings.ChannelDerivationParameters_clone(this.ptr); + long ret = Bindings.ChannelDerivationParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelDerivationParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelDerivationParameters(null, ret); } @@ -116,7 +116,7 @@ public ChannelDerivationParameters clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelDerivationParameters b) { - bool ret = bindings.ChannelDerivationParameters_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelDerivationParametersEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -131,10 +131,10 @@ public override bool Equals(object o) { * Serialize the ChannelDerivationParameters object into a byte array which can be read by ChannelDerivationParameters_read */ public byte[] write() { - long ret = bindings.ChannelDerivationParameters_write(this.ptr); + long ret = Bindings.ChannelDerivationParametersWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -142,7 +142,7 @@ public byte[] write() { * Read a ChannelDerivationParameters from a byte array, created by ChannelDerivationParameters_write */ public static Result_ChannelDerivationParametersDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelDerivationParameters_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelDerivationParametersRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDerivationParametersDecodeErrorZ ret_hu_conv = Result_ChannelDerivationParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelDetails.cs b/c_sharp/src/org/ldk/structs/ChannelDetails.cs index dfaa9e4d3..3e579cec1 100644 --- a/c_sharp/src/org/ldk/structs/ChannelDetails.cs +++ b/c_sharp/src/org/ldk/structs/ChannelDetails.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelDetails : CommonBase { internal ChannelDetails(object _dummy, long ptr) : base(ptr) { } ~ChannelDetails() { - if (ptr != 0) { bindings.ChannelDetails_free(ptr); } + if (ptr != 0) { Bindings.ChannelDetailsFree(ptr); } } /** @@ -22,10 +22,10 @@ internal ChannelDetails(object _dummy, long ptr) : base(ptr) { } * lifetime of the channel. */ public byte[] get_channel_id() { - long ret = bindings.ChannelDetails_get_channel_id(this.ptr); + long ret = Bindings.ChannelDetailsGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -36,7 +36,7 @@ public byte[] get_channel_id() { * lifetime of the channel. */ public void set_channel_id(byte[] val) { - bindings.ChannelDetails_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ChannelDetailsSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -45,7 +45,7 @@ public void set_channel_id(byte[] val) { * Parameters which apply to our counterparty. See individual fields for more information. */ public ChannelCounterparty get_counterparty() { - long ret = bindings.ChannelDetails_get_counterparty(this.ptr); + long ret = Bindings.ChannelDetailsGetCounterparty(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelCounterparty ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelCounterparty(null, ret); } @@ -57,7 +57,7 @@ public ChannelCounterparty get_counterparty() { * Parameters which apply to our counterparty. See individual fields for more information. */ public void set_counterparty(org.ldk.structs.ChannelCounterparty val) { - bindings.ChannelDetails_set_counterparty(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelDetailsSetCounterparty(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -73,7 +73,7 @@ public void set_counterparty(org.ldk.structs.ChannelCounterparty val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OutPoint get_funding_txo() { - long ret = bindings.ChannelDetails_get_funding_txo(this.ptr); + long ret = Bindings.ChannelDetailsGetFundingTxo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -91,7 +91,7 @@ public OutPoint get_funding_txo() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_funding_txo(org.ldk.structs.OutPoint val) { - bindings.ChannelDetails_set_funding_txo(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelDetailsSetFundingTxo(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -105,7 +105,7 @@ public void set_funding_txo(org.ldk.structs.OutPoint val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures get_channel_type() { - long ret = bindings.ChannelDetails_get_channel_type(this.ptr); + long ret = Bindings.ChannelDetailsGetChannelType(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -121,7 +121,7 @@ public ChannelTypeFeatures get_channel_type() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { - bindings.ChannelDetails_set_channel_type(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelDetailsSetChannelType(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -144,7 +144,7 @@ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { * [`confirmations_required`]: Self::confirmations_required */ public Option_u64Z get_short_channel_id() { - long ret = bindings.ChannelDetails_get_short_channel_id(this.ptr); + long ret = Bindings.ChannelDetailsGetShortChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -169,7 +169,7 @@ public Option_u64Z get_short_channel_id() { * [`confirmations_required`]: Self::confirmations_required */ public void set_short_channel_id(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_short_channel_id(this.ptr, val.ptr); + Bindings.ChannelDetailsSetShortChannelId(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -187,7 +187,7 @@ public void set_short_channel_id(org.ldk.structs.Option_u64Z val) { * [`confirmations_required`]: Self::confirmations_required */ public Option_u64Z get_outbound_scid_alias() { - long ret = bindings.ChannelDetails_get_outbound_scid_alias(this.ptr); + long ret = Bindings.ChannelDetailsGetOutboundScidAlias(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -207,7 +207,7 @@ public Option_u64Z get_outbound_scid_alias() { * [`confirmations_required`]: Self::confirmations_required */ public void set_outbound_scid_alias(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_outbound_scid_alias(this.ptr, val.ptr); + Bindings.ChannelDetailsSetOutboundScidAlias(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -225,7 +225,7 @@ public void set_outbound_scid_alias(org.ldk.structs.Option_u64Z val) { * [`short_channel_id`]: Self::short_channel_id */ public Option_u64Z get_inbound_scid_alias() { - long ret = bindings.ChannelDetails_get_inbound_scid_alias(this.ptr); + long ret = Bindings.ChannelDetailsGetInboundScidAlias(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -245,7 +245,7 @@ public Option_u64Z get_inbound_scid_alias() { * [`short_channel_id`]: Self::short_channel_id */ public void set_inbound_scid_alias(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_inbound_scid_alias(this.ptr, val.ptr); + Bindings.ChannelDetailsSetInboundScidAlias(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -255,7 +255,7 @@ public void set_inbound_scid_alias(org.ldk.structs.Option_u64Z val) { * The value, in satoshis, of this channel as appears in the funding output */ public long get_channel_value_satoshis() { - long ret = bindings.ChannelDetails_get_channel_value_satoshis(this.ptr); + long ret = Bindings.ChannelDetailsGetChannelValueSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -264,7 +264,7 @@ public long get_channel_value_satoshis() { * The value, in satoshis, of this channel as appears in the funding output */ public void set_channel_value_satoshis(long val) { - bindings.ChannelDetails_set_channel_value_satoshis(this.ptr, val); + Bindings.ChannelDetailsSetChannelValueSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -281,7 +281,7 @@ public void set_channel_value_satoshis(long val) { * [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat */ public Option_u64Z get_unspendable_punishment_reserve() { - long ret = bindings.ChannelDetails_get_unspendable_punishment_reserve(this.ptr); + long ret = Bindings.ChannelDetailsGetUnspendablePunishmentReserve(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -301,7 +301,7 @@ public Option_u64Z get_unspendable_punishment_reserve() { * [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat */ public void set_unspendable_punishment_reserve(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_unspendable_punishment_reserve(this.ptr, val.ptr); + Bindings.ChannelDetailsSetUnspendablePunishmentReserve(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -319,7 +319,7 @@ public void set_unspendable_punishment_reserve(org.ldk.structs.Option_u64Z val) * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ public UInt128 get_user_channel_id() { - long ret = bindings.ChannelDetails_get_user_channel_id(this.ptr); + long ret = Bindings.ChannelDetailsGetUserChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.util.UInt128 ret_conv = new org.ldk.util.UInt128(ret); @@ -338,7 +338,7 @@ public UInt128 get_user_channel_id() { * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ public void set_user_channel_id(org.ldk.util.UInt128 val) { - bindings.ChannelDetails_set_user_channel_id(this.ptr, InternalUtils.encodeUint8Array(val.getLEBytes())); + Bindings.ChannelDetailsSetUserChannelId(this.ptr, InternalUtils.EncodeUint8Array(val.getLEBytes())); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -350,7 +350,7 @@ public void set_user_channel_id(org.ldk.util.UInt128 val) { * This value will be `None` for objects serialized with LDK versions prior to 0.0.115. */ public Option_u32Z get_feerate_sat_per_1000_weight() { - long ret = bindings.ChannelDetails_get_feerate_sat_per_1000_weight(this.ptr); + long ret = Bindings.ChannelDetailsGetFeerateSatPer1000Weight(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -365,7 +365,7 @@ public Option_u32Z get_feerate_sat_per_1000_weight() { * This value will be `None` for objects serialized with LDK versions prior to 0.0.115. */ public void set_feerate_sat_per_1000_weight(org.ldk.structs.Option_u32Z val) { - bindings.ChannelDetails_set_feerate_sat_per_1000_weight(this.ptr, val.ptr); + Bindings.ChannelDetailsSetFeerateSatPer1000Weight(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -384,7 +384,7 @@ public void set_feerate_sat_per_1000_weight(org.ldk.structs.Option_u32Z val) { * See also [`ChannelDetails::outbound_capacity_msat`] */ public long get_balance_msat() { - long ret = bindings.ChannelDetails_get_balance_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetBalanceMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -402,7 +402,7 @@ public long get_balance_msat() { * See also [`ChannelDetails::outbound_capacity_msat`] */ public void set_balance_msat(long val) { - bindings.ChannelDetails_set_balance_msat(this.ptr, val); + Bindings.ChannelDetailsSetBalanceMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -420,7 +420,7 @@ public void set_balance_msat(long val) { * should be able to spend nearly this amount. */ public long get_outbound_capacity_msat() { - long ret = bindings.ChannelDetails_get_outbound_capacity_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetOutboundCapacityMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -438,7 +438,7 @@ public long get_outbound_capacity_msat() { * should be able to spend nearly this amount. */ public void set_outbound_capacity_msat(long val) { - bindings.ChannelDetails_set_outbound_capacity_msat(this.ptr, val); + Bindings.ChannelDetailsSetOutboundCapacityMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -453,7 +453,7 @@ public void set_outbound_capacity_msat(long val) { * [`ChannelDetails::balance_msat`], and [`ChannelDetails::outbound_capacity_msat`]. */ public long get_next_outbound_htlc_limit_msat() { - long ret = bindings.ChannelDetails_get_next_outbound_htlc_limit_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetNextOutboundHtlcLimitMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -468,7 +468,7 @@ public long get_next_outbound_htlc_limit_msat() { * [`ChannelDetails::balance_msat`], and [`ChannelDetails::outbound_capacity_msat`]. */ public void set_next_outbound_htlc_limit_msat(long val) { - bindings.ChannelDetails_set_next_outbound_htlc_limit_msat(this.ptr, val); + Bindings.ChannelDetailsSetNextOutboundHtlcLimitMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -480,7 +480,7 @@ public void set_next_outbound_htlc_limit_msat(long val) { * route which is valid. */ public long get_next_outbound_htlc_minimum_msat() { - long ret = bindings.ChannelDetails_get_next_outbound_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetNextOutboundHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -492,7 +492,7 @@ public long get_next_outbound_htlc_minimum_msat() { * route which is valid. */ public void set_next_outbound_htlc_minimum_msat(long val) { - bindings.ChannelDetails_set_next_outbound_htlc_minimum_msat(this.ptr, val); + Bindings.ChannelDetailsSetNextOutboundHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -509,7 +509,7 @@ public void set_next_outbound_htlc_minimum_msat(long val) { * However, our counterparty should be able to spend nearly this amount. */ public long get_inbound_capacity_msat() { - long ret = bindings.ChannelDetails_get_inbound_capacity_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetInboundCapacityMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -526,7 +526,7 @@ public long get_inbound_capacity_msat() { * However, our counterparty should be able to spend nearly this amount. */ public void set_inbound_capacity_msat(long val) { - bindings.ChannelDetails_set_inbound_capacity_msat(this.ptr, val); + Bindings.ChannelDetailsSetInboundCapacityMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -545,7 +545,7 @@ public void set_inbound_capacity_msat(long val) { * [`ChannelHandshakeLimits::max_minimum_depth`]: crate::util::config::ChannelHandshakeLimits::max_minimum_depth */ public Option_u32Z get_confirmations_required() { - long ret = bindings.ChannelDetails_get_confirmations_required(this.ptr); + long ret = Bindings.ChannelDetailsGetConfirmationsRequired(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -567,7 +567,7 @@ public Option_u32Z get_confirmations_required() { * [`ChannelHandshakeLimits::max_minimum_depth`]: crate::util::config::ChannelHandshakeLimits::max_minimum_depth */ public void set_confirmations_required(org.ldk.structs.Option_u32Z val) { - bindings.ChannelDetails_set_confirmations_required(this.ptr, val.ptr); + Bindings.ChannelDetailsSetConfirmationsRequired(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -579,7 +579,7 @@ public void set_confirmations_required(org.ldk.structs.Option_u32Z val) { * This value will be `None` for objects serialized with LDK versions prior to 0.0.113. */ public Option_u32Z get_confirmations() { - long ret = bindings.ChannelDetails_get_confirmations(this.ptr); + long ret = Bindings.ChannelDetailsGetConfirmations(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -593,7 +593,7 @@ public Option_u32Z get_confirmations() { * This value will be `None` for objects serialized with LDK versions prior to 0.0.113. */ public void set_confirmations(org.ldk.structs.Option_u32Z val) { - bindings.ChannelDetails_set_confirmations(this.ptr, val.ptr); + Bindings.ChannelDetailsSetConfirmations(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -609,7 +609,7 @@ public void set_confirmations(org.ldk.structs.Option_u32Z val) { * This value will be `None` for outbound channels until the counterparty accepts the channel. */ public Option_u16Z get_force_close_spend_delay() { - long ret = bindings.ChannelDetails_get_force_close_spend_delay(this.ptr); + long ret = Bindings.ChannelDetailsGetForceCloseSpendDelay(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); @@ -627,7 +627,7 @@ public Option_u16Z get_force_close_spend_delay() { * This value will be `None` for outbound channels until the counterparty accepts the channel. */ public void set_force_close_spend_delay(org.ldk.structs.Option_u16Z val) { - bindings.ChannelDetails_set_force_close_spend_delay(this.ptr, val.ptr); + Bindings.ChannelDetailsSetForceCloseSpendDelay(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -637,7 +637,7 @@ public void set_force_close_spend_delay(org.ldk.structs.Option_u16Z val) { * True if the channel was initiated (and thus funded) by us. */ public bool get_is_outbound() { - bool ret = bindings.ChannelDetails_get_is_outbound(this.ptr); + bool ret = Bindings.ChannelDetailsGetIsOutbound(this.ptr); GC.KeepAlive(this); return ret; } @@ -646,7 +646,7 @@ public bool get_is_outbound() { * True if the channel was initiated (and thus funded) by us. */ public void set_is_outbound(bool val) { - bindings.ChannelDetails_set_is_outbound(this.ptr, val); + Bindings.ChannelDetailsSetIsOutbound(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -661,7 +661,7 @@ public void set_is_outbound(bool val) { * [`confirmations_required`]: ChannelDetails::confirmations_required */ public bool get_is_channel_ready() { - bool ret = bindings.ChannelDetails_get_is_channel_ready(this.ptr); + bool ret = Bindings.ChannelDetailsGetIsChannelReady(this.ptr); GC.KeepAlive(this); return ret; } @@ -676,7 +676,7 @@ public bool get_is_channel_ready() { * [`confirmations_required`]: ChannelDetails::confirmations_required */ public void set_is_channel_ready(bool val) { - bindings.ChannelDetails_set_is_channel_ready(this.ptr, val); + Bindings.ChannelDetailsSetIsChannelReady(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -688,7 +688,7 @@ public void set_is_channel_ready(bool val) { * Returns a copy of the field. */ public Option_ChannelShutdownStateZ get_channel_shutdown_state() { - long ret = bindings.ChannelDetails_get_channel_shutdown_state(this.ptr); + long ret = Bindings.ChannelDetailsGetChannelShutdownState(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ChannelShutdownStateZ ret_hu_conv = org.ldk.structs.Option_ChannelShutdownStateZ.constr_from_ptr(ret); @@ -701,7 +701,7 @@ public Option_ChannelShutdownStateZ get_channel_shutdown_state() { * `None` for `ChannelDetails` serialized on LDK versions prior to 0.0.116. */ public void set_channel_shutdown_state(org.ldk.structs.Option_ChannelShutdownStateZ val) { - bindings.ChannelDetails_set_channel_shutdown_state(this.ptr, val.ptr); + Bindings.ChannelDetailsSetChannelShutdownState(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -714,7 +714,7 @@ public void set_channel_shutdown_state(org.ldk.structs.Option_ChannelShutdownSta * This is a strict superset of `is_channel_ready`. */ public bool get_is_usable() { - bool ret = bindings.ChannelDetails_get_is_usable(this.ptr); + bool ret = Bindings.ChannelDetailsGetIsUsable(this.ptr); GC.KeepAlive(this); return ret; } @@ -726,7 +726,7 @@ public bool get_is_usable() { * This is a strict superset of `is_channel_ready`. */ public void set_is_usable(bool val) { - bindings.ChannelDetails_set_is_usable(this.ptr, val); + Bindings.ChannelDetailsSetIsUsable(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -735,7 +735,7 @@ public void set_is_usable(bool val) { * True if this channel is (or will be) publicly-announced. */ public bool get_is_public() { - bool ret = bindings.ChannelDetails_get_is_public(this.ptr); + bool ret = Bindings.ChannelDetailsGetIsPublic(this.ptr); GC.KeepAlive(this); return ret; } @@ -744,7 +744,7 @@ public bool get_is_public() { * True if this channel is (or will be) publicly-announced. */ public void set_is_public(bool val) { - bindings.ChannelDetails_set_is_public(this.ptr, val); + Bindings.ChannelDetailsSetIsPublic(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -754,7 +754,7 @@ public void set_is_public(bool val) { * is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.107 */ public Option_u64Z get_inbound_htlc_minimum_msat() { - long ret = bindings.ChannelDetails_get_inbound_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetInboundHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -767,7 +767,7 @@ public Option_u64Z get_inbound_htlc_minimum_msat() { * is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.107 */ public void set_inbound_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_inbound_htlc_minimum_msat(this.ptr, val.ptr); + Bindings.ChannelDetailsSetInboundHtlcMinimumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -777,7 +777,7 @@ public void set_inbound_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { * The largest value HTLC (in msat) we currently will accept, for this channel. */ public Option_u64Z get_inbound_htlc_maximum_msat() { - long ret = bindings.ChannelDetails_get_inbound_htlc_maximum_msat(this.ptr); + long ret = Bindings.ChannelDetailsGetInboundHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -789,7 +789,7 @@ public Option_u64Z get_inbound_htlc_maximum_msat() { * The largest value HTLC (in msat) we currently will accept, for this channel. */ public void set_inbound_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { - bindings.ChannelDetails_set_inbound_htlc_maximum_msat(this.ptr, val.ptr); + Bindings.ChannelDetailsSetInboundHtlcMaximumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -803,7 +803,7 @@ public void set_inbound_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelConfig get_config() { - long ret = bindings.ChannelDetails_get_config(this.ptr); + long ret = Bindings.ChannelDetailsGetConfig(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelConfig(null, ret); } @@ -819,7 +819,7 @@ public ChannelConfig get_config() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_config(org.ldk.structs.ChannelConfig val) { - bindings.ChannelDetails_set_config(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelDetailsSetConfig(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -833,7 +833,7 @@ public void set_config(org.ldk.structs.ChannelConfig val) { * Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static ChannelDetails of(byte[] channel_id_arg, org.ldk.structs.ChannelCounterparty counterparty_arg, org.ldk.structs.OutPoint funding_txo_arg, org.ldk.structs.ChannelTypeFeatures channel_type_arg, org.ldk.structs.Option_u64Z short_channel_id_arg, org.ldk.structs.Option_u64Z outbound_scid_alias_arg, org.ldk.structs.Option_u64Z inbound_scid_alias_arg, long channel_value_satoshis_arg, org.ldk.structs.Option_u64Z unspendable_punishment_reserve_arg, org.ldk.util.UInt128 user_channel_id_arg, org.ldk.structs.Option_u32Z feerate_sat_per_1000_weight_arg, long balance_msat_arg, long outbound_capacity_msat_arg, long next_outbound_htlc_limit_msat_arg, long next_outbound_htlc_minimum_msat_arg, long inbound_capacity_msat_arg, org.ldk.structs.Option_u32Z confirmations_required_arg, org.ldk.structs.Option_u32Z confirmations_arg, org.ldk.structs.Option_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, org.ldk.structs.Option_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, org.ldk.structs.Option_u64Z inbound_htlc_minimum_msat_arg, org.ldk.structs.Option_u64Z inbound_htlc_maximum_msat_arg, org.ldk.structs.ChannelConfig config_arg) { - long ret = bindings.ChannelDetails_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), counterparty_arg == null ? 0 : counterparty_arg.ptr, funding_txo_arg == null ? 0 : funding_txo_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, short_channel_id_arg.ptr, outbound_scid_alias_arg.ptr, inbound_scid_alias_arg.ptr, channel_value_satoshis_arg, unspendable_punishment_reserve_arg.ptr, InternalUtils.encodeUint8Array(user_channel_id_arg.getLEBytes()), feerate_sat_per_1000_weight_arg.ptr, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, next_outbound_htlc_minimum_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg.ptr, confirmations_arg.ptr, force_close_spend_delay_arg.ptr, is_outbound_arg, is_channel_ready_arg, channel_shutdown_state_arg.ptr, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg.ptr, inbound_htlc_maximum_msat_arg.ptr, config_arg == null ? 0 : config_arg.ptr); + long ret = Bindings.ChannelDetailsNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), counterparty_arg == null ? 0 : counterparty_arg.ptr, funding_txo_arg == null ? 0 : funding_txo_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, short_channel_id_arg.ptr, outbound_scid_alias_arg.ptr, inbound_scid_alias_arg.ptr, channel_value_satoshis_arg, unspendable_punishment_reserve_arg.ptr, InternalUtils.EncodeUint8Array(user_channel_id_arg.getLEBytes()), feerate_sat_per_1000_weight_arg.ptr, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, next_outbound_htlc_minimum_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg.ptr, confirmations_arg.ptr, force_close_spend_delay_arg.ptr, is_outbound_arg, is_channel_ready_arg, channel_shutdown_state_arg.ptr, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg.ptr, inbound_htlc_maximum_msat_arg.ptr, config_arg == null ? 0 : config_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(counterparty_arg); GC.KeepAlive(funding_txo_arg); @@ -883,7 +883,7 @@ public static ChannelDetails of(byte[] channel_id_arg, org.ldk.structs.ChannelCo } internal long clone_ptr() { - long ret = bindings.ChannelDetails_clone_ptr(this.ptr); + long ret = Bindings.ChannelDetailsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -892,7 +892,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelDetails */ public ChannelDetails clone() { - long ret = bindings.ChannelDetails_clone(this.ptr); + long ret = Bindings.ChannelDetailsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelDetails ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelDetails(null, ret); } @@ -909,7 +909,7 @@ public ChannelDetails clone() { * [`ChannelDetails::short_channel_id`]. See those for more information. */ public Option_u64Z get_inbound_payment_scid() { - long ret = bindings.ChannelDetails_get_inbound_payment_scid(this.ptr); + long ret = Bindings.ChannelDetailsGetInboundPaymentScid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -926,7 +926,7 @@ public Option_u64Z get_inbound_payment_scid() { * [`ChannelDetails::outbound_scid_alias`]. See those for more information. */ public Option_u64Z get_outbound_payment_scid() { - long ret = bindings.ChannelDetails_get_outbound_payment_scid(this.ptr); + long ret = Bindings.ChannelDetailsGetOutboundPaymentScid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -938,10 +938,10 @@ public Option_u64Z get_outbound_payment_scid() { * Serialize the ChannelDetails object into a byte array which can be read by ChannelDetails_read */ public byte[] write() { - long ret = bindings.ChannelDetails_write(this.ptr); + long ret = Bindings.ChannelDetailsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -949,7 +949,7 @@ public byte[] write() { * Read a ChannelDetails from a byte array, created by ChannelDetails_write */ public static Result_ChannelDetailsDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelDetails_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelDetailsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDetailsDecodeErrorZ ret_hu_conv = Result_ChannelDetailsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelFeatures.cs b/c_sharp/src/org/ldk/structs/ChannelFeatures.cs index d6e08e340..959a49860 100644 --- a/c_sharp/src/org/ldk/structs/ChannelFeatures.cs +++ b/c_sharp/src/org/ldk/structs/ChannelFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelFeatures : CommonBase { internal ChannelFeatures(object _dummy, long ptr) : base(ptr) { } ~ChannelFeatures() { - if (ptr != 0) { bindings.ChannelFeatures_free(ptr); } + if (ptr != 0) { Bindings.ChannelFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal ChannelFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelFeatures b) { - bool ret = bindings.ChannelFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((ChannelFeatures)o); } internal long clone_ptr() { - long ret = bindings.ChannelFeatures_clone_ptr(this.ptr); + long ret = Bindings.ChannelFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelFeatures */ public ChannelFeatures clone() { - long ret = bindings.ChannelFeatures_clone(this.ptr); + long ret = Bindings.ChannelFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } @@ -54,7 +54,7 @@ public ChannelFeatures clone() { * Generates a non-cryptographic 64-bit hash of the ChannelFeatures. */ public long hash() { - long ret = bindings.ChannelFeatures_hash(this.ptr); + long ret = Bindings.ChannelFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static ChannelFeatures empty() { - long ret = bindings.ChannelFeatures_empty(); + long ret = Bindings.ChannelFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static ChannelFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.ChannelFeatures other) { - bool ret = bindings.ChannelFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.ChannelFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.ChannelFeatures other) { * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.ChannelFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.ChannelFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.ChannelFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.ChannelFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.ChannelFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.ChannelFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.ChannelFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.ChannelFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.ChannelFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.ChannelFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the ChannelFeatures object into a byte array which can be read by ChannelFeatures_read */ public byte[] write() { - long ret = bindings.ChannelFeatures_write(this.ptr); + long ret = Bindings.ChannelFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a ChannelFeatures from a byte array, created by ChannelFeatures_write */ public static Result_ChannelFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelHandshakeConfig.cs b/c_sharp/src/org/ldk/structs/ChannelHandshakeConfig.cs index dc7f352f8..c067356c2 100644 --- a/c_sharp/src/org/ldk/structs/ChannelHandshakeConfig.cs +++ b/c_sharp/src/org/ldk/structs/ChannelHandshakeConfig.cs @@ -14,7 +14,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelHandshakeConfig : CommonBase { internal ChannelHandshakeConfig(object _dummy, long ptr) : base(ptr) { } ~ChannelHandshakeConfig() { - if (ptr != 0) { bindings.ChannelHandshakeConfig_free(ptr); } + if (ptr != 0) { Bindings.ChannelHandshakeConfigFree(ptr); } } /** @@ -33,7 +33,7 @@ internal ChannelHandshakeConfig(object _dummy, long ptr) : base(ptr) { } * [`ChannelManager::accept_inbound_channel_from_trusted_peer_0conf`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel_from_trusted_peer_0conf */ public int get_minimum_depth() { - int ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr); + int ret = Bindings.ChannelHandshakeConfigGetMinimumDepth(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public int get_minimum_depth() { * [`ChannelManager::accept_inbound_channel_from_trusted_peer_0conf`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel_from_trusted_peer_0conf */ public void set_minimum_depth(int val) { - bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val); + Bindings.ChannelHandshakeConfigSetMinimumDepth(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,7 +77,7 @@ public void set_minimum_depth(int val) { * can tweak config to ask for more security, not less. */ public short get_our_to_self_delay() { - short ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr); + short ret = Bindings.ChannelHandshakeConfigGetOurToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ public short get_our_to_self_delay() { * can tweak config to ask for more security, not less. */ public void set_our_to_self_delay(short val) { - bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val); + Bindings.ChannelHandshakeConfigSetOurToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,7 +115,7 @@ public void set_our_to_self_delay(short val) { * by the protocol. */ public long get_our_htlc_minimum_msat() { - long ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelHandshakeConfigGetOurHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -130,7 +130,7 @@ public long get_our_htlc_minimum_msat() { * by the protocol. */ public void set_our_htlc_minimum_msat(long val) { - bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val); + Bindings.ChannelHandshakeConfigSetOurHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -161,7 +161,7 @@ public void set_our_htlc_minimum_msat(long val) { * Maximum value: 100, any values larger than 100 will be treated as 100 instead. */ public byte get_max_inbound_htlc_value_in_flight_percent_of_channel() { - byte ret = bindings.ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this.ptr); + byte ret = Bindings.ChannelHandshakeConfigGetMaxInboundHtlcValueInFlightPercentOfChannel(this.ptr); GC.KeepAlive(this); return ret; } @@ -192,7 +192,7 @@ public byte get_max_inbound_htlc_value_in_flight_percent_of_channel() { * Maximum value: 100, any values larger than 100 will be treated as 100 instead. */ public void set_max_inbound_htlc_value_in_flight_percent_of_channel(byte val) { - bindings.ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this.ptr, val); + Bindings.ChannelHandshakeConfigSetMaxInboundHtlcValueInFlightPercentOfChannel(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -221,7 +221,7 @@ public void set_max_inbound_htlc_value_in_flight_percent_of_channel(byte val) { * [`DecodeError::InvalidValue`]: crate::ln::msgs::DecodeError::InvalidValue */ public bool get_negotiate_scid_privacy() { - bool ret = bindings.ChannelHandshakeConfig_get_negotiate_scid_privacy(this.ptr); + bool ret = Bindings.ChannelHandshakeConfigGetNegotiateScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -250,7 +250,7 @@ public bool get_negotiate_scid_privacy() { * [`DecodeError::InvalidValue`]: crate::ln::msgs::DecodeError::InvalidValue */ public void set_negotiate_scid_privacy(bool val) { - bindings.ChannelHandshakeConfig_set_negotiate_scid_privacy(this.ptr, val); + Bindings.ChannelHandshakeConfigSetNegotiateScidPrivacy(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -267,7 +267,7 @@ public void set_negotiate_scid_privacy(bool val) { * Default value: false. */ public bool get_announced_channel() { - bool ret = bindings.ChannelHandshakeConfig_get_announced_channel(this.ptr); + bool ret = Bindings.ChannelHandshakeConfigGetAnnouncedChannel(this.ptr); GC.KeepAlive(this); return ret; } @@ -284,7 +284,7 @@ public bool get_announced_channel() { * Default value: false. */ public void set_announced_channel(bool val) { - bindings.ChannelHandshakeConfig_set_announced_channel(this.ptr, val); + Bindings.ChannelHandshakeConfigSetAnnouncedChannel(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -305,7 +305,7 @@ public void set_announced_channel(bool val) { * [`SignerProvider::get_shutdown_scriptpubkey`]: crate::sign::SignerProvider::get_shutdown_scriptpubkey */ public bool get_commit_upfront_shutdown_pubkey() { - bool ret = bindings.ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this.ptr); + bool ret = Bindings.ChannelHandshakeConfigGetCommitUpfrontShutdownPubkey(this.ptr); GC.KeepAlive(this); return ret; } @@ -326,7 +326,7 @@ public bool get_commit_upfront_shutdown_pubkey() { * [`SignerProvider::get_shutdown_scriptpubkey`]: crate::sign::SignerProvider::get_shutdown_scriptpubkey */ public void set_commit_upfront_shutdown_pubkey(bool val) { - bindings.ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this.ptr, val); + Bindings.ChannelHandshakeConfigSetCommitUpfrontShutdownPubkey(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -356,7 +356,7 @@ public void set_commit_upfront_shutdown_pubkey(bool val) { * instead, although channel negotiations will fail in that case. */ public int get_their_channel_reserve_proportional_millionths() { - int ret = bindings.ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this.ptr); + int ret = Bindings.ChannelHandshakeConfigGetTheirChannelReserveProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -386,7 +386,7 @@ public int get_their_channel_reserve_proportional_millionths() { * instead, although channel negotiations will fail in that case. */ public void set_their_channel_reserve_proportional_millionths(int val) { - bindings.ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this.ptr, val); + Bindings.ChannelHandshakeConfigSetTheirChannelReserveProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -422,7 +422,7 @@ public void set_their_channel_reserve_proportional_millionths(int val) { * [`SIGHASH_SINGLE + update_fee Considered Harmful`]: https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-September/002796.html */ public bool get_negotiate_anchors_zero_fee_htlc_tx() { - bool ret = bindings.ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.ChannelHandshakeConfigGetNegotiateAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -458,7 +458,7 @@ public bool get_negotiate_anchors_zero_fee_htlc_tx() { * [`SIGHASH_SINGLE + update_fee Considered Harmful`]: https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-September/002796.html */ public void set_negotiate_anchors_zero_fee_htlc_tx(bool val) { - bindings.ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(this.ptr, val); + Bindings.ChannelHandshakeConfigSetNegotiateAnchorsZeroFeeHtlcTx(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -477,7 +477,7 @@ public void set_negotiate_anchors_zero_fee_htlc_tx(bool val) { * This is the BOLT #2 spec limit on `max_accepted_htlcs`. */ public short get_our_max_accepted_htlcs() { - short ret = bindings.ChannelHandshakeConfig_get_our_max_accepted_htlcs(this.ptr); + short ret = Bindings.ChannelHandshakeConfigGetOurMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -496,7 +496,7 @@ public short get_our_max_accepted_htlcs() { * This is the BOLT #2 spec limit on `max_accepted_htlcs`. */ public void set_our_max_accepted_htlcs(short val) { - bindings.ChannelHandshakeConfig_set_our_max_accepted_htlcs(this.ptr, val); + Bindings.ChannelHandshakeConfigSetOurMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -505,7 +505,7 @@ public void set_our_max_accepted_htlcs(short val) { * Constructs a new ChannelHandshakeConfig given each field */ public static ChannelHandshakeConfig of(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg, byte max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, int their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, short our_max_accepted_htlcs_arg) { - long ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, their_channel_reserve_proportional_millionths_arg, negotiate_anchors_zero_fee_htlc_tx_arg, our_max_accepted_htlcs_arg); + long ret = Bindings.ChannelHandshakeConfigNew(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, their_channel_reserve_proportional_millionths_arg, negotiate_anchors_zero_fee_htlc_tx_arg, our_max_accepted_htlcs_arg); GC.KeepAlive(minimum_depth_arg); GC.KeepAlive(our_to_self_delay_arg); GC.KeepAlive(our_htlc_minimum_msat_arg); @@ -523,7 +523,7 @@ public static ChannelHandshakeConfig of(int minimum_depth_arg, short our_to_self } internal long clone_ptr() { - long ret = bindings.ChannelHandshakeConfig_clone_ptr(this.ptr); + long ret = Bindings.ChannelHandshakeConfigClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -532,7 +532,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelHandshakeConfig */ public ChannelHandshakeConfig clone() { - long ret = bindings.ChannelHandshakeConfig_clone(this.ptr); + long ret = Bindings.ChannelHandshakeConfigClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeConfig(null, ret); } @@ -544,7 +544,7 @@ public ChannelHandshakeConfig clone() { * Creates a "default" ChannelHandshakeConfig. See struct and individual field documentaiton for details on which values are used. */ public static ChannelHandshakeConfig with_default() { - long ret = bindings.ChannelHandshakeConfig_default(); + long ret = Bindings.ChannelHandshakeConfigDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeConfig(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/ChannelHandshakeLimits.cs b/c_sharp/src/org/ldk/structs/ChannelHandshakeLimits.cs index 89360fbaa..84da62408 100644 --- a/c_sharp/src/org/ldk/structs/ChannelHandshakeLimits.cs +++ b/c_sharp/src/org/ldk/structs/ChannelHandshakeLimits.cs @@ -22,7 +22,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelHandshakeLimits : CommonBase { internal ChannelHandshakeLimits(object _dummy, long ptr) : base(ptr) { } ~ChannelHandshakeLimits() { - if (ptr != 0) { bindings.ChannelHandshakeLimits_free(ptr); } + if (ptr != 0) { Bindings.ChannelHandshakeLimitsFree(ptr); } } /** @@ -32,7 +32,7 @@ internal ChannelHandshakeLimits(object _dummy, long ptr) : base(ptr) { } * Default value: 0. */ public long get_min_funding_satoshis() { - long ret = bindings.ChannelHandshakeLimits_get_min_funding_satoshis(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsGetMinFundingSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -44,7 +44,7 @@ public long get_min_funding_satoshis() { * Default value: 0. */ public void set_min_funding_satoshis(long val) { - bindings.ChannelHandshakeLimits_set_min_funding_satoshis(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMinFundingSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -56,7 +56,7 @@ public void set_min_funding_satoshis(long val) { * Default value: 2^24 - 1. */ public long get_max_funding_satoshis() { - long ret = bindings.ChannelHandshakeLimits_get_max_funding_satoshis(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsGetMaxFundingSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public long get_max_funding_satoshis() { * Default value: 2^24 - 1. */ public void set_max_funding_satoshis(long val) { - bindings.ChannelHandshakeLimits_set_max_funding_satoshis(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMaxFundingSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -80,7 +80,7 @@ public void set_max_funding_satoshis(long val) { * Default value: u64::max_value. */ public long get_max_htlc_minimum_msat() { - long ret = bindings.ChannelHandshakeLimits_get_max_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsGetMaxHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,7 +92,7 @@ public long get_max_htlc_minimum_msat() { * Default value: u64::max_value. */ public void set_max_htlc_minimum_msat(long val) { - bindings.ChannelHandshakeLimits_set_max_htlc_minimum_msat(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMaxHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -104,7 +104,7 @@ public void set_max_htlc_minimum_msat(long val) { * Default value: 0. */ public long get_min_max_htlc_value_in_flight_msat() { - long ret = bindings.ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsGetMinMaxHtlcValueInFlightMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -116,7 +116,7 @@ public long get_min_max_htlc_value_in_flight_msat() { * Default value: 0. */ public void set_min_max_htlc_value_in_flight_msat(long val) { - bindings.ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMinMaxHtlcValueInFlightMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -129,7 +129,7 @@ public void set_min_max_htlc_value_in_flight_msat(long val) { * Default value: u64::max_value. */ public long get_max_channel_reserve_satoshis() { - long ret = bindings.ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsGetMaxChannelReserveSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -142,7 +142,7 @@ public long get_max_channel_reserve_satoshis() { * Default value: u64::max_value. */ public void set_max_channel_reserve_satoshis(long val) { - bindings.ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMaxChannelReserveSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -154,7 +154,7 @@ public void set_max_channel_reserve_satoshis(long val) { * Default value: 0. */ public short get_min_max_accepted_htlcs() { - short ret = bindings.ChannelHandshakeLimits_get_min_max_accepted_htlcs(this.ptr); + short ret = Bindings.ChannelHandshakeLimitsGetMinMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -166,7 +166,7 @@ public short get_min_max_accepted_htlcs() { * Default value: 0. */ public void set_min_max_accepted_htlcs(short val) { - bindings.ChannelHandshakeLimits_set_min_max_accepted_htlcs(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMinMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -180,7 +180,7 @@ public void set_min_max_accepted_htlcs(short val) { * Default value: 144, or roughly one day and only applies to outbound channels. */ public int get_max_minimum_depth() { - int ret = bindings.ChannelHandshakeLimits_get_max_minimum_depth(this.ptr); + int ret = Bindings.ChannelHandshakeLimitsGetMaxMinimumDepth(this.ptr); GC.KeepAlive(this); return ret; } @@ -194,7 +194,7 @@ public int get_max_minimum_depth() { * Default value: 144, or roughly one day and only applies to outbound channels. */ public void set_max_minimum_depth(int val) { - bindings.ChannelHandshakeLimits_set_max_minimum_depth(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetMaxMinimumDepth(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -219,7 +219,7 @@ public void set_max_minimum_depth(int val) { * Default value: true */ public bool get_trust_own_funding_0conf() { - bool ret = bindings.ChannelHandshakeLimits_get_trust_own_funding_0conf(this.ptr); + bool ret = Bindings.ChannelHandshakeLimitsGetTrustOwnFunding0Conf(this.ptr); GC.KeepAlive(this); return ret; } @@ -244,7 +244,7 @@ public bool get_trust_own_funding_0conf() { * Default value: true */ public void set_trust_own_funding_0conf(bool val) { - bindings.ChannelHandshakeLimits_set_trust_own_funding_0conf(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetTrustOwnFunding0Conf(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -260,7 +260,7 @@ public void set_trust_own_funding_0conf(bool val) { * Default value: true. */ public bool get_force_announced_channel_preference() { - bool ret = bindings.ChannelHandshakeLimits_get_force_announced_channel_preference(this.ptr); + bool ret = Bindings.ChannelHandshakeLimitsGetForceAnnouncedChannelPreference(this.ptr); GC.KeepAlive(this); return ret; } @@ -276,7 +276,7 @@ public bool get_force_announced_channel_preference() { * Default value: true. */ public void set_force_announced_channel_preference(bool val) { - bindings.ChannelHandshakeLimits_set_force_announced_channel_preference(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetForceAnnouncedChannelPreference(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -291,7 +291,7 @@ public void set_force_announced_channel_preference(bool val) { * reduce the loss of having useless locked funds (if your peer accepts) */ public short get_their_to_self_delay() { - short ret = bindings.ChannelHandshakeLimits_get_their_to_self_delay(this.ptr); + short ret = Bindings.ChannelHandshakeLimitsGetTheirToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -306,7 +306,7 @@ public short get_their_to_self_delay() { * reduce the loss of having useless locked funds (if your peer accepts) */ public void set_their_to_self_delay(short val) { - bindings.ChannelHandshakeLimits_set_their_to_self_delay(this.ptr, val); + Bindings.ChannelHandshakeLimitsSetTheirToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -315,7 +315,7 @@ public void set_their_to_self_delay(short val) { * Constructs a new ChannelHandshakeLimits given each field */ public static ChannelHandshakeLimits of(long min_funding_satoshis_arg, long max_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, int max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, short their_to_self_delay_arg) { - long ret = bindings.ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, max_minimum_depth_arg, trust_own_funding_0conf_arg, force_announced_channel_preference_arg, their_to_self_delay_arg); + long ret = Bindings.ChannelHandshakeLimitsNew(min_funding_satoshis_arg, max_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, max_minimum_depth_arg, trust_own_funding_0conf_arg, force_announced_channel_preference_arg, their_to_self_delay_arg); GC.KeepAlive(min_funding_satoshis_arg); GC.KeepAlive(max_funding_satoshis_arg); GC.KeepAlive(max_htlc_minimum_msat_arg); @@ -333,7 +333,7 @@ public static ChannelHandshakeLimits of(long min_funding_satoshis_arg, long max_ } internal long clone_ptr() { - long ret = bindings.ChannelHandshakeLimits_clone_ptr(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -342,7 +342,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelHandshakeLimits */ public ChannelHandshakeLimits clone() { - long ret = bindings.ChannelHandshakeLimits_clone(this.ptr); + long ret = Bindings.ChannelHandshakeLimitsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeLimits ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeLimits(null, ret); } @@ -354,7 +354,7 @@ public ChannelHandshakeLimits clone() { * Creates a "default" ChannelHandshakeLimits. See struct and individual field documentaiton for details on which values are used. */ public static ChannelHandshakeLimits with_default() { - long ret = bindings.ChannelHandshakeLimits_default(); + long ret = Bindings.ChannelHandshakeLimitsDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeLimits ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeLimits(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/ChannelInfo.cs b/c_sharp/src/org/ldk/structs/ChannelInfo.cs index 8a0d79a69..1530889f8 100644 --- a/c_sharp/src/org/ldk/structs/ChannelInfo.cs +++ b/c_sharp/src/org/ldk/structs/ChannelInfo.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class ChannelInfo : CommonBase { internal ChannelInfo(object _dummy, long ptr) : base(ptr) { } ~ChannelInfo() { - if (ptr != 0) { bindings.ChannelInfo_free(ptr); } + if (ptr != 0) { Bindings.ChannelInfoFree(ptr); } } /** * Protocol features of a channel communicated during its announcement */ public ChannelFeatures get_features() { - long ret = bindings.ChannelInfo_get_features(this.ptr); + long ret = Bindings.ChannelInfoGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } @@ -32,7 +32,7 @@ public ChannelFeatures get_features() { * Protocol features of a channel communicated during its announcement */ public void set_features(org.ldk.structs.ChannelFeatures val) { - bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -42,7 +42,7 @@ public void set_features(org.ldk.structs.ChannelFeatures val) { * Source node of the first direction of a channel */ public NodeId get_node_one() { - long ret = bindings.ChannelInfo_get_node_one(this.ptr); + long ret = Bindings.ChannelInfoGetNodeOne(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -54,7 +54,7 @@ public NodeId get_node_one() { * Source node of the first direction of a channel */ public void set_node_one(org.ldk.structs.NodeId val) { - bindings.ChannelInfo_set_node_one(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetNodeOne(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -66,7 +66,7 @@ public void set_node_one(org.ldk.structs.NodeId val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelUpdateInfo get_one_to_two() { - long ret = bindings.ChannelInfo_get_one_to_two(this.ptr); + long ret = Bindings.ChannelInfoGetOneToTwo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdateInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdateInfo(null, ret); } @@ -80,7 +80,7 @@ public ChannelUpdateInfo get_one_to_two() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_one_to_two(org.ldk.structs.ChannelUpdateInfo val) { - bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetOneToTwo(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -90,7 +90,7 @@ public void set_one_to_two(org.ldk.structs.ChannelUpdateInfo val) { * Source node of the second direction of a channel */ public NodeId get_node_two() { - long ret = bindings.ChannelInfo_get_node_two(this.ptr); + long ret = Bindings.ChannelInfoGetNodeTwo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -102,7 +102,7 @@ public NodeId get_node_two() { * Source node of the second direction of a channel */ public void set_node_two(org.ldk.structs.NodeId val) { - bindings.ChannelInfo_set_node_two(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetNodeTwo(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -114,7 +114,7 @@ public void set_node_two(org.ldk.structs.NodeId val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelUpdateInfo get_two_to_one() { - long ret = bindings.ChannelInfo_get_two_to_one(this.ptr); + long ret = Bindings.ChannelInfoGetTwoToOne(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdateInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdateInfo(null, ret); } @@ -128,7 +128,7 @@ public ChannelUpdateInfo get_two_to_one() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_two_to_one(org.ldk.structs.ChannelUpdateInfo val) { - bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetTwoToOne(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -138,7 +138,7 @@ public void set_two_to_one(org.ldk.structs.ChannelUpdateInfo val) { * The channel capacity as seen on-chain, if chain lookup is available. */ public Option_u64Z get_capacity_sats() { - long ret = bindings.ChannelInfo_get_capacity_sats(this.ptr); + long ret = Bindings.ChannelInfoGetCapacitySats(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -150,7 +150,7 @@ public Option_u64Z get_capacity_sats() { * The channel capacity as seen on-chain, if chain lookup is available. */ public void set_capacity_sats(org.ldk.structs.Option_u64Z val) { - bindings.ChannelInfo_set_capacity_sats(this.ptr, val.ptr); + Bindings.ChannelInfoSetCapacitySats(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -165,7 +165,7 @@ public void set_capacity_sats(org.ldk.structs.Option_u64Z val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelAnnouncement get_announcement_message() { - long ret = bindings.ChannelInfo_get_announcement_message(this.ptr); + long ret = Bindings.ChannelInfoGetAnnouncementMessage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, ret); } @@ -182,14 +182,14 @@ public ChannelAnnouncement get_announcement_message() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_announcement_message(org.ldk.structs.ChannelAnnouncement val) { - bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelInfoSetAnnouncementMessage(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } internal long clone_ptr() { - long ret = bindings.ChannelInfo_clone_ptr(this.ptr); + long ret = Bindings.ChannelInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -198,7 +198,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelInfo */ public ChannelInfo clone() { - long ret = bindings.ChannelInfo_clone(this.ptr); + long ret = Bindings.ChannelInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelInfo(null, ret); } @@ -212,7 +212,7 @@ public ChannelInfo clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelInfo b) { - bool ret = bindings.ChannelInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelInfoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -229,7 +229,7 @@ public override bool Equals(object o) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelUpdateInfo get_directional_info(byte channel_flags) { - long ret = bindings.ChannelInfo_get_directional_info(this.ptr, channel_flags); + long ret = Bindings.ChannelInfoGetDirectionalInfo(this.ptr, channel_flags); GC.KeepAlive(this); GC.KeepAlive(channel_flags); if (ret >= 0 && ret <= 4096) { return null; } @@ -242,10 +242,10 @@ public ChannelUpdateInfo get_directional_info(byte channel_flags) { * Serialize the ChannelInfo object into a byte array which can be read by ChannelInfo_read */ public byte[] write() { - long ret = bindings.ChannelInfo_write(this.ptr); + long ret = Bindings.ChannelInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -253,7 +253,7 @@ public byte[] write() { * Read a ChannelInfo from a byte array, created by ChannelInfo_write */ public static Result_ChannelInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelManager.cs b/c_sharp/src/org/ldk/structs/ChannelManager.cs index 567fbd56b..b5d0df7cc 100644 --- a/c_sharp/src/org/ldk/structs/ChannelManager.cs +++ b/c_sharp/src/org/ldk/structs/ChannelManager.cs @@ -65,7 +65,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelManager : CommonBase { internal ChannelManager(object _dummy, long ptr) : base(ptr) { } ~ChannelManager() { - if (ptr != 0) { bindings.ChannelManager_free(ptr); } + if (ptr != 0) { Bindings.ChannelManagerFree(ptr); } } /** @@ -88,7 +88,7 @@ internal ChannelManager(object _dummy, long ptr) : base(ptr) { } * [`params.best_block.block_hash`]: chain::BestBlock::block_hash */ public static ChannelManager of(org.ldk.structs.FeeEstimator fee_est, org.ldk.structs.Watch chain_monitor, org.ldk.structs.BroadcasterInterface tx_broadcaster, org.ldk.structs.Router router, org.ldk.structs.Logger logger, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.SignerProvider signer_provider, org.ldk.structs.UserConfig config, org.ldk.structs.ChainParameters _params, int current_timestamp) { - long ret = bindings.ChannelManager_new(fee_est.ptr, chain_monitor.ptr, tx_broadcaster.ptr, router.ptr, logger.ptr, entropy_source.ptr, node_signer.ptr, signer_provider.ptr, config == null ? 0 : config.ptr, _params == null ? 0 : _params.ptr, current_timestamp); + long ret = Bindings.ChannelManagerNew(fee_est.ptr, chain_monitor.ptr, tx_broadcaster.ptr, router.ptr, logger.ptr, entropy_source.ptr, node_signer.ptr, signer_provider.ptr, config == null ? 0 : config.ptr, _params == null ? 0 : _params.ptr, current_timestamp); GC.KeepAlive(fee_est); GC.KeepAlive(chain_monitor); GC.KeepAlive(tx_broadcaster); @@ -120,7 +120,7 @@ public static ChannelManager of(org.ldk.structs.FeeEstimator fee_est, org.ldk.st * Gets the current configuration applied to all new channels. */ public UserConfig get_current_default_configuration() { - long ret = bindings.ChannelManager_get_current_default_configuration(this.ptr); + long ret = Bindings.ChannelManagerGetCurrentDefaultConfiguration(this.ptr); GC.KeepAlive(this); 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); } @@ -165,7 +165,7 @@ public UserConfig get_current_default_configuration() { * Note that override_config (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Result_ThirtyTwoBytesAPIErrorZ create_channel(byte[] their_network_key, long channel_value_satoshis, long push_msat, org.ldk.util.UInt128 user_channel_id, org.ldk.structs.Option_ThirtyTwoBytesZ temporary_channel_id, org.ldk.structs.UserConfig override_config) { - long ret = bindings.ChannelManager_create_channel(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_network_key, 33)), channel_value_satoshis, push_msat, InternalUtils.encodeUint8Array(user_channel_id.getLEBytes()), temporary_channel_id.ptr, override_config == null ? 0 : override_config.ptr); + long ret = Bindings.ChannelManagerCreateChannel(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_network_key, 33)), channel_value_satoshis, push_msat, InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes()), temporary_channel_id.ptr, override_config == null ? 0 : override_config.ptr); GC.KeepAlive(this); GC.KeepAlive(their_network_key); GC.KeepAlive(channel_value_satoshis); @@ -185,18 +185,18 @@ public Result_ThirtyTwoBytesAPIErrorZ create_channel(byte[] their_network_key, l * more information. */ public ChannelDetails[] list_channels() { - long ret = bindings.ChannelManager_list_channels(this.ptr); + long ret = Bindings.ChannelManagerListChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_16_len = InternalUtils.getArrayLength(ret); + int ret_conv_16_len = InternalUtils.GetArrayLength(ret); ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len]; for (int q = 0; q < ret_conv_16_len; q++) { - long ret_conv_16 = InternalUtils.getU64ArrayElem(ret, q); + long ret_conv_16 = InternalUtils.GetU64ArrayElem(ret, q); org.ldk.structs.ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, ret_conv_16); } if (ret_conv_16_hu_conv != null) { ret_conv_16_hu_conv.ptrs_to.AddLast(this); }; ret_conv_16_arr[q] = ret_conv_16_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_16_arr; } @@ -209,18 +209,18 @@ public ChannelDetails[] list_channels() { * are. */ public ChannelDetails[] list_usable_channels() { - long ret = bindings.ChannelManager_list_usable_channels(this.ptr); + long ret = Bindings.ChannelManagerListUsableChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_16_len = InternalUtils.getArrayLength(ret); + int ret_conv_16_len = InternalUtils.GetArrayLength(ret); ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len]; for (int q = 0; q < ret_conv_16_len; q++) { - long ret_conv_16 = InternalUtils.getU64ArrayElem(ret, q); + long ret_conv_16 = InternalUtils.GetU64ArrayElem(ret, q); org.ldk.structs.ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, ret_conv_16); } if (ret_conv_16_hu_conv != null) { ret_conv_16_hu_conv.ptrs_to.AddLast(this); }; ret_conv_16_arr[q] = ret_conv_16_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_16_arr; } @@ -228,19 +228,19 @@ public ChannelDetails[] list_usable_channels() { * Gets the list of channels we have with a given counterparty, in random order. */ public ChannelDetails[] list_channels_with_counterparty(byte[] counterparty_node_id) { - long ret = bindings.ChannelManager_list_channels_with_counterparty(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33))); + long ret = Bindings.ChannelManagerListChannelsWithCounterparty(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(counterparty_node_id); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_16_len = InternalUtils.getArrayLength(ret); + int ret_conv_16_len = InternalUtils.GetArrayLength(ret); ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len]; for (int q = 0; q < ret_conv_16_len; q++) { - long ret_conv_16 = InternalUtils.getU64ArrayElem(ret, q); + long ret_conv_16 = InternalUtils.GetU64ArrayElem(ret, q); org.ldk.structs.ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, ret_conv_16); } if (ret_conv_16_hu_conv != null) { ret_conv_16_hu_conv.ptrs_to.AddLast(this); }; ret_conv_16_arr[q] = ret_conv_16_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_16_arr; } @@ -255,18 +255,18 @@ public ChannelDetails[] list_channels_with_counterparty(byte[] counterparty_node * [`Event::PaymentSent`]: events::Event::PaymentSent */ public RecentPaymentDetails[] list_recent_payments() { - long ret = bindings.ChannelManager_list_recent_payments(this.ptr); + long ret = Bindings.ChannelManagerListRecentPayments(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_22_len = InternalUtils.getArrayLength(ret); + int ret_conv_22_len = InternalUtils.GetArrayLength(ret); RecentPaymentDetails[] ret_conv_22_arr = new RecentPaymentDetails[ret_conv_22_len]; for (int w = 0; w < ret_conv_22_len; w++) { - long ret_conv_22 = InternalUtils.getU64ArrayElem(ret, w); + long ret_conv_22 = InternalUtils.GetU64ArrayElem(ret, w); org.ldk.structs.RecentPaymentDetails ret_conv_22_hu_conv = org.ldk.structs.RecentPaymentDetails.constr_from_ptr(ret_conv_22); if (ret_conv_22_hu_conv != null) { ret_conv_22_hu_conv.ptrs_to.AddLast(this); }; ret_conv_22_arr[w] = ret_conv_22_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_22_arr; } @@ -296,7 +296,7 @@ public RecentPaymentDetails[] list_recent_payments() { * [`SendShutdown`]: crate::events::MessageSendEvent::SendShutdown */ public Result_NoneAPIErrorZ close_channel(byte[] channel_id, byte[] counterparty_node_id) { - long ret = bindings.ChannelManager_close_channel(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33))); + long ret = Bindings.ChannelManagerCloseChannel(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(counterparty_node_id); @@ -339,7 +339,7 @@ public Result_NoneAPIErrorZ close_channel(byte[] channel_id, byte[] counterparty * Note that shutdown_script (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Result_NoneAPIErrorZ close_channel_with_feerate_and_script(byte[] channel_id, byte[] counterparty_node_id, org.ldk.structs.Option_u32Z target_feerate_sats_per_1000_weight, org.ldk.structs.ShutdownScript shutdown_script) { - long ret = bindings.ChannelManager_close_channel_with_feerate_and_script(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), target_feerate_sats_per_1000_weight.ptr, shutdown_script == null ? 0 : shutdown_script.ptr); + long ret = Bindings.ChannelManagerCloseChannelWithFeerateAndScript(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), target_feerate_sats_per_1000_weight.ptr, shutdown_script == null ? 0 : shutdown_script.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(counterparty_node_id); @@ -359,7 +359,7 @@ public Result_NoneAPIErrorZ close_channel_with_feerate_and_script(byte[] channel * channel. */ public Result_NoneAPIErrorZ force_close_broadcasting_latest_txn(byte[] channel_id, byte[] counterparty_node_id) { - long ret = bindings.ChannelManager_force_close_broadcasting_latest_txn(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33))); + long ret = Bindings.ChannelManagerForceCloseBroadcastingLatestTxn(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(counterparty_node_id); @@ -377,7 +377,7 @@ public Result_NoneAPIErrorZ force_close_broadcasting_latest_txn(byte[] channel_i * [`ChannelMonitor::get_latest_holder_commitment_txn`]. */ public Result_NoneAPIErrorZ force_close_without_broadcasting_txn(byte[] channel_id, byte[] counterparty_node_id) { - long ret = bindings.ChannelManager_force_close_without_broadcasting_txn(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33))); + long ret = Bindings.ChannelManagerForceCloseWithoutBroadcastingTxn(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(counterparty_node_id); @@ -391,7 +391,7 @@ public Result_NoneAPIErrorZ force_close_without_broadcasting_txn(byte[] channel_ * for each to the chain and rejecting new HTLCs on each. */ public void force_close_all_channels_broadcasting_latest_txn() { - bindings.ChannelManager_force_close_all_channels_broadcasting_latest_txn(this.ptr); + Bindings.ChannelManagerForceCloseAllChannelsBroadcastingLatestTxn(this.ptr); GC.KeepAlive(this); } @@ -400,7 +400,7 @@ public void force_close_all_channels_broadcasting_latest_txn() { * local transaction(s). */ public void force_close_all_channels_without_broadcasting_txn() { - bindings.ChannelManager_force_close_all_channels_without_broadcasting_txn(this.ptr); + Bindings.ChannelManagerForceCloseAllChannelsWithoutBroadcastingTxn(this.ptr); GC.KeepAlive(this); } @@ -458,7 +458,7 @@ public void force_close_all_channels_without_broadcasting_txn() { * [`ChannelMonitorUpdateStatus::InProgress`]: crate::chain::ChannelMonitorUpdateStatus::InProgress */ public Result_NonePaymentSendFailureZ send_payment_with_route(org.ldk.structs.Route route, byte[] payment_hash, org.ldk.structs.RecipientOnionFields recipient_onion, byte[] payment_id) { - long ret = bindings.ChannelManager_send_payment_with_route(this.ptr, route == null ? 0 : route.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + long ret = Bindings.ChannelManagerSendPaymentWithRoute(this.ptr, route == null ? 0 : route.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(this); GC.KeepAlive(route); GC.KeepAlive(payment_hash); @@ -476,7 +476,7 @@ public Result_NonePaymentSendFailureZ send_payment_with_route(org.ldk.structs.Ro * `route_params` and retry failed payment paths based on `retry_strategy`. */ public Result_NoneRetryableSendFailureZ send_payment(byte[] payment_hash, org.ldk.structs.RecipientOnionFields recipient_onion, byte[] payment_id, org.ldk.structs.RouteParameters route_params, org.ldk.structs.Retry retry_strategy) { - long ret = bindings.ChannelManager_send_payment(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), route_params == null ? 0 : route_params.ptr, retry_strategy.ptr); + long ret = Bindings.ChannelManagerSendPayment(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), route_params == null ? 0 : route_params.ptr, retry_strategy.ptr); GC.KeepAlive(this); GC.KeepAlive(payment_hash); GC.KeepAlive(recipient_onion); @@ -521,7 +521,7 @@ public Result_NoneRetryableSendFailureZ send_payment(byte[] payment_hash, org.ld * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ public void abandon_payment(byte[] payment_id) { - bindings.ChannelManager_abandon_payment(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + Bindings.ChannelManagerAbandonPayment(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(this); GC.KeepAlive(payment_id); } @@ -542,7 +542,7 @@ public void abandon_payment(byte[] payment_id) { * [`send_payment`]: Self::send_payment */ public Result_ThirtyTwoBytesPaymentSendFailureZ send_spontaneous_payment(org.ldk.structs.Route route, org.ldk.structs.Option_ThirtyTwoBytesZ payment_preimage, org.ldk.structs.RecipientOnionFields recipient_onion, byte[] payment_id) { - long ret = bindings.ChannelManager_send_spontaneous_payment(this.ptr, route == null ? 0 : route.ptr, payment_preimage.ptr, recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + long ret = Bindings.ChannelManagerSendSpontaneousPayment(this.ptr, route == null ? 0 : route.ptr, payment_preimage.ptr, recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(this); GC.KeepAlive(route); GC.KeepAlive(payment_preimage); @@ -566,7 +566,7 @@ public Result_ThirtyTwoBytesPaymentSendFailureZ send_spontaneous_payment(org.ldk * [`PaymentParameters::for_keysend`]: crate::routing::router::PaymentParameters::for_keysend */ public Result_ThirtyTwoBytesRetryableSendFailureZ send_spontaneous_payment_with_retry(org.ldk.structs.Option_ThirtyTwoBytesZ payment_preimage, org.ldk.structs.RecipientOnionFields recipient_onion, byte[] payment_id, org.ldk.structs.RouteParameters route_params, org.ldk.structs.Retry retry_strategy) { - long ret = bindings.ChannelManager_send_spontaneous_payment_with_retry(this.ptr, payment_preimage.ptr, recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), route_params == null ? 0 : route_params.ptr, retry_strategy.ptr); + long ret = Bindings.ChannelManagerSendSpontaneousPaymentWithRetry(this.ptr, payment_preimage.ptr, recipient_onion == null ? 0 : recipient_onion.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), route_params == null ? 0 : route_params.ptr, retry_strategy.ptr); GC.KeepAlive(this); GC.KeepAlive(payment_preimage); GC.KeepAlive(recipient_onion); @@ -588,7 +588,7 @@ public Result_ThirtyTwoBytesRetryableSendFailureZ send_spontaneous_payment_with_ * us to easily discern them from real payments. */ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ send_probe(org.ldk.structs.Path path) { - long ret = bindings.ChannelManager_send_probe(this.ptr, path == null ? 0 : path.ptr); + long ret = Bindings.ChannelManagerSendProbe(this.ptr, path == null ? 0 : path.ptr); GC.KeepAlive(this); GC.KeepAlive(path); if (ret >= 0 && ret <= 4096) { return null; } @@ -604,7 +604,7 @@ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ send_prob * See [`ChannelManager::send_preflight_probes`] for more information. */ public Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ send_spontaneous_preflight_probes(byte[] node_id, long amount_msat, int final_cltv_expiry_delta, org.ldk.structs.Option_u64Z liquidity_limit_multiplier) { - long ret = bindings.ChannelManager_send_spontaneous_preflight_probes(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), amount_msat, final_cltv_expiry_delta, liquidity_limit_multiplier.ptr); + long ret = Bindings.ChannelManagerSendSpontaneousPreflightProbes(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), amount_msat, final_cltv_expiry_delta, liquidity_limit_multiplier.ptr); GC.KeepAlive(this); GC.KeepAlive(node_id); GC.KeepAlive(amount_msat); @@ -633,7 +633,7 @@ public Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ send_ * probes. If `None` is given as `liquidity_limit_multiplier`, it defaults to `3`. */ public Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ send_preflight_probes(org.ldk.structs.RouteParameters route_params, org.ldk.structs.Option_u64Z liquidity_limit_multiplier) { - long ret = bindings.ChannelManager_send_preflight_probes(this.ptr, route_params == null ? 0 : route_params.ptr, liquidity_limit_multiplier.ptr); + long ret = Bindings.ChannelManagerSendPreflightProbes(this.ptr, route_params == null ? 0 : route_params.ptr, liquidity_limit_multiplier.ptr); GC.KeepAlive(this); GC.KeepAlive(route_params); GC.KeepAlive(liquidity_limit_multiplier); @@ -677,7 +677,7 @@ public Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ send_ * [`Event::ChannelClosed`]: crate::events::Event::ChannelClosed */ public Result_NoneAPIErrorZ funding_transaction_generated(byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction) { - long ret = bindings.ChannelManager_funding_transaction_generated(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), InternalUtils.encodeUint8Array(funding_transaction)); + long ret = Bindings.ChannelManagerFundingTransactionGenerated(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), InternalUtils.EncodeUint8Array(funding_transaction)); GC.KeepAlive(this); GC.KeepAlive(temporary_channel_id); GC.KeepAlive(counterparty_node_id); @@ -700,7 +700,7 @@ public Result_NoneAPIErrorZ funding_transaction_generated(byte[] temporary_chann * If there is an error, all channels in the batch are to be considered closed. */ public Result_NoneAPIErrorZ batch_funding_transaction_generated(TwoTuple_ThirtyTwoBytesPublicKeyZ[] temporary_channels, byte[] funding_transaction) { - long ret = bindings.ChannelManager_batch_funding_transaction_generated(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(temporary_channels, temporary_channels_conv_35 => temporary_channels_conv_35 != null ? temporary_channels_conv_35.ptr : 0)), InternalUtils.encodeUint8Array(funding_transaction)); + long ret = Bindings.ChannelManagerBatchFundingTransactionGenerated(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(temporary_channels, temporary_channels_conv_35 => temporary_channels_conv_35 != null ? temporary_channels_conv_35.ptr : 0)), InternalUtils.EncodeUint8Array(funding_transaction)); GC.KeepAlive(this); GC.KeepAlive(temporary_channels); GC.KeepAlive(funding_transaction); @@ -734,7 +734,7 @@ public Result_NoneAPIErrorZ batch_funding_transaction_generated(TwoTuple_ThirtyT * [`APIMisuseError`]: APIError::APIMisuseError */ public Result_NoneAPIErrorZ update_partial_channel_config(byte[] counterparty_node_id, byte[][] channel_ids, org.ldk.structs.ChannelConfigUpdate config_update) { - long ret = bindings.ChannelManager_update_partial_channel_config(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(channel_ids, channel_ids_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_ids_conv_8, 32)))), config_update == null ? 0 : config_update.ptr); + long ret = Bindings.ChannelManagerUpdatePartialChannelConfig(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(channel_ids, channel_ids_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_ids_conv_8, 32)))), config_update == null ? 0 : config_update.ptr); GC.KeepAlive(this); GC.KeepAlive(counterparty_node_id); GC.KeepAlive(channel_ids); @@ -770,7 +770,7 @@ public Result_NoneAPIErrorZ update_partial_channel_config(byte[] counterparty_no * [`APIMisuseError`]: APIError::APIMisuseError */ public Result_NoneAPIErrorZ update_channel_config(byte[] counterparty_node_id, byte[][] channel_ids, org.ldk.structs.ChannelConfig config) { - long ret = bindings.ChannelManager_update_channel_config(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(channel_ids, channel_ids_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_ids_conv_8, 32)))), config == null ? 0 : config.ptr); + long ret = Bindings.ChannelManagerUpdateChannelConfig(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(channel_ids, channel_ids_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_ids_conv_8, 32)))), config == null ? 0 : config.ptr); GC.KeepAlive(this); GC.KeepAlive(counterparty_node_id); GC.KeepAlive(channel_ids); @@ -807,7 +807,7 @@ public Result_NoneAPIErrorZ update_channel_config(byte[] counterparty_node_id, b * [`HTLCIntercepted::expected_outbound_amount_msat`]: events::Event::HTLCIntercepted::expected_outbound_amount_msat */ public Result_NoneAPIErrorZ forward_intercepted_htlc(byte[] intercept_id, byte[] next_hop_channel_id, byte[] next_node_id, long amt_to_forward_msat) { - long ret = bindings.ChannelManager_forward_intercepted_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(intercept_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(next_hop_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(next_node_id, 33)), amt_to_forward_msat); + long ret = Bindings.ChannelManagerForwardInterceptedHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(intercept_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(next_hop_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(next_node_id, 33)), amt_to_forward_msat); GC.KeepAlive(this); GC.KeepAlive(intercept_id); GC.KeepAlive(next_hop_channel_id); @@ -828,7 +828,7 @@ public Result_NoneAPIErrorZ forward_intercepted_htlc(byte[] intercept_id, byte[] * [`HTLCIntercepted`]: events::Event::HTLCIntercepted */ public Result_NoneAPIErrorZ fail_intercepted_htlc(byte[] intercept_id) { - long ret = bindings.ChannelManager_fail_intercepted_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(intercept_id, 32))); + long ret = Bindings.ChannelManagerFailInterceptedHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(intercept_id, 32))); GC.KeepAlive(this); GC.KeepAlive(intercept_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -843,7 +843,7 @@ public Result_NoneAPIErrorZ fail_intercepted_htlc(byte[] intercept_id) { * Will likely generate further events. */ public void process_pending_htlc_forwards() { - bindings.ChannelManager_process_pending_htlc_forwards(this.ptr); + Bindings.ChannelManagerProcessPendingHtlcForwards(this.ptr); GC.KeepAlive(this); } @@ -871,7 +871,7 @@ public void process_pending_htlc_forwards() { * [`ChannelConfig`]: crate::util::config::ChannelConfig */ public void timer_tick_occurred() { - bindings.ChannelManager_timer_tick_occurred(this.ptr); + Bindings.ChannelManagerTimerTickOccurred(this.ptr); GC.KeepAlive(this); } @@ -891,7 +891,7 @@ public void timer_tick_occurred() { * startup during which time claims that were in-progress at shutdown may be replayed. */ public void fail_htlc_backwards(byte[] payment_hash) { - bindings.ChannelManager_fail_htlc_backwards(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32))); + Bindings.ChannelManagerFailHtlcBackwards(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32))); GC.KeepAlive(this); GC.KeepAlive(payment_hash); } @@ -903,7 +903,7 @@ public void fail_htlc_backwards(byte[] payment_hash) { * See [`FailureCode`] for valid failure codes. */ public void fail_htlc_backwards_with_reason(byte[] payment_hash, org.ldk.structs.FailureCode failure_code) { - bindings.ChannelManager_fail_htlc_backwards_with_reason(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), failure_code.ptr); + Bindings.ChannelManagerFailHtlcBackwardsWithReason(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), failure_code.ptr); GC.KeepAlive(this); GC.KeepAlive(payment_hash); GC.KeepAlive(failure_code); @@ -937,7 +937,7 @@ public void fail_htlc_backwards_with_reason(byte[] payment_hash, org.ldk.structs * [`claim_funds_with_known_custom_tlvs`]: Self::claim_funds_with_known_custom_tlvs */ public void claim_funds(byte[] payment_preimage) { - bindings.ChannelManager_claim_funds(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage, 32))); + Bindings.ChannelManagerClaimFunds(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage, 32))); GC.KeepAlive(this); GC.KeepAlive(payment_preimage); } @@ -954,7 +954,7 @@ public void claim_funds(byte[] payment_preimage) { * [`claim_funds`]: Self::claim_funds */ public void claim_funds_with_known_custom_tlvs(byte[] payment_preimage) { - bindings.ChannelManager_claim_funds_with_known_custom_tlvs(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage, 32))); + Bindings.ChannelManagerClaimFundsWithKnownCustomTlvs(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage, 32))); GC.KeepAlive(this); GC.KeepAlive(payment_preimage); } @@ -963,10 +963,10 @@ public void claim_funds_with_known_custom_tlvs(byte[] payment_preimage) { * Gets the node_id held by this ChannelManager */ public byte[] get_our_node_id() { - long ret = bindings.ChannelManager_get_our_node_id(this.ptr); + long ret = Bindings.ChannelManagerGetOurNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -989,7 +989,7 @@ public byte[] get_our_node_id() { * [`Event::ChannelClosed::user_channel_id`]: events::Event::ChannelClosed::user_channel_id */ public Result_NoneAPIErrorZ accept_inbound_channel(byte[] temporary_channel_id, byte[] counterparty_node_id, org.ldk.util.UInt128 user_channel_id) { - long ret = bindings.ChannelManager_accept_inbound_channel(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes())); + long ret = Bindings.ChannelManagerAcceptInboundChannel(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes())); GC.KeepAlive(this); GC.KeepAlive(temporary_channel_id); GC.KeepAlive(counterparty_node_id); @@ -1020,7 +1020,7 @@ public Result_NoneAPIErrorZ accept_inbound_channel(byte[] temporary_channel_id, * [`Event::ChannelClosed::user_channel_id`]: events::Event::ChannelClosed::user_channel_id */ public Result_NoneAPIErrorZ accept_inbound_channel_from_trusted_peer_0conf(byte[] temporary_channel_id, byte[] counterparty_node_id, org.ldk.util.UInt128 user_channel_id) { - long ret = bindings.ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes())); + long ret = Bindings.ChannelManagerAcceptInboundChannelFromTrustedPeer0Conf(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes())); GC.KeepAlive(this); GC.KeepAlive(temporary_channel_id); GC.KeepAlive(counterparty_node_id); @@ -1086,7 +1086,7 @@ public Result_NoneAPIErrorZ accept_inbound_channel_from_trusted_peer_0conf(byte[ * [Avoiding Duplicate Payments]: #avoiding-duplicate-payments */ public Result_NoneBolt12SemanticErrorZ pay_for_offer(org.ldk.structs.Offer offer, org.ldk.structs.Option_u64Z quantity, org.ldk.structs.Option_u64Z amount_msats, org.ldk.structs.Option_StrZ payer_note, byte[] payment_id, org.ldk.structs.Retry retry_strategy, org.ldk.structs.Option_u64Z max_total_routing_fee_msat) { - long ret = bindings.ChannelManager_pay_for_offer(this.ptr, offer == null ? 0 : offer.ptr, quantity.ptr, amount_msats.ptr, payer_note.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), retry_strategy.ptr, max_total_routing_fee_msat.ptr); + long ret = Bindings.ChannelManagerPayForOffer(this.ptr, offer == null ? 0 : offer.ptr, quantity.ptr, amount_msats.ptr, payer_note.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), retry_strategy.ptr, max_total_routing_fee_msat.ptr); GC.KeepAlive(this); GC.KeepAlive(offer); GC.KeepAlive(quantity); @@ -1129,7 +1129,7 @@ public Result_NoneBolt12SemanticErrorZ pay_for_offer(org.ldk.structs.Offer offer * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ public Result_NoneBolt12SemanticErrorZ request_refund_payment(org.ldk.structs.Refund refund) { - long ret = bindings.ChannelManager_request_refund_payment(this.ptr, refund == null ? 0 : refund.ptr); + long ret = Bindings.ChannelManagerRequestRefundPayment(this.ptr, refund == null ? 0 : refund.ptr); GC.KeepAlive(this); GC.KeepAlive(refund); if (ret >= 0 && ret <= 4096) { return null; } @@ -1173,7 +1173,7 @@ public Result_NoneBolt12SemanticErrorZ request_refund_payment(org.ldk.structs.Re * [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash */ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create_inbound_payment(org.ldk.structs.Option_u64Z min_value_msat, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.ChannelManager_create_inbound_payment(this.ptr, min_value_msat.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.ChannelManagerCreateInboundPayment(this.ptr, min_value_msat.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(this); GC.KeepAlive(min_value_msat); GC.KeepAlive(invoice_expiry_delta_secs); @@ -1234,7 +1234,7 @@ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create_inbound_payment( * [`PaymentClaimable`]: events::Event::PaymentClaimable */ public Result_ThirtyTwoBytesNoneZ create_inbound_payment_for_hash(byte[] payment_hash, org.ldk.structs.Option_u64Z min_value_msat, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry) { - long ret = bindings.ChannelManager_create_inbound_payment_for_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), min_value_msat.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry.ptr); + long ret = Bindings.ChannelManagerCreateInboundPaymentForHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), min_value_msat.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry.ptr); GC.KeepAlive(this); GC.KeepAlive(payment_hash); GC.KeepAlive(min_value_msat); @@ -1254,7 +1254,7 @@ public Result_ThirtyTwoBytesNoneZ create_inbound_payment_for_hash(byte[] payment * [`create_inbound_payment`]: Self::create_inbound_payment */ public Result_ThirtyTwoBytesAPIErrorZ get_payment_preimage(byte[] payment_hash, byte[] payment_secret) { - long ret = bindings.ChannelManager_get_payment_preimage(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_secret, 32))); + long ret = Bindings.ChannelManagerGetPaymentPreimage(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_secret, 32))); GC.KeepAlive(this); GC.KeepAlive(payment_hash); GC.KeepAlive(payment_secret); @@ -1270,7 +1270,7 @@ public Result_ThirtyTwoBytesAPIErrorZ get_payment_preimage(byte[] payment_hash, * [phantom node payments]: crate::sign::PhantomKeysManager */ public long get_phantom_scid() { - long ret = bindings.ChannelManager_get_phantom_scid(this.ptr); + long ret = Bindings.ChannelManagerGetPhantomScid(this.ptr); GC.KeepAlive(this); return ret; } @@ -1281,7 +1281,7 @@ public long get_phantom_scid() { * [phantom node payments]: crate::sign::PhantomKeysManager */ public PhantomRouteHints get_phantom_route_hints() { - long ret = bindings.ChannelManager_get_phantom_route_hints(this.ptr); + long ret = Bindings.ChannelManagerGetPhantomRouteHints(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PhantomRouteHints ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PhantomRouteHints(null, ret); } @@ -1298,7 +1298,7 @@ public PhantomRouteHints get_phantom_route_hints() { * times to get a unique scid. */ public long get_intercept_scid() { - long ret = bindings.ChannelManager_get_intercept_scid(this.ptr); + long ret = Bindings.ChannelManagerGetInterceptScid(this.ptr); GC.KeepAlive(this); return ret; } @@ -1308,7 +1308,7 @@ public long get_intercept_scid() { * our channels. May be used during pathfinding to account for in-use channel liquidity. */ public InFlightHtlcs compute_inflight_htlcs() { - long ret = bindings.ChannelManager_compute_inflight_htlcs(this.ptr); + long ret = Bindings.ChannelManagerComputeInflightHtlcs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InFlightHtlcs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InFlightHtlcs(null, ret); } @@ -1321,7 +1321,7 @@ public InFlightHtlcs compute_inflight_htlcs() { * This copies the `inner` pointer in this_arg and thus the returned MessageSendEventsProvider must be freed before this_arg is */ public MessageSendEventsProvider as_MessageSendEventsProvider() { - long ret = bindings.ChannelManager_as_MessageSendEventsProvider(this.ptr); + long ret = Bindings.ChannelManagerAsMessageSendEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageSendEventsProvider ret_hu_conv = new MessageSendEventsProvider(null, ret); @@ -1334,7 +1334,7 @@ public MessageSendEventsProvider as_MessageSendEventsProvider() { * This copies the `inner` pointer in this_arg and thus the returned EventsProvider must be freed before this_arg is */ public EventsProvider as_EventsProvider() { - long ret = bindings.ChannelManager_as_EventsProvider(this.ptr); + long ret = Bindings.ChannelManagerAsEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EventsProvider ret_hu_conv = new EventsProvider(null, ret); @@ -1347,7 +1347,7 @@ public EventsProvider as_EventsProvider() { * This copies the `inner` pointer in this_arg and thus the returned Listen must be freed before this_arg is */ public Listen as_Listen() { - long ret = bindings.ChannelManager_as_Listen(this.ptr); + long ret = Bindings.ChannelManagerAsListen(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Listen ret_hu_conv = new Listen(null, ret); @@ -1360,7 +1360,7 @@ public Listen as_Listen() { * This copies the `inner` pointer in this_arg and thus the returned Confirm must be freed before this_arg is */ public Confirm as_Confirm() { - long ret = bindings.ChannelManager_as_Confirm(this.ptr); + long ret = Bindings.ChannelManagerAsConfirm(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Confirm ret_hu_conv = new Confirm(null, ret); @@ -1379,7 +1379,7 @@ public Confirm as_Confirm() { * [`ChannelManager`] and should instead register actions to be taken later. */ public Future get_event_or_persistence_needed_future() { - long ret = bindings.ChannelManager_get_event_or_persistence_needed_future(this.ptr); + long ret = Bindings.ChannelManagerGetEventOrPersistenceNeededFuture(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Future ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Future(null, ret); } @@ -1391,7 +1391,7 @@ public Future get_event_or_persistence_needed_future() { * Returns true if this [`ChannelManager`] needs to be persisted. */ public bool get_and_clear_needs_persistence() { - bool ret = bindings.ChannelManager_get_and_clear_needs_persistence(this.ptr); + bool ret = Bindings.ChannelManagerGetAndClearNeedsPersistence(this.ptr); GC.KeepAlive(this); return ret; } @@ -1401,7 +1401,7 @@ public bool get_and_clear_needs_persistence() { * [`chain::Confirm`] interfaces. */ public BestBlock current_best_block() { - long ret = bindings.ChannelManager_current_best_block(this.ptr); + long ret = Bindings.ChannelManagerCurrentBestBlock(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); } @@ -1414,7 +1414,7 @@ public BestBlock current_best_block() { * [`ChannelManager`]. */ public NodeFeatures node_features() { - long ret = bindings.ChannelManager_node_features(this.ptr); + long ret = Bindings.ChannelManagerNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -1427,7 +1427,7 @@ public NodeFeatures node_features() { * [`ChannelManager`]. */ public ChannelFeatures channel_features() { - long ret = bindings.ChannelManager_channel_features(this.ptr); + long ret = Bindings.ChannelManagerChannelFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } @@ -1440,7 +1440,7 @@ public ChannelFeatures channel_features() { * [`ChannelManager`]. */ public ChannelTypeFeatures channel_type_features() { - long ret = bindings.ChannelManager_channel_type_features(this.ptr); + long ret = Bindings.ChannelManagerChannelTypeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -1453,7 +1453,7 @@ public ChannelTypeFeatures channel_type_features() { * [`ChannelManager`]. */ public InitFeatures init_features() { - long ret = bindings.ChannelManager_init_features(this.ptr); + long ret = Bindings.ChannelManagerInitFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } @@ -1466,7 +1466,7 @@ public InitFeatures init_features() { * This copies the `inner` pointer in this_arg and thus the returned ChannelMessageHandler must be freed before this_arg is */ public ChannelMessageHandler as_ChannelMessageHandler() { - long ret = bindings.ChannelManager_as_ChannelMessageHandler(this.ptr); + long ret = Bindings.ChannelManagerAsChannelMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ChannelMessageHandler ret_hu_conv = new ChannelMessageHandler(null, ret); @@ -1479,7 +1479,7 @@ public ChannelMessageHandler as_ChannelMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned OffersMessageHandler must be freed before this_arg is */ public OffersMessageHandler as_OffersMessageHandler() { - long ret = bindings.ChannelManager_as_OffersMessageHandler(this.ptr); + long ret = Bindings.ChannelManagerAsOffersMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OffersMessageHandler ret_hu_conv = new OffersMessageHandler(null, ret); @@ -1491,10 +1491,10 @@ public OffersMessageHandler as_OffersMessageHandler() { * Serialize the ChannelManager object into a byte array which can be read by ChannelManager_read */ public byte[] write() { - long ret = bindings.ChannelManager_write(this.ptr); + long ret = Bindings.ChannelManagerWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ChannelManagerReadArgs.cs b/c_sharp/src/org/ldk/structs/ChannelManagerReadArgs.cs index 624de6956..240e94977 100644 --- a/c_sharp/src/org/ldk/structs/ChannelManagerReadArgs.cs +++ b/c_sharp/src/org/ldk/structs/ChannelManagerReadArgs.cs @@ -43,14 +43,14 @@ namespace org { namespace ldk { namespace structs { public class ChannelManagerReadArgs : CommonBase { internal ChannelManagerReadArgs(object _dummy, long ptr) : base(ptr) { } ~ChannelManagerReadArgs() { - if (ptr != 0) { bindings.ChannelManagerReadArgs_free(ptr); } + if (ptr != 0) { Bindings.ChannelManagerReadArgsFree(ptr); } } /** * A cryptographically secure source of entropy. */ public EntropySource get_entropy_source() { - long ret = bindings.ChannelManagerReadArgs_get_entropy_source(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetEntropySource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EntropySource ret_hu_conv = new EntropySource(null, ret); @@ -62,7 +62,7 @@ public EntropySource get_entropy_source() { * A cryptographically secure source of entropy. */ public void set_entropy_source(org.ldk.structs.EntropySource val) { - bindings.ChannelManagerReadArgs_set_entropy_source(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetEntropySource(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -72,7 +72,7 @@ public void set_entropy_source(org.ldk.structs.EntropySource val) { * A signer that is able to perform node-scoped cryptographic operations. */ public NodeSigner get_node_signer() { - long ret = bindings.ChannelManagerReadArgs_get_node_signer(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetNodeSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } NodeSigner ret_hu_conv = new NodeSigner(null, ret); @@ -84,7 +84,7 @@ public NodeSigner get_node_signer() { * A signer that is able to perform node-scoped cryptographic operations. */ public void set_node_signer(org.ldk.structs.NodeSigner val) { - bindings.ChannelManagerReadArgs_set_node_signer(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetNodeSigner(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -96,7 +96,7 @@ public void set_node_signer(org.ldk.structs.NodeSigner val) { * signing data. */ public SignerProvider get_signer_provider() { - long ret = bindings.ChannelManagerReadArgs_get_signer_provider(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetSignerProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } SignerProvider ret_hu_conv = new SignerProvider(null, ret); @@ -110,7 +110,7 @@ public SignerProvider get_signer_provider() { * signing data. */ public void set_signer_provider(org.ldk.structs.SignerProvider val) { - bindings.ChannelManagerReadArgs_set_signer_provider(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetSignerProvider(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -122,7 +122,7 @@ public void set_signer_provider(org.ldk.structs.SignerProvider val) { * No calls to the FeeEstimator will be made during deserialization. */ public FeeEstimator get_fee_estimator() { - long ret = bindings.ChannelManagerReadArgs_get_fee_estimator(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetFeeEstimator(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } FeeEstimator ret_hu_conv = new FeeEstimator(null, ret); @@ -136,7 +136,7 @@ public FeeEstimator get_fee_estimator() { * No calls to the FeeEstimator will be made during deserialization. */ public void set_fee_estimator(org.ldk.structs.FeeEstimator val) { - bindings.ChannelManagerReadArgs_set_fee_estimator(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetFeeEstimator(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -150,7 +150,7 @@ public void set_fee_estimator(org.ldk.structs.FeeEstimator val) { * chain::Watch after deserializing this ChannelManager. */ public Watch get_chain_monitor() { - long ret = bindings.ChannelManagerReadArgs_get_chain_monitor(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetChainMonitor(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Watch ret_hu_conv = new Watch(null, ret); @@ -166,7 +166,7 @@ public Watch get_chain_monitor() { * chain::Watch after deserializing this ChannelManager. */ public void set_chain_monitor(org.ldk.structs.Watch val) { - bindings.ChannelManagerReadArgs_set_chain_monitor(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetChainMonitor(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -178,7 +178,7 @@ public void set_chain_monitor(org.ldk.structs.Watch val) { * force-closed during deserialization. */ public BroadcasterInterface get_tx_broadcaster() { - long ret = bindings.ChannelManagerReadArgs_get_tx_broadcaster(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetTxBroadcaster(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } BroadcasterInterface ret_hu_conv = new BroadcasterInterface(null, ret); @@ -192,7 +192,7 @@ public BroadcasterInterface get_tx_broadcaster() { * force-closed during deserialization. */ public void set_tx_broadcaster(org.ldk.structs.BroadcasterInterface val) { - bindings.ChannelManagerReadArgs_set_tx_broadcaster(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetTxBroadcaster(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -205,7 +205,7 @@ public void set_tx_broadcaster(org.ldk.structs.BroadcasterInterface val) { * No calls to the router will be made during deserialization. */ public Router get_router() { - long ret = bindings.ChannelManagerReadArgs_get_router(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetRouter(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Router ret_hu_conv = new Router(null, ret); @@ -220,7 +220,7 @@ public Router get_router() { * No calls to the router will be made during deserialization. */ public void set_router(org.ldk.structs.Router val) { - bindings.ChannelManagerReadArgs_set_router(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetRouter(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -231,7 +231,7 @@ public void set_router(org.ldk.structs.Router val) { * deserialization. */ public Logger get_logger() { - long ret = bindings.ChannelManagerReadArgs_get_logger(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetLogger(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Logger ret_hu_conv = new Logger(null, ret); @@ -244,7 +244,7 @@ public Logger get_logger() { * deserialization. */ public void set_logger(org.ldk.structs.Logger val) { - bindings.ChannelManagerReadArgs_set_logger(this.ptr, val.ptr); + Bindings.ChannelManagerReadArgsSetLogger(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -255,7 +255,7 @@ public void set_logger(org.ldk.structs.Logger val) { * runtime settings which were stored when the ChannelManager was serialized. */ public UserConfig get_default_config() { - long ret = bindings.ChannelManagerReadArgs_get_default_config(this.ptr); + long ret = Bindings.ChannelManagerReadArgsGetDefaultConfig(this.ptr); GC.KeepAlive(this); 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); } @@ -268,7 +268,7 @@ public UserConfig get_default_config() { * runtime settings which were stored when the ChannelManager was serialized. */ public void set_default_config(org.ldk.structs.UserConfig val) { - bindings.ChannelManagerReadArgs_set_default_config(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelManagerReadArgsSetDefaultConfig(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -280,7 +280,7 @@ public void set_default_config(org.ldk.structs.UserConfig val) { * populate a HashMap directly from C. */ public static ChannelManagerReadArgs of(org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.SignerProvider signer_provider, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Watch chain_monitor, org.ldk.structs.BroadcasterInterface tx_broadcaster, org.ldk.structs.Router router, org.ldk.structs.Logger logger, org.ldk.structs.UserConfig default_config, ChannelMonitor[] channel_monitors) { - long ret = bindings.ChannelManagerReadArgs_new(entropy_source.ptr, node_signer.ptr, signer_provider.ptr, fee_estimator.ptr, chain_monitor.ptr, tx_broadcaster.ptr, router.ptr, logger.ptr, default_config == null ? 0 : default_config.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(channel_monitors, channel_monitors_conv_16 => channel_monitors_conv_16 == null ? 0 : channel_monitors_conv_16.ptr))); + long ret = Bindings.ChannelManagerReadArgsNew(entropy_source.ptr, node_signer.ptr, signer_provider.ptr, fee_estimator.ptr, chain_monitor.ptr, tx_broadcaster.ptr, router.ptr, logger.ptr, default_config == null ? 0 : default_config.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(channel_monitors, channel_monitors_conv_16 => channel_monitors_conv_16 == null ? 0 : channel_monitors_conv_16.ptr))); GC.KeepAlive(entropy_source); GC.KeepAlive(node_signer); GC.KeepAlive(signer_provider); diff --git a/c_sharp/src/org/ldk/structs/ChannelMessageHandler.cs b/c_sharp/src/org/ldk/structs/ChannelMessageHandler.cs index dcd8c5599..ccdf0914d 100644 --- a/c_sharp/src/org/ldk/structs/ChannelMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/ChannelMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of ChannelMessageHandler */ -public interface ChannelMessageHandlerInterface { +public interface IChannelMessageHandler { /**Handle an incoming `open_channel` message from the given peer. */ void handle_open_channel(byte[] their_node_id, OpenChannel msg); @@ -146,244 +146,244 @@ public interface ChannelMessageHandlerInterface { * they MUST NOT be called in parallel when the two calls have the same `their_node_id`. */ public class ChannelMessageHandler : CommonBase { - internal bindings.LDKChannelMessageHandler bindings_instance; + internal Bindings.LDKChannelMessageHandler bindings_instance; internal long instance_idx; internal ChannelMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~ChannelMessageHandler() { - if (ptr != 0) { bindings.ChannelMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.ChannelMessageHandlerFree(ptr); } } private class LDKChannelMessageHandlerHolder { internal ChannelMessageHandler held; } - private class LDKChannelMessageHandlerImpl : bindings.LDKChannelMessageHandler { - internal LDKChannelMessageHandlerImpl(ChannelMessageHandlerInterface arg, LDKChannelMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ChannelMessageHandlerInterface arg; + private class LDKChannelMessageHandlerImpl : Bindings.LDKChannelMessageHandler { + internal LDKChannelMessageHandlerImpl(IChannelMessageHandler arg, LDKChannelMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IChannelMessageHandler arg; private LDKChannelMessageHandlerHolder impl_holder; - public void handle_open_channel(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleOpenChannel(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.OpenChannel _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.OpenChannel(null, _msg); } arg.handle_open_channel(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_open_channel_v2(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleOpenChannelV2(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.OpenChannelV2 _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.OpenChannelV2(null, _msg); } arg.handle_open_channel_v2(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_accept_channel(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleAcceptChannel(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.AcceptChannel _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.AcceptChannel(null, _msg); } arg.handle_accept_channel(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_accept_channel_v2(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleAcceptChannelV2(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.AcceptChannelV2 _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.AcceptChannelV2(null, _msg); } arg.handle_accept_channel_v2(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_funding_created(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleFundingCreated(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.FundingCreated _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.FundingCreated(null, _msg); } arg.handle_funding_created(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_funding_signed(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleFundingSigned(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.FundingSigned _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.FundingSigned(null, _msg); } arg.handle_funding_signed(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_channel_ready(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleChannelReady(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ChannelReady _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ChannelReady(null, _msg); } arg.handle_channel_ready(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_shutdown(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleShutdown(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Shutdown _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.Shutdown(null, _msg); } arg.handle_shutdown(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_closing_signed(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleClosingSigned(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ClosingSigned _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ClosingSigned(null, _msg); } arg.handle_closing_signed(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_stfu(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleStfu(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Stfu _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.Stfu(null, _msg); } arg.handle_stfu(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_splice(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleSplice(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Splice _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.Splice(null, _msg); } arg.handle_splice(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_splice_ack(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleSpliceAck(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.SpliceAck _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.SpliceAck(null, _msg); } arg.handle_splice_ack(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_splice_locked(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleSpliceLocked(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.SpliceLocked _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.SpliceLocked(null, _msg); } arg.handle_splice_locked(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_add_input(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxAddInput(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxAddInput _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxAddInput(null, _msg); } arg.handle_tx_add_input(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_add_output(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxAddOutput(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxAddOutput _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxAddOutput(null, _msg); } arg.handle_tx_add_output(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_remove_input(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxRemoveInput(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxRemoveInput _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxRemoveInput(null, _msg); } arg.handle_tx_remove_input(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_remove_output(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxRemoveOutput(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxRemoveOutput _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxRemoveOutput(null, _msg); } arg.handle_tx_remove_output(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_complete(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxComplete(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxComplete _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxComplete(null, _msg); } arg.handle_tx_complete(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_signatures(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxSignatures(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxSignatures _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxSignatures(null, _msg); } arg.handle_tx_signatures(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_init_rbf(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxInitRbf(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxInitRbf _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxInitRbf(null, _msg); } arg.handle_tx_init_rbf(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_ack_rbf(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxAckRbf(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxAckRbf _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxAckRbf(null, _msg); } arg.handle_tx_ack_rbf(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_tx_abort(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleTxAbort(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.TxAbort _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.TxAbort(null, _msg); } arg.handle_tx_abort(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_update_add_htlc(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleUpdateAddHtlc(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.UpdateAddHTLC _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UpdateAddHTLC(null, _msg); } arg.handle_update_add_htlc(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_update_fulfill_htlc(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleUpdateFulfillHtlc(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.UpdateFulfillHTLC _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, _msg); } arg.handle_update_fulfill_htlc(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_update_fail_htlc(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleUpdateFailHtlc(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.UpdateFailHTLC _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UpdateFailHTLC(null, _msg); } arg.handle_update_fail_htlc(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_update_fail_malformed_htlc(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleUpdateFailMalformedHtlc(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.UpdateFailMalformedHTLC _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UpdateFailMalformedHTLC(null, _msg); } arg.handle_update_fail_malformed_htlc(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_commitment_signed(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleCommitmentSigned(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.CommitmentSigned _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.CommitmentSigned(null, _msg); } arg.handle_commitment_signed(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_revoke_and_ack(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleRevokeAndAck(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.RevokeAndACK _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.RevokeAndACK(null, _msg); } arg.handle_revoke_and_ack(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_update_fee(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleUpdateFee(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.UpdateFee _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UpdateFee(null, _msg); } arg.handle_update_fee(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_announcement_signatures(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleAnnouncementSignatures(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.AnnouncementSignatures _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.AnnouncementSignatures(null, _msg); } arg.handle_announcement_signatures(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void peer_disconnected(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void PeerDisconnected(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); arg.peer_disconnected(_their_node_id_conv); GC.KeepAlive(arg); } - public long peer_connected(long _their_node_id, long _msg, bool _inbound) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long PeerConnected(long _their_node_id, long _msg, bool _inbound) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Init _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.Init(null, _msg); } Result_NoneNoneZ ret = arg.peer_connected(_their_node_id_conv, _msg_hu_conv, _inbound); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public void handle_channel_reestablish(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleChannelReestablish(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ChannelReestablish _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ChannelReestablish(null, _msg); } arg.handle_channel_reestablish(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_channel_update(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleChannelUpdate(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ChannelUpdate _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, _msg); } arg.handle_channel_update(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public void handle_error(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void HandleError(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ErrorMessage _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ErrorMessage(null, _msg); } arg.handle_error(_their_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public long provided_node_features() { + public long ProvidedNodeFeatures() { NodeFeatures ret = arg.provided_node_features(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long provided_init_features(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long ProvidedInitFeatures(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); InitFeatures ret = arg.provided_init_features(_their_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_chain_hashes() { + public long GetChainHashes() { Option_CVec_ThirtyTwoBytesZZ ret = arg.get_chain_hashes(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -393,11 +393,11 @@ public long get_chain_hashes() { } /** Creates a new instance of ChannelMessageHandler from a given implementation */ - public static ChannelMessageHandler new_impl(ChannelMessageHandlerInterface arg, MessageSendEventsProviderInterface messageSendEventsProvider_impl) { + public static ChannelMessageHandler new_impl(IChannelMessageHandler arg, IMessageSendEventsProvider messageSendEventsProvider_impl) { LDKChannelMessageHandlerHolder impl_holder = new LDKChannelMessageHandlerHolder(); LDKChannelMessageHandlerImpl impl = new LDKChannelMessageHandlerImpl(arg, impl_holder); MessageSendEventsProvider messageSendEventsProvider = MessageSendEventsProvider.new_impl(messageSendEventsProvider_impl); - long[] ptr_idx = bindings.LDKChannelMessageHandler_new(impl, messageSendEventsProvider.instance_idx); + long[] ptr_idx = Bindings.LDKChannelMessageHandlerNew(impl, messageSendEventsProvider.instance_idx); impl_holder.held = new ChannelMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -410,7 +410,7 @@ public static ChannelMessageHandler new_impl(ChannelMessageHandlerInterface arg, * Handle an incoming `open_channel` message from the given peer. */ public void handle_open_channel(byte[] their_node_id, org.ldk.structs.OpenChannel msg) { - bindings.ChannelMessageHandler_handle_open_channel(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleOpenChannel(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -421,7 +421,7 @@ public void handle_open_channel(byte[] their_node_id, org.ldk.structs.OpenChanne * Handle an incoming `open_channel2` message from the given peer. */ public void handle_open_channel_v2(byte[] their_node_id, org.ldk.structs.OpenChannelV2 msg) { - bindings.ChannelMessageHandler_handle_open_channel_v2(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleOpenChannelV2(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -432,7 +432,7 @@ public void handle_open_channel_v2(byte[] their_node_id, org.ldk.structs.OpenCha * Handle an incoming `accept_channel` message from the given peer. */ public void handle_accept_channel(byte[] their_node_id, org.ldk.structs.AcceptChannel msg) { - bindings.ChannelMessageHandler_handle_accept_channel(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleAcceptChannel(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -443,7 +443,7 @@ public void handle_accept_channel(byte[] their_node_id, org.ldk.structs.AcceptCh * Handle an incoming `accept_channel2` message from the given peer. */ public void handle_accept_channel_v2(byte[] their_node_id, org.ldk.structs.AcceptChannelV2 msg) { - bindings.ChannelMessageHandler_handle_accept_channel_v2(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleAcceptChannelV2(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -454,7 +454,7 @@ public void handle_accept_channel_v2(byte[] their_node_id, org.ldk.structs.Accep * Handle an incoming `funding_created` message from the given peer. */ public void handle_funding_created(byte[] their_node_id, org.ldk.structs.FundingCreated msg) { - bindings.ChannelMessageHandler_handle_funding_created(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleFundingCreated(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -465,7 +465,7 @@ public void handle_funding_created(byte[] their_node_id, org.ldk.structs.Funding * Handle an incoming `funding_signed` message from the given peer. */ public void handle_funding_signed(byte[] their_node_id, org.ldk.structs.FundingSigned msg) { - bindings.ChannelMessageHandler_handle_funding_signed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleFundingSigned(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -476,7 +476,7 @@ public void handle_funding_signed(byte[] their_node_id, org.ldk.structs.FundingS * Handle an incoming `channel_ready` message from the given peer. */ public void handle_channel_ready(byte[] their_node_id, org.ldk.structs.ChannelReady msg) { - bindings.ChannelMessageHandler_handle_channel_ready(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleChannelReady(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -487,7 +487,7 @@ public void handle_channel_ready(byte[] their_node_id, org.ldk.structs.ChannelRe * Handle an incoming `shutdown` message from the given peer. */ public void handle_shutdown(byte[] their_node_id, org.ldk.structs.Shutdown msg) { - bindings.ChannelMessageHandler_handle_shutdown(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleShutdown(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -498,7 +498,7 @@ public void handle_shutdown(byte[] their_node_id, org.ldk.structs.Shutdown msg) * Handle an incoming `closing_signed` message from the given peer. */ public void handle_closing_signed(byte[] their_node_id, org.ldk.structs.ClosingSigned msg) { - bindings.ChannelMessageHandler_handle_closing_signed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleClosingSigned(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -509,7 +509,7 @@ public void handle_closing_signed(byte[] their_node_id, org.ldk.structs.ClosingS * Handle an incoming `stfu` message from the given peer. */ public void handle_stfu(byte[] their_node_id, org.ldk.structs.Stfu msg) { - bindings.ChannelMessageHandler_handle_stfu(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleStfu(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -520,7 +520,7 @@ public void handle_stfu(byte[] their_node_id, org.ldk.structs.Stfu msg) { * Handle an incoming `splice` message from the given peer. */ public void handle_splice(byte[] their_node_id, org.ldk.structs.Splice msg) { - bindings.ChannelMessageHandler_handle_splice(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleSplice(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -531,7 +531,7 @@ public void handle_splice(byte[] their_node_id, org.ldk.structs.Splice msg) { * Handle an incoming `splice_ack` message from the given peer. */ public void handle_splice_ack(byte[] their_node_id, org.ldk.structs.SpliceAck msg) { - bindings.ChannelMessageHandler_handle_splice_ack(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleSpliceAck(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -542,7 +542,7 @@ public void handle_splice_ack(byte[] their_node_id, org.ldk.structs.SpliceAck ms * Handle an incoming `splice_locked` message from the given peer. */ public void handle_splice_locked(byte[] their_node_id, org.ldk.structs.SpliceLocked msg) { - bindings.ChannelMessageHandler_handle_splice_locked(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleSpliceLocked(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -553,7 +553,7 @@ public void handle_splice_locked(byte[] their_node_id, org.ldk.structs.SpliceLoc * Handle an incoming `tx_add_input message` from the given peer. */ public void handle_tx_add_input(byte[] their_node_id, org.ldk.structs.TxAddInput msg) { - bindings.ChannelMessageHandler_handle_tx_add_input(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxAddInput(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -564,7 +564,7 @@ public void handle_tx_add_input(byte[] their_node_id, org.ldk.structs.TxAddInput * Handle an incoming `tx_add_output` message from the given peer. */ public void handle_tx_add_output(byte[] their_node_id, org.ldk.structs.TxAddOutput msg) { - bindings.ChannelMessageHandler_handle_tx_add_output(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxAddOutput(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -575,7 +575,7 @@ public void handle_tx_add_output(byte[] their_node_id, org.ldk.structs.TxAddOutp * Handle an incoming `tx_remove_input` message from the given peer. */ public void handle_tx_remove_input(byte[] their_node_id, org.ldk.structs.TxRemoveInput msg) { - bindings.ChannelMessageHandler_handle_tx_remove_input(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxRemoveInput(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -586,7 +586,7 @@ public void handle_tx_remove_input(byte[] their_node_id, org.ldk.structs.TxRemov * Handle an incoming `tx_remove_output` message from the given peer. */ public void handle_tx_remove_output(byte[] their_node_id, org.ldk.structs.TxRemoveOutput msg) { - bindings.ChannelMessageHandler_handle_tx_remove_output(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxRemoveOutput(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -597,7 +597,7 @@ public void handle_tx_remove_output(byte[] their_node_id, org.ldk.structs.TxRemo * Handle an incoming `tx_complete message` from the given peer. */ public void handle_tx_complete(byte[] their_node_id, org.ldk.structs.TxComplete msg) { - bindings.ChannelMessageHandler_handle_tx_complete(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxComplete(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -608,7 +608,7 @@ public void handle_tx_complete(byte[] their_node_id, org.ldk.structs.TxComplete * Handle an incoming `tx_signatures` message from the given peer. */ public void handle_tx_signatures(byte[] their_node_id, org.ldk.structs.TxSignatures msg) { - bindings.ChannelMessageHandler_handle_tx_signatures(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxSignatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -619,7 +619,7 @@ public void handle_tx_signatures(byte[] their_node_id, org.ldk.structs.TxSignatu * Handle an incoming `tx_init_rbf` message from the given peer. */ public void handle_tx_init_rbf(byte[] their_node_id, org.ldk.structs.TxInitRbf msg) { - bindings.ChannelMessageHandler_handle_tx_init_rbf(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxInitRbf(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -630,7 +630,7 @@ public void handle_tx_init_rbf(byte[] their_node_id, org.ldk.structs.TxInitRbf m * Handle an incoming `tx_ack_rbf` message from the given peer. */ public void handle_tx_ack_rbf(byte[] their_node_id, org.ldk.structs.TxAckRbf msg) { - bindings.ChannelMessageHandler_handle_tx_ack_rbf(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxAckRbf(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -641,7 +641,7 @@ public void handle_tx_ack_rbf(byte[] their_node_id, org.ldk.structs.TxAckRbf msg * Handle an incoming `tx_abort message` from the given peer. */ public void handle_tx_abort(byte[] their_node_id, org.ldk.structs.TxAbort msg) { - bindings.ChannelMessageHandler_handle_tx_abort(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleTxAbort(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -652,7 +652,7 @@ public void handle_tx_abort(byte[] their_node_id, org.ldk.structs.TxAbort msg) { * Handle an incoming `update_add_htlc` message from the given peer. */ public void handle_update_add_htlc(byte[] their_node_id, org.ldk.structs.UpdateAddHTLC msg) { - bindings.ChannelMessageHandler_handle_update_add_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleUpdateAddHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -663,7 +663,7 @@ public void handle_update_add_htlc(byte[] their_node_id, org.ldk.structs.UpdateA * Handle an incoming `update_fulfill_htlc` message from the given peer. */ public void handle_update_fulfill_htlc(byte[] their_node_id, org.ldk.structs.UpdateFulfillHTLC msg) { - bindings.ChannelMessageHandler_handle_update_fulfill_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleUpdateFulfillHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -674,7 +674,7 @@ public void handle_update_fulfill_htlc(byte[] their_node_id, org.ldk.structs.Upd * Handle an incoming `update_fail_htlc` message from the given peer. */ public void handle_update_fail_htlc(byte[] their_node_id, org.ldk.structs.UpdateFailHTLC msg) { - bindings.ChannelMessageHandler_handle_update_fail_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleUpdateFailHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -685,7 +685,7 @@ public void handle_update_fail_htlc(byte[] their_node_id, org.ldk.structs.Update * Handle an incoming `update_fail_malformed_htlc` message from the given peer. */ public void handle_update_fail_malformed_htlc(byte[] their_node_id, org.ldk.structs.UpdateFailMalformedHTLC msg) { - bindings.ChannelMessageHandler_handle_update_fail_malformed_htlc(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleUpdateFailMalformedHtlc(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -696,7 +696,7 @@ public void handle_update_fail_malformed_htlc(byte[] their_node_id, org.ldk.stru * Handle an incoming `commitment_signed` message from the given peer. */ public void handle_commitment_signed(byte[] their_node_id, org.ldk.structs.CommitmentSigned msg) { - bindings.ChannelMessageHandler_handle_commitment_signed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleCommitmentSigned(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -707,7 +707,7 @@ public void handle_commitment_signed(byte[] their_node_id, org.ldk.structs.Commi * Handle an incoming `revoke_and_ack` message from the given peer. */ public void handle_revoke_and_ack(byte[] their_node_id, org.ldk.structs.RevokeAndACK msg) { - bindings.ChannelMessageHandler_handle_revoke_and_ack(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleRevokeAndAck(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -718,7 +718,7 @@ public void handle_revoke_and_ack(byte[] their_node_id, org.ldk.structs.RevokeAn * Handle an incoming `update_fee` message from the given peer. */ public void handle_update_fee(byte[] their_node_id, org.ldk.structs.UpdateFee msg) { - bindings.ChannelMessageHandler_handle_update_fee(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleUpdateFee(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -729,7 +729,7 @@ public void handle_update_fee(byte[] their_node_id, org.ldk.structs.UpdateFee ms * Handle an incoming `announcement_signatures` message from the given peer. */ public void handle_announcement_signatures(byte[] their_node_id, org.ldk.structs.AnnouncementSignatures msg) { - bindings.ChannelMessageHandler_handle_announcement_signatures(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleAnnouncementSignatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -740,7 +740,7 @@ public void handle_announcement_signatures(byte[] their_node_id, org.ldk.structs * Indicates a connection to the peer failed/an existing connection was lost. */ public void peer_disconnected(byte[] their_node_id) { - bindings.ChannelMessageHandler_peer_disconnected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + Bindings.ChannelMessageHandlerPeerDisconnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); } @@ -753,7 +753,7 @@ public void peer_disconnected(byte[] their_node_id) { * message handlers may still wish to communicate with this peer. */ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Init msg, bool inbound) { - long ret = bindings.ChannelMessageHandler_peer_connected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr, inbound); + long ret = Bindings.ChannelMessageHandlerPeerConnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr, inbound); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -768,7 +768,7 @@ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Ini * Handle an incoming `channel_reestablish` message from the given peer. */ public void handle_channel_reestablish(byte[] their_node_id, org.ldk.structs.ChannelReestablish msg) { - bindings.ChannelMessageHandler_handle_channel_reestablish(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleChannelReestablish(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -779,7 +779,7 @@ public void handle_channel_reestablish(byte[] their_node_id, org.ldk.structs.Cha * Handle an incoming `channel_update` message from the given peer. */ public void handle_channel_update(byte[] their_node_id, org.ldk.structs.ChannelUpdate msg) { - bindings.ChannelMessageHandler_handle_channel_update(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleChannelUpdate(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -790,7 +790,7 @@ public void handle_channel_update(byte[] their_node_id, org.ldk.structs.ChannelU * Handle an incoming `error` message from the given peer. */ public void handle_error(byte[] their_node_id, org.ldk.structs.ErrorMessage msg) { - bindings.ChannelMessageHandler_handle_error(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.ChannelMessageHandlerHandleError(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -803,7 +803,7 @@ public void handle_error(byte[] their_node_id, org.ldk.structs.ErrorMessage msg) * which are broadcasted in our [`NodeAnnouncement`] message. */ public NodeFeatures provided_node_features() { - long ret = bindings.ChannelMessageHandler_provided_node_features(this.ptr); + long ret = Bindings.ChannelMessageHandlerProvidedNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -819,7 +819,7 @@ public NodeFeatures provided_node_features() { * Note that this method is called before [`Self::peer_connected`]. */ public InitFeatures provided_init_features(byte[] their_node_id) { - long ret = bindings.ChannelMessageHandler_provided_init_features(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + long ret = Bindings.ChannelMessageHandlerProvidedInitFeatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -835,7 +835,7 @@ public InitFeatures provided_init_features(byte[] their_node_id) { * connecting to peers. */ public Option_CVec_ThirtyTwoBytesZZ get_chain_hashes() { - long ret = bindings.ChannelMessageHandler_get_chain_hashes(this.ptr); + long ret = Bindings.ChannelMessageHandlerGetChainHashes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelMonitor.cs b/c_sharp/src/org/ldk/structs/ChannelMonitor.cs index f16d4fd3f..c5b179fdb 100644 --- a/c_sharp/src/org/ldk/structs/ChannelMonitor.cs +++ b/c_sharp/src/org/ldk/structs/ChannelMonitor.cs @@ -22,11 +22,11 @@ namespace org { namespace ldk { namespace structs { public class ChannelMonitor : CommonBase { internal ChannelMonitor(object _dummy, long ptr) : base(ptr) { } ~ChannelMonitor() { - if (ptr != 0) { bindings.ChannelMonitor_free(ptr); } + if (ptr != 0) { Bindings.ChannelMonitorFree(ptr); } } internal long clone_ptr() { - long ret = bindings.ChannelMonitor_clone_ptr(this.ptr); + long ret = Bindings.ChannelMonitorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -35,7 +35,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelMonitor */ public ChannelMonitor clone() { - long ret = bindings.ChannelMonitor_clone(this.ptr); + long ret = Bindings.ChannelMonitorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelMonitor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelMonitor(null, ret); } @@ -47,10 +47,10 @@ public ChannelMonitor clone() { * Serialize the ChannelMonitor object into a byte array which can be read by ChannelMonitor_read */ public byte[] write() { - long ret = bindings.ChannelMonitor_write(this.ptr); + long ret = Bindings.ChannelMonitorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -61,7 +61,7 @@ public byte[] write() { * panics if the given update is not the next update by update_id. */ public Result_NoneNoneZ update_monitor(org.ldk.structs.ChannelMonitorUpdate updates, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - long ret = bindings.ChannelMonitor_update_monitor(this.ptr, updates == null ? 0 : updates.ptr, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + long ret = Bindings.ChannelMonitorUpdateMonitor(this.ptr, updates == null ? 0 : updates.ptr, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(updates); GC.KeepAlive(broadcaster); @@ -81,7 +81,7 @@ public Result_NoneNoneZ update_monitor(org.ldk.structs.ChannelMonitorUpdate upda * ChannelMonitor. */ public long get_latest_update_id() { - long ret = bindings.ChannelMonitor_get_latest_update_id(this.ptr); + long ret = Bindings.ChannelMonitorGetLatestUpdateId(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ public long get_latest_update_id() { * Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for. */ public TwoTuple_OutPointCVec_u8ZZ get_funding_txo() { - long ret = bindings.ChannelMonitor_get_funding_txo(this.ptr); + long ret = Bindings.ChannelMonitorGetFundingTxo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_OutPointCVec_u8ZZ ret_hu_conv = new TwoTuple_OutPointCVec_u8ZZ(null, ret); @@ -103,18 +103,18 @@ public TwoTuple_OutPointCVec_u8ZZ get_funding_txo() { * transaction), which we must learn about spends of via block_connected(). */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ[] get_outputs_to_watch() { - long ret = bindings.ChannelMonitor_get_outputs_to_watch(this.ptr); + long ret = Bindings.ChannelMonitorGetOutputsToWatch(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_52_len = InternalUtils.getArrayLength(ret); + int ret_conv_52_len = InternalUtils.GetArrayLength(ret); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ[] ret_conv_52_arr = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ[ret_conv_52_len]; for (int a = 0; a < ret_conv_52_len; a++) { - long ret_conv_52 = InternalUtils.getU64ArrayElem(ret, a); + long ret_conv_52 = InternalUtils.GetU64ArrayElem(ret, a); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ ret_conv_52_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ(null, ret_conv_52); if (ret_conv_52_hu_conv != null) { ret_conv_52_hu_conv.ptrs_to.AddLast(this); }; ret_conv_52_arr[a] = ret_conv_52_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_52_arr; } @@ -124,7 +124,7 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ[] get_outputs_to_watch * have been registered. */ public void load_outputs_to_watch(org.ldk.structs.Filter filter, org.ldk.structs.Logger logger) { - bindings.ChannelMonitor_load_outputs_to_watch(this.ptr, filter.ptr, logger.ptr); + Bindings.ChannelMonitorLoadOutputsToWatch(this.ptr, filter.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(filter); GC.KeepAlive(logger); @@ -137,18 +137,18 @@ public void load_outputs_to_watch(org.ldk.structs.Filter filter, org.ldk.structs * ChannelManager via [`chain::Watch::release_pending_monitor_events`]. */ public MonitorEvent[] get_and_clear_pending_monitor_events() { - long ret = bindings.ChannelMonitor_get_and_clear_pending_monitor_events(this.ptr); + long ret = Bindings.ChannelMonitorGetAndClearPendingMonitorEvents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_14_len = InternalUtils.getArrayLength(ret); + int ret_conv_14_len = InternalUtils.GetArrayLength(ret); MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret_conv_14_len]; for (int o = 0; o < ret_conv_14_len; o++) { - long ret_conv_14 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_14 = InternalUtils.GetU64ArrayElem(ret, o); org.ldk.structs.MonitorEvent ret_conv_14_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret_conv_14); if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); }; ret_conv_14_arr[o] = ret_conv_14_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_14_arr; } @@ -168,7 +168,7 @@ public MonitorEvent[] get_and_clear_pending_monitor_events() { * [`BumpTransaction`]: crate::events::Event::BumpTransaction */ public void process_pending_events(org.ldk.structs.EventHandler handler) { - bindings.ChannelMonitor_process_pending_events(this.ptr, handler.ptr); + Bindings.ChannelMonitorProcessPendingEvents(this.ptr, handler.ptr); GC.KeepAlive(this); GC.KeepAlive(handler); if (this != null) { this.ptrs_to.AddLast(handler); }; @@ -191,7 +191,7 @@ public void process_pending_events(org.ldk.structs.EventHandler handler) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public CommitmentTransaction initial_counterparty_commitment_tx() { - long ret = bindings.ChannelMonitor_initial_counterparty_commitment_tx(this.ptr); + long ret = Bindings.ChannelMonitorInitialCounterpartyCommitmentTx(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CommitmentTransaction(null, ret); } @@ -222,19 +222,19 @@ public CommitmentTransaction initial_counterparty_commitment_tx() { * [`Persist::update_persisted_channel`]: crate::chain::chainmonitor::Persist::update_persisted_channel */ public CommitmentTransaction[] counterparty_commitment_txs_from_update(org.ldk.structs.ChannelMonitorUpdate update) { - long ret = bindings.ChannelMonitor_counterparty_commitment_txs_from_update(this.ptr, update == null ? 0 : update.ptr); + long ret = Bindings.ChannelMonitorCounterpartyCommitmentTxsFromUpdate(this.ptr, update == null ? 0 : update.ptr); GC.KeepAlive(this); GC.KeepAlive(update); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_23_len = InternalUtils.getArrayLength(ret); + int ret_conv_23_len = InternalUtils.GetArrayLength(ret); CommitmentTransaction[] ret_conv_23_arr = new CommitmentTransaction[ret_conv_23_len]; for (int x = 0; x < ret_conv_23_len; x++) { - long ret_conv_23 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_23 = InternalUtils.GetU64ArrayElem(ret, x); org.ldk.structs.CommitmentTransaction ret_conv_23_hu_conv = null; if (ret_conv_23 < 0 || ret_conv_23 > 4096) { ret_conv_23_hu_conv = new org.ldk.structs.CommitmentTransaction(null, ret_conv_23); } if (ret_conv_23_hu_conv != null) { ret_conv_23_hu_conv.ptrs_to.AddLast(this); }; ret_conv_23_arr[x] = ret_conv_23_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); if (this != null) { this.ptrs_to.AddLast(update); }; return ret_conv_23_arr; } @@ -259,7 +259,7 @@ public CommitmentTransaction[] counterparty_commitment_txs_from_update(org.ldk.s * [`Persist`]: crate::chain::chainmonitor::Persist */ public Result_TransactionNoneZ sign_to_local_justice_tx(byte[] justice_tx, long input_idx, long value, long commitment_number) { - long ret = bindings.ChannelMonitor_sign_to_local_justice_tx(this.ptr, InternalUtils.encodeUint8Array(justice_tx), input_idx, value, commitment_number); + long ret = Bindings.ChannelMonitorSignToLocalJusticeTx(this.ptr, InternalUtils.EncodeUint8Array(justice_tx), input_idx, value, commitment_number); GC.KeepAlive(this); GC.KeepAlive(justice_tx); GC.KeepAlive(input_idx); @@ -279,10 +279,10 @@ public Result_TransactionNoneZ sign_to_local_justice_tx(byte[] justice_tx, long * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] get_counterparty_node_id() { - long ret = bindings.ChannelMonitor_get_counterparty_node_id(this.ptr); + long ret = Bindings.ChannelMonitorGetCounterpartyNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -303,18 +303,18 @@ public byte[] get_counterparty_node_id() { * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public byte[][] get_latest_holder_commitment_txn(org.ldk.structs.Logger logger) { - long ret = bindings.ChannelMonitor_get_latest_holder_commitment_txn(this.ptr, logger.ptr); + long ret = Bindings.ChannelMonitorGetLatestHolderCommitmentTxn(this.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); if (this != null) { this.ptrs_to.AddLast(logger); }; return ret_conv_8_arr; } @@ -333,7 +333,7 @@ public byte[][] get_latest_holder_commitment_txn(org.ldk.structs.Logger logger) * [`get_outputs_to_watch`]: #method.get_outputs_to_watch */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] block_connected(byte[] header, TwoTuple_usizeTransactionZ[] txdata, int height, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - long ret = bindings.ChannelMonitor_block_connected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + long ret = Bindings.ChannelMonitorBlockConnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(txdata); @@ -342,15 +342,15 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] block_connected(byte[] GC.KeepAlive(fee_estimator); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_49_len = InternalUtils.getArrayLength(ret); + int ret_conv_49_len = InternalUtils.GetArrayLength(ret); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] ret_conv_49_arr = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[ret_conv_49_len]; for (int x = 0; x < ret_conv_49_len; x++) { - long ret_conv_49 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_49 = InternalUtils.GetU64ArrayElem(ret, x); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ ret_conv_49_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_49); if (ret_conv_49_hu_conv != null) { ret_conv_49_hu_conv.ptrs_to.AddLast(this); }; ret_conv_49_arr[x] = ret_conv_49_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); if (this != null) { this.ptrs_to.AddLast(broadcaster); }; if (this != null) { this.ptrs_to.AddLast(fee_estimator); }; if (this != null) { this.ptrs_to.AddLast(logger); }; @@ -362,7 +362,7 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] block_connected(byte[] * appropriately. */ public void block_disconnected(byte[] header, int height, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - bindings.ChannelMonitor_block_disconnected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + Bindings.ChannelMonitorBlockDisconnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(height); @@ -384,7 +384,7 @@ public void block_disconnected(byte[] header, int height, org.ldk.structs.Broadc * [`block_connected`]: Self::block_connected */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] transactions_confirmed(byte[] header, TwoTuple_usizeTransactionZ[] txdata, int height, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - long ret = bindings.ChannelMonitor_transactions_confirmed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + long ret = Bindings.ChannelMonitorTransactionsConfirmed(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(txdata); @@ -393,15 +393,15 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] transactions_confirmed( GC.KeepAlive(fee_estimator); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_49_len = InternalUtils.getArrayLength(ret); + int ret_conv_49_len = InternalUtils.GetArrayLength(ret); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] ret_conv_49_arr = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[ret_conv_49_len]; for (int x = 0; x < ret_conv_49_len; x++) { - long ret_conv_49 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_49 = InternalUtils.GetU64ArrayElem(ret, x); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ ret_conv_49_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_49); if (ret_conv_49_hu_conv != null) { ret_conv_49_hu_conv.ptrs_to.AddLast(this); }; ret_conv_49_arr[x] = ret_conv_49_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); if (this != null) { this.ptrs_to.AddLast(broadcaster); }; if (this != null) { this.ptrs_to.AddLast(fee_estimator); }; if (this != null) { this.ptrs_to.AddLast(logger); }; @@ -417,7 +417,7 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] transactions_confirmed( * [`block_disconnected`]: Self::block_disconnected */ public void transaction_unconfirmed(byte[] txid, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - bindings.ChannelMonitor_transaction_unconfirmed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(txid, 32)), broadcaster.ptr, fee_estimator.ptr, logger.ptr); + Bindings.ChannelMonitorTransactionUnconfirmed(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(txid, 32)), broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(txid); GC.KeepAlive(broadcaster); @@ -438,7 +438,7 @@ public void transaction_unconfirmed(byte[] txid, org.ldk.structs.BroadcasterInte * [`block_connected`]: Self::block_connected */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] best_block_updated(byte[] header, int height, org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - long ret = bindings.ChannelMonitor_best_block_updated(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + long ret = Bindings.ChannelMonitorBestBlockUpdated(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), height, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(height); @@ -446,15 +446,15 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] best_block_updated(byte GC.KeepAlive(fee_estimator); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_49_len = InternalUtils.getArrayLength(ret); + int ret_conv_49_len = InternalUtils.GetArrayLength(ret); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] ret_conv_49_arr = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[ret_conv_49_len]; for (int x = 0; x < ret_conv_49_len; x++) { - long ret_conv_49 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_49 = InternalUtils.GetU64ArrayElem(ret, x); TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ ret_conv_49_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_49); if (ret_conv_49_hu_conv != null) { ret_conv_49_hu_conv.ptrs_to.AddLast(this); }; ret_conv_49_arr[x] = ret_conv_49_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); if (this != null) { this.ptrs_to.AddLast(broadcaster); }; if (this != null) { this.ptrs_to.AddLast(fee_estimator); }; if (this != null) { this.ptrs_to.AddLast(logger); }; @@ -465,18 +465,18 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ[] best_block_updated(byte * Returns the set of txids that should be monitored for re-organization out of the chain. */ public ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] get_relevant_txids() { - long ret = bindings.ChannelMonitor_get_relevant_txids(this.ptr); + long ret = Bindings.ChannelMonitorGetRelevantTxids(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_54_len = InternalUtils.getArrayLength(ret); + int ret_conv_54_len = InternalUtils.GetArrayLength(ret); ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] ret_conv_54_arr = new ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[ret_conv_54_len]; for (int c = 0; c < ret_conv_54_len; c++) { - long ret_conv_54 = InternalUtils.getU64ArrayElem(ret, c); + long ret_conv_54 = InternalUtils.GetU64ArrayElem(ret, c); ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ ret_conv_54_hu_conv = new ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ(null, ret_conv_54); if (ret_conv_54_hu_conv != null) { ret_conv_54_hu_conv.ptrs_to.AddLast(this); }; ret_conv_54_arr[c] = ret_conv_54_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_54_arr; } @@ -485,7 +485,7 @@ public ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] get_relevant_txids * [`chain::Confirm`] interfaces. */ public BestBlock current_best_block() { - long ret = bindings.ChannelMonitor_current_best_block(this.ptr); + long ret = Bindings.ChannelMonitorCurrentBestBlock(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); } @@ -501,7 +501,7 @@ public BestBlock current_best_block() { * connections, like on mobile. */ public void rebroadcast_pending_claims(org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, org.ldk.structs.Logger logger) { - bindings.ChannelMonitor_rebroadcast_pending_claims(this.ptr, broadcaster.ptr, fee_estimator.ptr, logger.ptr); + Bindings.ChannelMonitorRebroadcastPendingClaims(this.ptr, broadcaster.ptr, fee_estimator.ptr, logger.ptr); GC.KeepAlive(this); GC.KeepAlive(broadcaster); GC.KeepAlive(fee_estimator); @@ -532,20 +532,20 @@ public void rebroadcast_pending_claims(org.ldk.structs.BroadcasterInterface broa * `confirmation_height` must be the height of the block in which `tx` was included in. */ public SpendableOutputDescriptor[] get_spendable_outputs(byte[] tx, int confirmation_height) { - long ret = bindings.ChannelMonitor_get_spendable_outputs(this.ptr, InternalUtils.encodeUint8Array(tx), confirmation_height); + long ret = Bindings.ChannelMonitorGetSpendableOutputs(this.ptr, InternalUtils.EncodeUint8Array(tx), confirmation_height); GC.KeepAlive(this); GC.KeepAlive(tx); GC.KeepAlive(confirmation_height); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_27_len = InternalUtils.getArrayLength(ret); + int ret_conv_27_len = InternalUtils.GetArrayLength(ret); SpendableOutputDescriptor[] ret_conv_27_arr = new SpendableOutputDescriptor[ret_conv_27_len]; for (int b = 0; b < ret_conv_27_len; b++) { - long ret_conv_27 = InternalUtils.getU64ArrayElem(ret, b); + long ret_conv_27 = InternalUtils.GetU64ArrayElem(ret, b); org.ldk.structs.SpendableOutputDescriptor ret_conv_27_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret_conv_27); if (ret_conv_27_hu_conv != null) { ret_conv_27_hu_conv.ptrs_to.AddLast(this); }; ret_conv_27_arr[b] = ret_conv_27_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_27_arr; } @@ -566,18 +566,18 @@ public SpendableOutputDescriptor[] get_spendable_outputs(byte[] tx, int confirma * may be returned here and their meanings. */ public Balance[] get_claimable_balances() { - long ret = bindings.ChannelMonitor_get_claimable_balances(this.ptr); + long ret = Bindings.ChannelMonitorGetClaimableBalances(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_9_len = InternalUtils.getArrayLength(ret); + int ret_conv_9_len = InternalUtils.GetArrayLength(ret); Balance[] ret_conv_9_arr = new Balance[ret_conv_9_len]; for (int j = 0; j < ret_conv_9_len; j++) { - long ret_conv_9 = InternalUtils.getU64ArrayElem(ret, j); + long ret_conv_9 = InternalUtils.GetU64ArrayElem(ret, j); org.ldk.structs.Balance ret_conv_9_hu_conv = org.ldk.structs.Balance.constr_from_ptr(ret_conv_9); if (ret_conv_9_hu_conv != null) { ret_conv_9_hu_conv.ptrs_to.AddLast(this); }; ret_conv_9_arr[j] = ret_conv_9_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_9_arr; } diff --git a/c_sharp/src/org/ldk/structs/ChannelMonitorUpdate.cs b/c_sharp/src/org/ldk/structs/ChannelMonitorUpdate.cs index cc3bd5d1a..e86232a16 100644 --- a/c_sharp/src/org/ldk/structs/ChannelMonitorUpdate.cs +++ b/c_sharp/src/org/ldk/structs/ChannelMonitorUpdate.cs @@ -18,7 +18,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelMonitorUpdate : CommonBase { internal ChannelMonitorUpdate(object _dummy, long ptr) : base(ptr) { } ~ChannelMonitorUpdate() { - if (ptr != 0) { bindings.ChannelMonitorUpdate_free(ptr); } + if (ptr != 0) { Bindings.ChannelMonitorUpdateFree(ptr); } } /** @@ -39,7 +39,7 @@ internal ChannelMonitorUpdate(object _dummy, long ptr) : base(ptr) { } * [`ChannelMonitorUpdateStatus::InProgress`]: super::ChannelMonitorUpdateStatus::InProgress */ public long get_update_id() { - long ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr); + long ret = Bindings.ChannelMonitorUpdateGetUpdateId(this.ptr); GC.KeepAlive(this); return ret; } @@ -62,13 +62,13 @@ public long get_update_id() { * [`ChannelMonitorUpdateStatus::InProgress`]: super::ChannelMonitorUpdateStatus::InProgress */ public void set_update_id(long val) { - bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val); + Bindings.ChannelMonitorUpdateSetUpdateId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.ChannelMonitorUpdate_clone_ptr(this.ptr); + long ret = Bindings.ChannelMonitorUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -77,7 +77,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelMonitorUpdate */ public ChannelMonitorUpdate clone() { - long ret = bindings.ChannelMonitorUpdate_clone(this.ptr); + long ret = Bindings.ChannelMonitorUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelMonitorUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelMonitorUpdate(null, ret); } @@ -91,7 +91,7 @@ public ChannelMonitorUpdate clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelMonitorUpdate b) { - bool ret = bindings.ChannelMonitorUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelMonitorUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -106,10 +106,10 @@ public override bool Equals(object o) { * Serialize the ChannelMonitorUpdate object into a byte array which can be read by ChannelMonitorUpdate_read */ public byte[] write() { - long ret = bindings.ChannelMonitorUpdate_write(this.ptr); + long ret = Bindings.ChannelMonitorUpdateWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -117,7 +117,7 @@ public byte[] write() { * Read a ChannelMonitorUpdate from a byte array, created by ChannelMonitorUpdate_write */ public static Result_ChannelMonitorUpdateDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelMonitorUpdate_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelMonitorUpdateRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelPublicKeys.cs b/c_sharp/src/org/ldk/structs/ChannelPublicKeys.cs index 43b596e40..394f93dc0 100644 --- a/c_sharp/src/org/ldk/structs/ChannelPublicKeys.cs +++ b/c_sharp/src/org/ldk/structs/ChannelPublicKeys.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelPublicKeys : CommonBase { internal ChannelPublicKeys(object _dummy, long ptr) : base(ptr) { } ~ChannelPublicKeys() { - if (ptr != 0) { bindings.ChannelPublicKeys_free(ptr); } + if (ptr != 0) { Bindings.ChannelPublicKeysFree(ptr); } } /** @@ -20,10 +20,10 @@ internal ChannelPublicKeys(object _dummy, long ptr) : base(ptr) { } * on-chain channel lock-in 2-of-2 multisig output. */ public byte[] get_funding_pubkey() { - long ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr); + long ret = Bindings.ChannelPublicKeysGetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_funding_pubkey() { * on-chain channel lock-in 2-of-2 multisig output. */ public void set_funding_pubkey(byte[] val) { - bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ChannelPublicKeysSetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,7 +44,7 @@ public void set_funding_pubkey(byte[] val) { * states. */ public RevocationBasepoint get_revocation_basepoint() { - long ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr); + long ret = Bindings.ChannelPublicKeysGetRevocationBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationBasepoint(null, ret); } @@ -59,7 +59,7 @@ public RevocationBasepoint get_revocation_basepoint() { * states. */ public void set_revocation_basepoint(org.ldk.structs.RevocationBasepoint val) { - bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelPublicKeysSetRevocationBasepoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -71,10 +71,10 @@ public void set_revocation_basepoint(org.ldk.structs.RevocationBasepoint val) { * static across every commitment transaction. */ public byte[] get_payment_point() { - long ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr); + long ret = Bindings.ChannelPublicKeysGetPaymentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -84,7 +84,7 @@ public byte[] get_payment_point() { * static across every commitment transaction. */ public void set_payment_point(byte[] val) { - bindings.ChannelPublicKeys_set_payment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ChannelPublicKeysSetPaymentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -95,7 +95,7 @@ public void set_payment_point(byte[] val) { * after some delay (or can be claimed via the revocation path). */ public DelayedPaymentBasepoint get_delayed_payment_basepoint() { - long ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr); + long ret = Bindings.ChannelPublicKeysGetDelayedPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentBasepoint(null, ret); } @@ -109,7 +109,7 @@ public DelayedPaymentBasepoint get_delayed_payment_basepoint() { * after some delay (or can be claimed via the revocation path). */ public void set_delayed_payment_basepoint(org.ldk.structs.DelayedPaymentBasepoint val) { - bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelPublicKeysSetDelayedPaymentBasepoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -120,7 +120,7 @@ public void set_delayed_payment_basepoint(org.ldk.structs.DelayedPaymentBasepoin * which is used to encumber HTLC-in-flight outputs. */ public HtlcBasepoint get_htlc_basepoint() { - long ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr); + long ret = Bindings.ChannelPublicKeysGetHtlcBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcBasepoint(null, ret); } @@ -133,7 +133,7 @@ public HtlcBasepoint get_htlc_basepoint() { * which is used to encumber HTLC-in-flight outputs. */ public void set_htlc_basepoint(org.ldk.structs.HtlcBasepoint val) { - bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelPublicKeysSetHtlcBasepoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -143,7 +143,7 @@ public void set_htlc_basepoint(org.ldk.structs.HtlcBasepoint val) { * Constructs a new ChannelPublicKeys given each field */ public static ChannelPublicKeys of(byte[] funding_pubkey_arg, org.ldk.structs.RevocationBasepoint revocation_basepoint_arg, byte[] payment_point_arg, org.ldk.structs.DelayedPaymentBasepoint delayed_payment_basepoint_arg, org.ldk.structs.HtlcBasepoint htlc_basepoint_arg) { - long ret = bindings.ChannelPublicKeys_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33)), revocation_basepoint_arg == null ? 0 : revocation_basepoint_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_point_arg, 33)), delayed_payment_basepoint_arg == null ? 0 : delayed_payment_basepoint_arg.ptr, htlc_basepoint_arg == null ? 0 : htlc_basepoint_arg.ptr); + long ret = Bindings.ChannelPublicKeysNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33)), revocation_basepoint_arg == null ? 0 : revocation_basepoint_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_point_arg, 33)), delayed_payment_basepoint_arg == null ? 0 : delayed_payment_basepoint_arg.ptr, htlc_basepoint_arg == null ? 0 : htlc_basepoint_arg.ptr); GC.KeepAlive(funding_pubkey_arg); GC.KeepAlive(revocation_basepoint_arg); GC.KeepAlive(payment_point_arg); @@ -159,7 +159,7 @@ public static ChannelPublicKeys of(byte[] funding_pubkey_arg, org.ldk.structs.Re } internal long clone_ptr() { - long ret = bindings.ChannelPublicKeys_clone_ptr(this.ptr); + long ret = Bindings.ChannelPublicKeysClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -168,7 +168,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelPublicKeys */ public ChannelPublicKeys clone() { - long ret = bindings.ChannelPublicKeys_clone(this.ptr); + long ret = Bindings.ChannelPublicKeysClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -180,7 +180,7 @@ public ChannelPublicKeys clone() { * Generates a non-cryptographic 64-bit hash of the ChannelPublicKeys. */ public long hash() { - long ret = bindings.ChannelPublicKeys_hash(this.ptr); + long ret = Bindings.ChannelPublicKeysHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -194,7 +194,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelPublicKeys b) { - bool ret = bindings.ChannelPublicKeys_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelPublicKeysEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -209,10 +209,10 @@ public override bool Equals(object o) { * Serialize the ChannelPublicKeys object into a byte array which can be read by ChannelPublicKeys_read */ public byte[] write() { - long ret = bindings.ChannelPublicKeys_write(this.ptr); + long ret = Bindings.ChannelPublicKeysWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -220,7 +220,7 @@ public byte[] write() { * Read a ChannelPublicKeys from a byte array, created by ChannelPublicKeys_write */ public static Result_ChannelPublicKeysDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelPublicKeys_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelPublicKeysRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelReady.cs b/c_sharp/src/org/ldk/structs/ChannelReady.cs index 358001a74..6e7734849 100644 --- a/c_sharp/src/org/ldk/structs/ChannelReady.cs +++ b/c_sharp/src/org/ldk/structs/ChannelReady.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class ChannelReady : CommonBase { internal ChannelReady(object _dummy, long ptr) : base(ptr) { } ~ChannelReady() { - if (ptr != 0) { bindings.ChannelReady_free(ptr); } + if (ptr != 0) { Bindings.ChannelReadyFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.ChannelReady_get_channel_id(this.ptr); + long ret = Bindings.ChannelReadyGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.ChannelReady_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ChannelReadySetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_channel_id(byte[] val) { * The per-commitment point of the second commitment transaction */ public byte[] get_next_per_commitment_point() { - long ret = bindings.ChannelReady_get_next_per_commitment_point(this.ptr); + long ret = Bindings.ChannelReadyGetNextPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_next_per_commitment_point() { * The per-commitment point of the second commitment transaction */ public void set_next_per_commitment_point(byte[] val) { - bindings.ChannelReady_set_next_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ChannelReadySetNextPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,7 +64,7 @@ public void set_next_per_commitment_point(byte[] val) { * messages' recipient. */ public Option_u64Z get_short_channel_id_alias() { - long ret = bindings.ChannelReady_get_short_channel_id_alias(this.ptr); + long ret = Bindings.ChannelReadyGetShortChannelIdAlias(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -79,7 +79,7 @@ public Option_u64Z get_short_channel_id_alias() { * messages' recipient. */ public void set_short_channel_id_alias(org.ldk.structs.Option_u64Z val) { - bindings.ChannelReady_set_short_channel_id_alias(this.ptr, val.ptr); + Bindings.ChannelReadySetShortChannelIdAlias(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -89,7 +89,7 @@ public void set_short_channel_id_alias(org.ldk.structs.Option_u64Z val) { * Constructs a new ChannelReady given each field */ public static ChannelReady of(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, org.ldk.structs.Option_u64Z short_channel_id_alias_arg) { - long ret = bindings.ChannelReady_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(next_per_commitment_point_arg, 33)), short_channel_id_alias_arg.ptr); + long ret = Bindings.ChannelReadyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(next_per_commitment_point_arg, 33)), short_channel_id_alias_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(next_per_commitment_point_arg); GC.KeepAlive(short_channel_id_alias_arg); @@ -101,7 +101,7 @@ public static ChannelReady of(byte[] channel_id_arg, byte[] next_per_commitment_ } internal long clone_ptr() { - long ret = bindings.ChannelReady_clone_ptr(this.ptr); + long ret = Bindings.ChannelReadyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelReady */ public ChannelReady clone() { - long ret = bindings.ChannelReady_clone(this.ptr); + long ret = Bindings.ChannelReadyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelReady ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelReady(null, ret); } @@ -122,7 +122,7 @@ public ChannelReady clone() { * Generates a non-cryptographic 64-bit hash of the ChannelReady. */ public long hash() { - long ret = bindings.ChannelReady_hash(this.ptr); + long ret = Bindings.ChannelReadyHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -136,7 +136,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelReady b) { - bool ret = bindings.ChannelReady_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelReadyEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -151,10 +151,10 @@ public override bool Equals(object o) { * Serialize the ChannelReady object into a byte array which can be read by ChannelReady_read */ public byte[] write() { - long ret = bindings.ChannelReady_write(this.ptr); + long ret = Bindings.ChannelReadyWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -162,7 +162,7 @@ public byte[] write() { * Read a ChannelReady from a byte array, created by ChannelReady_write */ public static Result_ChannelReadyDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelReady_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelReadyRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelReestablish.cs b/c_sharp/src/org/ldk/structs/ChannelReestablish.cs index 5d3bd2235..f11a8f985 100644 --- a/c_sharp/src/org/ldk/structs/ChannelReestablish.cs +++ b/c_sharp/src/org/ldk/structs/ChannelReestablish.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class ChannelReestablish : CommonBase { internal ChannelReestablish(object _dummy, long ptr) : base(ptr) { } ~ChannelReestablish() { - if (ptr != 0) { bindings.ChannelReestablish_free(ptr); } + if (ptr != 0) { Bindings.ChannelReestablishFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.ChannelReestablish_get_channel_id(this.ptr); + long ret = Bindings.ChannelReestablishGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.ChannelReestablish_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ChannelReestablishSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The next commitment number for the sender */ public long get_next_local_commitment_number() { - long ret = bindings.ChannelReestablish_get_next_local_commitment_number(this.ptr); + long ret = Bindings.ChannelReestablishGetNextLocalCommitmentNumber(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_next_local_commitment_number() { * The next commitment number for the sender */ public void set_next_local_commitment_number(long val) { - bindings.ChannelReestablish_set_next_local_commitment_number(this.ptr, val); + Bindings.ChannelReestablishSetNextLocalCommitmentNumber(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_next_local_commitment_number(long val) { * The next commitment number for the recipient */ public long get_next_remote_commitment_number() { - long ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this.ptr); + long ret = Bindings.ChannelReestablishGetNextRemoteCommitmentNumber(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public long get_next_remote_commitment_number() { * The next commitment number for the recipient */ public void set_next_remote_commitment_number(long val) { - bindings.ChannelReestablish_set_next_remote_commitment_number(this.ptr, val); + Bindings.ChannelReestablishSetNextRemoteCommitmentNumber(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -78,10 +78,10 @@ public void set_next_remote_commitment_number(long val) { * belonging to the recipient */ public byte[] get_your_last_per_commitment_secret() { - long ret = bindings.ChannelReestablish_get_your_last_per_commitment_secret(this.ptr); + long ret = Bindings.ChannelReestablishGetYourLastPerCommitmentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -90,7 +90,7 @@ public byte[] get_your_last_per_commitment_secret() { * belonging to the recipient */ public void set_your_last_per_commitment_secret(byte[] val) { - bindings.ChannelReestablish_set_your_last_per_commitment_secret(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ChannelReestablishSetYourLastPerCommitmentSecret(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,10 +99,10 @@ public void set_your_last_per_commitment_secret(byte[] val) { * The sender's per-commitment point for their current commitment transaction */ public byte[] get_my_current_per_commitment_point() { - long ret = bindings.ChannelReestablish_get_my_current_per_commitment_point(this.ptr); + long ret = Bindings.ChannelReestablishGetMyCurrentPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -110,7 +110,7 @@ public byte[] get_my_current_per_commitment_point() { * The sender's per-commitment point for their current commitment transaction */ public void set_my_current_per_commitment_point(byte[] val) { - bindings.ChannelReestablish_set_my_current_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ChannelReestablishSetMyCurrentPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -119,7 +119,7 @@ public void set_my_current_per_commitment_point(byte[] val) { * The next funding transaction ID */ public Option_ThirtyTwoBytesZ get_next_funding_txid() { - long ret = bindings.ChannelReestablish_get_next_funding_txid(this.ptr); + long ret = Bindings.ChannelReestablishGetNextFundingTxid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -131,7 +131,7 @@ public Option_ThirtyTwoBytesZ get_next_funding_txid() { * The next funding transaction ID */ public void set_next_funding_txid(org.ldk.structs.Option_ThirtyTwoBytesZ val) { - bindings.ChannelReestablish_set_next_funding_txid(this.ptr, val.ptr); + Bindings.ChannelReestablishSetNextFundingTxid(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -141,7 +141,7 @@ public void set_next_funding_txid(org.ldk.structs.Option_ThirtyTwoBytesZ val) { * Constructs a new ChannelReestablish given each field */ public static ChannelReestablish of(byte[] channel_id_arg, long next_local_commitment_number_arg, long next_remote_commitment_number_arg, byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg, org.ldk.structs.Option_ThirtyTwoBytesZ next_funding_txid_arg) { - long ret = bindings.ChannelReestablish_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), next_local_commitment_number_arg, next_remote_commitment_number_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(your_last_per_commitment_secret_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(my_current_per_commitment_point_arg, 33)), next_funding_txid_arg.ptr); + long ret = Bindings.ChannelReestablishNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), next_local_commitment_number_arg, next_remote_commitment_number_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(your_last_per_commitment_secret_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(my_current_per_commitment_point_arg, 33)), next_funding_txid_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(next_local_commitment_number_arg); GC.KeepAlive(next_remote_commitment_number_arg); @@ -156,7 +156,7 @@ public static ChannelReestablish of(byte[] channel_id_arg, long next_local_commi } internal long clone_ptr() { - long ret = bindings.ChannelReestablish_clone_ptr(this.ptr); + long ret = Bindings.ChannelReestablishClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -165,7 +165,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelReestablish */ public ChannelReestablish clone() { - long ret = bindings.ChannelReestablish_clone(this.ptr); + long ret = Bindings.ChannelReestablishClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelReestablish ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelReestablish(null, ret); } @@ -177,7 +177,7 @@ public ChannelReestablish clone() { * Generates a non-cryptographic 64-bit hash of the ChannelReestablish. */ public long hash() { - long ret = bindings.ChannelReestablish_hash(this.ptr); + long ret = Bindings.ChannelReestablishHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -191,7 +191,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelReestablish b) { - bool ret = bindings.ChannelReestablish_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelReestablishEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -206,10 +206,10 @@ public override bool Equals(object o) { * Serialize the ChannelReestablish object into a byte array which can be read by ChannelReestablish_read */ public byte[] write() { - long ret = bindings.ChannelReestablish_write(this.ptr); + long ret = Bindings.ChannelReestablishWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -217,7 +217,7 @@ public byte[] write() { * Read a ChannelReestablish from a byte array, created by ChannelReestablish_write */ public static Result_ChannelReestablishDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelReestablish_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelReestablishRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelSigner.cs b/c_sharp/src/org/ldk/structs/ChannelSigner.cs index 66e4cd683..f846ab7af 100644 --- a/c_sharp/src/org/ldk/structs/ChannelSigner.cs +++ b/c_sharp/src/org/ldk/structs/ChannelSigner.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of ChannelSigner */ -public interface ChannelSignerInterface { +public interface IChannelSigner { /**Gets the per-commitment point for a specific commitment number * * Note that the commitment number starts at `(1 << 48) - 1` and counts backwards. @@ -69,60 +69,60 @@ public interface ChannelSignerInterface { * the signature mechanism. */ public class ChannelSigner : CommonBase { - internal bindings.LDKChannelSigner bindings_instance; + internal Bindings.LDKChannelSigner bindings_instance; internal long instance_idx; internal ChannelSigner(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~ChannelSigner() { - if (ptr != 0) { bindings.ChannelSigner_free(ptr); } + if (ptr != 0) { Bindings.ChannelSignerFree(ptr); } } private class LDKChannelSignerHolder { internal ChannelSigner held; } - private class LDKChannelSignerImpl : bindings.LDKChannelSigner { - internal LDKChannelSignerImpl(ChannelSignerInterface arg, LDKChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ChannelSignerInterface arg; + private class LDKChannelSignerImpl : Bindings.LDKChannelSigner { + internal LDKChannelSignerImpl(IChannelSigner arg, LDKChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IChannelSigner arg; private LDKChannelSignerHolder impl_holder; - public long get_per_commitment_point(long _idx) { + public long GetPerCommitmentPoint(long _idx) { byte[] ret = arg.get_per_commitment_point(_idx); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 33)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 33)); return result; } - public long release_commitment_secret(long _idx) { + public long ReleaseCommitmentSecret(long _idx) { byte[] ret = arg.release_commitment_secret(_idx); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 32)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 32)); return result; } - public long validate_holder_commitment(long _holder_tx, long _outbound_htlc_preimages) { + public long ValidateHolderCommitment(long _holder_tx, long _outbound_htlc_preimages) { org.ldk.structs.HolderCommitmentTransaction _holder_tx_hu_conv = null; if (_holder_tx < 0 || _holder_tx > 4096) { _holder_tx_hu_conv = new org.ldk.structs.HolderCommitmentTransaction(null, _holder_tx); } - int _outbound_htlc_preimages_conv_8_len = InternalUtils.getArrayLength(_outbound_htlc_preimages); + int _outbound_htlc_preimages_conv_8_len = InternalUtils.GetArrayLength(_outbound_htlc_preimages); byte[][] _outbound_htlc_preimages_conv_8_arr = new byte[_outbound_htlc_preimages_conv_8_len][]; for (int i = 0; i < _outbound_htlc_preimages_conv_8_len; i++) { - long _outbound_htlc_preimages_conv_8 = InternalUtils.getU64ArrayElem(_outbound_htlc_preimages, i); - byte[] _outbound_htlc_preimages_conv_8_conv = InternalUtils.decodeUint8Array(_outbound_htlc_preimages_conv_8); + long _outbound_htlc_preimages_conv_8 = InternalUtils.GetU64ArrayElem(_outbound_htlc_preimages, i); + byte[] _outbound_htlc_preimages_conv_8_conv = InternalUtils.DecodeUint8Array(_outbound_htlc_preimages_conv_8); _outbound_htlc_preimages_conv_8_arr[i] = _outbound_htlc_preimages_conv_8_conv; } - bindings.free_buffer(_outbound_htlc_preimages); + Bindings.FreeBuffer(_outbound_htlc_preimages); Result_NoneNoneZ ret = arg.validate_holder_commitment(_holder_tx_hu_conv, _outbound_htlc_preimages_conv_8_arr); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long validate_counterparty_revocation(long _idx, long _secret) { - byte[] _secret_conv = InternalUtils.decodeUint8Array(_secret); + public long ValidateCounterpartyRevocation(long _idx, long _secret) { + byte[] _secret_conv = InternalUtils.DecodeUint8Array(_secret); Result_NoneNoneZ ret = arg.validate_counterparty_revocation(_idx, _secret_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long channel_keys_id() { + public long ChannelKeysId() { byte[] ret = arg.channel_keys_id(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 32)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 32)); return result; } - public void provide_channel_parameters(long _channel_parameters) { + public void ProvideChannelParameters(long _channel_parameters) { org.ldk.structs.ChannelTransactionParameters _channel_parameters_hu_conv = null; if (_channel_parameters < 0 || _channel_parameters > 4096) { _channel_parameters_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, _channel_parameters); } arg.provide_channel_parameters(_channel_parameters_hu_conv); GC.KeepAlive(arg); @@ -130,10 +130,10 @@ public void provide_channel_parameters(long _channel_parameters) { } /** Creates a new instance of ChannelSigner from a given implementation */ - public static ChannelSigner new_impl(ChannelSignerInterface arg, ChannelPublicKeys pubkeys) { + public static ChannelSigner new_impl(IChannelSigner arg, ChannelPublicKeys pubkeys) { LDKChannelSignerHolder impl_holder = new LDKChannelSignerHolder(); LDKChannelSignerImpl impl = new LDKChannelSignerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKChannelSigner_new(impl, pubkeys == null ? 0 : pubkeys.clone_ptr()); + long[] ptr_idx = Bindings.LDKChannelSignerNew(impl, pubkeys == null ? 0 : pubkeys.clone_ptr()); impl_holder.held = new ChannelSigner(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -147,11 +147,11 @@ public static ChannelSigner new_impl(ChannelSignerInterface arg, ChannelPublicKe * Note that the commitment number starts at `(1 << 48) - 1` and counts backwards. */ public byte[] get_per_commitment_point(long idx) { - long ret = bindings.ChannelSigner_get_per_commitment_point(this.ptr, idx); + long ret = Bindings.ChannelSignerGetPerCommitmentPoint(this.ptr, idx); GC.KeepAlive(this); GC.KeepAlive(idx); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -166,11 +166,11 @@ public byte[] get_per_commitment_point(long idx) { * Note that the commitment number starts at `(1 << 48) - 1` and counts backwards. */ public byte[] release_commitment_secret(long idx) { - long ret = bindings.ChannelSigner_release_commitment_secret(this.ptr, idx); + long ret = Bindings.ChannelSignerReleaseCommitmentSecret(this.ptr, idx); GC.KeepAlive(this); GC.KeepAlive(idx); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -190,7 +190,7 @@ public byte[] release_commitment_secret(long idx) { * irrelevant or duplicate preimages. */ public Result_NoneNoneZ validate_holder_commitment(org.ldk.structs.HolderCommitmentTransaction holder_tx, byte[][] outbound_htlc_preimages) { - long ret = bindings.ChannelSigner_validate_holder_commitment(this.ptr, holder_tx == null ? 0 : holder_tx.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(outbound_htlc_preimages, outbound_htlc_preimages_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(outbound_htlc_preimages_conv_8, 32))))); + long ret = Bindings.ChannelSignerValidateHolderCommitment(this.ptr, holder_tx == null ? 0 : holder_tx.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outbound_htlc_preimages, outbound_htlc_preimages_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(outbound_htlc_preimages_conv_8, 32))))); GC.KeepAlive(this); GC.KeepAlive(holder_tx); GC.KeepAlive(outbound_htlc_preimages); @@ -207,7 +207,7 @@ public Result_NoneNoneZ validate_holder_commitment(org.ldk.structs.HolderCommitm * forward and it is safe to sign the next counterparty commitment. */ public Result_NoneNoneZ validate_counterparty_revocation(long idx, byte[] secret) { - long ret = bindings.ChannelSigner_validate_counterparty_revocation(this.ptr, idx, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(secret, 32))); + long ret = Bindings.ChannelSignerValidateCounterpartyRevocation(this.ptr, idx, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(secret, 32))); GC.KeepAlive(this); GC.KeepAlive(idx); GC.KeepAlive(secret); @@ -222,10 +222,10 @@ public Result_NoneNoneZ validate_counterparty_revocation(long idx, byte[] secret * [`EcdsaChannelSigner`] object uniquely and lookup or re-derive its keys. */ public byte[] channel_keys_id() { - long ret = bindings.ChannelSigner_channel_keys_id(this.ptr); + long ret = Bindings.ChannelSignerChannelKeysId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -241,7 +241,7 @@ public byte[] channel_keys_id() { * channel_parameters.is_populated() MUST be true. */ public void provide_channel_parameters(org.ldk.structs.ChannelTransactionParameters channel_parameters) { - bindings.ChannelSigner_provide_channel_parameters(this.ptr, channel_parameters == null ? 0 : channel_parameters.ptr); + Bindings.ChannelSignerProvideChannelParameters(this.ptr, channel_parameters == null ? 0 : channel_parameters.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_parameters); if (this != null) { this.ptrs_to.AddLast(channel_parameters); }; @@ -252,7 +252,7 @@ public void provide_channel_parameters(org.ldk.structs.ChannelTransactionParamet * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. */ public ChannelPublicKeys get_pubkeys() { - long ret = bindings.ChannelSigner_get_pubkeys(this.ptr); + long ret = Bindings.ChannelSignerGetPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ChannelTransactionParameters.cs b/c_sharp/src/org/ldk/structs/ChannelTransactionParameters.cs index 974dfe6b9..220c340ee 100644 --- a/c_sharp/src/org/ldk/structs/ChannelTransactionParameters.cs +++ b/c_sharp/src/org/ldk/structs/ChannelTransactionParameters.cs @@ -16,14 +16,14 @@ namespace org { namespace ldk { namespace structs { public class ChannelTransactionParameters : CommonBase { internal ChannelTransactionParameters(object _dummy, long ptr) : base(ptr) { } ~ChannelTransactionParameters() { - if (ptr != 0) { bindings.ChannelTransactionParameters_free(ptr); } + if (ptr != 0) { Bindings.ChannelTransactionParametersFree(ptr); } } /** * Holder public keys */ public ChannelPublicKeys get_holder_pubkeys() { - long ret = bindings.ChannelTransactionParameters_get_holder_pubkeys(this.ptr); + long ret = Bindings.ChannelTransactionParametersGetHolderPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -35,7 +35,7 @@ public ChannelPublicKeys get_holder_pubkeys() { * Holder public keys */ public void set_holder_pubkeys(org.ldk.structs.ChannelPublicKeys val) { - bindings.ChannelTransactionParameters_set_holder_pubkeys(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelTransactionParametersSetHolderPubkeys(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -45,7 +45,7 @@ public void set_holder_pubkeys(org.ldk.structs.ChannelPublicKeys val) { * The contest delay selected by the holder, which applies to counterparty-broadcast transactions */ public short get_holder_selected_contest_delay() { - short ret = bindings.ChannelTransactionParameters_get_holder_selected_contest_delay(this.ptr); + short ret = Bindings.ChannelTransactionParametersGetHolderSelectedContestDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public short get_holder_selected_contest_delay() { * The contest delay selected by the holder, which applies to counterparty-broadcast transactions */ public void set_holder_selected_contest_delay(short val) { - bindings.ChannelTransactionParameters_set_holder_selected_contest_delay(this.ptr, val); + Bindings.ChannelTransactionParametersSetHolderSelectedContestDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,7 +64,7 @@ public void set_holder_selected_contest_delay(short val) { * This is an input to the commitment number obscure factor computation. */ public bool get_is_outbound_from_holder() { - bool ret = bindings.ChannelTransactionParameters_get_is_outbound_from_holder(this.ptr); + bool ret = Bindings.ChannelTransactionParametersGetIsOutboundFromHolder(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ public bool get_is_outbound_from_holder() { * This is an input to the commitment number obscure factor computation. */ public void set_is_outbound_from_holder(bool val) { - bindings.ChannelTransactionParameters_set_is_outbound_from_holder(this.ptr, val); + Bindings.ChannelTransactionParametersSetIsOutboundFromHolder(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -86,7 +86,7 @@ public void set_is_outbound_from_holder(bool val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public CounterpartyChannelTransactionParameters get_counterparty_parameters() { - long ret = bindings.ChannelTransactionParameters_get_counterparty_parameters(this.ptr); + long ret = Bindings.ChannelTransactionParametersGetCounterpartyParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyChannelTransactionParameters(null, ret); } @@ -101,7 +101,7 @@ public CounterpartyChannelTransactionParameters get_counterparty_parameters() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_counterparty_parameters(org.ldk.structs.CounterpartyChannelTransactionParameters val) { - bindings.ChannelTransactionParameters_set_counterparty_parameters(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelTransactionParametersSetCounterpartyParameters(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -113,7 +113,7 @@ public void set_counterparty_parameters(org.ldk.structs.CounterpartyChannelTrans * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OutPoint get_funding_outpoint() { - long ret = bindings.ChannelTransactionParameters_get_funding_outpoint(this.ptr); + long ret = Bindings.ChannelTransactionParametersGetFundingOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -127,7 +127,7 @@ public OutPoint get_funding_outpoint() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_funding_outpoint(org.ldk.structs.OutPoint val) { - bindings.ChannelTransactionParameters_set_funding_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelTransactionParametersSetFundingOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -138,7 +138,7 @@ public void set_funding_outpoint(org.ldk.structs.OutPoint val) { * wasn't serialized, it will default to static_remote_key at deserialization. */ public ChannelTypeFeatures get_channel_type_features() { - long ret = bindings.ChannelTransactionParameters_get_channel_type_features(this.ptr); + long ret = Bindings.ChannelTransactionParametersGetChannelTypeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -151,7 +151,7 @@ public ChannelTypeFeatures get_channel_type_features() { * wasn't serialized, it will default to static_remote_key at deserialization. */ public void set_channel_type_features(org.ldk.structs.ChannelTypeFeatures val) { - bindings.ChannelTransactionParameters_set_channel_type_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelTransactionParametersSetChannelTypeFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -164,7 +164,7 @@ public void set_channel_type_features(org.ldk.structs.ChannelTypeFeatures val) { * Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static ChannelTransactionParameters of(org.ldk.structs.ChannelPublicKeys holder_pubkeys_arg, short holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, org.ldk.structs.CounterpartyChannelTransactionParameters counterparty_parameters_arg, org.ldk.structs.OutPoint funding_outpoint_arg, org.ldk.structs.ChannelTypeFeatures channel_type_features_arg) { - long ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr, channel_type_features_arg == null ? 0 : channel_type_features_arg.ptr); + long ret = Bindings.ChannelTransactionParametersNew(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr, channel_type_features_arg == null ? 0 : channel_type_features_arg.ptr); GC.KeepAlive(holder_pubkeys_arg); GC.KeepAlive(holder_selected_contest_delay_arg); GC.KeepAlive(is_outbound_from_holder_arg); @@ -182,7 +182,7 @@ public static ChannelTransactionParameters of(org.ldk.structs.ChannelPublicKeys } internal long clone_ptr() { - long ret = bindings.ChannelTransactionParameters_clone_ptr(this.ptr); + long ret = Bindings.ChannelTransactionParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -191,7 +191,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelTransactionParameters */ public ChannelTransactionParameters clone() { - long ret = bindings.ChannelTransactionParameters_clone(this.ptr); + long ret = Bindings.ChannelTransactionParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, ret); } @@ -203,7 +203,7 @@ public ChannelTransactionParameters clone() { * Generates a non-cryptographic 64-bit hash of the ChannelTransactionParameters. */ public long hash() { - long ret = bindings.ChannelTransactionParameters_hash(this.ptr); + long ret = Bindings.ChannelTransactionParametersHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelTransactionParameters b) { - bool ret = bindings.ChannelTransactionParameters_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelTransactionParametersEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -232,7 +232,7 @@ public override bool Equals(object o) { * Whether the late bound parameters are populated. */ public bool is_populated() { - bool ret = bindings.ChannelTransactionParameters_is_populated(this.ptr); + bool ret = Bindings.ChannelTransactionParametersIsPopulated(this.ptr); GC.KeepAlive(this); return ret; } @@ -244,7 +244,7 @@ public bool is_populated() { * self.is_populated() must be true before calling this function. */ public DirectedChannelTransactionParameters as_holder_broadcastable() { - long ret = bindings.ChannelTransactionParameters_as_holder_broadcastable(this.ptr); + long ret = Bindings.ChannelTransactionParametersAsHolderBroadcastable(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DirectedChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DirectedChannelTransactionParameters(null, ret); } @@ -259,7 +259,7 @@ public DirectedChannelTransactionParameters as_holder_broadcastable() { * self.is_populated() must be true before calling this function. */ public DirectedChannelTransactionParameters as_counterparty_broadcastable() { - long ret = bindings.ChannelTransactionParameters_as_counterparty_broadcastable(this.ptr); + long ret = Bindings.ChannelTransactionParametersAsCounterpartyBroadcastable(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DirectedChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DirectedChannelTransactionParameters(null, ret); } @@ -271,10 +271,10 @@ public DirectedChannelTransactionParameters as_counterparty_broadcastable() { * Serialize the ChannelTransactionParameters object into a byte array which can be read by ChannelTransactionParameters_read */ public byte[] write() { - long ret = bindings.ChannelTransactionParameters_write(this.ptr); + long ret = Bindings.ChannelTransactionParametersWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -282,7 +282,7 @@ public byte[] write() { * Read a ChannelTransactionParameters from a byte array, created by ChannelTransactionParameters_write */ public static Result_ChannelTransactionParametersDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelTransactionParameters_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelTransactionParametersRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs b/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs index 4bd502d5d..8af540f11 100644 --- a/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs +++ b/c_sharp/src/org/ldk/structs/ChannelTypeFeatures.cs @@ -21,7 +21,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelTypeFeatures : CommonBase { internal ChannelTypeFeatures(object _dummy, long ptr) : base(ptr) { } ~ChannelTypeFeatures() { - if (ptr != 0) { bindings.ChannelTypeFeatures_free(ptr); } + if (ptr != 0) { Bindings.ChannelTypeFeaturesFree(ptr); } } /** @@ -30,7 +30,7 @@ internal ChannelTypeFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelTypeFeatures b) { - bool ret = bindings.ChannelTypeFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelTypeFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -42,7 +42,7 @@ public override bool Equals(object o) { return this.eq((ChannelTypeFeatures)o); } internal long clone_ptr() { - long ret = bindings.ChannelTypeFeatures_clone_ptr(this.ptr); + long ret = Bindings.ChannelTypeFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelTypeFeatures */ public ChannelTypeFeatures clone() { - long ret = bindings.ChannelTypeFeatures_clone(this.ptr); + long ret = Bindings.ChannelTypeFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -63,7 +63,7 @@ public ChannelTypeFeatures clone() { * Generates a non-cryptographic 64-bit hash of the ChannelTypeFeatures. */ public long hash() { - long ret = bindings.ChannelTypeFeatures_hash(this.ptr); + long ret = Bindings.ChannelTypeFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static ChannelTypeFeatures empty() { - long ret = bindings.ChannelTypeFeatures_empty(); + long ret = Bindings.ChannelTypeFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -86,7 +86,7 @@ public static ChannelTypeFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.ChannelTypeFeatures other) { - bool ret = bindings.ChannelTypeFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -98,7 +98,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.ChannelTypeFeatures other * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.ChannelTypeFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -113,7 +113,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.ChannelTypeFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.ChannelTypeFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -131,7 +131,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.ChannelTypeFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.ChannelTypeFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -149,7 +149,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.ChannelTypeFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.ChannelTypeFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -167,7 +167,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.ChannelTypeFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.ChannelTypeFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -179,10 +179,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the ChannelTypeFeatures object into a byte array which can be read by ChannelTypeFeatures_read */ public byte[] write() { - long ret = bindings.ChannelTypeFeatures_write(this.ptr); + long ret = Bindings.ChannelTypeFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -190,7 +190,7 @@ public byte[] write() { * Read a ChannelTypeFeatures from a byte array, created by ChannelTypeFeatures_write */ public static Result_ChannelTypeFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelTypeFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelTypeFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -201,7 +201,7 @@ public static Result_ChannelTypeFeaturesDecodeErrorZ read(byte[] ser) { * Set this feature as optional. */ public void set_static_remote_key_optional() { - bindings.ChannelTypeFeatures_set_static_remote_key_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetStaticRemoteKeyOptional(this.ptr); GC.KeepAlive(this); } @@ -209,7 +209,7 @@ public void set_static_remote_key_optional() { * Set this feature as required. */ public void set_static_remote_key_required() { - bindings.ChannelTypeFeatures_set_static_remote_key_required(this.ptr); + Bindings.ChannelTypeFeaturesSetStaticRemoteKeyRequired(this.ptr); GC.KeepAlive(this); } @@ -217,7 +217,7 @@ public void set_static_remote_key_required() { * Checks if this feature is supported. */ public bool supports_static_remote_key() { - bool ret = bindings.ChannelTypeFeatures_supports_static_remote_key(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -226,7 +226,7 @@ public bool supports_static_remote_key() { * Checks if this feature is required. */ public bool requires_static_remote_key() { - bool ret = bindings.ChannelTypeFeatures_requires_static_remote_key(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -235,7 +235,7 @@ public bool requires_static_remote_key() { * Set this feature as optional. */ public void set_anchors_nonzero_fee_htlc_tx_optional() { - bindings.ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -243,7 +243,7 @@ public void set_anchors_nonzero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_nonzero_fee_htlc_tx_required() { - bindings.ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr); + Bindings.ChannelTypeFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -251,7 +251,7 @@ public void set_anchors_nonzero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -260,7 +260,7 @@ public bool supports_anchors_nonzero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -269,7 +269,7 @@ public bool requires_anchors_nonzero_fee_htlc_tx() { * Set this feature as optional. */ public void set_anchors_zero_fee_htlc_tx_optional() { - bindings.ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetAnchorsZeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -277,7 +277,7 @@ public void set_anchors_zero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_zero_fee_htlc_tx_required() { - bindings.ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr); + Bindings.ChannelTypeFeaturesSetAnchorsZeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -285,7 +285,7 @@ public void set_anchors_zero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_zero_fee_htlc_tx() { - bool ret = bindings.ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -294,7 +294,7 @@ public bool supports_anchors_zero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_zero_fee_htlc_tx() { - bool ret = bindings.ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -303,7 +303,7 @@ public bool requires_anchors_zero_fee_htlc_tx() { * Set this feature as optional. */ public void set_taproot_optional() { - bindings.ChannelTypeFeatures_set_taproot_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetTaprootOptional(this.ptr); GC.KeepAlive(this); } @@ -311,7 +311,7 @@ public void set_taproot_optional() { * Set this feature as required. */ public void set_taproot_required() { - bindings.ChannelTypeFeatures_set_taproot_required(this.ptr); + Bindings.ChannelTypeFeaturesSetTaprootRequired(this.ptr); GC.KeepAlive(this); } @@ -319,7 +319,7 @@ public void set_taproot_required() { * Checks if this feature is supported. */ public bool supports_taproot() { - bool ret = bindings.ChannelTypeFeatures_supports_taproot(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -328,7 +328,7 @@ public bool supports_taproot() { * Checks if this feature is required. */ public bool requires_taproot() { - bool ret = bindings.ChannelTypeFeatures_requires_taproot(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -337,7 +337,7 @@ public bool requires_taproot() { * Set this feature as optional. */ public void set_scid_privacy_optional() { - bindings.ChannelTypeFeatures_set_scid_privacy_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetScidPrivacyOptional(this.ptr); GC.KeepAlive(this); } @@ -345,7 +345,7 @@ public void set_scid_privacy_optional() { * Set this feature as required. */ public void set_scid_privacy_required() { - bindings.ChannelTypeFeatures_set_scid_privacy_required(this.ptr); + Bindings.ChannelTypeFeaturesSetScidPrivacyRequired(this.ptr); GC.KeepAlive(this); } @@ -353,7 +353,7 @@ public void set_scid_privacy_required() { * Checks if this feature is supported. */ public bool supports_scid_privacy() { - bool ret = bindings.ChannelTypeFeatures_supports_scid_privacy(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -362,7 +362,7 @@ public bool supports_scid_privacy() { * Checks if this feature is required. */ public bool requires_scid_privacy() { - bool ret = bindings.ChannelTypeFeatures_requires_scid_privacy(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -371,7 +371,7 @@ public bool requires_scid_privacy() { * Set this feature as optional. */ public void set_zero_conf_optional() { - bindings.ChannelTypeFeatures_set_zero_conf_optional(this.ptr); + Bindings.ChannelTypeFeaturesSetZeroConfOptional(this.ptr); GC.KeepAlive(this); } @@ -379,7 +379,7 @@ public void set_zero_conf_optional() { * Set this feature as required. */ public void set_zero_conf_required() { - bindings.ChannelTypeFeatures_set_zero_conf_required(this.ptr); + Bindings.ChannelTypeFeaturesSetZeroConfRequired(this.ptr); GC.KeepAlive(this); } @@ -387,7 +387,7 @@ public void set_zero_conf_required() { * Checks if this feature is supported. */ public bool supports_zero_conf() { - bool ret = bindings.ChannelTypeFeatures_supports_zero_conf(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesSupportsZeroConf(this.ptr); GC.KeepAlive(this); return ret; } @@ -396,7 +396,7 @@ public bool supports_zero_conf() { * Checks if this feature is required. */ public bool requires_zero_conf() { - bool ret = bindings.ChannelTypeFeatures_requires_zero_conf(this.ptr); + bool ret = Bindings.ChannelTypeFeaturesRequiresZeroConf(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/ChannelUpdate.cs b/c_sharp/src/org/ldk/structs/ChannelUpdate.cs index 8d47ee1c1..bc52df9fc 100644 --- a/c_sharp/src/org/ldk/structs/ChannelUpdate.cs +++ b/c_sharp/src/org/ldk/structs/ChannelUpdate.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class ChannelUpdate : CommonBase { internal ChannelUpdate(object _dummy, long ptr) : base(ptr) { } ~ChannelUpdate() { - if (ptr != 0) { bindings.ChannelUpdate_free(ptr); } + if (ptr != 0) { Bindings.ChannelUpdateFree(ptr); } } /** * A signature of the channel update */ public byte[] get_signature() { - long ret = bindings.ChannelUpdate_get_signature(this.ptr); + long ret = Bindings.ChannelUpdateGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_signature() { * A signature of the channel update */ public void set_signature(byte[] val) { - bindings.ChannelUpdate_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ChannelUpdateSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_signature(byte[] val) { * The actual channel update */ public UnsignedChannelUpdate get_contents() { - long ret = bindings.ChannelUpdate_get_contents(this.ptr); + long ret = Bindings.ChannelUpdateGetContents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedChannelUpdate(null, ret); } @@ -53,7 +53,7 @@ public UnsignedChannelUpdate get_contents() { * The actual channel update */ public void set_contents(org.ldk.structs.UnsignedChannelUpdate val) { - bindings.ChannelUpdate_set_contents(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelUpdateSetContents(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -63,7 +63,7 @@ public void set_contents(org.ldk.structs.UnsignedChannelUpdate val) { * Constructs a new ChannelUpdate given each field */ public static ChannelUpdate of(byte[] signature_arg, org.ldk.structs.UnsignedChannelUpdate contents_arg) { - long ret = bindings.ChannelUpdate_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); + long ret = Bindings.ChannelUpdateNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); GC.KeepAlive(signature_arg); GC.KeepAlive(contents_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -74,7 +74,7 @@ public static ChannelUpdate of(byte[] signature_arg, org.ldk.structs.UnsignedCha } internal long clone_ptr() { - long ret = bindings.ChannelUpdate_clone_ptr(this.ptr); + long ret = Bindings.ChannelUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelUpdate */ public ChannelUpdate clone() { - long ret = bindings.ChannelUpdate_clone(this.ptr); + long ret = Bindings.ChannelUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdate(null, ret); } @@ -95,7 +95,7 @@ public ChannelUpdate clone() { * Generates a non-cryptographic 64-bit hash of the ChannelUpdate. */ public long hash() { - long ret = bindings.ChannelUpdate_hash(this.ptr); + long ret = Bindings.ChannelUpdateHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -109,7 +109,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelUpdate b) { - bool ret = bindings.ChannelUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -124,10 +124,10 @@ public override bool Equals(object o) { * Serialize the ChannelUpdate object into a byte array which can be read by ChannelUpdate_read */ public byte[] write() { - long ret = bindings.ChannelUpdate_write(this.ptr); + long ret = Bindings.ChannelUpdateWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -135,7 +135,7 @@ public byte[] write() { * Read a ChannelUpdate from a byte array, created by ChannelUpdate_write */ public static Result_ChannelUpdateDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelUpdate_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelUpdateRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelUpdateInfo.cs b/c_sharp/src/org/ldk/structs/ChannelUpdateInfo.cs index 164682b01..f0a3d0502 100644 --- a/c_sharp/src/org/ldk/structs/ChannelUpdateInfo.cs +++ b/c_sharp/src/org/ldk/structs/ChannelUpdateInfo.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ChannelUpdateInfo : CommonBase { internal ChannelUpdateInfo(object _dummy, long ptr) : base(ptr) { } ~ChannelUpdateInfo() { - if (ptr != 0) { bindings.ChannelUpdateInfo_free(ptr); } + if (ptr != 0) { Bindings.ChannelUpdateInfoFree(ptr); } } /** @@ -20,7 +20,7 @@ internal ChannelUpdateInfo(object _dummy, long ptr) : base(ptr) { } * Value is opaque, as set in the announcement. */ public int get_last_update() { - int ret = bindings.ChannelUpdateInfo_get_last_update(this.ptr); + int ret = Bindings.ChannelUpdateInfoGetLastUpdate(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,7 +30,7 @@ public int get_last_update() { * Value is opaque, as set in the announcement. */ public void set_last_update(int val) { - bindings.ChannelUpdateInfo_set_last_update(this.ptr, val); + Bindings.ChannelUpdateInfoSetLastUpdate(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_last_update(int val) { * Whether the channel can be currently used for payments (in this one direction). */ public bool get_enabled() { - bool ret = bindings.ChannelUpdateInfo_get_enabled(this.ptr); + bool ret = Bindings.ChannelUpdateInfoGetEnabled(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public bool get_enabled() { * Whether the channel can be currently used for payments (in this one direction). */ public void set_enabled(bool val) { - bindings.ChannelUpdateInfo_set_enabled(this.ptr, val); + Bindings.ChannelUpdateInfoSetEnabled(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_enabled(bool val) { * The difference in CLTV values that you must have when routing through this channel. */ public short get_cltv_expiry_delta() { - short ret = bindings.ChannelUpdateInfo_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.ChannelUpdateInfoGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public short get_cltv_expiry_delta() { * The difference in CLTV values that you must have when routing through this channel. */ public void set_cltv_expiry_delta(short val) { - bindings.ChannelUpdateInfo_set_cltv_expiry_delta(this.ptr, val); + Bindings.ChannelUpdateInfoSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -75,7 +75,7 @@ public void set_cltv_expiry_delta(short val) { * The minimum value, which must be relayed to the next hop via the channel */ public long get_htlc_minimum_msat() { - long ret = bindings.ChannelUpdateInfo_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.ChannelUpdateInfoGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ public long get_htlc_minimum_msat() { * The minimum value, which must be relayed to the next hop via the channel */ public void set_htlc_minimum_msat(long val) { - bindings.ChannelUpdateInfo_set_htlc_minimum_msat(this.ptr, val); + Bindings.ChannelUpdateInfoSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -93,7 +93,7 @@ public void set_htlc_minimum_msat(long val) { * The maximum value which may be relayed to the next hop via the channel. */ public long get_htlc_maximum_msat() { - long ret = bindings.ChannelUpdateInfo_get_htlc_maximum_msat(this.ptr); + long ret = Bindings.ChannelUpdateInfoGetHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ public long get_htlc_maximum_msat() { * The maximum value which may be relayed to the next hop via the channel. */ public void set_htlc_maximum_msat(long val) { - bindings.ChannelUpdateInfo_set_htlc_maximum_msat(this.ptr, val); + Bindings.ChannelUpdateInfoSetHtlcMaximumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -111,7 +111,7 @@ public void set_htlc_maximum_msat(long val) { * Fees charged when the channel is used for routing */ public RoutingFees get_fees() { - long ret = bindings.ChannelUpdateInfo_get_fees(this.ptr); + long ret = Bindings.ChannelUpdateInfoGetFees(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); } @@ -123,7 +123,7 @@ public RoutingFees get_fees() { * Fees charged when the channel is used for routing */ public void set_fees(org.ldk.structs.RoutingFees val) { - bindings.ChannelUpdateInfo_set_fees(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelUpdateInfoSetFees(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -138,7 +138,7 @@ public void set_fees(org.ldk.structs.RoutingFees val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelUpdate get_last_update_message() { - long ret = bindings.ChannelUpdateInfo_get_last_update_message(this.ptr); + long ret = Bindings.ChannelUpdateInfoGetLastUpdateMessage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdate(null, ret); } @@ -155,7 +155,7 @@ public ChannelUpdate get_last_update_message() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_last_update_message(org.ldk.structs.ChannelUpdate val) { - bindings.ChannelUpdateInfo_set_last_update_message(this.ptr, val == null ? 0 : val.ptr); + Bindings.ChannelUpdateInfoSetLastUpdateMessage(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -167,7 +167,7 @@ public void set_last_update_message(org.ldk.structs.ChannelUpdate val) { * Note that last_update_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static ChannelUpdateInfo of(int last_update_arg, bool enabled_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, org.ldk.structs.RoutingFees fees_arg, org.ldk.structs.ChannelUpdate last_update_message_arg) { - long ret = bindings.ChannelUpdateInfo_new(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fees_arg == null ? 0 : fees_arg.ptr, last_update_message_arg == null ? 0 : last_update_message_arg.ptr); + long ret = Bindings.ChannelUpdateInfoNew(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fees_arg == null ? 0 : fees_arg.ptr, last_update_message_arg == null ? 0 : last_update_message_arg.ptr); GC.KeepAlive(last_update_arg); GC.KeepAlive(enabled_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -184,7 +184,7 @@ public static ChannelUpdateInfo of(int last_update_arg, bool enabled_arg, short } internal long clone_ptr() { - long ret = bindings.ChannelUpdateInfo_clone_ptr(this.ptr); + long ret = Bindings.ChannelUpdateInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -193,7 +193,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelUpdateInfo */ public ChannelUpdateInfo clone() { - long ret = bindings.ChannelUpdateInfo_clone(this.ptr); + long ret = Bindings.ChannelUpdateInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdateInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdateInfo(null, ret); } @@ -207,7 +207,7 @@ public ChannelUpdateInfo clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ChannelUpdateInfo b) { - bool ret = bindings.ChannelUpdateInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ChannelUpdateInfoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -222,10 +222,10 @@ public override bool Equals(object o) { * Serialize the ChannelUpdateInfo object into a byte array which can be read by ChannelUpdateInfo_read */ public byte[] write() { - long ret = bindings.ChannelUpdateInfo_write(this.ptr); + long ret = Bindings.ChannelUpdateInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -233,7 +233,7 @@ public byte[] write() { * Read a ChannelUpdateInfo from a byte array, created by ChannelUpdateInfo_write */ public static Result_ChannelUpdateInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.ChannelUpdateInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ChannelUpdateInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateInfoDecodeErrorZ ret_hu_conv = Result_ChannelUpdateInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ChannelUsage.cs b/c_sharp/src/org/ldk/structs/ChannelUsage.cs index 8d20c5deb..aee25cf89 100644 --- a/c_sharp/src/org/ldk/structs/ChannelUsage.cs +++ b/c_sharp/src/org/ldk/structs/ChannelUsage.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ChannelUsage : CommonBase { internal ChannelUsage(object _dummy, long ptr) : base(ptr) { } ~ChannelUsage() { - if (ptr != 0) { bindings.ChannelUsage_free(ptr); } + if (ptr != 0) { Bindings.ChannelUsageFree(ptr); } } /** * The amount to send through the channel, denominated in millisatoshis. */ public long get_amount_msat() { - long ret = bindings.ChannelUsage_get_amount_msat(this.ptr); + long ret = Bindings.ChannelUsageGetAmountMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public long get_amount_msat() { * The amount to send through the channel, denominated in millisatoshis. */ public void set_amount_msat(long val) { - bindings.ChannelUsage_set_amount_msat(this.ptr, val); + Bindings.ChannelUsageSetAmountMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -38,7 +38,7 @@ public void set_amount_msat(long val) { * as part of a multi-path payment. */ public long get_inflight_htlc_msat() { - long ret = bindings.ChannelUsage_get_inflight_htlc_msat(this.ptr); + long ret = Bindings.ChannelUsageGetInflightHtlcMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public long get_inflight_htlc_msat() { * as part of a multi-path payment. */ public void set_inflight_htlc_msat(long val) { - bindings.ChannelUsage_set_inflight_htlc_msat(this.ptr, val); + Bindings.ChannelUsageSetInflightHtlcMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_inflight_htlc_msat(long val) { * The effective capacity of the channel. */ public EffectiveCapacity get_effective_capacity() { - long ret = bindings.ChannelUsage_get_effective_capacity(this.ptr); + long ret = Bindings.ChannelUsageGetEffectiveCapacity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); @@ -69,7 +69,7 @@ public EffectiveCapacity get_effective_capacity() { * The effective capacity of the channel. */ public void set_effective_capacity(org.ldk.structs.EffectiveCapacity val) { - bindings.ChannelUsage_set_effective_capacity(this.ptr, val.ptr); + Bindings.ChannelUsageSetEffectiveCapacity(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -79,7 +79,7 @@ public void set_effective_capacity(org.ldk.structs.EffectiveCapacity val) { * Constructs a new ChannelUsage given each field */ public static ChannelUsage of(long amount_msat_arg, long inflight_htlc_msat_arg, org.ldk.structs.EffectiveCapacity effective_capacity_arg) { - long ret = bindings.ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg.ptr); + long ret = Bindings.ChannelUsageNew(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg.ptr); GC.KeepAlive(amount_msat_arg); GC.KeepAlive(inflight_htlc_msat_arg); GC.KeepAlive(effective_capacity_arg); @@ -91,7 +91,7 @@ public static ChannelUsage of(long amount_msat_arg, long inflight_htlc_msat_arg, } internal long clone_ptr() { - long ret = bindings.ChannelUsage_clone_ptr(this.ptr); + long ret = Bindings.ChannelUsageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ internal long clone_ptr() { * Creates a copy of the ChannelUsage */ public ChannelUsage clone() { - long ret = bindings.ChannelUsage_clone(this.ptr); + long ret = Bindings.ChannelUsageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUsage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUsage(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ClaimedHTLC.cs b/c_sharp/src/org/ldk/structs/ClaimedHTLC.cs index 0b64dad17..8ea268990 100644 --- a/c_sharp/src/org/ldk/structs/ClaimedHTLC.cs +++ b/c_sharp/src/org/ldk/structs/ClaimedHTLC.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class ClaimedHTLC : CommonBase { internal ClaimedHTLC(object _dummy, long ptr) : base(ptr) { } ~ClaimedHTLC() { - if (ptr != 0) { bindings.ClaimedHTLC_free(ptr); } + if (ptr != 0) { Bindings.ClaimedHTLCFree(ptr); } } /** * The `channel_id` of the channel over which the HTLC was received. */ public byte[] get_channel_id() { - long ret = bindings.ClaimedHTLC_get_channel_id(this.ptr); + long ret = Bindings.ClaimedHTLCGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The `channel_id` of the channel over which the HTLC was received. */ public void set_channel_id(byte[] val) { - bindings.ClaimedHTLC_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ClaimedHTLCSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -51,7 +51,7 @@ public void set_channel_id(byte[] val) { * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ public UInt128 get_user_channel_id() { - long ret = bindings.ClaimedHTLC_get_user_channel_id(this.ptr); + long ret = Bindings.ClaimedHTLCGetUserChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.util.UInt128 ret_conv = new org.ldk.util.UInt128(ret); @@ -74,7 +74,7 @@ public UInt128 get_user_channel_id() { * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ public void set_user_channel_id(org.ldk.util.UInt128 val) { - bindings.ClaimedHTLC_set_user_channel_id(this.ptr, InternalUtils.encodeUint8Array(val.getLEBytes())); + Bindings.ClaimedHTLCSetUserChannelId(this.ptr, InternalUtils.EncodeUint8Array(val.getLEBytes())); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -83,7 +83,7 @@ public void set_user_channel_id(org.ldk.util.UInt128 val) { * The block height at which this HTLC expires. */ public int get_cltv_expiry() { - int ret = bindings.ClaimedHTLC_get_cltv_expiry(this.ptr); + int ret = Bindings.ClaimedHTLCGetCltvExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,7 +92,7 @@ public int get_cltv_expiry() { * The block height at which this HTLC expires. */ public void set_cltv_expiry(int val) { - bindings.ClaimedHTLC_set_cltv_expiry(this.ptr, val); + Bindings.ClaimedHTLCSetCltvExpiry(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_cltv_expiry(int val) { * The amount (in msats) of this part of an MPP. */ public long get_value_msat() { - long ret = bindings.ClaimedHTLC_get_value_msat(this.ptr); + long ret = Bindings.ClaimedHTLCGetValueMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ public long get_value_msat() { * The amount (in msats) of this part of an MPP. */ public void set_value_msat(long val) { - bindings.ClaimedHTLC_set_value_msat(this.ptr, val); + Bindings.ClaimedHTLCSetValueMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -122,7 +122,7 @@ public void set_value_msat(long val) { * 0.0.119. */ public long get_counterparty_skimmed_fee_msat() { - long ret = bindings.ClaimedHTLC_get_counterparty_skimmed_fee_msat(this.ptr); + long ret = Bindings.ClaimedHTLCGetCounterpartySkimmedFeeMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -134,7 +134,7 @@ public long get_counterparty_skimmed_fee_msat() { * 0.0.119. */ public void set_counterparty_skimmed_fee_msat(long val) { - bindings.ClaimedHTLC_set_counterparty_skimmed_fee_msat(this.ptr, val); + Bindings.ClaimedHTLCSetCounterpartySkimmedFeeMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -143,7 +143,7 @@ public void set_counterparty_skimmed_fee_msat(long val) { * Constructs a new ClaimedHTLC given each field */ public static ClaimedHTLC of(byte[] channel_id_arg, org.ldk.util.UInt128 user_channel_id_arg, int cltv_expiry_arg, long value_msat_arg, long counterparty_skimmed_fee_msat_arg) { - long ret = bindings.ClaimedHTLC_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(user_channel_id_arg.getLEBytes()), cltv_expiry_arg, value_msat_arg, counterparty_skimmed_fee_msat_arg); + long ret = Bindings.ClaimedHTLCNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(user_channel_id_arg.getLEBytes()), cltv_expiry_arg, value_msat_arg, counterparty_skimmed_fee_msat_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(user_channel_id_arg); GC.KeepAlive(cltv_expiry_arg); @@ -156,7 +156,7 @@ public static ClaimedHTLC of(byte[] channel_id_arg, org.ldk.util.UInt128 user_ch } internal long clone_ptr() { - long ret = bindings.ClaimedHTLC_clone_ptr(this.ptr); + long ret = Bindings.ClaimedHTLCClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -165,7 +165,7 @@ internal long clone_ptr() { * Creates a copy of the ClaimedHTLC */ public ClaimedHTLC clone() { - long ret = bindings.ClaimedHTLC_clone(this.ptr); + long ret = Bindings.ClaimedHTLCClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClaimedHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ClaimedHTLC(null, ret); } @@ -179,7 +179,7 @@ public ClaimedHTLC clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ClaimedHTLC b) { - bool ret = bindings.ClaimedHTLC_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ClaimedHTLCEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -194,10 +194,10 @@ public override bool Equals(object o) { * Serialize the ClaimedHTLC object into a byte array which can be read by ClaimedHTLC_read */ public byte[] write() { - long ret = bindings.ClaimedHTLC_write(this.ptr); + long ret = Bindings.ClaimedHTLCWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -205,7 +205,7 @@ public byte[] write() { * Read a ClaimedHTLC from a byte array, created by ClaimedHTLC_write */ public static Result_ClaimedHTLCDecodeErrorZ read(byte[] ser) { - long ret = bindings.ClaimedHTLC_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ClaimedHTLCRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ClaimedHTLCDecodeErrorZ ret_hu_conv = Result_ClaimedHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ClosingSigned.cs b/c_sharp/src/org/ldk/structs/ClosingSigned.cs index 08f6cac9e..d55824feb 100644 --- a/c_sharp/src/org/ldk/structs/ClosingSigned.cs +++ b/c_sharp/src/org/ldk/structs/ClosingSigned.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class ClosingSigned : CommonBase { internal ClosingSigned(object _dummy, long ptr) : base(ptr) { } ~ClosingSigned() { - if (ptr != 0) { bindings.ClosingSigned_free(ptr); } + if (ptr != 0) { Bindings.ClosingSignedFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.ClosingSigned_get_channel_id(this.ptr); + long ret = Bindings.ClosingSignedGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.ClosingSigned_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ClosingSignedSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The proposed total fee for the closing transaction */ public long get_fee_satoshis() { - long ret = bindings.ClosingSigned_get_fee_satoshis(this.ptr); + long ret = Bindings.ClosingSignedGetFeeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_fee_satoshis() { * The proposed total fee for the closing transaction */ public void set_fee_satoshis(long val) { - bindings.ClosingSigned_set_fee_satoshis(this.ptr, val); + Bindings.ClosingSignedSetFeeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,10 +59,10 @@ public void set_fee_satoshis(long val) { * A signature on the closing transaction */ public byte[] get_signature() { - long ret = bindings.ClosingSigned_get_signature(this.ptr); + long ret = Bindings.ClosingSignedGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -70,7 +70,7 @@ public byte[] get_signature() { * A signature on the closing transaction */ public void set_signature(byte[] val) { - bindings.ClosingSigned_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.ClosingSignedSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -82,7 +82,7 @@ public void set_signature(byte[] val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ClosingSignedFeeRange get_fee_range() { - long ret = bindings.ClosingSigned_get_fee_range(this.ptr); + long ret = Bindings.ClosingSignedGetFeeRange(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosingSignedFeeRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ClosingSignedFeeRange(null, ret); } @@ -97,7 +97,7 @@ public ClosingSignedFeeRange get_fee_range() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_fee_range(org.ldk.structs.ClosingSignedFeeRange val) { - bindings.ClosingSigned_set_fee_range(this.ptr, val == null ? 0 : val.ptr); + Bindings.ClosingSignedSetFeeRange(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -109,7 +109,7 @@ public void set_fee_range(org.ldk.structs.ClosingSignedFeeRange val) { * Note that fee_range_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static ClosingSigned of(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, org.ldk.structs.ClosingSignedFeeRange fee_range_arg) { - long ret = bindings.ClosingSigned_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), fee_satoshis_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64)), fee_range_arg == null ? 0 : fee_range_arg.ptr); + long ret = Bindings.ClosingSignedNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), fee_satoshis_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64)), fee_range_arg == null ? 0 : fee_range_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(fee_satoshis_arg); GC.KeepAlive(signature_arg); @@ -122,7 +122,7 @@ public static ClosingSigned of(byte[] channel_id_arg, long fee_satoshis_arg, byt } internal long clone_ptr() { - long ret = bindings.ClosingSigned_clone_ptr(this.ptr); + long ret = Bindings.ClosingSignedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -131,7 +131,7 @@ internal long clone_ptr() { * Creates a copy of the ClosingSigned */ public ClosingSigned clone() { - long ret = bindings.ClosingSigned_clone(this.ptr); + long ret = Bindings.ClosingSignedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosingSigned ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ClosingSigned(null, ret); } @@ -143,7 +143,7 @@ public ClosingSigned clone() { * Generates a non-cryptographic 64-bit hash of the ClosingSigned. */ public long hash() { - long ret = bindings.ClosingSigned_hash(this.ptr); + long ret = Bindings.ClosingSignedHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -157,7 +157,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ClosingSigned b) { - bool ret = bindings.ClosingSigned_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ClosingSignedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -172,10 +172,10 @@ public override bool Equals(object o) { * Serialize the ClosingSigned object into a byte array which can be read by ClosingSigned_read */ public byte[] write() { - long ret = bindings.ClosingSigned_write(this.ptr); + long ret = Bindings.ClosingSignedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -183,7 +183,7 @@ public byte[] write() { * Read a ClosingSigned from a byte array, created by ClosingSigned_write */ public static Result_ClosingSignedDecodeErrorZ read(byte[] ser) { - long ret = bindings.ClosingSigned_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ClosingSignedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs b/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs index 72f5aee8d..ebab33da3 100644 --- a/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs +++ b/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class ClosingSignedFeeRange : CommonBase { internal ClosingSignedFeeRange(object _dummy, long ptr) : base(ptr) { } ~ClosingSignedFeeRange() { - if (ptr != 0) { bindings.ClosingSignedFeeRange_free(ptr); } + if (ptr != 0) { Bindings.ClosingSignedFeeRangeFree(ptr); } } /** @@ -23,7 +23,7 @@ internal ClosingSignedFeeRange(object _dummy, long ptr) : base(ptr) { } * transaction. */ public long get_min_fee_satoshis() { - long ret = bindings.ClosingSignedFeeRange_get_min_fee_satoshis(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeGetMinFeeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -33,7 +33,7 @@ public long get_min_fee_satoshis() { * transaction. */ public void set_min_fee_satoshis(long val) { - bindings.ClosingSignedFeeRange_set_min_fee_satoshis(this.ptr, val); + Bindings.ClosingSignedFeeRangeSetMinFeeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_min_fee_satoshis(long val) { * transaction. */ public long get_max_fee_satoshis() { - long ret = bindings.ClosingSignedFeeRange_get_max_fee_satoshis(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeGetMaxFeeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -53,7 +53,7 @@ public long get_max_fee_satoshis() { * transaction. */ public void set_max_fee_satoshis(long val) { - bindings.ClosingSignedFeeRange_set_max_fee_satoshis(this.ptr, val); + Bindings.ClosingSignedFeeRangeSetMaxFeeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -62,7 +62,7 @@ public void set_max_fee_satoshis(long val) { * Constructs a new ClosingSignedFeeRange given each field */ public static ClosingSignedFeeRange of(long min_fee_satoshis_arg, long max_fee_satoshis_arg) { - long ret = bindings.ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg); + long ret = Bindings.ClosingSignedFeeRangeNew(min_fee_satoshis_arg, max_fee_satoshis_arg); GC.KeepAlive(min_fee_satoshis_arg); GC.KeepAlive(max_fee_satoshis_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -72,7 +72,7 @@ public static ClosingSignedFeeRange of(long min_fee_satoshis_arg, long max_fee_s } internal long clone_ptr() { - long ret = bindings.ClosingSignedFeeRange_clone_ptr(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * Creates a copy of the ClosingSignedFeeRange */ public ClosingSignedFeeRange clone() { - long ret = bindings.ClosingSignedFeeRange_clone(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosingSignedFeeRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ClosingSignedFeeRange(null, ret); } @@ -93,7 +93,7 @@ public ClosingSignedFeeRange clone() { * Generates a non-cryptographic 64-bit hash of the ClosingSignedFeeRange. */ public long hash() { - long ret = bindings.ClosingSignedFeeRange_hash(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -107,7 +107,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ClosingSignedFeeRange b) { - bool ret = bindings.ClosingSignedFeeRange_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ClosingSignedFeeRangeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -122,10 +122,10 @@ public override bool Equals(object o) { * Serialize the ClosingSignedFeeRange object into a byte array which can be read by ClosingSignedFeeRange_read */ public byte[] write() { - long ret = bindings.ClosingSignedFeeRange_write(this.ptr); + long ret = Bindings.ClosingSignedFeeRangeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -133,7 +133,7 @@ public byte[] write() { * Read a ClosingSignedFeeRange from a byte array, created by ClosingSignedFeeRange_write */ public static Result_ClosingSignedFeeRangeDecodeErrorZ read(byte[] ser) { - long ret = bindings.ClosingSignedFeeRange_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ClosingSignedFeeRangeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ClosingTransaction.cs b/c_sharp/src/org/ldk/structs/ClosingTransaction.cs index c6f33357a..e1dd5d587 100644 --- a/c_sharp/src/org/ldk/structs/ClosingTransaction.cs +++ b/c_sharp/src/org/ldk/structs/ClosingTransaction.cs @@ -16,11 +16,11 @@ namespace org { namespace ldk { namespace structs { public class ClosingTransaction : CommonBase { internal ClosingTransaction(object _dummy, long ptr) : base(ptr) { } ~ClosingTransaction() { - if (ptr != 0) { bindings.ClosingTransaction_free(ptr); } + if (ptr != 0) { Bindings.ClosingTransactionFree(ptr); } } internal long clone_ptr() { - long ret = bindings.ClosingTransaction_clone_ptr(this.ptr); + long ret = Bindings.ClosingTransactionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -29,7 +29,7 @@ internal long clone_ptr() { * Creates a copy of the ClosingTransaction */ public ClosingTransaction clone() { - long ret = bindings.ClosingTransaction_clone(this.ptr); + long ret = Bindings.ClosingTransactionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosingTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ClosingTransaction(null, ret); } @@ -41,7 +41,7 @@ public ClosingTransaction clone() { * Generates a non-cryptographic 64-bit hash of the ClosingTransaction. */ public long hash() { - long ret = bindings.ClosingTransaction_hash(this.ptr); + long ret = Bindings.ClosingTransactionHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -55,7 +55,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ClosingTransaction b) { - bool ret = bindings.ClosingTransaction_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ClosingTransactionEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -70,7 +70,7 @@ public override bool Equals(object o) { * Construct an object of the class */ public static ClosingTransaction of(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, org.ldk.structs.OutPoint funding_outpoint) { - long ret = bindings.ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.encodeUint8Array(to_holder_script), InternalUtils.encodeUint8Array(to_counterparty_script), funding_outpoint == null ? 0 : funding_outpoint.ptr); + long ret = Bindings.ClosingTransactionNew(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.EncodeUint8Array(to_holder_script), InternalUtils.EncodeUint8Array(to_counterparty_script), funding_outpoint == null ? 0 : funding_outpoint.ptr); GC.KeepAlive(to_holder_value_sat); GC.KeepAlive(to_counterparty_value_sat); GC.KeepAlive(to_holder_script); @@ -92,7 +92,7 @@ public static ClosingTransaction of(long to_holder_value_sat, long to_counterpar * be used by an external signer - instead use the verify function. */ public TrustedClosingTransaction trust() { - long ret = bindings.ClosingTransaction_trust(this.ptr); + long ret = Bindings.ClosingTransactionTrust(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TrustedClosingTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TrustedClosingTransaction(null, ret); } @@ -109,7 +109,7 @@ public TrustedClosingTransaction trust() { * or using the built transaction. */ public Result_TrustedClosingTransactionNoneZ verify(org.ldk.structs.OutPoint funding_outpoint) { - long ret = bindings.ClosingTransaction_verify(this.ptr, funding_outpoint == null ? 0 : funding_outpoint.ptr); + long ret = Bindings.ClosingTransactionVerify(this.ptr, funding_outpoint == null ? 0 : funding_outpoint.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_outpoint); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_TrustedClosingTransactionNoneZ verify(org.ldk.structs.OutPoint fun * The value to be sent to the holder, or zero if the output will be omitted */ public long to_holder_value_sat() { - long ret = bindings.ClosingTransaction_to_holder_value_sat(this.ptr); + long ret = Bindings.ClosingTransactionToHolderValueSat(this.ptr); GC.KeepAlive(this); return ret; } @@ -131,7 +131,7 @@ public long to_holder_value_sat() { * The value to be sent to the counterparty, or zero if the output will be omitted */ public long to_counterparty_value_sat() { - long ret = bindings.ClosingTransaction_to_counterparty_value_sat(this.ptr); + long ret = Bindings.ClosingTransactionToCounterpartyValueSat(this.ptr); GC.KeepAlive(this); return ret; } @@ -140,10 +140,10 @@ public long to_counterparty_value_sat() { * The destination of the holder's output */ public byte[] to_holder_script() { - long ret = bindings.ClosingTransaction_to_holder_script(this.ptr); + long ret = Bindings.ClosingTransactionToHolderScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -151,10 +151,10 @@ public byte[] to_holder_script() { * The destination of the counterparty's output */ public byte[] to_counterparty_script() { - long ret = bindings.ClosingTransaction_to_counterparty_script(this.ptr); + long ret = Bindings.ClosingTransactionToCounterpartyScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ClosureReason.cs b/c_sharp/src/org/ldk/structs/ClosureReason.cs index 87a3088fa..b729369d1 100644 --- a/c_sharp/src/org/ldk/structs/ClosureReason.cs +++ b/c_sharp/src/org/ldk/structs/ClosureReason.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class ClosureReason : CommonBase { protected ClosureReason(object _dummy, long ptr) : base(ptr) { } ~ClosureReason() { - if (ptr != 0) { bindings.ClosureReason_free(ptr); } + if (ptr != 0) { Bindings.ClosureReasonFree(ptr); } } internal static ClosureReason constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKClosureReason_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKClosureReasonTyFromPtr(ptr); switch (raw_ty) { case 0: return new ClosureReason_CounterpartyForceClosed(ptr); case 1: return new ClosureReason_HolderForceClosed(ptr); @@ -45,7 +45,7 @@ public class ClosureReason_CounterpartyForceClosed : ClosureReason { */ public UntrustedString peer_msg; internal ClosureReason_CounterpartyForceClosed(long ptr) : base(null, ptr) { - long peer_msg = bindings.LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr); + long peer_msg = Bindings.LDKClosureReasonCounterpartyForceClosedGetPeerMsg(ptr); org.ldk.structs.UntrustedString peer_msg_hu_conv = null; if (peer_msg < 0 || peer_msg > 4096) { peer_msg_hu_conv = new org.ldk.structs.UntrustedString(null, peer_msg); } if (peer_msg_hu_conv != null) { peer_msg_hu_conv.ptrs_to.AddLast(this); }; this.peer_msg = peer_msg_hu_conv; @@ -78,8 +78,8 @@ public class ClosureReason_ProcessingError : ClosureReason { */ public string err; internal ClosureReason_ProcessingError(long ptr) : base(null, ptr) { - long err = bindings.LDKClosureReason_ProcessingError_get_err(ptr); - string err_conv = InternalUtils.decodeString(err); + long err = Bindings.LDKClosureReasonProcessingErrorGetErr(ptr); + string err_conv = InternalUtils.DecodeString(err); this.err = err_conv; } } @@ -104,7 +104,7 @@ internal ClosureReason_FundingBatchClosure(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.ClosureReason_clone_ptr(this.ptr); + long ret = Bindings.ClosureReasonClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -113,7 +113,7 @@ internal long clone_ptr() { * Creates a copy of the ClosureReason */ public ClosureReason clone() { - long ret = bindings.ClosureReason_clone(this.ptr); + long ret = Bindings.ClosureReasonClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); @@ -125,7 +125,7 @@ public ClosureReason clone() { * Utility method to constructs a new CounterpartyForceClosed-variant ClosureReason */ public static ClosureReason counterparty_force_closed(org.ldk.structs.UntrustedString peer_msg) { - long ret = bindings.ClosureReason_counterparty_force_closed(peer_msg == null ? 0 : peer_msg.ptr); + long ret = Bindings.ClosureReasonCounterpartyForceClosed(peer_msg == null ? 0 : peer_msg.ptr); GC.KeepAlive(peer_msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); @@ -138,7 +138,7 @@ public static ClosureReason counterparty_force_closed(org.ldk.structs.UntrustedS * Utility method to constructs a new HolderForceClosed-variant ClosureReason */ public static ClosureReason holder_force_closed() { - long ret = bindings.ClosureReason_holder_force_closed(); + long ret = Bindings.ClosureReasonHolderForceClosed(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -149,7 +149,7 @@ public static ClosureReason holder_force_closed() { * Utility method to constructs a new CooperativeClosure-variant ClosureReason */ public static ClosureReason cooperative_closure() { - long ret = bindings.ClosureReason_cooperative_closure(); + long ret = Bindings.ClosureReasonCooperativeClosure(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -160,7 +160,7 @@ public static ClosureReason cooperative_closure() { * Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReason */ public static ClosureReason commitment_tx_confirmed() { - long ret = bindings.ClosureReason_commitment_tx_confirmed(); + long ret = Bindings.ClosureReasonCommitmentTxConfirmed(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -171,7 +171,7 @@ public static ClosureReason commitment_tx_confirmed() { * Utility method to constructs a new FundingTimedOut-variant ClosureReason */ public static ClosureReason funding_timed_out() { - long ret = bindings.ClosureReason_funding_timed_out(); + long ret = Bindings.ClosureReasonFundingTimedOut(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -182,7 +182,7 @@ public static ClosureReason funding_timed_out() { * Utility method to constructs a new ProcessingError-variant ClosureReason */ public static ClosureReason processing_error(string err) { - long ret = bindings.ClosureReason_processing_error(InternalUtils.encodeString(err)); + long ret = Bindings.ClosureReasonProcessingError(InternalUtils.EncodeString(err)); GC.KeepAlive(err); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); @@ -194,7 +194,7 @@ public static ClosureReason processing_error(string err) { * Utility method to constructs a new DisconnectedPeer-variant ClosureReason */ public static ClosureReason disconnected_peer() { - long ret = bindings.ClosureReason_disconnected_peer(); + long ret = Bindings.ClosureReasonDisconnectedPeer(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -205,7 +205,7 @@ public static ClosureReason disconnected_peer() { * Utility method to constructs a new OutdatedChannelManager-variant ClosureReason */ public static ClosureReason outdated_channel_manager() { - long ret = bindings.ClosureReason_outdated_channel_manager(); + long ret = Bindings.ClosureReasonOutdatedChannelManager(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -216,7 +216,7 @@ public static ClosureReason outdated_channel_manager() { * Utility method to constructs a new CounterpartyCoopClosedUnfundedChannel-variant ClosureReason */ public static ClosureReason counterparty_coop_closed_unfunded_channel() { - long ret = bindings.ClosureReason_counterparty_coop_closed_unfunded_channel(); + long ret = Bindings.ClosureReasonCounterpartyCoopClosedUnfundedChannel(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -227,7 +227,7 @@ public static ClosureReason counterparty_coop_closed_unfunded_channel() { * Utility method to constructs a new FundingBatchClosure-variant ClosureReason */ public static ClosureReason funding_batch_closure() { - long ret = bindings.ClosureReason_funding_batch_closure(); + long ret = Bindings.ClosureReasonFundingBatchClosure(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ClosureReason ret_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -239,7 +239,7 @@ public static ClosureReason funding_batch_closure() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.ClosureReason b) { - bool ret = bindings.ClosureReason_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ClosureReasonEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -253,10 +253,10 @@ public override bool Equals(object o) { * Serialize the ClosureReason object into a byte array which can be read by ClosureReason_read */ public byte[] write() { - long ret = bindings.ClosureReason_write(this.ptr); + long ret = Bindings.ClosureReasonWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/CoinSelection.cs b/c_sharp/src/org/ldk/structs/CoinSelection.cs index 2db0813cb..2330c983c 100644 --- a/c_sharp/src/org/ldk/structs/CoinSelection.cs +++ b/c_sharp/src/org/ldk/structs/CoinSelection.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class CoinSelection : CommonBase { internal CoinSelection(object _dummy, long ptr) : base(ptr) { } ~CoinSelection() { - if (ptr != 0) { bindings.CoinSelection_free(ptr); } + if (ptr != 0) { Bindings.CoinSelectionFree(ptr); } } /** @@ -21,18 +21,18 @@ internal CoinSelection(object _dummy, long ptr) : base(ptr) { } * requiring additional fees. */ public Utxo[] get_confirmed_utxos() { - long ret = bindings.CoinSelection_get_confirmed_utxos(this.ptr); + long ret = Bindings.CoinSelectionGetConfirmedUtxos(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_6_len = InternalUtils.getArrayLength(ret); + int ret_conv_6_len = InternalUtils.GetArrayLength(ret); Utxo[] ret_conv_6_arr = new Utxo[ret_conv_6_len]; for (int g = 0; g < ret_conv_6_len; g++) { - long ret_conv_6 = InternalUtils.getU64ArrayElem(ret, g); + long ret_conv_6 = InternalUtils.GetU64ArrayElem(ret, g); org.ldk.structs.Utxo ret_conv_6_hu_conv = null; if (ret_conv_6 < 0 || ret_conv_6 > 4096) { ret_conv_6_hu_conv = new org.ldk.structs.Utxo(null, ret_conv_6); } if (ret_conv_6_hu_conv != null) { ret_conv_6_hu_conv.ptrs_to.AddLast(this); }; ret_conv_6_arr[g] = ret_conv_6_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_6_arr; } @@ -41,7 +41,7 @@ public Utxo[] get_confirmed_utxos() { * requiring additional fees. */ public void set_confirmed_utxos(Utxo[] val) { - bindings.CoinSelection_set_confirmed_utxos(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_6 => val_conv_6 == null ? 0 : val_conv_6.ptr))); + Bindings.CoinSelectionSetConfirmedUtxos(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_6 => val_conv_6 == null ? 0 : val_conv_6.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (Utxo val_conv_6 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_6); }; }; @@ -54,7 +54,7 @@ public void set_confirmed_utxos(Utxo[] val) { * not met. This implies no other party should be able to spend it except us. */ public Option_TxOutZ get_change_output() { - long ret = bindings.CoinSelection_get_change_output(this.ptr); + long ret = Bindings.CoinSelectionGetChangeOutput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TxOutZ ret_hu_conv = org.ldk.structs.Option_TxOutZ.constr_from_ptr(ret); @@ -69,7 +69,7 @@ public Option_TxOutZ get_change_output() { * not met. This implies no other party should be able to spend it except us. */ public void set_change_output(org.ldk.structs.Option_TxOutZ val) { - bindings.CoinSelection_set_change_output(this.ptr, val.ptr); + Bindings.CoinSelectionSetChangeOutput(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -79,7 +79,7 @@ public void set_change_output(org.ldk.structs.Option_TxOutZ val) { * Constructs a new CoinSelection given each field */ public static CoinSelection of(Utxo[] confirmed_utxos_arg, org.ldk.structs.Option_TxOutZ change_output_arg) { - long ret = bindings.CoinSelection_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(confirmed_utxos_arg, confirmed_utxos_arg_conv_6 => confirmed_utxos_arg_conv_6 == null ? 0 : confirmed_utxos_arg_conv_6.ptr)), change_output_arg.ptr); + long ret = Bindings.CoinSelectionNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(confirmed_utxos_arg, confirmed_utxos_arg_conv_6 => confirmed_utxos_arg_conv_6 == null ? 0 : confirmed_utxos_arg_conv_6.ptr)), change_output_arg.ptr); GC.KeepAlive(confirmed_utxos_arg); GC.KeepAlive(change_output_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -91,7 +91,7 @@ public static CoinSelection of(Utxo[] confirmed_utxos_arg, org.ldk.structs.Optio } internal long clone_ptr() { - long ret = bindings.CoinSelection_clone_ptr(this.ptr); + long ret = Bindings.CoinSelectionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ internal long clone_ptr() { * Creates a copy of the CoinSelection */ public CoinSelection clone() { - long ret = bindings.CoinSelection_clone(this.ptr); + long ret = Bindings.CoinSelectionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CoinSelection ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CoinSelection(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/CoinSelectionSource.cs b/c_sharp/src/org/ldk/structs/CoinSelectionSource.cs index 0e7a74b0e..6346f7bec 100644 --- a/c_sharp/src/org/ldk/structs/CoinSelectionSource.cs +++ b/c_sharp/src/org/ldk/structs/CoinSelectionSource.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of CoinSelectionSource */ -public interface CoinSelectionSourceInterface { +public interface ICoinSelectionSource { /**Performs coin selection of a set of UTXOs, with at least 1 confirmation each, that are * available to spend. Implementations are free to pick their coin selection algorithm of * choice, as long as the following requirements are met: @@ -54,45 +54,45 @@ public interface CoinSelectionSourceInterface { * which can provide a default implementation of this trait when used with [`Wallet`]. */ public class CoinSelectionSource : CommonBase { - internal bindings.LDKCoinSelectionSource bindings_instance; + internal Bindings.LDKCoinSelectionSource bindings_instance; internal long instance_idx; internal CoinSelectionSource(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~CoinSelectionSource() { - if (ptr != 0) { bindings.CoinSelectionSource_free(ptr); } + if (ptr != 0) { Bindings.CoinSelectionSourceFree(ptr); } } private class LDKCoinSelectionSourceHolder { internal CoinSelectionSource held; } - private class LDKCoinSelectionSourceImpl : bindings.LDKCoinSelectionSource { - internal LDKCoinSelectionSourceImpl(CoinSelectionSourceInterface arg, LDKCoinSelectionSourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private CoinSelectionSourceInterface arg; + private class LDKCoinSelectionSourceImpl : Bindings.LDKCoinSelectionSource { + internal LDKCoinSelectionSourceImpl(ICoinSelectionSource arg, LDKCoinSelectionSourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ICoinSelectionSource arg; private LDKCoinSelectionSourceHolder impl_holder; - public long select_confirmed_utxos(long _claim_id, long _must_spend, long _must_pay_to, int _target_feerate_sat_per_1000_weight) { - byte[] _claim_id_conv = InternalUtils.decodeUint8Array(_claim_id); - int _must_spend_conv_7_len = InternalUtils.getArrayLength(_must_spend); + public long SelectConfirmedUtxos(long _claim_id, long _must_spend, long _must_pay_to, int _target_feerate_sat_per_1000_weight) { + byte[] _claim_id_conv = InternalUtils.DecodeUint8Array(_claim_id); + int _must_spend_conv_7_len = InternalUtils.GetArrayLength(_must_spend); Input[] _must_spend_conv_7_arr = new Input[_must_spend_conv_7_len]; for (int h = 0; h < _must_spend_conv_7_len; h++) { - long _must_spend_conv_7 = InternalUtils.getU64ArrayElem(_must_spend, h); + long _must_spend_conv_7 = InternalUtils.GetU64ArrayElem(_must_spend, h); org.ldk.structs.Input _must_spend_conv_7_hu_conv = null; if (_must_spend_conv_7 < 0 || _must_spend_conv_7 > 4096) { _must_spend_conv_7_hu_conv = new org.ldk.structs.Input(null, _must_spend_conv_7); } if (_must_spend_conv_7_hu_conv != null) { _must_spend_conv_7_hu_conv.ptrs_to.AddLast(this); }; _must_spend_conv_7_arr[h] = _must_spend_conv_7_hu_conv; } - bindings.free_buffer(_must_spend); - int _must_pay_to_conv_7_len = InternalUtils.getArrayLength(_must_pay_to); + Bindings.FreeBuffer(_must_spend); + int _must_pay_to_conv_7_len = InternalUtils.GetArrayLength(_must_pay_to); TxOut[] _must_pay_to_conv_7_arr = new TxOut[_must_pay_to_conv_7_len]; for (int h = 0; h < _must_pay_to_conv_7_len; h++) { - long _must_pay_to_conv_7 = InternalUtils.getU64ArrayElem(_must_pay_to, h); + long _must_pay_to_conv_7 = InternalUtils.GetU64ArrayElem(_must_pay_to, h); TxOut _must_pay_to_conv_7_conv = new TxOut(null, _must_pay_to_conv_7); _must_pay_to_conv_7_arr[h] = _must_pay_to_conv_7_conv; } - bindings.free_buffer(_must_pay_to); + Bindings.FreeBuffer(_must_pay_to); Result_CoinSelectionNoneZ ret = arg.select_confirmed_utxos(_claim_id_conv, _must_spend_conv_7_arr, _must_pay_to_conv_7_arr, _target_feerate_sat_per_1000_weight); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_psbt(long _psbt) { - byte[] _psbt_conv = InternalUtils.decodeUint8Array(_psbt); + public long SignPsbt(long _psbt) { + byte[] _psbt_conv = InternalUtils.DecodeUint8Array(_psbt); Result_TransactionNoneZ ret = arg.sign_psbt(_psbt_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -101,10 +101,10 @@ public long sign_psbt(long _psbt) { } /** Creates a new instance of CoinSelectionSource from a given implementation */ - public static CoinSelectionSource new_impl(CoinSelectionSourceInterface arg) { + public static CoinSelectionSource new_impl(ICoinSelectionSource arg) { LDKCoinSelectionSourceHolder impl_holder = new LDKCoinSelectionSourceHolder(); LDKCoinSelectionSourceImpl impl = new LDKCoinSelectionSourceImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKCoinSelectionSource_new(impl); + long[] ptr_idx = Bindings.LDKCoinSelectionSourceNew(impl); impl_holder.held = new CoinSelectionSource(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -141,7 +141,7 @@ public static CoinSelectionSource new_impl(CoinSelectionSourceInterface arg) { * set of other claims being double spent to a minimum. */ public Result_CoinSelectionNoneZ select_confirmed_utxos(byte[] claim_id, Input[] must_spend, TxOut[] must_pay_to, int target_feerate_sat_per_1000_weight) { - long ret = bindings.CoinSelectionSource_select_confirmed_utxos(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(claim_id, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(must_spend, must_spend_conv_7 => must_spend_conv_7 == null ? 0 : must_spend_conv_7.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(must_pay_to, must_pay_to_conv_7 => must_pay_to_conv_7.ptr)), target_feerate_sat_per_1000_weight); + long ret = Bindings.CoinSelectionSourceSelectConfirmedUtxos(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(claim_id, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(must_spend, must_spend_conv_7 => must_spend_conv_7 == null ? 0 : must_spend_conv_7.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(must_pay_to, must_pay_to_conv_7 => must_pay_to_conv_7.ptr)), target_feerate_sat_per_1000_weight); GC.KeepAlive(this); GC.KeepAlive(claim_id); GC.KeepAlive(must_spend); @@ -161,7 +161,7 @@ public Result_CoinSelectionNoneZ select_confirmed_utxos(byte[] claim_id, Input[] * unsigned transaction and then sign it with your wallet. */ public Result_TransactionNoneZ sign_psbt(byte[] psbt) { - long ret = bindings.CoinSelectionSource_sign_psbt(this.ptr, InternalUtils.encodeUint8Array(psbt)); + long ret = Bindings.CoinSelectionSourceSignPsbt(this.ptr, InternalUtils.EncodeUint8Array(psbt)); GC.KeepAlive(this); GC.KeepAlive(psbt); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/CommitmentSigned.cs b/c_sharp/src/org/ldk/structs/CommitmentSigned.cs index 6b21710a0..afaf0af71 100644 --- a/c_sharp/src/org/ldk/structs/CommitmentSigned.cs +++ b/c_sharp/src/org/ldk/structs/CommitmentSigned.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class CommitmentSigned : CommonBase { internal CommitmentSigned(object _dummy, long ptr) : base(ptr) { } ~CommitmentSigned() { - if (ptr != 0) { bindings.CommitmentSigned_free(ptr); } + if (ptr != 0) { Bindings.CommitmentSignedFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.CommitmentSigned_get_channel_id(this.ptr); + long ret = Bindings.CommitmentSignedGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.CommitmentSigned_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.CommitmentSignedSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_channel_id(byte[] val) { * A signature on the commitment transaction */ public byte[] get_signature() { - long ret = bindings.CommitmentSigned_get_signature(this.ptr); + long ret = Bindings.CommitmentSignedGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_signature() { * A signature on the commitment transaction */ public void set_signature(byte[] val) { - bindings.CommitmentSigned_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.CommitmentSignedSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,17 +63,17 @@ public void set_signature(byte[] val) { * Returns a copy of the field. */ public byte[][] get_htlc_signatures() { - long ret = bindings.CommitmentSigned_get_htlc_signatures(this.ptr); + long ret = Bindings.CommitmentSignedGetHtlcSignatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -81,7 +81,7 @@ public byte[][] get_htlc_signatures() { * Signatures on the HTLC transactions */ public void set_htlc_signatures(byte[][] val) { - bindings.CommitmentSigned_set_htlc_signatures(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val_conv_8, 64))))); + Bindings.CommitmentSignedSetHtlcSignatures(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val_conv_8, 64))))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -90,7 +90,7 @@ public void set_htlc_signatures(byte[][] val) { * Constructs a new CommitmentSigned given each field */ public static CommitmentSigned of(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg) { - long ret = bindings.CommitmentSigned_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(htlc_signatures_arg, htlc_signatures_arg_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_signatures_arg_conv_8, 64))))); + long ret = Bindings.CommitmentSignedNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(htlc_signatures_arg, htlc_signatures_arg_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_signatures_arg_conv_8, 64))))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(signature_arg); GC.KeepAlive(htlc_signatures_arg); @@ -101,7 +101,7 @@ public static CommitmentSigned of(byte[] channel_id_arg, byte[] signature_arg, b } internal long clone_ptr() { - long ret = bindings.CommitmentSigned_clone_ptr(this.ptr); + long ret = Bindings.CommitmentSignedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ internal long clone_ptr() { * Creates a copy of the CommitmentSigned */ public CommitmentSigned clone() { - long ret = bindings.CommitmentSigned_clone(this.ptr); + long ret = Bindings.CommitmentSignedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CommitmentSigned ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CommitmentSigned(null, ret); } @@ -122,7 +122,7 @@ public CommitmentSigned clone() { * Generates a non-cryptographic 64-bit hash of the CommitmentSigned. */ public long hash() { - long ret = bindings.CommitmentSigned_hash(this.ptr); + long ret = Bindings.CommitmentSignedHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -136,7 +136,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.CommitmentSigned b) { - bool ret = bindings.CommitmentSigned_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.CommitmentSignedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -151,10 +151,10 @@ public override bool Equals(object o) { * Serialize the CommitmentSigned object into a byte array which can be read by CommitmentSigned_read */ public byte[] write() { - long ret = bindings.CommitmentSigned_write(this.ptr); + long ret = Bindings.CommitmentSignedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -162,7 +162,7 @@ public byte[] write() { * Read a CommitmentSigned from a byte array, created by CommitmentSigned_write */ public static Result_CommitmentSignedDecodeErrorZ read(byte[] ser) { - long ret = bindings.CommitmentSigned_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.CommitmentSignedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/CommitmentTransaction.cs b/c_sharp/src/org/ldk/structs/CommitmentTransaction.cs index b3bcf6130..afe38919a 100644 --- a/c_sharp/src/org/ldk/structs/CommitmentTransaction.cs +++ b/c_sharp/src/org/ldk/structs/CommitmentTransaction.cs @@ -17,11 +17,11 @@ namespace org { namespace ldk { namespace structs { public class CommitmentTransaction : CommonBase { internal CommitmentTransaction(object _dummy, long ptr) : base(ptr) { } ~CommitmentTransaction() { - if (ptr != 0) { bindings.CommitmentTransaction_free(ptr); } + if (ptr != 0) { Bindings.CommitmentTransactionFree(ptr); } } internal long clone_ptr() { - long ret = bindings.CommitmentTransaction_clone_ptr(this.ptr); + long ret = Bindings.CommitmentTransactionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,7 +30,7 @@ internal long clone_ptr() { * Creates a copy of the CommitmentTransaction */ public CommitmentTransaction clone() { - long ret = bindings.CommitmentTransaction_clone(this.ptr); + long ret = Bindings.CommitmentTransactionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CommitmentTransaction(null, ret); } @@ -42,10 +42,10 @@ public CommitmentTransaction clone() { * Serialize the CommitmentTransaction object into a byte array which can be read by CommitmentTransaction_read */ public byte[] write() { - long ret = bindings.CommitmentTransaction_write(this.ptr); + long ret = Bindings.CommitmentTransactionWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -53,7 +53,7 @@ public byte[] write() { * Read a CommitmentTransaction from a byte array, created by CommitmentTransaction_write */ public static Result_CommitmentTransactionDecodeErrorZ read(byte[] ser) { - long ret = bindings.CommitmentTransaction_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.CommitmentTransactionRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -64,7 +64,7 @@ public static Result_CommitmentTransactionDecodeErrorZ read(byte[] ser) { * The backwards-counting commitment number */ public long commitment_number() { - long ret = bindings.CommitmentTransaction_commitment_number(this.ptr); + long ret = Bindings.CommitmentTransactionCommitmentNumber(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,10 +73,10 @@ public long commitment_number() { * The per commitment point used by the broadcaster. */ public byte[] per_commitment_point() { - long ret = bindings.CommitmentTransaction_per_commitment_point(this.ptr); + long ret = Bindings.CommitmentTransactionPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -84,7 +84,7 @@ public byte[] per_commitment_point() { * The value to be sent to the broadcaster */ public long to_broadcaster_value_sat() { - long ret = bindings.CommitmentTransaction_to_broadcaster_value_sat(this.ptr); + long ret = Bindings.CommitmentTransactionToBroadcasterValueSat(this.ptr); GC.KeepAlive(this); return ret; } @@ -93,7 +93,7 @@ public long to_broadcaster_value_sat() { * The value to be sent to the counterparty */ public long to_countersignatory_value_sat() { - long ret = bindings.CommitmentTransaction_to_countersignatory_value_sat(this.ptr); + long ret = Bindings.CommitmentTransactionToCountersignatoryValueSat(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ public long to_countersignatory_value_sat() { * The feerate paid per 1000-weight-unit in this commitment transaction. */ public int feerate_per_kw() { - int ret = bindings.CommitmentTransaction_feerate_per_kw(this.ptr); + int ret = Bindings.CommitmentTransactionFeeratePerKw(this.ptr); GC.KeepAlive(this); return ret; } @@ -116,7 +116,7 @@ public int feerate_per_kw() { * be used by an external signer - instead use the verify function. */ public TrustedCommitmentTransaction trust() { - long ret = bindings.CommitmentTransaction_trust(this.ptr); + long ret = Bindings.CommitmentTransactionTrust(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TrustedCommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TrustedCommitmentTransaction(null, ret); } @@ -133,7 +133,7 @@ public TrustedCommitmentTransaction trust() { * or using the built transaction. */ public Result_TrustedCommitmentTransactionNoneZ verify(org.ldk.structs.DirectedChannelTransactionParameters channel_parameters, org.ldk.structs.ChannelPublicKeys broadcaster_keys, org.ldk.structs.ChannelPublicKeys countersignatory_keys) { - long ret = bindings.CommitmentTransaction_verify(this.ptr, channel_parameters == null ? 0 : channel_parameters.ptr, broadcaster_keys == null ? 0 : broadcaster_keys.ptr, countersignatory_keys == null ? 0 : countersignatory_keys.ptr); + long ret = Bindings.CommitmentTransactionVerify(this.ptr, channel_parameters == null ? 0 : channel_parameters.ptr, broadcaster_keys == null ? 0 : broadcaster_keys.ptr, countersignatory_keys == null ? 0 : countersignatory_keys.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_parameters); GC.KeepAlive(broadcaster_keys); diff --git a/c_sharp/src/org/ldk/structs/CommitmentUpdate.cs b/c_sharp/src/org/ldk/structs/CommitmentUpdate.cs index d14ed22ad..05abdbe1e 100644 --- a/c_sharp/src/org/ldk/structs/CommitmentUpdate.cs +++ b/c_sharp/src/org/ldk/structs/CommitmentUpdate.cs @@ -13,25 +13,25 @@ namespace org { namespace ldk { namespace structs { public class CommitmentUpdate : CommonBase { internal CommitmentUpdate(object _dummy, long ptr) : base(ptr) { } ~CommitmentUpdate() { - if (ptr != 0) { bindings.CommitmentUpdate_free(ptr); } + if (ptr != 0) { Bindings.CommitmentUpdateFree(ptr); } } /** * `update_add_htlc` messages which should be sent */ public UpdateAddHTLC[] get_update_add_htlcs() { - long ret = bindings.CommitmentUpdate_get_update_add_htlcs(this.ptr); + long ret = Bindings.CommitmentUpdateGetUpdateAddHtlcs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_15_len = InternalUtils.getArrayLength(ret); + int ret_conv_15_len = InternalUtils.GetArrayLength(ret); UpdateAddHTLC[] ret_conv_15_arr = new UpdateAddHTLC[ret_conv_15_len]; for (int p = 0; p < ret_conv_15_len; p++) { - long ret_conv_15 = InternalUtils.getU64ArrayElem(ret, p); + long ret_conv_15 = InternalUtils.GetU64ArrayElem(ret, p); org.ldk.structs.UpdateAddHTLC ret_conv_15_hu_conv = null; if (ret_conv_15 < 0 || ret_conv_15 > 4096) { ret_conv_15_hu_conv = new org.ldk.structs.UpdateAddHTLC(null, ret_conv_15); } if (ret_conv_15_hu_conv != null) { ret_conv_15_hu_conv.ptrs_to.AddLast(this); }; ret_conv_15_arr[p] = ret_conv_15_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_15_arr; } @@ -39,7 +39,7 @@ public UpdateAddHTLC[] get_update_add_htlcs() { * `update_add_htlc` messages which should be sent */ public void set_update_add_htlcs(UpdateAddHTLC[] val) { - bindings.CommitmentUpdate_set_update_add_htlcs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_15 => val_conv_15 == null ? 0 : val_conv_15.ptr))); + Bindings.CommitmentUpdateSetUpdateAddHtlcs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_15 => val_conv_15 == null ? 0 : val_conv_15.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (UpdateAddHTLC val_conv_15 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_15); }; }; @@ -49,18 +49,18 @@ public void set_update_add_htlcs(UpdateAddHTLC[] val) { * `update_fulfill_htlc` messages which should be sent */ public UpdateFulfillHTLC[] get_update_fulfill_htlcs() { - long ret = bindings.CommitmentUpdate_get_update_fulfill_htlcs(this.ptr); + long ret = Bindings.CommitmentUpdateGetUpdateFulfillHtlcs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_19_len = InternalUtils.getArrayLength(ret); + int ret_conv_19_len = InternalUtils.GetArrayLength(ret); UpdateFulfillHTLC[] ret_conv_19_arr = new UpdateFulfillHTLC[ret_conv_19_len]; for (int t = 0; t < ret_conv_19_len; t++) { - long ret_conv_19 = InternalUtils.getU64ArrayElem(ret, t); + long ret_conv_19 = InternalUtils.GetU64ArrayElem(ret, t); org.ldk.structs.UpdateFulfillHTLC ret_conv_19_hu_conv = null; if (ret_conv_19 < 0 || ret_conv_19 > 4096) { ret_conv_19_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, ret_conv_19); } if (ret_conv_19_hu_conv != null) { ret_conv_19_hu_conv.ptrs_to.AddLast(this); }; ret_conv_19_arr[t] = ret_conv_19_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_19_arr; } @@ -68,7 +68,7 @@ public UpdateFulfillHTLC[] get_update_fulfill_htlcs() { * `update_fulfill_htlc` messages which should be sent */ public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val) { - bindings.CommitmentUpdate_set_update_fulfill_htlcs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_19 => val_conv_19 == null ? 0 : val_conv_19.ptr))); + Bindings.CommitmentUpdateSetUpdateFulfillHtlcs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_19 => val_conv_19 == null ? 0 : val_conv_19.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (UpdateFulfillHTLC val_conv_19 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_19); }; }; @@ -78,18 +78,18 @@ public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val) { * `update_fail_htlc` messages which should be sent */ public UpdateFailHTLC[] get_update_fail_htlcs() { - long ret = bindings.CommitmentUpdate_get_update_fail_htlcs(this.ptr); + long ret = Bindings.CommitmentUpdateGetUpdateFailHtlcs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_16_len = InternalUtils.getArrayLength(ret); + int ret_conv_16_len = InternalUtils.GetArrayLength(ret); UpdateFailHTLC[] ret_conv_16_arr = new UpdateFailHTLC[ret_conv_16_len]; for (int q = 0; q < ret_conv_16_len; q++) { - long ret_conv_16 = InternalUtils.getU64ArrayElem(ret, q); + long ret_conv_16 = InternalUtils.GetU64ArrayElem(ret, q); org.ldk.structs.UpdateFailHTLC ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new org.ldk.structs.UpdateFailHTLC(null, ret_conv_16); } if (ret_conv_16_hu_conv != null) { ret_conv_16_hu_conv.ptrs_to.AddLast(this); }; ret_conv_16_arr[q] = ret_conv_16_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_16_arr; } @@ -97,7 +97,7 @@ public UpdateFailHTLC[] get_update_fail_htlcs() { * `update_fail_htlc` messages which should be sent */ public void set_update_fail_htlcs(UpdateFailHTLC[] val) { - bindings.CommitmentUpdate_set_update_fail_htlcs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_16 => val_conv_16 == null ? 0 : val_conv_16.ptr))); + Bindings.CommitmentUpdateSetUpdateFailHtlcs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_16 => val_conv_16 == null ? 0 : val_conv_16.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (UpdateFailHTLC val_conv_16 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_16); }; }; @@ -107,18 +107,18 @@ public void set_update_fail_htlcs(UpdateFailHTLC[] val) { * `update_fail_malformed_htlc` messages which should be sent */ public UpdateFailMalformedHTLC[] get_update_fail_malformed_htlcs() { - long ret = bindings.CommitmentUpdate_get_update_fail_malformed_htlcs(this.ptr); + long ret = Bindings.CommitmentUpdateGetUpdateFailMalformedHtlcs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_25_len = InternalUtils.getArrayLength(ret); + int ret_conv_25_len = InternalUtils.GetArrayLength(ret); UpdateFailMalformedHTLC[] ret_conv_25_arr = new UpdateFailMalformedHTLC[ret_conv_25_len]; for (int z = 0; z < ret_conv_25_len; z++) { - long ret_conv_25 = InternalUtils.getU64ArrayElem(ret, z); + long ret_conv_25 = InternalUtils.GetU64ArrayElem(ret, z); org.ldk.structs.UpdateFailMalformedHTLC ret_conv_25_hu_conv = null; if (ret_conv_25 < 0 || ret_conv_25 > 4096) { ret_conv_25_hu_conv = new org.ldk.structs.UpdateFailMalformedHTLC(null, ret_conv_25); } if (ret_conv_25_hu_conv != null) { ret_conv_25_hu_conv.ptrs_to.AddLast(this); }; ret_conv_25_arr[z] = ret_conv_25_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_25_arr; } @@ -126,7 +126,7 @@ public UpdateFailMalformedHTLC[] get_update_fail_malformed_htlcs() { * `update_fail_malformed_htlc` messages which should be sent */ public void set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val) { - bindings.CommitmentUpdate_set_update_fail_malformed_htlcs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_25 => val_conv_25 == null ? 0 : val_conv_25.ptr))); + Bindings.CommitmentUpdateSetUpdateFailMalformedHtlcs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_25 => val_conv_25 == null ? 0 : val_conv_25.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (UpdateFailMalformedHTLC val_conv_25 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_25); }; }; @@ -138,7 +138,7 @@ public void set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public UpdateFee get_update_fee() { - long ret = bindings.CommitmentUpdate_get_update_fee(this.ptr); + long ret = Bindings.CommitmentUpdateGetUpdateFee(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateFee ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFee(null, ret); } @@ -152,7 +152,7 @@ public UpdateFee get_update_fee() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_update_fee(org.ldk.structs.UpdateFee val) { - bindings.CommitmentUpdate_set_update_fee(this.ptr, val == null ? 0 : val.ptr); + Bindings.CommitmentUpdateSetUpdateFee(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -162,7 +162,7 @@ public void set_update_fee(org.ldk.structs.UpdateFee val) { * A `commitment_signed` message which should be sent */ public CommitmentSigned get_commitment_signed() { - long ret = bindings.CommitmentUpdate_get_commitment_signed(this.ptr); + long ret = Bindings.CommitmentUpdateGetCommitmentSigned(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CommitmentSigned ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CommitmentSigned(null, ret); } @@ -174,7 +174,7 @@ public CommitmentSigned get_commitment_signed() { * A `commitment_signed` message which should be sent */ public void set_commitment_signed(org.ldk.structs.CommitmentSigned val) { - bindings.CommitmentUpdate_set_commitment_signed(this.ptr, val == null ? 0 : val.ptr); + Bindings.CommitmentUpdateSetCommitmentSigned(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -186,7 +186,7 @@ public void set_commitment_signed(org.ldk.structs.CommitmentSigned val) { * Note that update_fee_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static CommitmentUpdate of(UpdateAddHTLC[] update_add_htlcs_arg, UpdateFulfillHTLC[] update_fulfill_htlcs_arg, UpdateFailHTLC[] update_fail_htlcs_arg, UpdateFailMalformedHTLC[] update_fail_malformed_htlcs_arg, org.ldk.structs.UpdateFee update_fee_arg, org.ldk.structs.CommitmentSigned commitment_signed_arg) { - long ret = bindings.CommitmentUpdate_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(update_add_htlcs_arg, update_add_htlcs_arg_conv_15 => update_add_htlcs_arg_conv_15 == null ? 0 : update_add_htlcs_arg_conv_15.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(update_fulfill_htlcs_arg, update_fulfill_htlcs_arg_conv_19 => update_fulfill_htlcs_arg_conv_19 == null ? 0 : update_fulfill_htlcs_arg_conv_19.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(update_fail_htlcs_arg, update_fail_htlcs_arg_conv_16 => update_fail_htlcs_arg_conv_16 == null ? 0 : update_fail_htlcs_arg_conv_16.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(update_fail_malformed_htlcs_arg, update_fail_malformed_htlcs_arg_conv_25 => update_fail_malformed_htlcs_arg_conv_25 == null ? 0 : update_fail_malformed_htlcs_arg_conv_25.ptr)), update_fee_arg == null ? 0 : update_fee_arg.ptr, commitment_signed_arg == null ? 0 : commitment_signed_arg.ptr); + long ret = Bindings.CommitmentUpdateNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(update_add_htlcs_arg, update_add_htlcs_arg_conv_15 => update_add_htlcs_arg_conv_15 == null ? 0 : update_add_htlcs_arg_conv_15.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(update_fulfill_htlcs_arg, update_fulfill_htlcs_arg_conv_19 => update_fulfill_htlcs_arg_conv_19 == null ? 0 : update_fulfill_htlcs_arg_conv_19.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(update_fail_htlcs_arg, update_fail_htlcs_arg_conv_16 => update_fail_htlcs_arg_conv_16 == null ? 0 : update_fail_htlcs_arg_conv_16.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(update_fail_malformed_htlcs_arg, update_fail_malformed_htlcs_arg_conv_25 => update_fail_malformed_htlcs_arg_conv_25 == null ? 0 : update_fail_malformed_htlcs_arg_conv_25.ptr)), update_fee_arg == null ? 0 : update_fee_arg.ptr, commitment_signed_arg == null ? 0 : commitment_signed_arg.ptr); GC.KeepAlive(update_add_htlcs_arg); GC.KeepAlive(update_fulfill_htlcs_arg); GC.KeepAlive(update_fail_htlcs_arg); @@ -206,7 +206,7 @@ public static CommitmentUpdate of(UpdateAddHTLC[] update_add_htlcs_arg, UpdateFu } internal long clone_ptr() { - long ret = bindings.CommitmentUpdate_clone_ptr(this.ptr); + long ret = Bindings.CommitmentUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -215,7 +215,7 @@ internal long clone_ptr() { * Creates a copy of the CommitmentUpdate */ public CommitmentUpdate clone() { - long ret = bindings.CommitmentUpdate_clone(this.ptr); + long ret = Bindings.CommitmentUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CommitmentUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CommitmentUpdate(null, ret); } @@ -227,7 +227,7 @@ public CommitmentUpdate clone() { * Generates a non-cryptographic 64-bit hash of the CommitmentUpdate. */ public long hash() { - long ret = bindings.CommitmentUpdate_hash(this.ptr); + long ret = Bindings.CommitmentUpdateHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -241,7 +241,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.CommitmentUpdate b) { - bool ret = bindings.CommitmentUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.CommitmentUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/Confirm.cs b/c_sharp/src/org/ldk/structs/Confirm.cs index 5d36fda70..91c847149 100644 --- a/c_sharp/src/org/ldk/structs/Confirm.cs +++ b/c_sharp/src/org/ldk/structs/Confirm.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Confirm */ -public interface ConfirmInterface { +public interface IConfirm { /**Notifies LDK of transactions confirmed in a block with a given header and height. * * Must be called for any transactions registered by [`Filter::register_tx`] or any @@ -106,56 +106,56 @@ public interface ConfirmInterface { * [`get_relevant_txids`]: Self::get_relevant_txids */ public class Confirm : CommonBase { - internal bindings.LDKConfirm bindings_instance; + internal Bindings.LDKConfirm bindings_instance; internal long instance_idx; internal Confirm(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Confirm() { - if (ptr != 0) { bindings.Confirm_free(ptr); } + if (ptr != 0) { Bindings.ConfirmFree(ptr); } } private class LDKConfirmHolder { internal Confirm held; } - private class LDKConfirmImpl : bindings.LDKConfirm { - internal LDKConfirmImpl(ConfirmInterface arg, LDKConfirmHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ConfirmInterface arg; + private class LDKConfirmImpl : Bindings.LDKConfirm { + internal LDKConfirmImpl(IConfirm arg, LDKConfirmHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IConfirm arg; private LDKConfirmHolder impl_holder; - public void transactions_confirmed(long _header, long _txdata, int _height) { - byte[] _header_conv = InternalUtils.decodeUint8Array(_header); - int _txdata_conv_28_len = InternalUtils.getArrayLength(_txdata); + public void TransactionsConfirmed(long _header, long _txdata, int _height) { + byte[] _header_conv = InternalUtils.DecodeUint8Array(_header); + int _txdata_conv_28_len = InternalUtils.GetArrayLength(_txdata); TwoTuple_usizeTransactionZ[] _txdata_conv_28_arr = new TwoTuple_usizeTransactionZ[_txdata_conv_28_len]; for (int c = 0; c < _txdata_conv_28_len; c++) { - long _txdata_conv_28 = InternalUtils.getU64ArrayElem(_txdata, c); + long _txdata_conv_28 = InternalUtils.GetU64ArrayElem(_txdata, c); TwoTuple_usizeTransactionZ _txdata_conv_28_hu_conv = new TwoTuple_usizeTransactionZ(null, _txdata_conv_28); if (_txdata_conv_28_hu_conv != null) { _txdata_conv_28_hu_conv.ptrs_to.AddLast(this); }; _txdata_conv_28_arr[c] = _txdata_conv_28_hu_conv; } - bindings.free_buffer(_txdata); + Bindings.FreeBuffer(_txdata); arg.transactions_confirmed(_header_conv, _txdata_conv_28_arr, _height); GC.KeepAlive(arg); } - public void transaction_unconfirmed(long _txid) { - byte[] _txid_conv = InternalUtils.decodeUint8Array(_txid); + public void TransactionUnconfirmed(long _txid) { + byte[] _txid_conv = InternalUtils.DecodeUint8Array(_txid); arg.transaction_unconfirmed(_txid_conv); GC.KeepAlive(arg); } - public void best_block_updated(long _header, int _height) { - byte[] _header_conv = InternalUtils.decodeUint8Array(_header); + public void BestBlockUpdated(long _header, int _height) { + byte[] _header_conv = InternalUtils.DecodeUint8Array(_header); arg.best_block_updated(_header_conv, _height); GC.KeepAlive(arg); } - public long get_relevant_txids() { + public long GetRelevantTxids() { ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] ret = arg.get_relevant_txids(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_54 => ret_conv_54 == null ? 0 : ret_conv_54.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_54 => ret_conv_54 == null ? 0 : ret_conv_54.clone_ptr())); return result; } } /** Creates a new instance of Confirm from a given implementation */ - public static Confirm new_impl(ConfirmInterface arg) { + public static Confirm new_impl(IConfirm arg) { LDKConfirmHolder impl_holder = new LDKConfirmHolder(); LDKConfirmImpl impl = new LDKConfirmImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKConfirm_new(impl); + long[] ptr_idx = Bindings.LDKConfirmNew(impl); impl_holder.held = new Confirm(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -179,7 +179,7 @@ public static Confirm new_impl(ConfirmInterface arg) { * [`best_block_updated`]: Self::best_block_updated */ public void transactions_confirmed(byte[] header, TwoTuple_usizeTransactionZ[] txdata, int height) { - bindings.Confirm_transactions_confirmed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height); + Bindings.ConfirmTransactionsConfirmed(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(txdata); @@ -198,7 +198,7 @@ public void transactions_confirmed(byte[] header, TwoTuple_usizeTransactionZ[] t * [`transactions_confirmed`]: Self::transactions_confirmed */ public void transaction_unconfirmed(byte[] txid) { - bindings.Confirm_transaction_unconfirmed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(txid, 32))); + Bindings.ConfirmTransactionUnconfirmed(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(txid, 32))); GC.KeepAlive(this); GC.KeepAlive(txid); } @@ -210,7 +210,7 @@ public void transaction_unconfirmed(byte[] txid) { * blocks. */ public void best_block_updated(byte[] header, int height) { - bindings.Confirm_best_block_updated(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), height); + Bindings.ConfirmBestBlockUpdated(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), height); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(height); @@ -240,18 +240,18 @@ public void best_block_updated(byte[] header, int height) { * [`transaction_unconfirmed`]: Self::transaction_unconfirmed */ public ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] get_relevant_txids() { - long ret = bindings.Confirm_get_relevant_txids(this.ptr); + long ret = Bindings.ConfirmGetRelevantTxids(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_54_len = InternalUtils.getArrayLength(ret); + int ret_conv_54_len = InternalUtils.GetArrayLength(ret); ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[] ret_conv_54_arr = new ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ[ret_conv_54_len]; for (int c = 0; c < ret_conv_54_len; c++) { - long ret_conv_54 = InternalUtils.getU64ArrayElem(ret, c); + long ret_conv_54 = InternalUtils.GetU64ArrayElem(ret, c); ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ ret_conv_54_hu_conv = new ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ(null, ret_conv_54); if (ret_conv_54_hu_conv != null) { ret_conv_54_hu_conv.ptrs_to.AddLast(this); }; ret_conv_54_arr[c] = ret_conv_54_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_54_arr; } diff --git a/c_sharp/src/org/ldk/structs/CounterpartyChannelTransactionParameters.cs b/c_sharp/src/org/ldk/structs/CounterpartyChannelTransactionParameters.cs index 85da52f9a..97dc0d5e5 100644 --- a/c_sharp/src/org/ldk/structs/CounterpartyChannelTransactionParameters.cs +++ b/c_sharp/src/org/ldk/structs/CounterpartyChannelTransactionParameters.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class CounterpartyChannelTransactionParameters : CommonBase { internal CounterpartyChannelTransactionParameters(object _dummy, long ptr) : base(ptr) { } ~CounterpartyChannelTransactionParameters() { - if (ptr != 0) { bindings.CounterpartyChannelTransactionParameters_free(ptr); } + if (ptr != 0) { Bindings.CounterpartyChannelTransactionParametersFree(ptr); } } /** * Counter-party public keys */ public ChannelPublicKeys get_pubkeys() { - long ret = bindings.CounterpartyChannelTransactionParameters_get_pubkeys(this.ptr); + long ret = Bindings.CounterpartyChannelTransactionParametersGetPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -31,7 +31,7 @@ public ChannelPublicKeys get_pubkeys() { * Counter-party public keys */ public void set_pubkeys(org.ldk.structs.ChannelPublicKeys val) { - bindings.CounterpartyChannelTransactionParameters_set_pubkeys(this.ptr, val == null ? 0 : val.ptr); + Bindings.CounterpartyChannelTransactionParametersSetPubkeys(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -41,7 +41,7 @@ public void set_pubkeys(org.ldk.structs.ChannelPublicKeys val) { * The contest delay selected by the counterparty, which applies to holder-broadcast transactions */ public short get_selected_contest_delay() { - short ret = bindings.CounterpartyChannelTransactionParameters_get_selected_contest_delay(this.ptr); + short ret = Bindings.CounterpartyChannelTransactionParametersGetSelectedContestDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public short get_selected_contest_delay() { * The contest delay selected by the counterparty, which applies to holder-broadcast transactions */ public void set_selected_contest_delay(short val) { - bindings.CounterpartyChannelTransactionParameters_set_selected_contest_delay(this.ptr, val); + Bindings.CounterpartyChannelTransactionParametersSetSelectedContestDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_selected_contest_delay(short val) { * Constructs a new CounterpartyChannelTransactionParameters given each field */ public static CounterpartyChannelTransactionParameters of(org.ldk.structs.ChannelPublicKeys pubkeys_arg, short selected_contest_delay_arg) { - long ret = bindings.CounterpartyChannelTransactionParameters_new(pubkeys_arg == null ? 0 : pubkeys_arg.ptr, selected_contest_delay_arg); + long ret = Bindings.CounterpartyChannelTransactionParametersNew(pubkeys_arg == null ? 0 : pubkeys_arg.ptr, selected_contest_delay_arg); GC.KeepAlive(pubkeys_arg); GC.KeepAlive(selected_contest_delay_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -70,7 +70,7 @@ public static CounterpartyChannelTransactionParameters of(org.ldk.structs.Channe } internal long clone_ptr() { - long ret = bindings.CounterpartyChannelTransactionParameters_clone_ptr(this.ptr); + long ret = Bindings.CounterpartyChannelTransactionParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -79,7 +79,7 @@ internal long clone_ptr() { * Creates a copy of the CounterpartyChannelTransactionParameters */ public CounterpartyChannelTransactionParameters clone() { - long ret = bindings.CounterpartyChannelTransactionParameters_clone(this.ptr); + long ret = Bindings.CounterpartyChannelTransactionParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyChannelTransactionParameters(null, ret); } @@ -91,7 +91,7 @@ public CounterpartyChannelTransactionParameters clone() { * Generates a non-cryptographic 64-bit hash of the CounterpartyChannelTransactionParameters. */ public long hash() { - long ret = bindings.CounterpartyChannelTransactionParameters_hash(this.ptr); + long ret = Bindings.CounterpartyChannelTransactionParametersHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -105,7 +105,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.CounterpartyChannelTransactionParameters b) { - bool ret = bindings.CounterpartyChannelTransactionParameters_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.CounterpartyChannelTransactionParametersEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -120,10 +120,10 @@ public override bool Equals(object o) { * Serialize the CounterpartyChannelTransactionParameters object into a byte array which can be read by CounterpartyChannelTransactionParameters_read */ public byte[] write() { - long ret = bindings.CounterpartyChannelTransactionParameters_write(this.ptr); + long ret = Bindings.CounterpartyChannelTransactionParametersWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -131,7 +131,7 @@ public byte[] write() { * Read a CounterpartyChannelTransactionParameters from a byte array, created by CounterpartyChannelTransactionParameters_write */ public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ read(byte[] ser) { - long ret = bindings.CounterpartyChannelTransactionParameters_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.CounterpartyChannelTransactionParametersRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/CounterpartyCommitmentSecrets.cs b/c_sharp/src/org/ldk/structs/CounterpartyCommitmentSecrets.cs index b5ac11912..2403c54f1 100644 --- a/c_sharp/src/org/ldk/structs/CounterpartyCommitmentSecrets.cs +++ b/c_sharp/src/org/ldk/structs/CounterpartyCommitmentSecrets.cs @@ -16,11 +16,11 @@ namespace org { namespace ldk { namespace structs { public class CounterpartyCommitmentSecrets : CommonBase { internal CounterpartyCommitmentSecrets(object _dummy, long ptr) : base(ptr) { } ~CounterpartyCommitmentSecrets() { - if (ptr != 0) { bindings.CounterpartyCommitmentSecrets_free(ptr); } + if (ptr != 0) { Bindings.CounterpartyCommitmentSecretsFree(ptr); } } internal long clone_ptr() { - long ret = bindings.CounterpartyCommitmentSecrets_clone_ptr(this.ptr); + long ret = Bindings.CounterpartyCommitmentSecretsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -29,7 +29,7 @@ internal long clone_ptr() { * Creates a copy of the CounterpartyCommitmentSecrets */ public CounterpartyCommitmentSecrets clone() { - long ret = bindings.CounterpartyCommitmentSecrets_clone(this.ptr); + long ret = Bindings.CounterpartyCommitmentSecretsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyCommitmentSecrets ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyCommitmentSecrets(null, ret); } @@ -41,7 +41,7 @@ public CounterpartyCommitmentSecrets clone() { * Creates a new empty `CounterpartyCommitmentSecrets` structure. */ public static CounterpartyCommitmentSecrets of() { - long ret = bindings.CounterpartyCommitmentSecrets_new(); + long ret = Bindings.CounterpartyCommitmentSecretsNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyCommitmentSecrets ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyCommitmentSecrets(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -53,7 +53,7 @@ public static CounterpartyCommitmentSecrets of() { * at 1 << 48 and get decremented by one for each new secret. */ public long get_min_seen_secret() { - long ret = bindings.CounterpartyCommitmentSecrets_get_min_seen_secret(this.ptr); + long ret = Bindings.CounterpartyCommitmentSecretsGetMinSeenSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -63,7 +63,7 @@ public long get_min_seen_secret() { * was generated in accordance with BOLT 3 and is consistent with previous secrets. */ public Result_NoneNoneZ provide_secret(long idx, byte[] secret) { - long ret = bindings.CounterpartyCommitmentSecrets_provide_secret(this.ptr, idx, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(secret, 32))); + long ret = Bindings.CounterpartyCommitmentSecretsProvideSecret(this.ptr, idx, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(secret, 32))); GC.KeepAlive(this); GC.KeepAlive(idx); GC.KeepAlive(secret); @@ -79,11 +79,11 @@ public Result_NoneNoneZ provide_secret(long idx, byte[] secret) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] get_secret(long idx) { - long ret = bindings.CounterpartyCommitmentSecrets_get_secret(this.ptr, idx); + long ret = Bindings.CounterpartyCommitmentSecretsGetSecret(this.ptr, idx); GC.KeepAlive(this); GC.KeepAlive(idx); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -91,10 +91,10 @@ public byte[] get_secret(long idx) { * Serialize the CounterpartyCommitmentSecrets object into a byte array which can be read by CounterpartyCommitmentSecrets_read */ public byte[] write() { - long ret = bindings.CounterpartyCommitmentSecrets_write(this.ptr); + long ret = Bindings.CounterpartyCommitmentSecretsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -102,7 +102,7 @@ public byte[] write() { * Read a CounterpartyCommitmentSecrets from a byte array, created by CounterpartyCommitmentSecrets_write */ public static Result_CounterpartyCommitmentSecretsDecodeErrorZ read(byte[] ser) { - long ret = bindings.CounterpartyCommitmentSecrets_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.CounterpartyCommitmentSecretsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyCommitmentSecretsDecodeErrorZ ret_hu_conv = Result_CounterpartyCommitmentSecretsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/CounterpartyForwardingInfo.cs b/c_sharp/src/org/ldk/structs/CounterpartyForwardingInfo.cs index dc264cc09..af2cbf597 100644 --- a/c_sharp/src/org/ldk/structs/CounterpartyForwardingInfo.cs +++ b/c_sharp/src/org/ldk/structs/CounterpartyForwardingInfo.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class CounterpartyForwardingInfo : CommonBase { internal CounterpartyForwardingInfo(object _dummy, long ptr) : base(ptr) { } ~CounterpartyForwardingInfo() { - if (ptr != 0) { bindings.CounterpartyForwardingInfo_free(ptr); } + if (ptr != 0) { Bindings.CounterpartyForwardingInfoFree(ptr); } } /** * Base routing fee in millisatoshis. */ public int get_fee_base_msat() { - int ret = bindings.CounterpartyForwardingInfo_get_fee_base_msat(this.ptr); + int ret = Bindings.CounterpartyForwardingInfoGetFeeBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public int get_fee_base_msat() { * Base routing fee in millisatoshis. */ public void set_fee_base_msat(int val) { - bindings.CounterpartyForwardingInfo_set_fee_base_msat(this.ptr, val); + Bindings.CounterpartyForwardingInfoSetFeeBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,7 +37,7 @@ public void set_fee_base_msat(int val) { * Amount in millionths of a satoshi the channel will charge per transferred satoshi. */ public int get_fee_proportional_millionths() { - int ret = bindings.CounterpartyForwardingInfo_get_fee_proportional_millionths(this.ptr); + int ret = Bindings.CounterpartyForwardingInfoGetFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ public int get_fee_proportional_millionths() { * Amount in millionths of a satoshi the channel will charge per transferred satoshi. */ public void set_fee_proportional_millionths(int val) { - bindings.CounterpartyForwardingInfo_set_fee_proportional_millionths(this.ptr, val); + Bindings.CounterpartyForwardingInfoSetFeeProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_fee_proportional_millionths(int val) { * `cltv_expiry_delta` for more details. */ public short get_cltv_expiry_delta() { - short ret = bindings.CounterpartyForwardingInfo_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.CounterpartyForwardingInfoGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public short get_cltv_expiry_delta() { * `cltv_expiry_delta` for more details. */ public void set_cltv_expiry_delta(short val) { - bindings.CounterpartyForwardingInfo_set_cltv_expiry_delta(this.ptr, val); + Bindings.CounterpartyForwardingInfoSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,7 +77,7 @@ public void set_cltv_expiry_delta(short val) { * Constructs a new CounterpartyForwardingInfo given each field */ public static CounterpartyForwardingInfo of(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg) { - long ret = bindings.CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg); + long ret = Bindings.CounterpartyForwardingInfoNew(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg); GC.KeepAlive(fee_base_msat_arg); GC.KeepAlive(fee_proportional_millionths_arg); GC.KeepAlive(cltv_expiry_delta_arg); @@ -88,7 +88,7 @@ public static CounterpartyForwardingInfo of(int fee_base_msat_arg, int fee_propo } internal long clone_ptr() { - long ret = bindings.CounterpartyForwardingInfo_clone_ptr(this.ptr); + long ret = Bindings.CounterpartyForwardingInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -97,7 +97,7 @@ internal long clone_ptr() { * Creates a copy of the CounterpartyForwardingInfo */ public CounterpartyForwardingInfo clone() { - long ret = bindings.CounterpartyForwardingInfo_clone(this.ptr); + long ret = Bindings.CounterpartyForwardingInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.CounterpartyForwardingInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.CounterpartyForwardingInfo(null, ret); } @@ -109,10 +109,10 @@ public CounterpartyForwardingInfo clone() { * Serialize the CounterpartyForwardingInfo object into a byte array which can be read by CounterpartyForwardingInfo_read */ public byte[] write() { - long ret = bindings.CounterpartyForwardingInfo_write(this.ptr); + long ret = Bindings.CounterpartyForwardingInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -120,7 +120,7 @@ public byte[] write() { * Read a CounterpartyForwardingInfo from a byte array, created by CounterpartyForwardingInfo_write */ public static Result_CounterpartyForwardingInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.CounterpartyForwardingInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.CounterpartyForwardingInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyForwardingInfoDecodeErrorZ ret_hu_conv = Result_CounterpartyForwardingInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/CustomMessageHandler.cs b/c_sharp/src/org/ldk/structs/CustomMessageHandler.cs index fdec99ad4..6a1ae8a85 100644 --- a/c_sharp/src/org/ldk/structs/CustomMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/CustomMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of CustomMessageHandler */ -public interface CustomMessageHandlerInterface { +public interface ICustomMessageHandler { /**Handles the given message sent from `sender_node_id`, possibly producing messages for * [`CustomMessageHandler::get_and_clear_pending_msg`] to return and thus for [`PeerManager`] * to send. @@ -47,42 +47,42 @@ public interface CustomMessageHandlerInterface { * [`lightning_custom_message`]: https://docs.rs/lightning_custom_message/latest/lightning_custom_message */ public class CustomMessageHandler : CommonBase { - internal bindings.LDKCustomMessageHandler bindings_instance; + internal Bindings.LDKCustomMessageHandler bindings_instance; internal long instance_idx; internal CustomMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~CustomMessageHandler() { - if (ptr != 0) { bindings.CustomMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.CustomMessageHandlerFree(ptr); } } private class LDKCustomMessageHandlerHolder { internal CustomMessageHandler held; } - private class LDKCustomMessageHandlerImpl : bindings.LDKCustomMessageHandler { - internal LDKCustomMessageHandlerImpl(CustomMessageHandlerInterface arg, LDKCustomMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private CustomMessageHandlerInterface arg; + private class LDKCustomMessageHandlerImpl : Bindings.LDKCustomMessageHandler { + internal LDKCustomMessageHandlerImpl(ICustomMessageHandler arg, LDKCustomMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ICustomMessageHandler arg; private LDKCustomMessageHandlerHolder impl_holder; - public long handle_custom_message(long _msg, long _sender_node_id) { + public long HandleCustomMessage(long _msg, long _sender_node_id) { Type ret_hu_conv = new Type(null, _msg); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; - byte[] _sender_node_id_conv = InternalUtils.decodeUint8Array(_sender_node_id); + byte[] _sender_node_id_conv = InternalUtils.DecodeUint8Array(_sender_node_id); Result_NoneLightningErrorZ ret = arg.handle_custom_message(ret_hu_conv, _sender_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_and_clear_pending_msg() { + public long GetAndClearPendingMsg() { TwoTuple_PublicKeyTypeZ[] ret = arg.get_and_clear_pending_msg(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_25 => ret_conv_25 == null ? 0 : ret_conv_25.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_25 => ret_conv_25 == null ? 0 : ret_conv_25.clone_ptr())); return result; } - public long provided_node_features() { + public long ProvidedNodeFeatures() { NodeFeatures ret = arg.provided_node_features(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long provided_init_features(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long ProvidedInitFeatures(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); InitFeatures ret = arg.provided_init_features(_their_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -91,11 +91,11 @@ public long provided_init_features(long _their_node_id) { } /** Creates a new instance of CustomMessageHandler from a given implementation */ - public static CustomMessageHandler new_impl(CustomMessageHandlerInterface arg, CustomMessageReaderInterface customMessageReader_impl) { + public static CustomMessageHandler new_impl(ICustomMessageHandler arg, ICustomMessageReader customMessageReader_impl) { LDKCustomMessageHandlerHolder impl_holder = new LDKCustomMessageHandlerHolder(); LDKCustomMessageHandlerImpl impl = new LDKCustomMessageHandlerImpl(arg, impl_holder); CustomMessageReader customMessageReader = CustomMessageReader.new_impl(customMessageReader_impl); - long[] ptr_idx = bindings.LDKCustomMessageHandler_new(impl, customMessageReader.instance_idx); + long[] ptr_idx = Bindings.LDKCustomMessageHandlerNew(impl, customMessageReader.instance_idx); impl_holder.held = new CustomMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -110,7 +110,7 @@ public static CustomMessageHandler new_impl(CustomMessageHandlerInterface arg, C * to send. */ public Result_NoneLightningErrorZ handle_custom_message(org.ldk.structs.Type msg, byte[] sender_node_id) { - long ret = bindings.CustomMessageHandler_handle_custom_message(this.ptr, msg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(sender_node_id, 33))); + long ret = Bindings.CustomMessageHandlerHandleCustomMessage(this.ptr, msg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(sender_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(msg); GC.KeepAlive(sender_node_id); @@ -126,18 +126,18 @@ public Result_NoneLightningErrorZ handle_custom_message(org.ldk.structs.Type msg * connection to the node exists, then the message is simply not sent. */ public TwoTuple_PublicKeyTypeZ[] get_and_clear_pending_msg() { - long ret = bindings.CustomMessageHandler_get_and_clear_pending_msg(this.ptr); + long ret = Bindings.CustomMessageHandlerGetAndClearPendingMsg(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_25_len = InternalUtils.getArrayLength(ret); + int ret_conv_25_len = InternalUtils.GetArrayLength(ret); TwoTuple_PublicKeyTypeZ[] ret_conv_25_arr = new TwoTuple_PublicKeyTypeZ[ret_conv_25_len]; for (int z = 0; z < ret_conv_25_len; z++) { - long ret_conv_25 = InternalUtils.getU64ArrayElem(ret, z); + long ret_conv_25 = InternalUtils.GetU64ArrayElem(ret, z); TwoTuple_PublicKeyTypeZ ret_conv_25_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret_conv_25); if (ret_conv_25_hu_conv != null) { ret_conv_25_hu_conv.ptrs_to.AddLast(this); }; ret_conv_25_arr[z] = ret_conv_25_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_25_arr; } @@ -149,7 +149,7 @@ public TwoTuple_PublicKeyTypeZ[] get_and_clear_pending_msg() { * [`NodeAnnouncement`]: crate::ln::msgs::NodeAnnouncement */ public NodeFeatures provided_node_features() { - long ret = bindings.CustomMessageHandler_provided_node_features(this.ptr); + long ret = Bindings.CustomMessageHandlerProvidedNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -165,7 +165,7 @@ public NodeFeatures provided_node_features() { * [`Init`]: crate::ln::msgs::Init */ public InitFeatures provided_init_features(byte[] their_node_id) { - long ret = bindings.CustomMessageHandler_provided_init_features(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + long ret = Bindings.CustomMessageHandlerProvidedInitFeatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/CustomMessageReader.cs b/c_sharp/src/org/ldk/structs/CustomMessageReader.cs index fad16dbe0..75258b0c8 100644 --- a/c_sharp/src/org/ldk/structs/CustomMessageReader.cs +++ b/c_sharp/src/org/ldk/structs/CustomMessageReader.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of CustomMessageReader */ -public interface CustomMessageReaderInterface { +public interface ICustomMessageReader { /**Decodes a custom message to `CustomMessageType`. If the given message type is known to the * implementation and the message could be decoded, must return `Ok(Some(message))`. If the * message type is unknown to the implementation, must return `Ok(None)`. If a decoding error @@ -23,21 +23,21 @@ public interface CustomMessageReaderInterface { * decoders. */ public class CustomMessageReader : CommonBase { - internal bindings.LDKCustomMessageReader bindings_instance; + internal Bindings.LDKCustomMessageReader bindings_instance; internal long instance_idx; internal CustomMessageReader(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~CustomMessageReader() { - if (ptr != 0) { bindings.CustomMessageReader_free(ptr); } + if (ptr != 0) { Bindings.CustomMessageReaderFree(ptr); } } private class LDKCustomMessageReaderHolder { internal CustomMessageReader held; } - private class LDKCustomMessageReaderImpl : bindings.LDKCustomMessageReader { - internal LDKCustomMessageReaderImpl(CustomMessageReaderInterface arg, LDKCustomMessageReaderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private CustomMessageReaderInterface arg; + private class LDKCustomMessageReaderImpl : Bindings.LDKCustomMessageReader { + internal LDKCustomMessageReaderImpl(ICustomMessageReader arg, LDKCustomMessageReaderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ICustomMessageReader arg; private LDKCustomMessageReaderHolder impl_holder; - public long read(short _message_type, long _buffer) { - byte[] _buffer_conv = InternalUtils.decodeUint8Array(_buffer); + public long Read(short _message_type, long _buffer) { + byte[] _buffer_conv = InternalUtils.DecodeUint8Array(_buffer); Result_COption_TypeZDecodeErrorZ ret = arg.read(_message_type, _buffer_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -46,10 +46,10 @@ public long read(short _message_type, long _buffer) { } /** Creates a new instance of CustomMessageReader from a given implementation */ - public static CustomMessageReader new_impl(CustomMessageReaderInterface arg) { + public static CustomMessageReader new_impl(ICustomMessageReader arg) { LDKCustomMessageReaderHolder impl_holder = new LDKCustomMessageReaderHolder(); LDKCustomMessageReaderImpl impl = new LDKCustomMessageReaderImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKCustomMessageReader_new(impl); + long[] ptr_idx = Bindings.LDKCustomMessageReaderNew(impl); impl_holder.held = new CustomMessageReader(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -64,7 +64,7 @@ public static CustomMessageReader new_impl(CustomMessageReaderInterface arg) { * occur, must return `Err(DecodeError::X)` where `X` details the encountered error. */ public Result_COption_TypeZDecodeErrorZ read(short message_type, byte[] buffer) { - long ret = bindings.CustomMessageReader_read(this.ptr, message_type, InternalUtils.encodeUint8Array(buffer)); + long ret = Bindings.CustomMessageReaderRead(this.ptr, message_type, InternalUtils.EncodeUint8Array(buffer)); GC.KeepAlive(this); GC.KeepAlive(message_type); GC.KeepAlive(buffer); diff --git a/c_sharp/src/org/ldk/structs/CustomOnionMessageHandler.cs b/c_sharp/src/org/ldk/structs/CustomOnionMessageHandler.cs index 0a254aa3b..7d41c6844 100644 --- a/c_sharp/src/org/ldk/structs/CustomOnionMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/CustomOnionMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of CustomOnionMessageHandler */ -public interface CustomOnionMessageHandlerInterface { +public interface ICustomOnionMessageHandler { /**Called with the custom message that was received, returning a response to send, if any. * * The returned [`Self::CustomMessage`], if any, is enqueued to be sent by [`OnionMessenger`]. @@ -40,20 +40,20 @@ public interface CustomOnionMessageHandlerInterface { * [`CustomMessage`]: Self::CustomMessage */ public class CustomOnionMessageHandler : CommonBase { - internal bindings.LDKCustomOnionMessageHandler bindings_instance; + internal Bindings.LDKCustomOnionMessageHandler bindings_instance; internal long instance_idx; internal CustomOnionMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~CustomOnionMessageHandler() { - if (ptr != 0) { bindings.CustomOnionMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.CustomOnionMessageHandlerFree(ptr); } } private class LDKCustomOnionMessageHandlerHolder { internal CustomOnionMessageHandler held; } - private class LDKCustomOnionMessageHandlerImpl : bindings.LDKCustomOnionMessageHandler { - internal LDKCustomOnionMessageHandlerImpl(CustomOnionMessageHandlerInterface arg, LDKCustomOnionMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private CustomOnionMessageHandlerInterface arg; + private class LDKCustomOnionMessageHandlerImpl : Bindings.LDKCustomOnionMessageHandler { + internal LDKCustomOnionMessageHandlerImpl(ICustomOnionMessageHandler arg, LDKCustomOnionMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ICustomOnionMessageHandler arg; private LDKCustomOnionMessageHandlerHolder impl_holder; - public long handle_custom_message(long _msg) { + public long HandleCustomMessage(long _msg) { OnionMessageContents ret_hu_conv = new OnionMessageContents(null, _msg); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; Option_OnionMessageContentsZ ret = arg.handle_custom_message(ret_hu_conv); @@ -62,26 +62,26 @@ public long handle_custom_message(long _msg) { if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret); }; return result; } - public long read_custom_message(long _message_type, long _buffer) { - byte[] _buffer_conv = InternalUtils.decodeUint8Array(_buffer); + public long ReadCustomMessage(long _message_type, long _buffer) { + byte[] _buffer_conv = InternalUtils.DecodeUint8Array(_buffer); Result_COption_OnionMessageContentsZDecodeErrorZ ret = arg.read_custom_message(_message_type, _buffer_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long release_pending_custom_messages() { + public long ReleasePendingCustomMessages() { ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[] ret = arg.release_pending_custom_messages(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_56 => ret_conv_56 == null ? 0 : ret_conv_56.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_56 => ret_conv_56 == null ? 0 : ret_conv_56.clone_ptr())); return result; } } /** Creates a new instance of CustomOnionMessageHandler from a given implementation */ - public static CustomOnionMessageHandler new_impl(CustomOnionMessageHandlerInterface arg) { + public static CustomOnionMessageHandler new_impl(ICustomOnionMessageHandler arg) { LDKCustomOnionMessageHandlerHolder impl_holder = new LDKCustomOnionMessageHandlerHolder(); LDKCustomOnionMessageHandlerImpl impl = new LDKCustomOnionMessageHandlerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKCustomOnionMessageHandler_new(impl); + long[] ptr_idx = Bindings.LDKCustomOnionMessageHandlerNew(impl); impl_holder.held = new CustomOnionMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -95,7 +95,7 @@ public static CustomOnionMessageHandler new_impl(CustomOnionMessageHandlerInterf * The returned [`Self::CustomMessage`], if any, is enqueued to be sent by [`OnionMessenger`]. */ public Option_OnionMessageContentsZ handle_custom_message(org.ldk.structs.OnionMessageContents msg) { - long ret = bindings.CustomOnionMessageHandler_handle_custom_message(this.ptr, msg.ptr); + long ret = Bindings.CustomOnionMessageHandlerHandleCustomMessage(this.ptr, msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -110,7 +110,7 @@ public Option_OnionMessageContentsZ handle_custom_message(org.ldk.structs.OnionM * message type is unknown. */ public Result_COption_OnionMessageContentsZDecodeErrorZ read_custom_message(long message_type, byte[] buffer) { - long ret = bindings.CustomOnionMessageHandler_read_custom_message(this.ptr, message_type, InternalUtils.encodeUint8Array(buffer)); + long ret = Bindings.CustomOnionMessageHandlerReadCustomMessage(this.ptr, message_type, InternalUtils.EncodeUint8Array(buffer)); GC.KeepAlive(this); GC.KeepAlive(message_type); GC.KeepAlive(buffer); @@ -126,18 +126,18 @@ public Result_COption_OnionMessageContentsZDecodeErrorZ read_custom_message(long * another message. The latter should use the return value of [`Self::handle_custom_message`]. */ public ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[] release_pending_custom_messages() { - long ret = bindings.CustomOnionMessageHandler_release_pending_custom_messages(this.ptr); + long ret = Bindings.CustomOnionMessageHandlerReleasePendingCustomMessages(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_56_len = InternalUtils.getArrayLength(ret); + int ret_conv_56_len = InternalUtils.GetArrayLength(ret); ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[] ret_conv_56_arr = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ[ret_conv_56_len]; for (int e = 0; e < ret_conv_56_len; e++) { - long ret_conv_56 = InternalUtils.getU64ArrayElem(ret, e); + long ret_conv_56 = InternalUtils.GetU64ArrayElem(ret, e); ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_conv_56_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret_conv_56); if (ret_conv_56_hu_conv != null) { ret_conv_56_hu_conv.ptrs_to.AddLast(this); }; ret_conv_56_arr[e] = ret_conv_56_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_56_arr; } diff --git a/c_sharp/src/org/ldk/structs/DecodeError.cs b/c_sharp/src/org/ldk/structs/DecodeError.cs index e1033e6a9..8f8644a99 100644 --- a/c_sharp/src/org/ldk/structs/DecodeError.cs +++ b/c_sharp/src/org/ldk/structs/DecodeError.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class DecodeError : CommonBase { protected DecodeError(object _dummy, long ptr) : base(ptr) { } ~DecodeError() { - if (ptr != 0) { bindings.DecodeError_free(ptr); } + if (ptr != 0) { Bindings.DecodeErrorFree(ptr); } } internal static DecodeError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKDecodeError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKDecodeErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new DecodeError_UnknownVersion(ptr); case 1: return new DecodeError_UnknownRequiredFeature(ptr); @@ -58,7 +58,7 @@ internal DecodeError_BadLengthDescriptor(long ptr) : base(null, ptr) { public class DecodeError_Io : DecodeError { public IOError io; internal DecodeError_Io(long ptr) : base(null, ptr) { - this.io = bindings.LDKDecodeError_Io_get_io(ptr); + this.io = Bindings.LDKDecodeErrorIoGetIo(ptr); } } /** A DecodeError of type UnsupportedCompression */ @@ -67,7 +67,7 @@ internal DecodeError_UnsupportedCompression(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.DecodeError_clone_ptr(this.ptr); + long ret = Bindings.DecodeErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the DecodeError */ public DecodeError clone() { - long ret = bindings.DecodeError_clone(this.ptr); + long ret = Bindings.DecodeErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); @@ -88,7 +88,7 @@ public DecodeError clone() { * Utility method to constructs a new UnknownVersion-variant DecodeError */ public static DecodeError unknown_version() { - long ret = bindings.DecodeError_unknown_version(); + long ret = Bindings.DecodeErrorUnknownVersion(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -99,7 +99,7 @@ public static DecodeError unknown_version() { * Utility method to constructs a new UnknownRequiredFeature-variant DecodeError */ public static DecodeError unknown_required_feature() { - long ret = bindings.DecodeError_unknown_required_feature(); + long ret = Bindings.DecodeErrorUnknownRequiredFeature(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -110,7 +110,7 @@ public static DecodeError unknown_required_feature() { * Utility method to constructs a new InvalidValue-variant DecodeError */ public static DecodeError invalid_value() { - long ret = bindings.DecodeError_invalid_value(); + long ret = Bindings.DecodeErrorInvalidValue(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -121,7 +121,7 @@ public static DecodeError invalid_value() { * Utility method to constructs a new ShortRead-variant DecodeError */ public static DecodeError short_read() { - long ret = bindings.DecodeError_short_read(); + long ret = Bindings.DecodeErrorShortRead(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -132,7 +132,7 @@ public static DecodeError short_read() { * Utility method to constructs a new BadLengthDescriptor-variant DecodeError */ public static DecodeError bad_length_descriptor() { - long ret = bindings.DecodeError_bad_length_descriptor(); + long ret = Bindings.DecodeErrorBadLengthDescriptor(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -143,7 +143,7 @@ public static DecodeError bad_length_descriptor() { * Utility method to constructs a new Io-variant DecodeError */ public static DecodeError io(IOError a) { - long ret = bindings.DecodeError_io(a); + long ret = Bindings.DecodeErrorIo(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); @@ -155,7 +155,7 @@ public static DecodeError io(IOError a) { * Utility method to constructs a new UnsupportedCompression-variant DecodeError */ public static DecodeError unsupported_compression() { - long ret = bindings.DecodeError_unsupported_compression(); + long ret = Bindings.DecodeErrorUnsupportedCompression(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DecodeError ret_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -166,7 +166,7 @@ public static DecodeError unsupported_compression() { * Generates a non-cryptographic 64-bit hash of the DecodeError. */ public long hash() { - long ret = bindings.DecodeError_hash(this.ptr); + long ret = Bindings.DecodeErrorHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -179,7 +179,7 @@ public override int GetHashCode() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.DecodeError b) { - bool ret = bindings.DecodeError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.DecodeErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/DefaultMessageRouter.cs b/c_sharp/src/org/ldk/structs/DefaultMessageRouter.cs index 6d03f2c90..64327fb81 100644 --- a/c_sharp/src/org/ldk/structs/DefaultMessageRouter.cs +++ b/c_sharp/src/org/ldk/structs/DefaultMessageRouter.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class DefaultMessageRouter : CommonBase { internal DefaultMessageRouter(object _dummy, long ptr) : base(ptr) { } ~DefaultMessageRouter() { - if (ptr != 0) { bindings.DefaultMessageRouter_free(ptr); } + if (ptr != 0) { Bindings.DefaultMessageRouterFree(ptr); } } /** * Creates a [`DefaultMessageRouter`] using the given [`NetworkGraph`]. */ public static DefaultMessageRouter of(org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.DefaultMessageRouter_new(network_graph == null ? 0 : network_graph.ptr, entropy_source.ptr); + long ret = Bindings.DefaultMessageRouterNew(network_graph == null ? 0 : network_graph.ptr, entropy_source.ptr); GC.KeepAlive(network_graph); GC.KeepAlive(entropy_source); if (ret >= 0 && ret <= 4096) { return null; } @@ -35,7 +35,7 @@ public static DefaultMessageRouter of(org.ldk.structs.NetworkGraph network_graph * This copies the `inner` pointer in this_arg and thus the returned MessageRouter must be freed before this_arg is */ public MessageRouter as_MessageRouter() { - long ret = bindings.DefaultMessageRouter_as_MessageRouter(this.ptr); + long ret = Bindings.DefaultMessageRouterAsMessageRouter(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageRouter ret_hu_conv = new MessageRouter(null, ret); diff --git a/c_sharp/src/org/ldk/structs/DefaultRouter.cs b/c_sharp/src/org/ldk/structs/DefaultRouter.cs index a3f9e5565..f5a255ff9 100644 --- a/c_sharp/src/org/ldk/structs/DefaultRouter.cs +++ b/c_sharp/src/org/ldk/structs/DefaultRouter.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class DefaultRouter : CommonBase { internal DefaultRouter(object _dummy, long ptr) : base(ptr) { } ~DefaultRouter() { - if (ptr != 0) { bindings.DefaultRouter_free(ptr); } + if (ptr != 0) { Bindings.DefaultRouterFree(ptr); } } /** * Creates a new router. */ public static DefaultRouter of(org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.Logger logger, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.LockableScore scorer, org.ldk.structs.ProbabilisticScoringFeeParameters score_params) { - long ret = bindings.DefaultRouter_new(network_graph == null ? 0 : network_graph.ptr, logger.ptr, entropy_source.ptr, scorer.ptr, score_params == null ? 0 : score_params.ptr); + long ret = Bindings.DefaultRouterNew(network_graph == null ? 0 : network_graph.ptr, logger.ptr, entropy_source.ptr, scorer.ptr, score_params == null ? 0 : score_params.ptr); GC.KeepAlive(network_graph); GC.KeepAlive(logger); GC.KeepAlive(entropy_source); @@ -41,7 +41,7 @@ public static DefaultRouter of(org.ldk.structs.NetworkGraph network_graph, org.l * This copies the `inner` pointer in this_arg and thus the returned Router must be freed before this_arg is */ public Router as_Router() { - long ret = bindings.DefaultRouter_as_Router(this.ptr); + long ret = Bindings.DefaultRouterAsRouter(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Router ret_hu_conv = new Router(null, ret); @@ -54,7 +54,7 @@ public Router as_Router() { * This copies the `inner` pointer in this_arg and thus the returned MessageRouter must be freed before this_arg is */ public MessageRouter as_MessageRouter() { - long ret = bindings.DefaultRouter_as_MessageRouter(this.ptr); + long ret = Bindings.DefaultRouterAsMessageRouter(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageRouter ret_hu_conv = new MessageRouter(null, ret); diff --git a/c_sharp/src/org/ldk/structs/DelayedPaymentBasepoint.cs b/c_sharp/src/org/ldk/structs/DelayedPaymentBasepoint.cs index 20166c7a9..b9e0a90d8 100644 --- a/c_sharp/src/org/ldk/structs/DelayedPaymentBasepoint.cs +++ b/c_sharp/src/org/ldk/structs/DelayedPaymentBasepoint.cs @@ -16,19 +16,19 @@ namespace org { namespace ldk { namespace structs { public class DelayedPaymentBasepoint : CommonBase { internal DelayedPaymentBasepoint(object _dummy, long ptr) : base(ptr) { } ~DelayedPaymentBasepoint() { - if (ptr != 0) { bindings.DelayedPaymentBasepoint_free(ptr); } + if (ptr != 0) { Bindings.DelayedPaymentBasepointFree(ptr); } } public byte[] get_a() { - long ret = bindings.DelayedPaymentBasepoint_get_a(this.ptr); + long ret = Bindings.DelayedPaymentBasepointGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.DelayedPaymentBasepoint_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.DelayedPaymentBasepointSetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,7 +37,7 @@ public void set_a(byte[] val) { * Constructs a new DelayedPaymentBasepoint given each field */ public static DelayedPaymentBasepoint of(byte[] a_arg) { - long ret = bindings.DelayedPaymentBasepoint_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.DelayedPaymentBasepointNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentBasepoint(null, ret); } @@ -51,7 +51,7 @@ public static DelayedPaymentBasepoint of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.DelayedPaymentBasepoint b) { - bool ret = bindings.DelayedPaymentBasepoint_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.DelayedPaymentBasepointEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -63,7 +63,7 @@ public override bool Equals(object o) { return this.eq((DelayedPaymentBasepoint)o); } internal long clone_ptr() { - long ret = bindings.DelayedPaymentBasepoint_clone_ptr(this.ptr); + long ret = Bindings.DelayedPaymentBasepointClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * Creates a copy of the DelayedPaymentBasepoint */ public DelayedPaymentBasepoint clone() { - long ret = bindings.DelayedPaymentBasepoint_clone(this.ptr); + long ret = Bindings.DelayedPaymentBasepointClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentBasepoint(null, ret); } @@ -84,7 +84,7 @@ public DelayedPaymentBasepoint clone() { * Generates a non-cryptographic 64-bit hash of the DelayedPaymentBasepoint. */ public long hash() { - long ret = bindings.DelayedPaymentBasepoint_hash(this.ptr); + long ret = Bindings.DelayedPaymentBasepointHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -96,10 +96,10 @@ public override int GetHashCode() { * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.DelayedPaymentBasepoint_to_public_key(this.ptr); + long ret = Bindings.DelayedPaymentBasepointToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -107,10 +107,10 @@ public byte[] to_public_key() { * Serialize the DelayedPaymentBasepoint object into a byte array which can be read by DelayedPaymentBasepoint_read */ public byte[] write() { - long ret = bindings.DelayedPaymentBasepoint_write(this.ptr); + long ret = Bindings.DelayedPaymentBasepointWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -118,7 +118,7 @@ public byte[] write() { * Read a DelayedPaymentBasepoint from a byte array, created by DelayedPaymentBasepoint_write */ public static Result_DelayedPaymentBasepointDecodeErrorZ read(byte[] ser) { - long ret = bindings.DelayedPaymentBasepoint_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.DelayedPaymentBasepointRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentBasepointDecodeErrorZ ret_hu_conv = Result_DelayedPaymentBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/DelayedPaymentKey.cs b/c_sharp/src/org/ldk/structs/DelayedPaymentKey.cs index 03408940c..809480358 100644 --- a/c_sharp/src/org/ldk/structs/DelayedPaymentKey.cs +++ b/c_sharp/src/org/ldk/structs/DelayedPaymentKey.cs @@ -20,19 +20,19 @@ namespace org { namespace ldk { namespace structs { public class DelayedPaymentKey : CommonBase { internal DelayedPaymentKey(object _dummy, long ptr) : base(ptr) { } ~DelayedPaymentKey() { - if (ptr != 0) { bindings.DelayedPaymentKey_free(ptr); } + if (ptr != 0) { Bindings.DelayedPaymentKeyFree(ptr); } } public byte[] get_a() { - long ret = bindings.DelayedPaymentKey_get_a(this.ptr); + long ret = Bindings.DelayedPaymentKeyGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.DelayedPaymentKey_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.DelayedPaymentKeySetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_a(byte[] val) { * Constructs a new DelayedPaymentKey given each field */ public static DelayedPaymentKey of(byte[] a_arg) { - long ret = bindings.DelayedPaymentKey_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.DelayedPaymentKeyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentKey(null, ret); } @@ -55,7 +55,7 @@ public static DelayedPaymentKey of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.DelayedPaymentKey b) { - bool ret = bindings.DelayedPaymentKey_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.DelayedPaymentKeyEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -67,7 +67,7 @@ public override bool Equals(object o) { return this.eq((DelayedPaymentKey)o); } internal long clone_ptr() { - long ret = bindings.DelayedPaymentKey_clone_ptr(this.ptr); + long ret = Bindings.DelayedPaymentKeyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the DelayedPaymentKey */ public DelayedPaymentKey clone() { - long ret = bindings.DelayedPaymentKey_clone(this.ptr); + long ret = Bindings.DelayedPaymentKeyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentKey(null, ret); } @@ -88,7 +88,7 @@ public DelayedPaymentKey clone() { * Derive a public delayedpubkey using one node\'s `per_commitment_point` and its countersignatory\'s `basepoint` */ public static DelayedPaymentKey from_basepoint(org.ldk.structs.DelayedPaymentBasepoint countersignatory_basepoint, byte[] per_commitment_point) { - long ret = bindings.DelayedPaymentKey_from_basepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33))); + long ret = Bindings.DelayedPaymentKeyFromBasepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33))); GC.KeepAlive(countersignatory_basepoint); GC.KeepAlive(per_commitment_point); if (ret >= 0 && ret <= 4096) { return null; } @@ -102,7 +102,7 @@ public static DelayedPaymentKey from_basepoint(org.ldk.structs.DelayedPaymentBas * Build a delayedpubkey directly from an already-derived private key */ public static DelayedPaymentKey from_secret_key(byte[] sk) { - long ret = bindings.DelayedPaymentKey_from_secret_key(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(sk, 32))); + long ret = Bindings.DelayedPaymentKeyFromSecretKey(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(sk, 32))); GC.KeepAlive(sk); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentKey(null, ret); } @@ -114,10 +114,10 @@ public static DelayedPaymentKey from_secret_key(byte[] sk) { * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.DelayedPaymentKey_to_public_key(this.ptr); + long ret = Bindings.DelayedPaymentKeyToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -125,10 +125,10 @@ public byte[] to_public_key() { * Serialize the DelayedPaymentKey object into a byte array which can be read by DelayedPaymentKey_read */ public byte[] write() { - long ret = bindings.DelayedPaymentKey_write(this.ptr); + long ret = Bindings.DelayedPaymentKeyWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -136,7 +136,7 @@ public byte[] write() { * Read a DelayedPaymentKey from a byte array, created by DelayedPaymentKey_write */ public static Result_DelayedPaymentKeyDecodeErrorZ read(byte[] ser) { - long ret = bindings.DelayedPaymentKey_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.DelayedPaymentKeyRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentKeyDecodeErrorZ ret_hu_conv = Result_DelayedPaymentKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/DelayedPaymentOutputDescriptor.cs b/c_sharp/src/org/ldk/structs/DelayedPaymentOutputDescriptor.cs index b5536ec45..f2259de0c 100644 --- a/c_sharp/src/org/ldk/structs/DelayedPaymentOutputDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/DelayedPaymentOutputDescriptor.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class DelayedPaymentOutputDescriptor : CommonBase { internal DelayedPaymentOutputDescriptor(object _dummy, long ptr) : base(ptr) { } ~DelayedPaymentOutputDescriptor() { - if (ptr != 0) { bindings.DelayedPaymentOutputDescriptor_free(ptr); } + if (ptr != 0) { Bindings.DelayedPaymentOutputDescriptorFree(ptr); } } /** * The outpoint which is spendable. */ public OutPoint get_outpoint() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_outpoint(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -33,7 +33,7 @@ public OutPoint get_outpoint() { * The outpoint which is spendable. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.DelayedPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.DelayedPaymentOutputDescriptorSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,10 +43,10 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * Per commitment point to derive the delayed payment key by key holder. */ public byte[] get_per_commitment_point() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_per_commitment_point(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_per_commitment_point() { * Per commitment point to derive the delayed payment key by key holder. */ public void set_per_commitment_point(byte[] val) { - bindings.DelayedPaymentOutputDescriptor_set_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.DelayedPaymentOutputDescriptorSetPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,7 +64,7 @@ public void set_per_commitment_point(byte[] val) { * the witness_script. */ public short get_to_self_delay() { - short ret = bindings.DelayedPaymentOutputDescriptor_get_to_self_delay(this.ptr); + short ret = Bindings.DelayedPaymentOutputDescriptorGetToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ public short get_to_self_delay() { * the witness_script. */ public void set_to_self_delay(short val) { - bindings.DelayedPaymentOutputDescriptor_set_to_self_delay(this.ptr, val); + Bindings.DelayedPaymentOutputDescriptorSetToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -83,7 +83,7 @@ public void set_to_self_delay(short val) { * The output which is referenced by the given outpoint. */ public TxOut get_output() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_output(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetOutput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -94,7 +94,7 @@ public TxOut get_output() { * The output which is referenced by the given outpoint. */ public void set_output(org.ldk.structs.TxOut val) { - bindings.DelayedPaymentOutputDescriptor_set_output(this.ptr, val.ptr); + Bindings.DelayedPaymentOutputDescriptorSetOutput(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -104,7 +104,7 @@ public void set_output(org.ldk.structs.TxOut val) { * derive the witnessScript for this output. */ public RevocationKey get_revocation_pubkey() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_revocation_pubkey(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetRevocationPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationKey(null, ret); } @@ -117,7 +117,7 @@ public RevocationKey get_revocation_pubkey() { * derive the witnessScript for this output. */ public void set_revocation_pubkey(org.ldk.structs.RevocationKey val) { - bindings.DelayedPaymentOutputDescriptor_set_revocation_pubkey(this.ptr, val == null ? 0 : val.ptr); + Bindings.DelayedPaymentOutputDescriptorSetRevocationPubkey(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -128,10 +128,10 @@ public void set_revocation_pubkey(org.ldk.structs.RevocationKey val) { * This may be useful in re-deriving keys used in the channel to spend the output. */ public byte[] get_channel_keys_id() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_channel_keys_id(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetChannelKeysId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -140,7 +140,7 @@ public byte[] get_channel_keys_id() { * This may be useful in re-deriving keys used in the channel to spend the output. */ public void set_channel_keys_id(byte[] val) { - bindings.DelayedPaymentOutputDescriptor_set_channel_keys_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.DelayedPaymentOutputDescriptorSetChannelKeysId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -149,7 +149,7 @@ public void set_channel_keys_id(byte[] val) { * The value of the channel which this output originated from, possibly indirectly. */ public long get_channel_value_satoshis() { - long ret = bindings.DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorGetChannelValueSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -158,7 +158,7 @@ public long get_channel_value_satoshis() { * The value of the channel which this output originated from, possibly indirectly. */ public void set_channel_value_satoshis(long val) { - bindings.DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this.ptr, val); + Bindings.DelayedPaymentOutputDescriptorSetChannelValueSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -167,7 +167,7 @@ public void set_channel_value_satoshis(long val) { * Constructs a new DelayedPaymentOutputDescriptor given each field */ public static DelayedPaymentOutputDescriptor of(org.ldk.structs.OutPoint outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, org.ldk.structs.TxOut output_arg, org.ldk.structs.RevocationKey revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg) { - long ret = bindings.DelayedPaymentOutputDescriptor_new(outpoint_arg == null ? 0 : outpoint_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point_arg, 33)), to_self_delay_arg, output_arg.ptr, revocation_pubkey_arg == null ? 0 : revocation_pubkey_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id_arg, 32)), channel_value_satoshis_arg); + long ret = Bindings.DelayedPaymentOutputDescriptorNew(outpoint_arg == null ? 0 : outpoint_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point_arg, 33)), to_self_delay_arg, output_arg.ptr, revocation_pubkey_arg == null ? 0 : revocation_pubkey_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id_arg, 32)), channel_value_satoshis_arg); GC.KeepAlive(outpoint_arg); GC.KeepAlive(per_commitment_point_arg); GC.KeepAlive(to_self_delay_arg); @@ -184,7 +184,7 @@ public static DelayedPaymentOutputDescriptor of(org.ldk.structs.OutPoint outpoin } internal long clone_ptr() { - long ret = bindings.DelayedPaymentOutputDescriptor_clone_ptr(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -193,7 +193,7 @@ internal long clone_ptr() { * Creates a copy of the DelayedPaymentOutputDescriptor */ public DelayedPaymentOutputDescriptor clone() { - long ret = bindings.DelayedPaymentOutputDescriptor_clone(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentOutputDescriptor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentOutputDescriptor(null, ret); } @@ -205,7 +205,7 @@ public DelayedPaymentOutputDescriptor clone() { * Generates a non-cryptographic 64-bit hash of the DelayedPaymentOutputDescriptor. */ public long hash() { - long ret = bindings.DelayedPaymentOutputDescriptor_hash(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -219,7 +219,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.DelayedPaymentOutputDescriptor b) { - bool ret = bindings.DelayedPaymentOutputDescriptor_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.DelayedPaymentOutputDescriptorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -234,10 +234,10 @@ public override bool Equals(object o) { * Serialize the DelayedPaymentOutputDescriptor object into a byte array which can be read by DelayedPaymentOutputDescriptor_read */ public byte[] write() { - long ret = bindings.DelayedPaymentOutputDescriptor_write(this.ptr); + long ret = Bindings.DelayedPaymentOutputDescriptorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -245,7 +245,7 @@ public byte[] write() { * Read a DelayedPaymentOutputDescriptor from a byte array, created by DelayedPaymentOutputDescriptor_write */ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ read(byte[] ser) { - long ret = bindings.DelayedPaymentOutputDescriptor_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.DelayedPaymentOutputDescriptorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Description.cs b/c_sharp/src/org/ldk/structs/Description.cs index 836578270..2930c3cc7 100644 --- a/c_sharp/src/org/ldk/structs/Description.cs +++ b/c_sharp/src/org/ldk/structs/Description.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class Description : CommonBase { internal Description(object _dummy, long ptr) : base(ptr) { } ~Description() { - if (ptr != 0) { bindings.Description_free(ptr); } + if (ptr != 0) { Bindings.DescriptionFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Description_clone_ptr(this.ptr); + long ret = Bindings.DescriptionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ internal long clone_ptr() { * Creates a copy of the Description */ public Description clone() { - long ret = bindings.Description_clone(this.ptr); + long ret = Bindings.DescriptionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Description ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Description(null, ret); } @@ -40,7 +40,7 @@ public Description clone() { * Generates a non-cryptographic 64-bit hash of the Description. */ public long hash() { - long ret = bindings.Description_hash(this.ptr); + long ret = Bindings.DescriptionHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Description b) { - bool ret = bindings.Description_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.DescriptionEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -72,7 +72,7 @@ public override bool Equals(object o) { * Please note that single characters may use more than one byte due to UTF8 encoding. */ public static Result_DescriptionCreationErrorZ of(string description) { - long ret = bindings.Description_new(InternalUtils.encodeString(description)); + long ret = Bindings.DescriptionNew(InternalUtils.EncodeString(description)); GC.KeepAlive(description); if (ret >= 0 && ret <= 4096) { return null; } Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret); @@ -83,7 +83,7 @@ public static Result_DescriptionCreationErrorZ of(string description) { * Returns the underlying description [`UntrustedString`] */ public UntrustedString into_inner() { - long ret = bindings.Description_into_inner(this.ptr); + long ret = Bindings.DescriptionIntoInner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UntrustedString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UntrustedString(null, ret); } @@ -96,10 +96,10 @@ public UntrustedString into_inner() { * Get the string representation of a Description object */ public string to_str() { - long ret = bindings.Description_to_str(this.ptr); + long ret = Bindings.DescriptionToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Destination.cs b/c_sharp/src/org/ldk/structs/Destination.cs index 3d0097730..6de5d060a 100644 --- a/c_sharp/src/org/ldk/structs/Destination.cs +++ b/c_sharp/src/org/ldk/structs/Destination.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Destination : CommonBase { protected Destination(object _dummy, long ptr) : base(ptr) { } ~Destination() { - if (ptr != 0) { bindings.Destination_free(ptr); } + if (ptr != 0) { Bindings.DestinationFree(ptr); } } internal static Destination constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKDestination_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKDestinationTyFromPtr(ptr); switch (raw_ty) { case 0: return new Destination_Node(ptr); case 1: return new Destination_BlindedPath(ptr); @@ -28,8 +28,8 @@ internal static Destination constr_from_ptr(long ptr) { public class Destination_Node : Destination { public byte[] node; internal Destination_Node(long ptr) : base(null, ptr) { - long node = bindings.LDKDestination_Node_get_node(ptr); - byte[] node_conv = InternalUtils.decodeUint8Array(node); + long node = Bindings.LDKDestinationNodeGetNode(ptr); + byte[] node_conv = InternalUtils.DecodeUint8Array(node); this.node = node_conv; } } @@ -37,14 +37,14 @@ internal Destination_Node(long ptr) : base(null, ptr) { public class Destination_BlindedPath : Destination { public BlindedPath blinded_path; internal Destination_BlindedPath(long ptr) : base(null, ptr) { - long blinded_path = bindings.LDKDestination_BlindedPath_get_blinded_path(ptr); + long blinded_path = Bindings.LDKDestinationBlindedPathGetBlindedPath(ptr); org.ldk.structs.BlindedPath blinded_path_hu_conv = null; if (blinded_path < 0 || blinded_path > 4096) { blinded_path_hu_conv = new org.ldk.structs.BlindedPath(null, blinded_path); } if (blinded_path_hu_conv != null) { blinded_path_hu_conv.ptrs_to.AddLast(this); }; this.blinded_path = blinded_path_hu_conv; } } internal long clone_ptr() { - long ret = bindings.Destination_clone_ptr(this.ptr); + long ret = Bindings.DestinationClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -53,7 +53,7 @@ internal long clone_ptr() { * Creates a copy of the Destination */ public Destination clone() { - long ret = bindings.Destination_clone(this.ptr); + long ret = Bindings.DestinationClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); @@ -65,7 +65,7 @@ public Destination clone() { * Utility method to constructs a new Node-variant Destination */ public static Destination node(byte[] a) { - long ret = bindings.Destination_node(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33))); + long ret = Bindings.DestinationNode(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); @@ -77,7 +77,7 @@ public static Destination node(byte[] a) { * Utility method to constructs a new BlindedPath-variant Destination */ public static Destination blinded_path(org.ldk.structs.BlindedPath a) { - long ret = bindings.Destination_blinded_path(a == null ? 0 : a.ptr); + long ret = Bindings.DestinationBlindedPath(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/DirectedChannelInfo.cs b/c_sharp/src/org/ldk/structs/DirectedChannelInfo.cs index fea5e7fb3..26f4f62ad 100644 --- a/c_sharp/src/org/ldk/structs/DirectedChannelInfo.cs +++ b/c_sharp/src/org/ldk/structs/DirectedChannelInfo.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class DirectedChannelInfo : CommonBase { internal DirectedChannelInfo(object _dummy, long ptr) : base(ptr) { } ~DirectedChannelInfo() { - if (ptr != 0) { bindings.DirectedChannelInfo_free(ptr); } + if (ptr != 0) { Bindings.DirectedChannelInfoFree(ptr); } } internal long clone_ptr() { - long ret = bindings.DirectedChannelInfo_clone_ptr(this.ptr); + long ret = Bindings.DirectedChannelInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -26,7 +26,7 @@ internal long clone_ptr() { * Creates a copy of the DirectedChannelInfo */ public DirectedChannelInfo clone() { - long ret = bindings.DirectedChannelInfo_clone(this.ptr); + long ret = Bindings.DirectedChannelInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DirectedChannelInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DirectedChannelInfo(null, ret); } @@ -38,7 +38,7 @@ public DirectedChannelInfo clone() { * Returns information for the channel. */ public ChannelInfo channel() { - long ret = bindings.DirectedChannelInfo_channel(this.ptr); + long ret = Bindings.DirectedChannelInfoChannel(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelInfo(null, ret); } @@ -54,7 +54,7 @@ public ChannelInfo channel() { * otherwise. */ public EffectiveCapacity effective_capacity() { - long ret = bindings.DirectedChannelInfo_effective_capacity(this.ptr); + long ret = Bindings.DirectedChannelInfoEffectiveCapacity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/DirectedChannelTransactionParameters.cs b/c_sharp/src/org/ldk/structs/DirectedChannelTransactionParameters.cs index 7caa6c365..b0780ae9c 100644 --- a/c_sharp/src/org/ldk/structs/DirectedChannelTransactionParameters.cs +++ b/c_sharp/src/org/ldk/structs/DirectedChannelTransactionParameters.cs @@ -16,14 +16,14 @@ namespace org { namespace ldk { namespace structs { public class DirectedChannelTransactionParameters : CommonBase { internal DirectedChannelTransactionParameters(object _dummy, long ptr) : base(ptr) { } ~DirectedChannelTransactionParameters() { - if (ptr != 0) { bindings.DirectedChannelTransactionParameters_free(ptr); } + if (ptr != 0) { Bindings.DirectedChannelTransactionParametersFree(ptr); } } /** * Get the channel pubkeys for the broadcaster */ public ChannelPublicKeys broadcaster_pubkeys() { - long ret = bindings.DirectedChannelTransactionParameters_broadcaster_pubkeys(this.ptr); + long ret = Bindings.DirectedChannelTransactionParametersBroadcasterPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -35,7 +35,7 @@ public ChannelPublicKeys broadcaster_pubkeys() { * Get the channel pubkeys for the countersignatory */ public ChannelPublicKeys countersignatory_pubkeys() { - long ret = bindings.DirectedChannelTransactionParameters_countersignatory_pubkeys(this.ptr); + long ret = Bindings.DirectedChannelTransactionParametersCountersignatoryPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -48,7 +48,7 @@ public ChannelPublicKeys countersignatory_pubkeys() { * Note that the contest delay was selected by the countersignatory. */ public short contest_delay() { - short ret = bindings.DirectedChannelTransactionParameters_contest_delay(this.ptr); + short ret = Bindings.DirectedChannelTransactionParametersContestDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -60,7 +60,7 @@ public short contest_delay() { * an input to the commitment number obscure factor computation. */ public bool is_outbound() { - bool ret = bindings.DirectedChannelTransactionParameters_is_outbound(this.ptr); + bool ret = Bindings.DirectedChannelTransactionParametersIsOutbound(this.ptr); GC.KeepAlive(this); return ret; } @@ -69,7 +69,7 @@ public bool is_outbound() { * The funding outpoint */ public OutPoint funding_outpoint() { - long ret = bindings.DirectedChannelTransactionParameters_funding_outpoint(this.ptr); + long ret = Bindings.DirectedChannelTransactionParametersFundingOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -81,7 +81,7 @@ public OutPoint funding_outpoint() { * Whether to use anchors for this channel */ public ChannelTypeFeatures channel_type_features() { - long ret = bindings.DirectedChannelTransactionParameters_channel_type_features(this.ptr); + long ret = Bindings.DirectedChannelTransactionParametersChannelTypeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/EcdsaChannelSigner.cs b/c_sharp/src/org/ldk/structs/EcdsaChannelSigner.cs index c831afa8a..7b6445265 100644 --- a/c_sharp/src/org/ldk/structs/EcdsaChannelSigner.cs +++ b/c_sharp/src/org/ldk/structs/EcdsaChannelSigner.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of EcdsaChannelSigner */ -public interface EcdsaChannelSignerInterface { +public interface IEcdsaChannelSigner { /**Create a signature for a counterparty's commitment transaction and associated HTLC transactions. * * Note that if signing fails or is rejected, the channel will be force-closed. @@ -139,98 +139,98 @@ public interface EcdsaChannelSignerInterface { * for an example of such policies. */ public class EcdsaChannelSigner : CommonBase { - internal bindings.LDKEcdsaChannelSigner bindings_instance; + internal Bindings.LDKEcdsaChannelSigner bindings_instance; internal long instance_idx; internal EcdsaChannelSigner(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~EcdsaChannelSigner() { - if (ptr != 0) { bindings.EcdsaChannelSigner_free(ptr); } + if (ptr != 0) { Bindings.EcdsaChannelSignerFree(ptr); } } private class LDKEcdsaChannelSignerHolder { internal EcdsaChannelSigner held; } - private class LDKEcdsaChannelSignerImpl : bindings.LDKEcdsaChannelSigner { - internal LDKEcdsaChannelSignerImpl(EcdsaChannelSignerInterface arg, LDKEcdsaChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private EcdsaChannelSignerInterface arg; + private class LDKEcdsaChannelSignerImpl : Bindings.LDKEcdsaChannelSigner { + internal LDKEcdsaChannelSignerImpl(IEcdsaChannelSigner arg, LDKEcdsaChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IEcdsaChannelSigner arg; private LDKEcdsaChannelSignerHolder impl_holder; - public long sign_counterparty_commitment(long _commitment_tx, long _inbound_htlc_preimages, long _outbound_htlc_preimages) { + public long SignCounterpartyCommitment(long _commitment_tx, long _inbound_htlc_preimages, long _outbound_htlc_preimages) { org.ldk.structs.CommitmentTransaction _commitment_tx_hu_conv = null; if (_commitment_tx < 0 || _commitment_tx > 4096) { _commitment_tx_hu_conv = new org.ldk.structs.CommitmentTransaction(null, _commitment_tx); } - int _inbound_htlc_preimages_conv_8_len = InternalUtils.getArrayLength(_inbound_htlc_preimages); + int _inbound_htlc_preimages_conv_8_len = InternalUtils.GetArrayLength(_inbound_htlc_preimages); byte[][] _inbound_htlc_preimages_conv_8_arr = new byte[_inbound_htlc_preimages_conv_8_len][]; for (int i = 0; i < _inbound_htlc_preimages_conv_8_len; i++) { - long _inbound_htlc_preimages_conv_8 = InternalUtils.getU64ArrayElem(_inbound_htlc_preimages, i); - byte[] _inbound_htlc_preimages_conv_8_conv = InternalUtils.decodeUint8Array(_inbound_htlc_preimages_conv_8); + long _inbound_htlc_preimages_conv_8 = InternalUtils.GetU64ArrayElem(_inbound_htlc_preimages, i); + byte[] _inbound_htlc_preimages_conv_8_conv = InternalUtils.DecodeUint8Array(_inbound_htlc_preimages_conv_8); _inbound_htlc_preimages_conv_8_arr[i] = _inbound_htlc_preimages_conv_8_conv; } - bindings.free_buffer(_inbound_htlc_preimages); - int _outbound_htlc_preimages_conv_8_len = InternalUtils.getArrayLength(_outbound_htlc_preimages); + Bindings.FreeBuffer(_inbound_htlc_preimages); + int _outbound_htlc_preimages_conv_8_len = InternalUtils.GetArrayLength(_outbound_htlc_preimages); byte[][] _outbound_htlc_preimages_conv_8_arr = new byte[_outbound_htlc_preimages_conv_8_len][]; for (int i = 0; i < _outbound_htlc_preimages_conv_8_len; i++) { - long _outbound_htlc_preimages_conv_8 = InternalUtils.getU64ArrayElem(_outbound_htlc_preimages, i); - byte[] _outbound_htlc_preimages_conv_8_conv = InternalUtils.decodeUint8Array(_outbound_htlc_preimages_conv_8); + long _outbound_htlc_preimages_conv_8 = InternalUtils.GetU64ArrayElem(_outbound_htlc_preimages, i); + byte[] _outbound_htlc_preimages_conv_8_conv = InternalUtils.DecodeUint8Array(_outbound_htlc_preimages_conv_8); _outbound_htlc_preimages_conv_8_arr[i] = _outbound_htlc_preimages_conv_8_conv; } - bindings.free_buffer(_outbound_htlc_preimages); + Bindings.FreeBuffer(_outbound_htlc_preimages); Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ret = arg.sign_counterparty_commitment(_commitment_tx_hu_conv, _inbound_htlc_preimages_conv_8_arr, _outbound_htlc_preimages_conv_8_arr); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_holder_commitment(long _commitment_tx) { + public long SignHolderCommitment(long _commitment_tx) { org.ldk.structs.HolderCommitmentTransaction _commitment_tx_hu_conv = null; if (_commitment_tx < 0 || _commitment_tx > 4096) { _commitment_tx_hu_conv = new org.ldk.structs.HolderCommitmentTransaction(null, _commitment_tx); } Result_ECDSASignatureNoneZ ret = arg.sign_holder_commitment(_commitment_tx_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_justice_revoked_output(long _justice_tx, long _input, long _amount, long _per_commitment_key) { - byte[] _justice_tx_conv = InternalUtils.decodeUint8Array(_justice_tx); - byte[] _per_commitment_key_conv = InternalUtils.decodeUint8Array(_per_commitment_key); + public long SignJusticeRevokedOutput(long _justice_tx, long _input, long _amount, long _per_commitment_key) { + byte[] _justice_tx_conv = InternalUtils.DecodeUint8Array(_justice_tx); + byte[] _per_commitment_key_conv = InternalUtils.DecodeUint8Array(_per_commitment_key); Result_ECDSASignatureNoneZ ret = arg.sign_justice_revoked_output(_justice_tx_conv, _input, _amount, _per_commitment_key_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_justice_revoked_htlc(long _justice_tx, long _input, long _amount, long _per_commitment_key, long _htlc) { - byte[] _justice_tx_conv = InternalUtils.decodeUint8Array(_justice_tx); - byte[] _per_commitment_key_conv = InternalUtils.decodeUint8Array(_per_commitment_key); + public long SignJusticeRevokedHtlc(long _justice_tx, long _input, long _amount, long _per_commitment_key, long _htlc) { + byte[] _justice_tx_conv = InternalUtils.DecodeUint8Array(_justice_tx); + byte[] _per_commitment_key_conv = InternalUtils.DecodeUint8Array(_per_commitment_key); org.ldk.structs.HTLCOutputInCommitment _htlc_hu_conv = null; if (_htlc < 0 || _htlc > 4096) { _htlc_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, _htlc); } Result_ECDSASignatureNoneZ ret = arg.sign_justice_revoked_htlc(_justice_tx_conv, _input, _amount, _per_commitment_key_conv, _htlc_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_holder_htlc_transaction(long _htlc_tx, long _input, long _htlc_descriptor) { - byte[] _htlc_tx_conv = InternalUtils.decodeUint8Array(_htlc_tx); + public long SignHolderHtlcTransaction(long _htlc_tx, long _input, long _htlc_descriptor) { + byte[] _htlc_tx_conv = InternalUtils.DecodeUint8Array(_htlc_tx); org.ldk.structs.HTLCDescriptor _htlc_descriptor_hu_conv = null; if (_htlc_descriptor < 0 || _htlc_descriptor > 4096) { _htlc_descriptor_hu_conv = new org.ldk.structs.HTLCDescriptor(null, _htlc_descriptor); } Result_ECDSASignatureNoneZ ret = arg.sign_holder_htlc_transaction(_htlc_tx_conv, _input, _htlc_descriptor_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_counterparty_htlc_transaction(long _htlc_tx, long _input, long _amount, long _per_commitment_point, long _htlc) { - byte[] _htlc_tx_conv = InternalUtils.decodeUint8Array(_htlc_tx); - byte[] _per_commitment_point_conv = InternalUtils.decodeUint8Array(_per_commitment_point); + public long SignCounterpartyHtlcTransaction(long _htlc_tx, long _input, long _amount, long _per_commitment_point, long _htlc) { + byte[] _htlc_tx_conv = InternalUtils.DecodeUint8Array(_htlc_tx); + byte[] _per_commitment_point_conv = InternalUtils.DecodeUint8Array(_per_commitment_point); org.ldk.structs.HTLCOutputInCommitment _htlc_hu_conv = null; if (_htlc < 0 || _htlc > 4096) { _htlc_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, _htlc); } Result_ECDSASignatureNoneZ ret = arg.sign_counterparty_htlc_transaction(_htlc_tx_conv, _input, _amount, _per_commitment_point_conv, _htlc_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_closing_transaction(long _closing_tx) { + public long SignClosingTransaction(long _closing_tx) { org.ldk.structs.ClosingTransaction _closing_tx_hu_conv = null; if (_closing_tx < 0 || _closing_tx > 4096) { _closing_tx_hu_conv = new org.ldk.structs.ClosingTransaction(null, _closing_tx); } Result_ECDSASignatureNoneZ ret = arg.sign_closing_transaction(_closing_tx_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_holder_anchor_input(long _anchor_tx, long _input) { - byte[] _anchor_tx_conv = InternalUtils.decodeUint8Array(_anchor_tx); + public long SignHolderAnchorInput(long _anchor_tx, long _input) { + byte[] _anchor_tx_conv = InternalUtils.DecodeUint8Array(_anchor_tx); Result_ECDSASignatureNoneZ ret = arg.sign_holder_anchor_input(_anchor_tx_conv, _input); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_channel_announcement_with_funding_key(long _msg) { + public long SignChannelAnnouncementWithFundingKey(long _msg) { org.ldk.structs.UnsignedChannelAnnouncement _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, _msg); } Result_ECDSASignatureNoneZ ret = arg.sign_channel_announcement_with_funding_key(_msg_hu_conv); GC.KeepAlive(arg); @@ -240,11 +240,11 @@ public long sign_channel_announcement_with_funding_key(long _msg) { } /** Creates a new instance of EcdsaChannelSigner from a given implementation */ - public static EcdsaChannelSigner new_impl(EcdsaChannelSignerInterface arg, ChannelSignerInterface channelSigner_impl, ChannelPublicKeys pubkeys) { + public static EcdsaChannelSigner new_impl(IEcdsaChannelSigner arg, IChannelSigner channelSigner_impl, ChannelPublicKeys pubkeys) { LDKEcdsaChannelSignerHolder impl_holder = new LDKEcdsaChannelSignerHolder(); LDKEcdsaChannelSignerImpl impl = new LDKEcdsaChannelSignerImpl(arg, impl_holder); ChannelSigner channelSigner = ChannelSigner.new_impl(channelSigner_impl, pubkeys); - long[] ptr_idx = bindings.LDKEcdsaChannelSigner_new(impl, channelSigner.instance_idx, pubkeys == null ? 0 : pubkeys.clone_ptr()); + long[] ptr_idx = Bindings.LDKEcdsaChannelSignerNew(impl, channelSigner.instance_idx, pubkeys == null ? 0 : pubkeys.clone_ptr()); impl_holder.held = new EcdsaChannelSigner(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -270,7 +270,7 @@ public static EcdsaChannelSigner new_impl(EcdsaChannelSignerInterface arg, Chann * irrelevant or duplicate preimages. */ public Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ sign_counterparty_commitment(org.ldk.structs.CommitmentTransaction commitment_tx, byte[][] inbound_htlc_preimages, byte[][] outbound_htlc_preimages) { - long ret = bindings.EcdsaChannelSigner_sign_counterparty_commitment(this.ptr, commitment_tx == null ? 0 : commitment_tx.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(inbound_htlc_preimages, inbound_htlc_preimages_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(inbound_htlc_preimages_conv_8, 32)))), InternalUtils.encodeUint64Array(InternalUtils.mapArray(outbound_htlc_preimages, outbound_htlc_preimages_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(outbound_htlc_preimages_conv_8, 32))))); + long ret = Bindings.EcdsaChannelSignerSignCounterpartyCommitment(this.ptr, commitment_tx == null ? 0 : commitment_tx.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(inbound_htlc_preimages, inbound_htlc_preimages_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(inbound_htlc_preimages_conv_8, 32)))), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outbound_htlc_preimages, outbound_htlc_preimages_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(outbound_htlc_preimages_conv_8, 32))))); GC.KeepAlive(this); GC.KeepAlive(commitment_tx); GC.KeepAlive(inbound_htlc_preimages); @@ -293,7 +293,7 @@ public Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ sign_counterparty * An external signer implementation should check that the commitment has not been revoked. */ public Result_ECDSASignatureNoneZ sign_holder_commitment(org.ldk.structs.HolderCommitmentTransaction commitment_tx) { - long ret = bindings.EcdsaChannelSigner_sign_holder_commitment(this.ptr, commitment_tx == null ? 0 : commitment_tx.ptr); + long ret = Bindings.EcdsaChannelSignerSignHolderCommitment(this.ptr, commitment_tx == null ? 0 : commitment_tx.ptr); GC.KeepAlive(this); GC.KeepAlive(commitment_tx); if (ret >= 0 && ret <= 4096) { return null; } @@ -319,7 +319,7 @@ public Result_ECDSASignatureNoneZ sign_holder_commitment(org.ldk.structs.HolderC * so). */ public Result_ECDSASignatureNoneZ sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key) { - long ret = bindings.EcdsaChannelSigner_sign_justice_revoked_output(this.ptr, InternalUtils.encodeUint8Array(justice_tx), input, amount, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_key, 32))); + long ret = Bindings.EcdsaChannelSignerSignJusticeRevokedOutput(this.ptr, InternalUtils.EncodeUint8Array(justice_tx), input, amount, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_key, 32))); GC.KeepAlive(this); GC.KeepAlive(justice_tx); GC.KeepAlive(input); @@ -351,7 +351,7 @@ public Result_ECDSASignatureNoneZ sign_justice_revoked_output(byte[] justice_tx, * (which is committed to in the BIP 143 signatures). */ public Result_ECDSASignatureNoneZ sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, org.ldk.structs.HTLCOutputInCommitment htlc) { - long ret = bindings.EcdsaChannelSigner_sign_justice_revoked_htlc(this.ptr, InternalUtils.encodeUint8Array(justice_tx), input, amount, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_key, 32)), htlc == null ? 0 : htlc.ptr); + long ret = Bindings.EcdsaChannelSignerSignJusticeRevokedHtlc(this.ptr, InternalUtils.EncodeUint8Array(justice_tx), input, amount, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_key, 32)), htlc == null ? 0 : htlc.ptr); GC.KeepAlive(this); GC.KeepAlive(justice_tx); GC.KeepAlive(input); @@ -377,7 +377,7 @@ public Result_ECDSASignatureNoneZ sign_justice_revoked_htlc(byte[] justice_tx, l * [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor */ public Result_ECDSASignatureNoneZ sign_holder_htlc_transaction(byte[] htlc_tx, long input, org.ldk.structs.HTLCDescriptor htlc_descriptor) { - long ret = bindings.EcdsaChannelSigner_sign_holder_htlc_transaction(this.ptr, InternalUtils.encodeUint8Array(htlc_tx), input, htlc_descriptor == null ? 0 : htlc_descriptor.ptr); + long ret = Bindings.EcdsaChannelSignerSignHolderHtlcTransaction(this.ptr, InternalUtils.EncodeUint8Array(htlc_tx), input, htlc_descriptor == null ? 0 : htlc_descriptor.ptr); GC.KeepAlive(this); GC.KeepAlive(htlc_tx); GC.KeepAlive(input); @@ -408,7 +408,7 @@ public Result_ECDSASignatureNoneZ sign_holder_htlc_transaction(byte[] htlc_tx, l * BIP 143 signature. */ public Result_ECDSASignatureNoneZ sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, org.ldk.structs.HTLCOutputInCommitment htlc) { - long ret = bindings.EcdsaChannelSigner_sign_counterparty_htlc_transaction(this.ptr, InternalUtils.encodeUint8Array(htlc_tx), input, amount, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)), htlc == null ? 0 : htlc.ptr); + long ret = Bindings.EcdsaChannelSignerSignCounterpartyHtlcTransaction(this.ptr, InternalUtils.EncodeUint8Array(htlc_tx), input, amount, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33)), htlc == null ? 0 : htlc.ptr); GC.KeepAlive(this); GC.KeepAlive(htlc_tx); GC.KeepAlive(input); @@ -428,7 +428,7 @@ public Result_ECDSASignatureNoneZ sign_counterparty_htlc_transaction(byte[] htlc * chosen to forgo their output as dust. */ public Result_ECDSASignatureNoneZ sign_closing_transaction(org.ldk.structs.ClosingTransaction closing_tx) { - long ret = bindings.EcdsaChannelSigner_sign_closing_transaction(this.ptr, closing_tx == null ? 0 : closing_tx.ptr); + long ret = Bindings.EcdsaChannelSignerSignClosingTransaction(this.ptr, closing_tx == null ? 0 : closing_tx.ptr); GC.KeepAlive(this); GC.KeepAlive(closing_tx); if (ret >= 0 && ret <= 4096) { return null; } @@ -442,7 +442,7 @@ public Result_ECDSASignatureNoneZ sign_closing_transaction(org.ldk.structs.Closi * input within `anchor_tx`, which spends the commitment transaction, at index `input`. */ public Result_ECDSASignatureNoneZ sign_holder_anchor_input(byte[] anchor_tx, long input) { - long ret = bindings.EcdsaChannelSigner_sign_holder_anchor_input(this.ptr, InternalUtils.encodeUint8Array(anchor_tx), input); + long ret = Bindings.EcdsaChannelSignerSignHolderAnchorInput(this.ptr, InternalUtils.EncodeUint8Array(anchor_tx), input); GC.KeepAlive(this); GC.KeepAlive(anchor_tx); GC.KeepAlive(input); @@ -465,7 +465,7 @@ public Result_ECDSASignatureNoneZ sign_holder_anchor_input(byte[] anchor_tx, lon * [`NodeSigner::sign_gossip_message`]: crate::sign::NodeSigner::sign_gossip_message */ public Result_ECDSASignatureNoneZ sign_channel_announcement_with_funding_key(org.ldk.structs.UnsignedChannelAnnouncement msg) { - long ret = bindings.EcdsaChannelSigner_sign_channel_announcement_with_funding_key(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.EcdsaChannelSignerSignChannelAnnouncementWithFundingKey(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/EffectiveCapacity.cs b/c_sharp/src/org/ldk/structs/EffectiveCapacity.cs index ebf275554..a052796df 100644 --- a/c_sharp/src/org/ldk/structs/EffectiveCapacity.cs +++ b/c_sharp/src/org/ldk/structs/EffectiveCapacity.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class EffectiveCapacity : CommonBase { protected EffectiveCapacity(object _dummy, long ptr) : base(ptr) { } ~EffectiveCapacity() { - if (ptr != 0) { bindings.EffectiveCapacity_free(ptr); } + if (ptr != 0) { Bindings.EffectiveCapacityFree(ptr); } } internal static EffectiveCapacity constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKEffectiveCapacity_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKEffectiveCapacityTyFromPtr(ptr); switch (raw_ty) { case 0: return new EffectiveCapacity_ExactLiquidity(ptr); case 1: return new EffectiveCapacity_AdvertisedMaxHTLC(ptr); @@ -39,7 +39,7 @@ public class EffectiveCapacity_ExactLiquidity : EffectiveCapacity { */ public long liquidity_msat; internal EffectiveCapacity_ExactLiquidity(long ptr) : base(null, ptr) { - this.liquidity_msat = bindings.LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr); + this.liquidity_msat = Bindings.LDKEffectiveCapacityExactLiquidityGetLiquidityMsat(ptr); } } /** A EffectiveCapacity of type AdvertisedMaxHTLC */ @@ -49,7 +49,7 @@ public class EffectiveCapacity_AdvertisedMaxHTLC : EffectiveCapacity { */ public long amount_msat; internal EffectiveCapacity_AdvertisedMaxHTLC(long ptr) : base(null, ptr) { - this.amount_msat = bindings.LDKEffectiveCapacity_AdvertisedMaxHTLC_get_amount_msat(ptr); + this.amount_msat = Bindings.LDKEffectiveCapacityAdvertisedMaxHTLCGetAmountMsat(ptr); } } /** A EffectiveCapacity of type Total */ @@ -63,8 +63,8 @@ public class EffectiveCapacity_Total : EffectiveCapacity { */ public long htlc_maximum_msat; internal EffectiveCapacity_Total(long ptr) : base(null, ptr) { - this.capacity_msat = bindings.LDKEffectiveCapacity_Total_get_capacity_msat(ptr); - this.htlc_maximum_msat = bindings.LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr); + this.capacity_msat = Bindings.LDKEffectiveCapacityTotalGetCapacityMsat(ptr); + this.htlc_maximum_msat = Bindings.LDKEffectiveCapacityTotalGetHtlcMaximumMsat(ptr); } } /** A EffectiveCapacity of type Infinite */ @@ -79,7 +79,7 @@ public class EffectiveCapacity_HintMaxHTLC : EffectiveCapacity { */ public long amount_msat; internal EffectiveCapacity_HintMaxHTLC(long ptr) : base(null, ptr) { - this.amount_msat = bindings.LDKEffectiveCapacity_HintMaxHTLC_get_amount_msat(ptr); + this.amount_msat = Bindings.LDKEffectiveCapacityHintMaxHTLCGetAmountMsat(ptr); } } /** A EffectiveCapacity of type Unknown */ @@ -88,7 +88,7 @@ internal EffectiveCapacity_Unknown(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.EffectiveCapacity_clone_ptr(this.ptr); + long ret = Bindings.EffectiveCapacityClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -97,7 +97,7 @@ internal long clone_ptr() { * Creates a copy of the EffectiveCapacity */ public EffectiveCapacity clone() { - long ret = bindings.EffectiveCapacity_clone(this.ptr); + long ret = Bindings.EffectiveCapacityClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); @@ -109,7 +109,7 @@ public EffectiveCapacity clone() { * Utility method to constructs a new ExactLiquidity-variant EffectiveCapacity */ public static EffectiveCapacity exact_liquidity(long liquidity_msat) { - long ret = bindings.EffectiveCapacity_exact_liquidity(liquidity_msat); + long ret = Bindings.EffectiveCapacityExactLiquidity(liquidity_msat); GC.KeepAlive(liquidity_msat); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); @@ -121,7 +121,7 @@ public static EffectiveCapacity exact_liquidity(long liquidity_msat) { * Utility method to constructs a new AdvertisedMaxHTLC-variant EffectiveCapacity */ public static EffectiveCapacity advertised_max_htlc(long amount_msat) { - long ret = bindings.EffectiveCapacity_advertised_max_htlc(amount_msat); + long ret = Bindings.EffectiveCapacityAdvertisedMaxHtlc(amount_msat); GC.KeepAlive(amount_msat); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); @@ -133,7 +133,7 @@ public static EffectiveCapacity advertised_max_htlc(long amount_msat) { * Utility method to constructs a new Total-variant EffectiveCapacity */ public static EffectiveCapacity total(long capacity_msat, long htlc_maximum_msat) { - long ret = bindings.EffectiveCapacity_total(capacity_msat, htlc_maximum_msat); + long ret = Bindings.EffectiveCapacityTotal(capacity_msat, htlc_maximum_msat); GC.KeepAlive(capacity_msat); GC.KeepAlive(htlc_maximum_msat); if (ret >= 0 && ret <= 4096) { return null; } @@ -146,7 +146,7 @@ public static EffectiveCapacity total(long capacity_msat, long htlc_maximum_msat * Utility method to constructs a new Infinite-variant EffectiveCapacity */ public static EffectiveCapacity infinite() { - long ret = bindings.EffectiveCapacity_infinite(); + long ret = Bindings.EffectiveCapacityInfinite(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -157,7 +157,7 @@ public static EffectiveCapacity infinite() { * Utility method to constructs a new HintMaxHTLC-variant EffectiveCapacity */ public static EffectiveCapacity hint_max_htlc(long amount_msat) { - long ret = bindings.EffectiveCapacity_hint_max_htlc(amount_msat); + long ret = Bindings.EffectiveCapacityHintMaxHtlc(amount_msat); GC.KeepAlive(amount_msat); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); @@ -169,7 +169,7 @@ public static EffectiveCapacity hint_max_htlc(long amount_msat) { * Utility method to constructs a new Unknown-variant EffectiveCapacity */ public static EffectiveCapacity unknown() { - long ret = bindings.EffectiveCapacity_unknown(); + long ret = Bindings.EffectiveCapacityUnknown(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -180,7 +180,7 @@ public static EffectiveCapacity unknown() { * Returns the effective capacity denominated in millisatoshi. */ public long as_msat() { - long ret = bindings.EffectiveCapacity_as_msat(this.ptr); + long ret = Bindings.EffectiveCapacityAsMsat(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/EntropySource.cs b/c_sharp/src/org/ldk/structs/EntropySource.cs index f400924ed..da4e52bbc 100644 --- a/c_sharp/src/org/ldk/structs/EntropySource.cs +++ b/c_sharp/src/org/ldk/structs/EntropySource.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of EntropySource */ -public interface EntropySourceInterface { +public interface IEntropySource { /**Gets a unique, cryptographically-secure, random 32-byte value. This method must return a * different value each time it is called. */ @@ -20,32 +20,32 @@ public interface EntropySourceInterface { * A trait that describes a source of entropy. */ public class EntropySource : CommonBase { - internal bindings.LDKEntropySource bindings_instance; + internal Bindings.LDKEntropySource bindings_instance; internal long instance_idx; internal EntropySource(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~EntropySource() { - if (ptr != 0) { bindings.EntropySource_free(ptr); } + if (ptr != 0) { Bindings.EntropySourceFree(ptr); } } private class LDKEntropySourceHolder { internal EntropySource held; } - private class LDKEntropySourceImpl : bindings.LDKEntropySource { - internal LDKEntropySourceImpl(EntropySourceInterface arg, LDKEntropySourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private EntropySourceInterface arg; + private class LDKEntropySourceImpl : Bindings.LDKEntropySource { + internal LDKEntropySourceImpl(IEntropySource arg, LDKEntropySourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IEntropySource arg; private LDKEntropySourceHolder impl_holder; - public long get_secure_random_bytes() { + public long GetSecureRandomBytes() { byte[] ret = arg.get_secure_random_bytes(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 32)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 32)); return result; } } /** Creates a new instance of EntropySource from a given implementation */ - public static EntropySource new_impl(EntropySourceInterface arg) { + public static EntropySource new_impl(IEntropySource arg) { LDKEntropySourceHolder impl_holder = new LDKEntropySourceHolder(); LDKEntropySourceImpl impl = new LDKEntropySourceImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKEntropySource_new(impl); + long[] ptr_idx = Bindings.LDKEntropySourceNew(impl); impl_holder.held = new EntropySource(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -58,10 +58,10 @@ public static EntropySource new_impl(EntropySourceInterface arg) { * different value each time it is called. */ public byte[] get_secure_random_bytes() { - long ret = bindings.EntropySource_get_secure_random_bytes(this.ptr); + long ret = Bindings.EntropySourceGetSecureRandomBytes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ErroneousField.cs b/c_sharp/src/org/ldk/structs/ErroneousField.cs index 1d70fe1f5..a8fc832c8 100644 --- a/c_sharp/src/org/ldk/structs/ErroneousField.cs +++ b/c_sharp/src/org/ldk/structs/ErroneousField.cs @@ -15,14 +15,14 @@ namespace org { namespace ldk { namespace structs { public class ErroneousField : CommonBase { internal ErroneousField(object _dummy, long ptr) : base(ptr) { } ~ErroneousField() { - if (ptr != 0) { bindings.ErroneousField_free(ptr); } + if (ptr != 0) { Bindings.ErroneousFieldFree(ptr); } } /** * The type number of the TLV field containing the error. */ public long get_tlv_fieldnum() { - long ret = bindings.ErroneousField_get_tlv_fieldnum(this.ptr); + long ret = Bindings.ErroneousFieldGetTlvFieldnum(this.ptr); GC.KeepAlive(this); return ret; } @@ -31,7 +31,7 @@ public long get_tlv_fieldnum() { * The type number of the TLV field containing the error. */ public void set_tlv_fieldnum(long val) { - bindings.ErroneousField_set_tlv_fieldnum(this.ptr, val); + Bindings.ErroneousFieldSetTlvFieldnum(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -42,7 +42,7 @@ public void set_tlv_fieldnum(long val) { * Returns a copy of the field. */ public Option_CVec_u8ZZ get_suggested_value() { - long ret = bindings.ErroneousField_get_suggested_value(this.ptr); + long ret = Bindings.ErroneousFieldGetSuggestedValue(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public Option_CVec_u8ZZ get_suggested_value() { * A value to use for the TLV field to avoid the error. */ public void set_suggested_value(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.ErroneousField_set_suggested_value(this.ptr, val.ptr); + Bindings.ErroneousFieldSetSuggestedValue(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -64,7 +64,7 @@ public void set_suggested_value(org.ldk.structs.Option_CVec_u8ZZ val) { * Constructs a new ErroneousField given each field */ public static ErroneousField of(long tlv_fieldnum_arg, org.ldk.structs.Option_CVec_u8ZZ suggested_value_arg) { - long ret = bindings.ErroneousField_new(tlv_fieldnum_arg, suggested_value_arg.ptr); + long ret = Bindings.ErroneousFieldNew(tlv_fieldnum_arg, suggested_value_arg.ptr); GC.KeepAlive(tlv_fieldnum_arg); GC.KeepAlive(suggested_value_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -75,7 +75,7 @@ public static ErroneousField of(long tlv_fieldnum_arg, org.ldk.structs.Option_CV } internal long clone_ptr() { - long ret = bindings.ErroneousField_clone_ptr(this.ptr); + long ret = Bindings.ErroneousFieldClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ internal long clone_ptr() { * Creates a copy of the ErroneousField */ public ErroneousField clone() { - long ret = bindings.ErroneousField_clone(this.ptr); + long ret = Bindings.ErroneousFieldClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErroneousField ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ErroneousField(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ErrorAction.cs b/c_sharp/src/org/ldk/structs/ErrorAction.cs index 9e0fc990f..67864eb5f 100644 --- a/c_sharp/src/org/ldk/structs/ErrorAction.cs +++ b/c_sharp/src/org/ldk/structs/ErrorAction.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class ErrorAction : CommonBase { protected ErrorAction(object _dummy, long ptr) : base(ptr) { } ~ErrorAction() { - if (ptr != 0) { bindings.ErrorAction_free(ptr); } + if (ptr != 0) { Bindings.ErrorActionFree(ptr); } } internal static ErrorAction constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKErrorAction_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKErrorActionTyFromPtr(ptr); switch (raw_ty) { case 0: return new ErrorAction_DisconnectPeer(ptr); case 1: return new ErrorAction_DisconnectPeerWithWarning(ptr); @@ -38,7 +38,7 @@ public class ErrorAction_DisconnectPeer : ErrorAction { */ public ErrorMessage msg; internal ErrorAction_DisconnectPeer(long ptr) : base(null, ptr) { - long msg = bindings.LDKErrorAction_DisconnectPeer_get_msg(ptr); + long msg = Bindings.LDKErrorActionDisconnectPeerGetMsg(ptr); org.ldk.structs.ErrorMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ErrorMessage(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -51,7 +51,7 @@ public class ErrorAction_DisconnectPeerWithWarning : ErrorAction { */ public WarningMessage msg; internal ErrorAction_DisconnectPeerWithWarning(long ptr) : base(null, ptr) { - long msg = bindings.LDKErrorAction_DisconnectPeerWithWarning_get_msg(ptr); + long msg = Bindings.LDKErrorActionDisconnectPeerWithWarningGetMsg(ptr); org.ldk.structs.WarningMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.WarningMessage(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -66,7 +66,7 @@ internal ErrorAction_IgnoreError(long ptr) : base(null, ptr) { public class ErrorAction_IgnoreAndLog : ErrorAction { public Level ignore_and_log; internal ErrorAction_IgnoreAndLog(long ptr) : base(null, ptr) { - this.ignore_and_log = bindings.LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr); + this.ignore_and_log = Bindings.LDKErrorActionIgnoreAndLogGetIgnoreAndLog(ptr); } } /** A ErrorAction of type IgnoreDuplicateGossip */ @@ -81,7 +81,7 @@ public class ErrorAction_SendErrorMessage : ErrorAction { */ public ErrorMessage msg; internal ErrorAction_SendErrorMessage(long ptr) : base(null, ptr) { - long msg = bindings.LDKErrorAction_SendErrorMessage_get_msg(ptr); + long msg = Bindings.LDKErrorActionSendErrorMessageGetMsg(ptr); org.ldk.structs.ErrorMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ErrorMessage(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -100,15 +100,15 @@ public class ErrorAction_SendWarningMessage : ErrorAction { */ public Level log_level; internal ErrorAction_SendWarningMessage(long ptr) : base(null, ptr) { - long msg = bindings.LDKErrorAction_SendWarningMessage_get_msg(ptr); + long msg = Bindings.LDKErrorActionSendWarningMessageGetMsg(ptr); org.ldk.structs.WarningMessage msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.WarningMessage(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; - this.log_level = bindings.LDKErrorAction_SendWarningMessage_get_log_level(ptr); + this.log_level = Bindings.LDKErrorActionSendWarningMessageGetLogLevel(ptr); } } internal long clone_ptr() { - long ret = bindings.ErrorAction_clone_ptr(this.ptr); + long ret = Bindings.ErrorActionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -117,7 +117,7 @@ internal long clone_ptr() { * Creates a copy of the ErrorAction */ public ErrorAction clone() { - long ret = bindings.ErrorAction_clone(this.ptr); + long ret = Bindings.ErrorActionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -129,7 +129,7 @@ public ErrorAction clone() { * Utility method to constructs a new DisconnectPeer-variant ErrorAction */ public static ErrorAction disconnect_peer(org.ldk.structs.ErrorMessage msg) { - long ret = bindings.ErrorAction_disconnect_peer(msg == null ? 0 : msg.ptr); + long ret = Bindings.ErrorActionDisconnectPeer(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -142,7 +142,7 @@ public static ErrorAction disconnect_peer(org.ldk.structs.ErrorMessage msg) { * Utility method to constructs a new DisconnectPeerWithWarning-variant ErrorAction */ public static ErrorAction disconnect_peer_with_warning(org.ldk.structs.WarningMessage msg) { - long ret = bindings.ErrorAction_disconnect_peer_with_warning(msg == null ? 0 : msg.ptr); + long ret = Bindings.ErrorActionDisconnectPeerWithWarning(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -155,7 +155,7 @@ public static ErrorAction disconnect_peer_with_warning(org.ldk.structs.WarningMe * Utility method to constructs a new IgnoreError-variant ErrorAction */ public static ErrorAction ignore_error() { - long ret = bindings.ErrorAction_ignore_error(); + long ret = Bindings.ErrorActionIgnoreError(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -166,7 +166,7 @@ public static ErrorAction ignore_error() { * Utility method to constructs a new IgnoreAndLog-variant ErrorAction */ public static ErrorAction ignore_and_log(Level a) { - long ret = bindings.ErrorAction_ignore_and_log(a); + long ret = Bindings.ErrorActionIgnoreAndLog(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -178,7 +178,7 @@ public static ErrorAction ignore_and_log(Level a) { * Utility method to constructs a new IgnoreDuplicateGossip-variant ErrorAction */ public static ErrorAction ignore_duplicate_gossip() { - long ret = bindings.ErrorAction_ignore_duplicate_gossip(); + long ret = Bindings.ErrorActionIgnoreDuplicateGossip(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -189,7 +189,7 @@ public static ErrorAction ignore_duplicate_gossip() { * Utility method to constructs a new SendErrorMessage-variant ErrorAction */ public static ErrorAction send_error_message(org.ldk.structs.ErrorMessage msg) { - long ret = bindings.ErrorAction_send_error_message(msg == null ? 0 : msg.ptr); + long ret = Bindings.ErrorActionSendErrorMessage(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -202,7 +202,7 @@ public static ErrorAction send_error_message(org.ldk.structs.ErrorMessage msg) { * Utility method to constructs a new SendWarningMessage-variant ErrorAction */ public static ErrorAction send_warning_message(org.ldk.structs.WarningMessage msg, Level log_level) { - long ret = bindings.ErrorAction_send_warning_message(msg == null ? 0 : msg.ptr, log_level); + long ret = Bindings.ErrorActionSendWarningMessage(msg == null ? 0 : msg.ptr, log_level); GC.KeepAlive(msg); GC.KeepAlive(log_level); if (ret >= 0 && ret <= 4096) { return null; } @@ -216,7 +216,7 @@ public static ErrorAction send_warning_message(org.ldk.structs.WarningMessage ms * Generates a non-cryptographic 64-bit hash of the ErrorAction. */ public long hash() { - long ret = bindings.ErrorAction_hash(this.ptr); + long ret = Bindings.ErrorActionHash(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/ErrorMessage.cs b/c_sharp/src/org/ldk/structs/ErrorMessage.cs index fe33ec192..65046012e 100644 --- a/c_sharp/src/org/ldk/structs/ErrorMessage.cs +++ b/c_sharp/src/org/ldk/structs/ErrorMessage.cs @@ -14,7 +14,7 @@ namespace org { namespace ldk { namespace structs { public class ErrorMessage : CommonBase { internal ErrorMessage(object _dummy, long ptr) : base(ptr) { } ~ErrorMessage() { - if (ptr != 0) { bindings.ErrorMessage_free(ptr); } + if (ptr != 0) { Bindings.ErrorMessageFree(ptr); } } /** @@ -24,10 +24,10 @@ internal ErrorMessage(object _dummy, long ptr) : base(ptr) { } * with the sending peer should be closed. */ public byte[] get_channel_id() { - long ret = bindings.ErrorMessage_get_channel_id(this.ptr); + long ret = Bindings.ErrorMessageGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -38,7 +38,7 @@ public byte[] get_channel_id() { * with the sending peer should be closed. */ public void set_channel_id(byte[] val) { - bindings.ErrorMessage_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ErrorMessageSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -51,10 +51,10 @@ public void set_channel_id(byte[] val) { * the terminal emulator or the logging subsystem. */ public string get_data() { - long ret = bindings.ErrorMessage_get_data(this.ptr); + long ret = Bindings.ErrorMessageGetData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -66,7 +66,7 @@ public string get_data() { * the terminal emulator or the logging subsystem. */ public void set_data(string val) { - bindings.ErrorMessage_set_data(this.ptr, InternalUtils.encodeString(val)); + Bindings.ErrorMessageSetData(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -75,7 +75,7 @@ public void set_data(string val) { * Constructs a new ErrorMessage given each field */ public static ErrorMessage of(byte[] channel_id_arg, string data_arg) { - long ret = bindings.ErrorMessage_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeString(data_arg)); + long ret = Bindings.ErrorMessageNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeString(data_arg)); GC.KeepAlive(channel_id_arg); GC.KeepAlive(data_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -85,7 +85,7 @@ public static ErrorMessage of(byte[] channel_id_arg, string data_arg) { } internal long clone_ptr() { - long ret = bindings.ErrorMessage_clone_ptr(this.ptr); + long ret = Bindings.ErrorMessageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,7 +94,7 @@ internal long clone_ptr() { * Creates a copy of the ErrorMessage */ public ErrorMessage clone() { - long ret = bindings.ErrorMessage_clone(this.ptr); + long ret = Bindings.ErrorMessageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorMessage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ErrorMessage(null, ret); } @@ -106,7 +106,7 @@ public ErrorMessage clone() { * Generates a non-cryptographic 64-bit hash of the ErrorMessage. */ public long hash() { - long ret = bindings.ErrorMessage_hash(this.ptr); + long ret = Bindings.ErrorMessageHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -120,7 +120,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ErrorMessage b) { - bool ret = bindings.ErrorMessage_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ErrorMessageEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -135,10 +135,10 @@ public override bool Equals(object o) { * Serialize the ErrorMessage object into a byte array which can be read by ErrorMessage_read */ public byte[] write() { - long ret = bindings.ErrorMessage_write(this.ptr); + long ret = Bindings.ErrorMessageWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -146,7 +146,7 @@ public byte[] write() { * Read a ErrorMessage from a byte array, created by ErrorMessage_write */ public static Result_ErrorMessageDecodeErrorZ read(byte[] ser) { - long ret = bindings.ErrorMessage_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ErrorMessageRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ErroringMessageHandler.cs b/c_sharp/src/org/ldk/structs/ErroringMessageHandler.cs index c2b0b8baa..1670e644a 100644 --- a/c_sharp/src/org/ldk/structs/ErroringMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/ErroringMessageHandler.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class ErroringMessageHandler : CommonBase { internal ErroringMessageHandler(object _dummy, long ptr) : base(ptr) { } ~ErroringMessageHandler() { - if (ptr != 0) { bindings.ErroringMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.ErroringMessageHandlerFree(ptr); } } /** * Constructs a new ErroringMessageHandler */ public static ErroringMessageHandler of() { - long ret = bindings.ErroringMessageHandler_new(); + long ret = Bindings.ErroringMessageHandlerNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErroringMessageHandler ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ErroringMessageHandler(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -32,7 +32,7 @@ public static ErroringMessageHandler of() { * This copies the `inner` pointer in this_arg and thus the returned MessageSendEventsProvider must be freed before this_arg is */ public MessageSendEventsProvider as_MessageSendEventsProvider() { - long ret = bindings.ErroringMessageHandler_as_MessageSendEventsProvider(this.ptr); + long ret = Bindings.ErroringMessageHandlerAsMessageSendEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageSendEventsProvider ret_hu_conv = new MessageSendEventsProvider(null, ret); @@ -45,7 +45,7 @@ public MessageSendEventsProvider as_MessageSendEventsProvider() { * This copies the `inner` pointer in this_arg and thus the returned ChannelMessageHandler must be freed before this_arg is */ public ChannelMessageHandler as_ChannelMessageHandler() { - long ret = bindings.ErroringMessageHandler_as_ChannelMessageHandler(this.ptr); + long ret = Bindings.ErroringMessageHandlerAsChannelMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ChannelMessageHandler ret_hu_conv = new ChannelMessageHandler(null, ret); diff --git a/c_sharp/src/org/ldk/structs/Event.cs b/c_sharp/src/org/ldk/structs/Event.cs index ccc37c52d..85d68819a 100644 --- a/c_sharp/src/org/ldk/structs/Event.cs +++ b/c_sharp/src/org/ldk/structs/Event.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class Event : CommonBase { protected Event(object _dummy, long ptr) : base(ptr) { } ~Event() { - if (ptr != 0) { bindings.Event_free(ptr); } + if (ptr != 0) { Bindings.EventFree(ptr); } } internal static Event constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKEvent_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKEventTyFromPtr(ptr); switch (raw_ty) { case 0: return new Event_FundingGenerationReady(ptr); case 1: return new Event_PaymentClaimable(ptr); @@ -85,17 +85,17 @@ public class Event_FundingGenerationReady : Event { */ public UInt128 user_channel_id; internal Event_FundingGenerationReady(long ptr) : base(null, ptr) { - long temporary_channel_id = bindings.LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr); - byte[] temporary_channel_id_conv = InternalUtils.decodeUint8Array(temporary_channel_id); + long temporary_channel_id = Bindings.LDKEventFundingGenerationReadyGetTemporaryChannelId(ptr); + byte[] temporary_channel_id_conv = InternalUtils.DecodeUint8Array(temporary_channel_id); this.temporary_channel_id = temporary_channel_id_conv; - long counterparty_node_id = bindings.LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr); - byte[] counterparty_node_id_conv = InternalUtils.decodeUint8Array(counterparty_node_id); + long counterparty_node_id = Bindings.LDKEventFundingGenerationReadyGetCounterpartyNodeId(ptr); + byte[] counterparty_node_id_conv = InternalUtils.DecodeUint8Array(counterparty_node_id); this.counterparty_node_id = counterparty_node_id_conv; - this.channel_value_satoshis = bindings.LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr); - long output_script = bindings.LDKEvent_FundingGenerationReady_get_output_script(ptr); - byte[] output_script_conv = InternalUtils.decodeUint8Array(output_script); + this.channel_value_satoshis = Bindings.LDKEventFundingGenerationReadyGetChannelValueSatoshis(ptr); + long output_script = Bindings.LDKEventFundingGenerationReadyGetOutputScript(ptr); + byte[] output_script_conv = InternalUtils.DecodeUint8Array(output_script); this.output_script = output_script_conv; - long user_channel_id = bindings.LDKEvent_FundingGenerationReady_get_user_channel_id(ptr); + long user_channel_id = Bindings.LDKEventFundingGenerationReadyGetUserChannelId(ptr); org.ldk.util.UInt128 user_channel_id_conv = new org.ldk.util.UInt128(user_channel_id); this.user_channel_id = user_channel_id_conv; } @@ -174,31 +174,31 @@ public class Event_PaymentClaimable : Event { */ public Option_u32Z claim_deadline; internal Event_PaymentClaimable(long ptr) : base(null, ptr) { - long receiver_node_id = bindings.LDKEvent_PaymentClaimable_get_receiver_node_id(ptr); - byte[] receiver_node_id_conv = InternalUtils.decodeUint8Array(receiver_node_id); + long receiver_node_id = Bindings.LDKEventPaymentClaimableGetReceiverNodeId(ptr); + byte[] receiver_node_id_conv = InternalUtils.DecodeUint8Array(receiver_node_id); this.receiver_node_id = receiver_node_id_conv; - long payment_hash = bindings.LDKEvent_PaymentClaimable_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventPaymentClaimableGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long onion_fields = bindings.LDKEvent_PaymentClaimable_get_onion_fields(ptr); + long onion_fields = Bindings.LDKEventPaymentClaimableGetOnionFields(ptr); org.ldk.structs.RecipientOnionFields onion_fields_hu_conv = null; if (onion_fields < 0 || onion_fields > 4096) { onion_fields_hu_conv = new org.ldk.structs.RecipientOnionFields(null, onion_fields); } if (onion_fields_hu_conv != null) { onion_fields_hu_conv.ptrs_to.AddLast(this); }; this.onion_fields = onion_fields_hu_conv; - this.amount_msat = bindings.LDKEvent_PaymentClaimable_get_amount_msat(ptr); - this.counterparty_skimmed_fee_msat = bindings.LDKEvent_PaymentClaimable_get_counterparty_skimmed_fee_msat(ptr); - long purpose = bindings.LDKEvent_PaymentClaimable_get_purpose(ptr); + this.amount_msat = Bindings.LDKEventPaymentClaimableGetAmountMsat(ptr); + this.counterparty_skimmed_fee_msat = Bindings.LDKEventPaymentClaimableGetCounterpartySkimmedFeeMsat(ptr); + long purpose = Bindings.LDKEventPaymentClaimableGetPurpose(ptr); org.ldk.structs.PaymentPurpose purpose_hu_conv = org.ldk.structs.PaymentPurpose.constr_from_ptr(purpose); if (purpose_hu_conv != null) { purpose_hu_conv.ptrs_to.AddLast(this); }; this.purpose = purpose_hu_conv; - long via_channel_id = bindings.LDKEvent_PaymentClaimable_get_via_channel_id(ptr); + long via_channel_id = Bindings.LDKEventPaymentClaimableGetViaChannelId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ via_channel_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(via_channel_id); if (via_channel_id_hu_conv != null) { via_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.via_channel_id = via_channel_id_hu_conv; - long via_user_channel_id = bindings.LDKEvent_PaymentClaimable_get_via_user_channel_id(ptr); + long via_user_channel_id = Bindings.LDKEventPaymentClaimableGetViaUserChannelId(ptr); org.ldk.structs.Option_U128Z via_user_channel_id_hu_conv = org.ldk.structs.Option_U128Z.constr_from_ptr(via_user_channel_id); if (via_user_channel_id_hu_conv != null) { via_user_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.via_user_channel_id = via_user_channel_id_hu_conv; - long claim_deadline = bindings.LDKEvent_PaymentClaimable_get_claim_deadline(ptr); + long claim_deadline = Bindings.LDKEventPaymentClaimableGetClaimDeadline(ptr); org.ldk.structs.Option_u32Z claim_deadline_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(claim_deadline); if (claim_deadline_hu_conv != null) { claim_deadline_hu_conv.ptrs_to.AddLast(this); }; this.claim_deadline = claim_deadline_hu_conv; @@ -243,29 +243,29 @@ public class Event_PaymentClaimed : Event { */ public Option_u64Z sender_intended_total_msat; internal Event_PaymentClaimed(long ptr) : base(null, ptr) { - long receiver_node_id = bindings.LDKEvent_PaymentClaimed_get_receiver_node_id(ptr); - byte[] receiver_node_id_conv = InternalUtils.decodeUint8Array(receiver_node_id); + long receiver_node_id = Bindings.LDKEventPaymentClaimedGetReceiverNodeId(ptr); + byte[] receiver_node_id_conv = InternalUtils.DecodeUint8Array(receiver_node_id); this.receiver_node_id = receiver_node_id_conv; - long payment_hash = bindings.LDKEvent_PaymentClaimed_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventPaymentClaimedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - this.amount_msat = bindings.LDKEvent_PaymentClaimed_get_amount_msat(ptr); - long purpose = bindings.LDKEvent_PaymentClaimed_get_purpose(ptr); + this.amount_msat = Bindings.LDKEventPaymentClaimedGetAmountMsat(ptr); + long purpose = Bindings.LDKEventPaymentClaimedGetPurpose(ptr); org.ldk.structs.PaymentPurpose purpose_hu_conv = org.ldk.structs.PaymentPurpose.constr_from_ptr(purpose); if (purpose_hu_conv != null) { purpose_hu_conv.ptrs_to.AddLast(this); }; this.purpose = purpose_hu_conv; - long htlcs = bindings.LDKEvent_PaymentClaimed_get_htlcs(ptr); - int htlcs_conv_13_len = InternalUtils.getArrayLength(htlcs); + long htlcs = Bindings.LDKEventPaymentClaimedGetHtlcs(ptr); + int htlcs_conv_13_len = InternalUtils.GetArrayLength(htlcs); ClaimedHTLC[] htlcs_conv_13_arr = new ClaimedHTLC[htlcs_conv_13_len]; for (int n = 0; n < htlcs_conv_13_len; n++) { - long htlcs_conv_13 = InternalUtils.getU64ArrayElem(htlcs, n); + long htlcs_conv_13 = InternalUtils.GetU64ArrayElem(htlcs, n); org.ldk.structs.ClaimedHTLC htlcs_conv_13_hu_conv = null; if (htlcs_conv_13 < 0 || htlcs_conv_13 > 4096) { htlcs_conv_13_hu_conv = new org.ldk.structs.ClaimedHTLC(null, htlcs_conv_13); } if (htlcs_conv_13_hu_conv != null) { htlcs_conv_13_hu_conv.ptrs_to.AddLast(this); }; htlcs_conv_13_arr[n] = htlcs_conv_13_hu_conv; } - bindings.free_buffer(htlcs); + Bindings.FreeBuffer(htlcs); this.htlcs = htlcs_conv_13_arr; - long sender_intended_total_msat = bindings.LDKEvent_PaymentClaimed_get_sender_intended_total_msat(ptr); + long sender_intended_total_msat = Bindings.LDKEventPaymentClaimedGetSenderIntendedTotalMsat(ptr); org.ldk.structs.Option_u64Z sender_intended_total_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(sender_intended_total_msat); if (sender_intended_total_msat_hu_conv != null) { sender_intended_total_msat_hu_conv.ptrs_to.AddLast(this); }; this.sender_intended_total_msat = sender_intended_total_msat_hu_conv; @@ -282,19 +282,19 @@ public class Event_ConnectionNeeded : Event { */ public SocketAddress[] addresses; internal Event_ConnectionNeeded(long ptr) : base(null, ptr) { - long node_id = bindings.LDKEvent_ConnectionNeeded_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKEventConnectionNeededGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long addresses = bindings.LDKEvent_ConnectionNeeded_get_addresses(ptr); - int addresses_conv_15_len = InternalUtils.getArrayLength(addresses); + long addresses = Bindings.LDKEventConnectionNeededGetAddresses(ptr); + int addresses_conv_15_len = InternalUtils.GetArrayLength(addresses); SocketAddress[] addresses_conv_15_arr = new SocketAddress[addresses_conv_15_len]; for (int p = 0; p < addresses_conv_15_len; p++) { - long addresses_conv_15 = InternalUtils.getU64ArrayElem(addresses, p); + long addresses_conv_15 = InternalUtils.GetU64ArrayElem(addresses, p); org.ldk.structs.SocketAddress addresses_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(addresses_conv_15); if (addresses_conv_15_hu_conv != null) { addresses_conv_15_hu_conv.ptrs_to.AddLast(this); }; addresses_conv_15_arr[p] = addresses_conv_15_hu_conv; } - bindings.free_buffer(addresses); + Bindings.FreeBuffer(addresses); this.addresses = addresses_conv_15_arr; } } @@ -305,8 +305,8 @@ public class Event_InvoiceRequestFailed : Event { */ public byte[] payment_id; internal Event_InvoiceRequestFailed(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_InvoiceRequestFailed_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKEventInvoiceRequestFailedGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; } } @@ -343,17 +343,17 @@ public class Event_PaymentSent : Event { */ public Option_u64Z fee_paid_msat; internal Event_PaymentSent(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_PaymentSent_get_payment_id(ptr); + long payment_id = Bindings.LDKEventPaymentSentGetPaymentId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ payment_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(payment_id); if (payment_id_hu_conv != null) { payment_id_hu_conv.ptrs_to.AddLast(this); }; this.payment_id = payment_id_hu_conv; - long payment_preimage = bindings.LDKEvent_PaymentSent_get_payment_preimage(ptr); - byte[] payment_preimage_conv = InternalUtils.decodeUint8Array(payment_preimage); + long payment_preimage = Bindings.LDKEventPaymentSentGetPaymentPreimage(ptr); + byte[] payment_preimage_conv = InternalUtils.DecodeUint8Array(payment_preimage); this.payment_preimage = payment_preimage_conv; - long payment_hash = bindings.LDKEvent_PaymentSent_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventPaymentSentGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long fee_paid_msat = bindings.LDKEvent_PaymentSent_get_fee_paid_msat(ptr); + long fee_paid_msat = Bindings.LDKEventPaymentSentGetFeePaidMsat(ptr); org.ldk.structs.Option_u64Z fee_paid_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(fee_paid_msat); if (fee_paid_msat_hu_conv != null) { fee_paid_msat_hu_conv.ptrs_to.AddLast(this); }; this.fee_paid_msat = fee_paid_msat_hu_conv; @@ -379,13 +379,13 @@ public class Event_PaymentFailed : Event { */ public Option_PaymentFailureReasonZ reason; internal Event_PaymentFailed(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_PaymentFailed_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKEventPaymentFailedGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKEvent_PaymentFailed_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventPaymentFailedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long reason = bindings.LDKEvent_PaymentFailed_get_reason(ptr); + long reason = Bindings.LDKEventPaymentFailedGetReason(ptr); org.ldk.structs.Option_PaymentFailureReasonZ reason_hu_conv = org.ldk.structs.Option_PaymentFailureReasonZ.constr_from_ptr(reason); if (reason_hu_conv != null) { reason_hu_conv.ptrs_to.AddLast(this); }; this.reason = reason_hu_conv; @@ -414,14 +414,14 @@ public class Event_PaymentPathSuccessful : Event { */ public Path path; internal Event_PaymentPathSuccessful(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_PaymentPathSuccessful_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKEventPaymentPathSuccessfulGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr); + long payment_hash = Bindings.LDKEventPaymentPathSuccessfulGetPaymentHash(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(payment_hash); if (payment_hash_hu_conv != null) { payment_hash_hu_conv.ptrs_to.AddLast(this); }; this.payment_hash = payment_hash_hu_conv; - long path = bindings.LDKEvent_PaymentPathSuccessful_get_path(ptr); + long path = Bindings.LDKEventPaymentPathSuccessfulGetPath(ptr); org.ldk.structs.Path path_hu_conv = null; if (path < 0 || path > 4096) { path_hu_conv = new org.ldk.structs.Path(null, path); } if (path_hu_conv != null) { path_hu_conv.ptrs_to.AddLast(this); }; this.path = path_hu_conv; @@ -473,23 +473,23 @@ public class Event_PaymentPathFailed : Event { */ public Option_u64Z short_channel_id; internal Event_PaymentPathFailed(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_PaymentPathFailed_get_payment_id(ptr); + long payment_id = Bindings.LDKEventPaymentPathFailedGetPaymentId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ payment_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(payment_id); if (payment_id_hu_conv != null) { payment_id_hu_conv.ptrs_to.AddLast(this); }; this.payment_id = payment_id_hu_conv; - long payment_hash = bindings.LDKEvent_PaymentPathFailed_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventPaymentPathFailedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - this.payment_failed_permanently = bindings.LDKEvent_PaymentPathFailed_get_payment_failed_permanently(ptr); - long failure = bindings.LDKEvent_PaymentPathFailed_get_failure(ptr); + this.payment_failed_permanently = Bindings.LDKEventPaymentPathFailedGetPaymentFailedPermanently(ptr); + long failure = Bindings.LDKEventPaymentPathFailedGetFailure(ptr); org.ldk.structs.PathFailure failure_hu_conv = org.ldk.structs.PathFailure.constr_from_ptr(failure); if (failure_hu_conv != null) { failure_hu_conv.ptrs_to.AddLast(this); }; this.failure = failure_hu_conv; - long path = bindings.LDKEvent_PaymentPathFailed_get_path(ptr); + long path = Bindings.LDKEventPaymentPathFailedGetPath(ptr); org.ldk.structs.Path path_hu_conv = null; if (path < 0 || path > 4096) { path_hu_conv = new org.ldk.structs.Path(null, path); } if (path_hu_conv != null) { path_hu_conv.ptrs_to.AddLast(this); }; this.path = path_hu_conv; - long short_channel_id = bindings.LDKEvent_PaymentPathFailed_get_short_channel_id(ptr); + long short_channel_id = Bindings.LDKEventPaymentPathFailedGetShortChannelId(ptr); org.ldk.structs.Option_u64Z short_channel_id_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(short_channel_id); if (short_channel_id_hu_conv != null) { short_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.short_channel_id = short_channel_id_hu_conv; @@ -514,13 +514,13 @@ public class Event_ProbeSuccessful : Event { */ public Path path; internal Event_ProbeSuccessful(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_ProbeSuccessful_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKEventProbeSuccessfulGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKEvent_ProbeSuccessful_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventProbeSuccessfulGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long path = bindings.LDKEvent_ProbeSuccessful_get_path(ptr); + long path = Bindings.LDKEventProbeSuccessfulGetPath(ptr); org.ldk.structs.Path path_hu_conv = null; if (path < 0 || path > 4096) { path_hu_conv = new org.ldk.structs.Path(null, path); } if (path_hu_conv != null) { path_hu_conv.ptrs_to.AddLast(this); }; this.path = path_hu_conv; @@ -553,17 +553,17 @@ public class Event_ProbeFailed : Event { */ public Option_u64Z short_channel_id; internal Event_ProbeFailed(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKEvent_ProbeFailed_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKEventProbeFailedGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKEvent_ProbeFailed_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKEventProbeFailedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - long path = bindings.LDKEvent_ProbeFailed_get_path(ptr); + long path = Bindings.LDKEventProbeFailedGetPath(ptr); org.ldk.structs.Path path_hu_conv = null; if (path < 0 || path > 4096) { path_hu_conv = new org.ldk.structs.Path(null, path); } if (path_hu_conv != null) { path_hu_conv.ptrs_to.AddLast(this); }; this.path = path_hu_conv; - long short_channel_id = bindings.LDKEvent_ProbeFailed_get_short_channel_id(ptr); + long short_channel_id = Bindings.LDKEventProbeFailedGetShortChannelId(ptr); org.ldk.structs.Option_u64Z short_channel_id_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(short_channel_id); if (short_channel_id_hu_conv != null) { short_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.short_channel_id = short_channel_id_hu_conv; @@ -579,7 +579,7 @@ public class Event_PendingHTLCsForwardable : Event { */ public long time_forwardable; internal Event_PendingHTLCsForwardable(long ptr) : base(null, ptr) { - this.time_forwardable = bindings.LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr); + this.time_forwardable = Bindings.LDKEventPendingHTLCsForwardableGetTimeForwardable(ptr); } } /** A Event of type HTLCIntercepted */ @@ -614,15 +614,15 @@ public class Event_HTLCIntercepted : Event { */ public long expected_outbound_amount_msat; internal Event_HTLCIntercepted(long ptr) : base(null, ptr) { - long intercept_id = bindings.LDKEvent_HTLCIntercepted_get_intercept_id(ptr); - byte[] intercept_id_conv = InternalUtils.decodeUint8Array(intercept_id); + long intercept_id = Bindings.LDKEventHTLCInterceptedGetInterceptId(ptr); + byte[] intercept_id_conv = InternalUtils.DecodeUint8Array(intercept_id); this.intercept_id = intercept_id_conv; - this.requested_next_hop_scid = bindings.LDKEvent_HTLCIntercepted_get_requested_next_hop_scid(ptr); - long payment_hash = bindings.LDKEvent_HTLCIntercepted_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + this.requested_next_hop_scid = Bindings.LDKEventHTLCInterceptedGetRequestedNextHopScid(ptr); + long payment_hash = Bindings.LDKEventHTLCInterceptedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - this.inbound_amount_msat = bindings.LDKEvent_HTLCIntercepted_get_inbound_amount_msat(ptr); - this.expected_outbound_amount_msat = bindings.LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat(ptr); + this.inbound_amount_msat = Bindings.LDKEventHTLCInterceptedGetInboundAmountMsat(ptr); + this.expected_outbound_amount_msat = Bindings.LDKEventHTLCInterceptedGetExpectedOutboundAmountMsat(ptr); } } /** A Event of type SpendableOutputs */ @@ -638,18 +638,18 @@ public class Event_SpendableOutputs : Event { */ public Option_ThirtyTwoBytesZ channel_id; internal Event_SpendableOutputs(long ptr) : base(null, ptr) { - long outputs = bindings.LDKEvent_SpendableOutputs_get_outputs(ptr); - int outputs_conv_27_len = InternalUtils.getArrayLength(outputs); + long outputs = Bindings.LDKEventSpendableOutputsGetOutputs(ptr); + int outputs_conv_27_len = InternalUtils.GetArrayLength(outputs); SpendableOutputDescriptor[] outputs_conv_27_arr = new SpendableOutputDescriptor[outputs_conv_27_len]; for (int b = 0; b < outputs_conv_27_len; b++) { - long outputs_conv_27 = InternalUtils.getU64ArrayElem(outputs, b); + long outputs_conv_27 = InternalUtils.GetU64ArrayElem(outputs, b); org.ldk.structs.SpendableOutputDescriptor outputs_conv_27_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(outputs_conv_27); if (outputs_conv_27_hu_conv != null) { outputs_conv_27_hu_conv.ptrs_to.AddLast(this); }; outputs_conv_27_arr[b] = outputs_conv_27_hu_conv; } - bindings.free_buffer(outputs); + Bindings.FreeBuffer(outputs); this.outputs = outputs_conv_27_arr; - long channel_id = bindings.LDKEvent_SpendableOutputs_get_channel_id(ptr); + long channel_id = Bindings.LDKEventSpendableOutputsGetChannelId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ channel_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(channel_id); if (channel_id_hu_conv != null) { channel_id_hu_conv.ptrs_to.AddLast(this); }; this.channel_id = channel_id_hu_conv; @@ -695,20 +695,20 @@ public class Event_PaymentForwarded : Event { */ public Option_u64Z outbound_amount_forwarded_msat; internal Event_PaymentForwarded(long ptr) : base(null, ptr) { - long prev_channel_id = bindings.LDKEvent_PaymentForwarded_get_prev_channel_id(ptr); + long prev_channel_id = Bindings.LDKEventPaymentForwardedGetPrevChannelId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ prev_channel_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(prev_channel_id); if (prev_channel_id_hu_conv != null) { prev_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.prev_channel_id = prev_channel_id_hu_conv; - long next_channel_id = bindings.LDKEvent_PaymentForwarded_get_next_channel_id(ptr); + long next_channel_id = Bindings.LDKEventPaymentForwardedGetNextChannelId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ next_channel_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(next_channel_id); if (next_channel_id_hu_conv != null) { next_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.next_channel_id = next_channel_id_hu_conv; - long fee_earned_msat = bindings.LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr); + long fee_earned_msat = Bindings.LDKEventPaymentForwardedGetFeeEarnedMsat(ptr); org.ldk.structs.Option_u64Z fee_earned_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(fee_earned_msat); if (fee_earned_msat_hu_conv != null) { fee_earned_msat_hu_conv.ptrs_to.AddLast(this); }; this.fee_earned_msat = fee_earned_msat_hu_conv; - this.claim_from_onchain_tx = bindings.LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr); - long outbound_amount_forwarded_msat = bindings.LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(ptr); + this.claim_from_onchain_tx = Bindings.LDKEventPaymentForwardedGetClaimFromOnchainTx(ptr); + long outbound_amount_forwarded_msat = Bindings.LDKEventPaymentForwardedGetOutboundAmountForwardedMsat(ptr); org.ldk.structs.Option_u64Z outbound_amount_forwarded_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(outbound_amount_forwarded_msat); if (outbound_amount_forwarded_msat_hu_conv != null) { outbound_amount_forwarded_msat_hu_conv.ptrs_to.AddLast(this); }; this.outbound_amount_forwarded_msat = outbound_amount_forwarded_msat_hu_conv; @@ -746,20 +746,20 @@ public class Event_ChannelPending : Event { */ public OutPoint funding_txo; internal Event_ChannelPending(long ptr) : base(null, ptr) { - long channel_id = bindings.LDKEvent_ChannelPending_get_channel_id(ptr); - byte[] channel_id_conv = InternalUtils.decodeUint8Array(channel_id); + long channel_id = Bindings.LDKEventChannelPendingGetChannelId(ptr); + byte[] channel_id_conv = InternalUtils.DecodeUint8Array(channel_id); this.channel_id = channel_id_conv; - long user_channel_id = bindings.LDKEvent_ChannelPending_get_user_channel_id(ptr); + long user_channel_id = Bindings.LDKEventChannelPendingGetUserChannelId(ptr); org.ldk.util.UInt128 user_channel_id_conv = new org.ldk.util.UInt128(user_channel_id); this.user_channel_id = user_channel_id_conv; - long former_temporary_channel_id = bindings.LDKEvent_ChannelPending_get_former_temporary_channel_id(ptr); + long former_temporary_channel_id = Bindings.LDKEventChannelPendingGetFormerTemporaryChannelId(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ former_temporary_channel_id_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(former_temporary_channel_id); if (former_temporary_channel_id_hu_conv != null) { former_temporary_channel_id_hu_conv.ptrs_to.AddLast(this); }; this.former_temporary_channel_id = former_temporary_channel_id_hu_conv; - long counterparty_node_id = bindings.LDKEvent_ChannelPending_get_counterparty_node_id(ptr); - byte[] counterparty_node_id_conv = InternalUtils.decodeUint8Array(counterparty_node_id); + long counterparty_node_id = Bindings.LDKEventChannelPendingGetCounterpartyNodeId(ptr); + byte[] counterparty_node_id_conv = InternalUtils.DecodeUint8Array(counterparty_node_id); this.counterparty_node_id = counterparty_node_id_conv; - long funding_txo = bindings.LDKEvent_ChannelPending_get_funding_txo(ptr); + long funding_txo = Bindings.LDKEventChannelPendingGetFundingTxo(ptr); org.ldk.structs.OutPoint funding_txo_hu_conv = null; if (funding_txo < 0 || funding_txo > 4096) { funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, funding_txo); } if (funding_txo_hu_conv != null) { funding_txo_hu_conv.ptrs_to.AddLast(this); }; this.funding_txo = funding_txo_hu_conv; @@ -791,16 +791,16 @@ public class Event_ChannelReady : Event { */ public ChannelTypeFeatures channel_type; internal Event_ChannelReady(long ptr) : base(null, ptr) { - long channel_id = bindings.LDKEvent_ChannelReady_get_channel_id(ptr); - byte[] channel_id_conv = InternalUtils.decodeUint8Array(channel_id); + long channel_id = Bindings.LDKEventChannelReadyGetChannelId(ptr); + byte[] channel_id_conv = InternalUtils.DecodeUint8Array(channel_id); this.channel_id = channel_id_conv; - long user_channel_id = bindings.LDKEvent_ChannelReady_get_user_channel_id(ptr); + long user_channel_id = Bindings.LDKEventChannelReadyGetUserChannelId(ptr); org.ldk.util.UInt128 user_channel_id_conv = new org.ldk.util.UInt128(user_channel_id); this.user_channel_id = user_channel_id_conv; - long counterparty_node_id = bindings.LDKEvent_ChannelReady_get_counterparty_node_id(ptr); - byte[] counterparty_node_id_conv = InternalUtils.decodeUint8Array(counterparty_node_id); + long counterparty_node_id = Bindings.LDKEventChannelReadyGetCounterpartyNodeId(ptr); + byte[] counterparty_node_id_conv = InternalUtils.DecodeUint8Array(counterparty_node_id); this.counterparty_node_id = counterparty_node_id_conv; - long channel_type = bindings.LDKEvent_ChannelReady_get_channel_type(ptr); + long channel_type = Bindings.LDKEventChannelReadyGetChannelType(ptr); org.ldk.structs.ChannelTypeFeatures channel_type_hu_conv = null; if (channel_type < 0 || channel_type > 4096) { channel_type_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, channel_type); } if (channel_type_hu_conv != null) { channel_type_hu_conv.ptrs_to.AddLast(this); }; this.channel_type = channel_type_hu_conv; @@ -853,24 +853,24 @@ public class Event_ChannelClosed : Event { */ public OutPoint channel_funding_txo; internal Event_ChannelClosed(long ptr) : base(null, ptr) { - long channel_id = bindings.LDKEvent_ChannelClosed_get_channel_id(ptr); - byte[] channel_id_conv = InternalUtils.decodeUint8Array(channel_id); + long channel_id = Bindings.LDKEventChannelClosedGetChannelId(ptr); + byte[] channel_id_conv = InternalUtils.DecodeUint8Array(channel_id); this.channel_id = channel_id_conv; - long user_channel_id = bindings.LDKEvent_ChannelClosed_get_user_channel_id(ptr); + long user_channel_id = Bindings.LDKEventChannelClosedGetUserChannelId(ptr); org.ldk.util.UInt128 user_channel_id_conv = new org.ldk.util.UInt128(user_channel_id); this.user_channel_id = user_channel_id_conv; - long reason = bindings.LDKEvent_ChannelClosed_get_reason(ptr); + long reason = Bindings.LDKEventChannelClosedGetReason(ptr); org.ldk.structs.ClosureReason reason_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(reason); if (reason_hu_conv != null) { reason_hu_conv.ptrs_to.AddLast(this); }; this.reason = reason_hu_conv; - long counterparty_node_id = bindings.LDKEvent_ChannelClosed_get_counterparty_node_id(ptr); - byte[] counterparty_node_id_conv = InternalUtils.decodeUint8Array(counterparty_node_id); + long counterparty_node_id = Bindings.LDKEventChannelClosedGetCounterpartyNodeId(ptr); + byte[] counterparty_node_id_conv = InternalUtils.DecodeUint8Array(counterparty_node_id); this.counterparty_node_id = counterparty_node_id_conv; - long channel_capacity_sats = bindings.LDKEvent_ChannelClosed_get_channel_capacity_sats(ptr); + long channel_capacity_sats = Bindings.LDKEventChannelClosedGetChannelCapacitySats(ptr); org.ldk.structs.Option_u64Z channel_capacity_sats_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(channel_capacity_sats); if (channel_capacity_sats_hu_conv != null) { channel_capacity_sats_hu_conv.ptrs_to.AddLast(this); }; this.channel_capacity_sats = channel_capacity_sats_hu_conv; - long channel_funding_txo = bindings.LDKEvent_ChannelClosed_get_channel_funding_txo(ptr); + long channel_funding_txo = Bindings.LDKEventChannelClosedGetChannelFundingTxo(ptr); org.ldk.structs.OutPoint channel_funding_txo_hu_conv = null; if (channel_funding_txo < 0 || channel_funding_txo > 4096) { channel_funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, channel_funding_txo); } if (channel_funding_txo_hu_conv != null) { channel_funding_txo_hu_conv.ptrs_to.AddLast(this); }; this.channel_funding_txo = channel_funding_txo_hu_conv; @@ -887,11 +887,11 @@ public class Event_DiscardFunding : Event { */ public byte[] transaction; internal Event_DiscardFunding(long ptr) : base(null, ptr) { - long channel_id = bindings.LDKEvent_DiscardFunding_get_channel_id(ptr); - byte[] channel_id_conv = InternalUtils.decodeUint8Array(channel_id); + long channel_id = Bindings.LDKEventDiscardFundingGetChannelId(ptr); + byte[] channel_id_conv = InternalUtils.DecodeUint8Array(channel_id); this.channel_id = channel_id_conv; - long transaction = bindings.LDKEvent_DiscardFunding_get_transaction(ptr); - byte[] transaction_conv = InternalUtils.decodeUint8Array(transaction); + long transaction = Bindings.LDKEventDiscardFundingGetTransaction(ptr); + byte[] transaction_conv = InternalUtils.DecodeUint8Array(transaction); this.transaction = transaction_conv; } } @@ -947,15 +947,15 @@ public class Event_OpenChannelRequest : Event { */ public ChannelTypeFeatures channel_type; internal Event_OpenChannelRequest(long ptr) : base(null, ptr) { - long temporary_channel_id = bindings.LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr); - byte[] temporary_channel_id_conv = InternalUtils.decodeUint8Array(temporary_channel_id); + long temporary_channel_id = Bindings.LDKEventOpenChannelRequestGetTemporaryChannelId(ptr); + byte[] temporary_channel_id_conv = InternalUtils.DecodeUint8Array(temporary_channel_id); this.temporary_channel_id = temporary_channel_id_conv; - long counterparty_node_id = bindings.LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr); - byte[] counterparty_node_id_conv = InternalUtils.decodeUint8Array(counterparty_node_id); + long counterparty_node_id = Bindings.LDKEventOpenChannelRequestGetCounterpartyNodeId(ptr); + byte[] counterparty_node_id_conv = InternalUtils.DecodeUint8Array(counterparty_node_id); this.counterparty_node_id = counterparty_node_id_conv; - this.funding_satoshis = bindings.LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr); - this.push_msat = bindings.LDKEvent_OpenChannelRequest_get_push_msat(ptr); - long channel_type = bindings.LDKEvent_OpenChannelRequest_get_channel_type(ptr); + this.funding_satoshis = Bindings.LDKEventOpenChannelRequestGetFundingSatoshis(ptr); + this.push_msat = Bindings.LDKEventOpenChannelRequestGetPushMsat(ptr); + long channel_type = Bindings.LDKEventOpenChannelRequestGetChannelType(ptr); org.ldk.structs.ChannelTypeFeatures channel_type_hu_conv = null; if (channel_type < 0 || channel_type > 4096) { channel_type_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, channel_type); } if (channel_type_hu_conv != null) { channel_type_hu_conv.ptrs_to.AddLast(this); }; this.channel_type = channel_type_hu_conv; @@ -972,10 +972,10 @@ public class Event_HTLCHandlingFailed : Event { */ public HTLCDestination failed_next_destination; internal Event_HTLCHandlingFailed(long ptr) : base(null, ptr) { - long prev_channel_id = bindings.LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr); - byte[] prev_channel_id_conv = InternalUtils.decodeUint8Array(prev_channel_id); + long prev_channel_id = Bindings.LDKEventHTLCHandlingFailedGetPrevChannelId(ptr); + byte[] prev_channel_id_conv = InternalUtils.DecodeUint8Array(prev_channel_id); this.prev_channel_id = prev_channel_id_conv; - long failed_next_destination = bindings.LDKEvent_HTLCHandlingFailed_get_failed_next_destination(ptr); + long failed_next_destination = Bindings.LDKEventHTLCHandlingFailedGetFailedNextDestination(ptr); org.ldk.structs.HTLCDestination failed_next_destination_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(failed_next_destination); if (failed_next_destination_hu_conv != null) { failed_next_destination_hu_conv.ptrs_to.AddLast(this); }; this.failed_next_destination = failed_next_destination_hu_conv; @@ -985,14 +985,14 @@ internal Event_HTLCHandlingFailed(long ptr) : base(null, ptr) { public class Event_BumpTransaction : Event { public BumpTransactionEvent bump_transaction; internal Event_BumpTransaction(long ptr) : base(null, ptr) { - long bump_transaction = bindings.LDKEvent_BumpTransaction_get_bump_transaction(ptr); + long bump_transaction = Bindings.LDKEventBumpTransactionGetBumpTransaction(ptr); org.ldk.structs.BumpTransactionEvent bump_transaction_hu_conv = org.ldk.structs.BumpTransactionEvent.constr_from_ptr(bump_transaction); if (bump_transaction_hu_conv != null) { bump_transaction_hu_conv.ptrs_to.AddLast(this); }; this.bump_transaction = bump_transaction_hu_conv; } } internal long clone_ptr() { - long ret = bindings.Event_clone_ptr(this.ptr); + long ret = Bindings.EventClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -1001,7 +1001,7 @@ internal long clone_ptr() { * Creates a copy of the Event */ public Event clone() { - long ret = bindings.Event_clone(this.ptr); + long ret = Bindings.EventClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Event ret_hu_conv = org.ldk.structs.Event.constr_from_ptr(ret); @@ -1013,7 +1013,7 @@ public Event clone() { * Utility method to constructs a new FundingGenerationReady-variant Event */ public static Event funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, org.ldk.util.UInt128 user_channel_id) { - long ret = bindings.Event_funding_generation_ready(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), channel_value_satoshis, InternalUtils.encodeUint8Array(output_script), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes())); + long ret = Bindings.EventFundingGenerationReady(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), channel_value_satoshis, InternalUtils.EncodeUint8Array(output_script), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes())); GC.KeepAlive(temporary_channel_id); GC.KeepAlive(counterparty_node_id); GC.KeepAlive(channel_value_satoshis); @@ -1029,7 +1029,7 @@ public static Event funding_generation_ready(byte[] temporary_channel_id, byte[] * Utility method to constructs a new PaymentClaimable-variant Event */ public static Event payment_claimable(byte[] receiver_node_id, byte[] payment_hash, org.ldk.structs.RecipientOnionFields onion_fields, long amount_msat, long counterparty_skimmed_fee_msat, org.ldk.structs.PaymentPurpose purpose, org.ldk.structs.Option_ThirtyTwoBytesZ via_channel_id, org.ldk.structs.Option_U128Z via_user_channel_id, org.ldk.structs.Option_u32Z claim_deadline) { - long ret = bindings.Event_payment_claimable(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(receiver_node_id, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), onion_fields == null ? 0 : onion_fields.ptr, amount_msat, counterparty_skimmed_fee_msat, purpose.ptr, via_channel_id.ptr, via_user_channel_id.ptr, claim_deadline.ptr); + long ret = Bindings.EventPaymentClaimable(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(receiver_node_id, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), onion_fields == null ? 0 : onion_fields.ptr, amount_msat, counterparty_skimmed_fee_msat, purpose.ptr, via_channel_id.ptr, via_user_channel_id.ptr, claim_deadline.ptr); GC.KeepAlive(receiver_node_id); GC.KeepAlive(payment_hash); GC.KeepAlive(onion_fields); @@ -1054,7 +1054,7 @@ public static Event payment_claimable(byte[] receiver_node_id, byte[] payment_ha * Utility method to constructs a new PaymentClaimed-variant Event */ public static Event payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, org.ldk.structs.PaymentPurpose purpose, ClaimedHTLC[] htlcs, org.ldk.structs.Option_u64Z sender_intended_total_msat) { - long ret = bindings.Event_payment_claimed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(receiver_node_id, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), amount_msat, purpose.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(htlcs, htlcs_conv_13 => htlcs_conv_13 == null ? 0 : htlcs_conv_13.ptr)), sender_intended_total_msat.ptr); + long ret = Bindings.EventPaymentClaimed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(receiver_node_id, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), amount_msat, purpose.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(htlcs, htlcs_conv_13 => htlcs_conv_13 == null ? 0 : htlcs_conv_13.ptr)), sender_intended_total_msat.ptr); GC.KeepAlive(receiver_node_id); GC.KeepAlive(payment_hash); GC.KeepAlive(amount_msat); @@ -1074,7 +1074,7 @@ public static Event payment_claimed(byte[] receiver_node_id, byte[] payment_hash * Utility method to constructs a new ConnectionNeeded-variant Event */ public static Event connection_needed(byte[] node_id, SocketAddress[] addresses) { - long ret = bindings.Event_connection_needed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(addresses, addresses_conv_15 => addresses_conv_15.ptr))); + long ret = Bindings.EventConnectionNeeded(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(addresses, addresses_conv_15 => addresses_conv_15.ptr))); GC.KeepAlive(node_id); GC.KeepAlive(addresses); if (ret >= 0 && ret <= 4096) { return null; } @@ -1088,7 +1088,7 @@ public static Event connection_needed(byte[] node_id, SocketAddress[] addresses) * Utility method to constructs a new InvoiceRequestFailed-variant Event */ public static Event invoice_request_failed(byte[] payment_id) { - long ret = bindings.Event_invoice_request_failed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + long ret = Bindings.EventInvoiceRequestFailed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(payment_id); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Event ret_hu_conv = org.ldk.structs.Event.constr_from_ptr(ret); @@ -1100,7 +1100,7 @@ public static Event invoice_request_failed(byte[] payment_id) { * Utility method to constructs a new PaymentSent-variant Event */ public static Event payment_sent(org.ldk.structs.Option_ThirtyTwoBytesZ payment_id, byte[] payment_preimage, byte[] payment_hash, org.ldk.structs.Option_u64Z fee_paid_msat) { - long ret = bindings.Event_payment_sent(payment_id.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), fee_paid_msat.ptr); + long ret = Bindings.EventPaymentSent(payment_id.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), fee_paid_msat.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_preimage); GC.KeepAlive(payment_hash); @@ -1117,7 +1117,7 @@ public static Event payment_sent(org.ldk.structs.Option_ThirtyTwoBytesZ payment_ * Utility method to constructs a new PaymentFailed-variant Event */ public static Event payment_failed(byte[] payment_id, byte[] payment_hash, org.ldk.structs.Option_PaymentFailureReasonZ reason) { - long ret = bindings.Event_payment_failed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), reason.ptr); + long ret = Bindings.EventPaymentFailed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), reason.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(reason); @@ -1132,7 +1132,7 @@ public static Event payment_failed(byte[] payment_id, byte[] payment_hash, org.l * Utility method to constructs a new PaymentPathSuccessful-variant Event */ public static Event payment_path_successful(byte[] payment_id, org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash, org.ldk.structs.Path path) { - long ret = bindings.Event_payment_path_successful(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), payment_hash.ptr, path == null ? 0 : path.ptr); + long ret = Bindings.EventPaymentPathSuccessful(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), payment_hash.ptr, path == null ? 0 : path.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(path); @@ -1148,7 +1148,7 @@ public static Event payment_path_successful(byte[] payment_id, org.ldk.structs.O * Utility method to constructs a new PaymentPathFailed-variant Event */ public static Event payment_path_failed(org.ldk.structs.Option_ThirtyTwoBytesZ payment_id, byte[] payment_hash, bool payment_failed_permanently, org.ldk.structs.PathFailure failure, org.ldk.structs.Path path, org.ldk.structs.Option_u64Z short_channel_id) { - long ret = bindings.Event_payment_path_failed(payment_id.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), payment_failed_permanently, failure.ptr, path == null ? 0 : path.ptr, short_channel_id.ptr); + long ret = Bindings.EventPaymentPathFailed(payment_id.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), payment_failed_permanently, failure.ptr, path == null ? 0 : path.ptr, short_channel_id.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(payment_failed_permanently); @@ -1169,7 +1169,7 @@ public static Event payment_path_failed(org.ldk.structs.Option_ThirtyTwoBytesZ p * Utility method to constructs a new ProbeSuccessful-variant Event */ public static Event probe_successful(byte[] payment_id, byte[] payment_hash, org.ldk.structs.Path path) { - long ret = bindings.Event_probe_successful(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), path == null ? 0 : path.ptr); + long ret = Bindings.EventProbeSuccessful(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), path == null ? 0 : path.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(path); @@ -1184,7 +1184,7 @@ public static Event probe_successful(byte[] payment_id, byte[] payment_hash, org * Utility method to constructs a new ProbeFailed-variant Event */ public static Event probe_failed(byte[] payment_id, byte[] payment_hash, org.ldk.structs.Path path, org.ldk.structs.Option_u64Z short_channel_id) { - long ret = bindings.Event_probe_failed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), path == null ? 0 : path.ptr, short_channel_id.ptr); + long ret = Bindings.EventProbeFailed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), path == null ? 0 : path.ptr, short_channel_id.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(path); @@ -1201,7 +1201,7 @@ public static Event probe_failed(byte[] payment_id, byte[] payment_hash, org.ldk * Utility method to constructs a new PendingHTLCsForwardable-variant Event */ public static Event pending_htlcs_forwardable(long time_forwardable) { - long ret = bindings.Event_pending_htlcs_forwardable(time_forwardable); + long ret = Bindings.EventPendingHtlcsForwardable(time_forwardable); GC.KeepAlive(time_forwardable); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Event ret_hu_conv = org.ldk.structs.Event.constr_from_ptr(ret); @@ -1213,7 +1213,7 @@ public static Event pending_htlcs_forwardable(long time_forwardable) { * Utility method to constructs a new HTLCIntercepted-variant Event */ public static Event htlcintercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat) { - long ret = bindings.Event_htlcintercepted(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(intercept_id, 32)), requested_next_hop_scid, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), inbound_amount_msat, expected_outbound_amount_msat); + long ret = Bindings.EventHtlcintercepted(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(intercept_id, 32)), requested_next_hop_scid, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), inbound_amount_msat, expected_outbound_amount_msat); GC.KeepAlive(intercept_id); GC.KeepAlive(requested_next_hop_scid); GC.KeepAlive(payment_hash); @@ -1229,7 +1229,7 @@ public static Event htlcintercepted(byte[] intercept_id, long requested_next_hop * Utility method to constructs a new SpendableOutputs-variant Event */ public static Event spendable_outputs(SpendableOutputDescriptor[] outputs, org.ldk.structs.Option_ThirtyTwoBytesZ channel_id) { - long ret = bindings.Event_spendable_outputs(InternalUtils.encodeUint64Array(InternalUtils.mapArray(outputs, outputs_conv_27 => outputs_conv_27.ptr)), channel_id.ptr); + long ret = Bindings.EventSpendableOutputs(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outputs, outputs_conv_27 => outputs_conv_27.ptr)), channel_id.ptr); GC.KeepAlive(outputs); GC.KeepAlive(channel_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -1244,7 +1244,7 @@ public static Event spendable_outputs(SpendableOutputDescriptor[] outputs, org.l * Utility method to constructs a new PaymentForwarded-variant Event */ public static Event payment_forwarded(org.ldk.structs.Option_ThirtyTwoBytesZ prev_channel_id, org.ldk.structs.Option_ThirtyTwoBytesZ next_channel_id, org.ldk.structs.Option_u64Z fee_earned_msat, bool claim_from_onchain_tx, org.ldk.structs.Option_u64Z outbound_amount_forwarded_msat) { - long ret = bindings.Event_payment_forwarded(prev_channel_id.ptr, next_channel_id.ptr, fee_earned_msat.ptr, claim_from_onchain_tx, outbound_amount_forwarded_msat.ptr); + long ret = Bindings.EventPaymentForwarded(prev_channel_id.ptr, next_channel_id.ptr, fee_earned_msat.ptr, claim_from_onchain_tx, outbound_amount_forwarded_msat.ptr); GC.KeepAlive(prev_channel_id); GC.KeepAlive(next_channel_id); GC.KeepAlive(fee_earned_msat); @@ -1264,7 +1264,7 @@ public static Event payment_forwarded(org.ldk.structs.Option_ThirtyTwoBytesZ pre * Utility method to constructs a new ChannelPending-variant Event */ public static Event channel_pending(byte[] channel_id, org.ldk.util.UInt128 user_channel_id, org.ldk.structs.Option_ThirtyTwoBytesZ former_temporary_channel_id, byte[] counterparty_node_id, org.ldk.structs.OutPoint funding_txo) { - long ret = bindings.Event_channel_pending(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes()), former_temporary_channel_id.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), funding_txo == null ? 0 : funding_txo.ptr); + long ret = Bindings.EventChannelPending(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes()), former_temporary_channel_id.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), funding_txo == null ? 0 : funding_txo.ptr); GC.KeepAlive(channel_id); GC.KeepAlive(user_channel_id); GC.KeepAlive(former_temporary_channel_id); @@ -1282,7 +1282,7 @@ public static Event channel_pending(byte[] channel_id, org.ldk.util.UInt128 user * Utility method to constructs a new ChannelReady-variant Event */ public static Event channel_ready(byte[] channel_id, org.ldk.util.UInt128 user_channel_id, byte[] counterparty_node_id, org.ldk.structs.ChannelTypeFeatures channel_type) { - long ret = bindings.Event_channel_ready(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes()), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), channel_type == null ? 0 : channel_type.ptr); + long ret = Bindings.EventChannelReady(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes()), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), channel_type == null ? 0 : channel_type.ptr); GC.KeepAlive(channel_id); GC.KeepAlive(user_channel_id); GC.KeepAlive(counterparty_node_id); @@ -1298,7 +1298,7 @@ public static Event channel_ready(byte[] channel_id, org.ldk.util.UInt128 user_c * Utility method to constructs a new ChannelClosed-variant Event */ public static Event channel_closed(byte[] channel_id, org.ldk.util.UInt128 user_channel_id, org.ldk.structs.ClosureReason reason, byte[] counterparty_node_id, org.ldk.structs.Option_u64Z channel_capacity_sats, org.ldk.structs.OutPoint channel_funding_txo) { - long ret = bindings.Event_channel_closed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(user_channel_id.getLEBytes()), reason.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), channel_capacity_sats.ptr, channel_funding_txo == null ? 0 : channel_funding_txo.ptr); + long ret = Bindings.EventChannelClosed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes()), reason.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), channel_capacity_sats.ptr, channel_funding_txo == null ? 0 : channel_funding_txo.ptr); GC.KeepAlive(channel_id); GC.KeepAlive(user_channel_id); GC.KeepAlive(reason); @@ -1318,7 +1318,7 @@ public static Event channel_closed(byte[] channel_id, org.ldk.util.UInt128 user_ * Utility method to constructs a new DiscardFunding-variant Event */ public static Event discard_funding(byte[] channel_id, byte[] transaction) { - long ret = bindings.Event_discard_funding(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32)), InternalUtils.encodeUint8Array(transaction)); + long ret = Bindings.EventDiscardFunding(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32)), InternalUtils.EncodeUint8Array(transaction)); GC.KeepAlive(channel_id); GC.KeepAlive(transaction); if (ret >= 0 && ret <= 4096) { return null; } @@ -1331,7 +1331,7 @@ public static Event discard_funding(byte[] channel_id, byte[] transaction) { * Utility method to constructs a new OpenChannelRequest-variant Event */ public static Event open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, org.ldk.structs.ChannelTypeFeatures channel_type) { - long ret = bindings.Event_open_channel_request(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_node_id, 33)), funding_satoshis, push_msat, channel_type == null ? 0 : channel_type.ptr); + long ret = Bindings.EventOpenChannelRequest(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_node_id, 33)), funding_satoshis, push_msat, channel_type == null ? 0 : channel_type.ptr); GC.KeepAlive(temporary_channel_id); GC.KeepAlive(counterparty_node_id); GC.KeepAlive(funding_satoshis); @@ -1348,7 +1348,7 @@ public static Event open_channel_request(byte[] temporary_channel_id, byte[] cou * Utility method to constructs a new HTLCHandlingFailed-variant Event */ public static Event htlchandling_failed(byte[] prev_channel_id, org.ldk.structs.HTLCDestination failed_next_destination) { - long ret = bindings.Event_htlchandling_failed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(prev_channel_id, 32)), failed_next_destination.ptr); + long ret = Bindings.EventHtlchandlingFailed(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(prev_channel_id, 32)), failed_next_destination.ptr); GC.KeepAlive(prev_channel_id); GC.KeepAlive(failed_next_destination); if (ret >= 0 && ret <= 4096) { return null; } @@ -1362,7 +1362,7 @@ public static Event htlchandling_failed(byte[] prev_channel_id, org.ldk.structs. * Utility method to constructs a new BumpTransaction-variant Event */ public static Event bump_transaction(org.ldk.structs.BumpTransactionEvent a) { - long ret = bindings.Event_bump_transaction(a.ptr); + long ret = Bindings.EventBumpTransaction(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Event ret_hu_conv = org.ldk.structs.Event.constr_from_ptr(ret); @@ -1376,7 +1376,7 @@ public static Event bump_transaction(org.ldk.structs.BumpTransactionEvent a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Event b) { - bool ret = bindings.Event_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.EventEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -1390,10 +1390,10 @@ public override bool Equals(object o) { * Serialize the Event object into a byte array which can be read by Event_read */ public byte[] write() { - long ret = bindings.Event_write(this.ptr); + long ret = Bindings.EventWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/EventHandler.cs b/c_sharp/src/org/ldk/structs/EventHandler.cs index 718935df0..2ac54ec62 100644 --- a/c_sharp/src/org/ldk/structs/EventHandler.cs +++ b/c_sharp/src/org/ldk/structs/EventHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of EventHandler */ -public interface EventHandlerInterface { +public interface IEventHandler { /**Handles the given [`Event`]. * * See [`EventsProvider`] for details that must be considered when implementing this method. @@ -25,20 +25,20 @@ public interface EventHandlerInterface { * core::future::Future, H: Fn(Event) -> F`. */ public class EventHandler : CommonBase { - internal bindings.LDKEventHandler bindings_instance; + internal Bindings.LDKEventHandler bindings_instance; internal long instance_idx; internal EventHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~EventHandler() { - if (ptr != 0) { bindings.EventHandler_free(ptr); } + if (ptr != 0) { Bindings.EventHandlerFree(ptr); } } private class LDKEventHandlerHolder { internal EventHandler held; } - private class LDKEventHandlerImpl : bindings.LDKEventHandler { - internal LDKEventHandlerImpl(EventHandlerInterface arg, LDKEventHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private EventHandlerInterface arg; + private class LDKEventHandlerImpl : Bindings.LDKEventHandler { + internal LDKEventHandlerImpl(IEventHandler arg, LDKEventHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IEventHandler arg; private LDKEventHandlerHolder impl_holder; - public void handle_event(long _event) { + public void HandleEvent(long _event) { org.ldk.structs.Event _event_hu_conv = org.ldk.structs.Event.constr_from_ptr(_event); if (_event_hu_conv != null) { _event_hu_conv.ptrs_to.AddLast(this); }; arg.handle_event(_event_hu_conv); @@ -47,10 +47,10 @@ public void handle_event(long _event) { } /** Creates a new instance of EventHandler from a given implementation */ - public static EventHandler new_impl(EventHandlerInterface arg) { + public static EventHandler new_impl(IEventHandler arg) { LDKEventHandlerHolder impl_holder = new LDKEventHandlerHolder(); LDKEventHandlerImpl impl = new LDKEventHandlerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKEventHandler_new(impl); + long[] ptr_idx = Bindings.LDKEventHandlerNew(impl); impl_holder.held = new EventHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -64,7 +64,7 @@ public static EventHandler new_impl(EventHandlerInterface arg) { * See [`EventsProvider`] for details that must be considered when implementing this method. */ public void handle_event(org.ldk.structs.Event _event) { - bindings.EventHandler_handle_event(this.ptr, _event.ptr); + Bindings.EventHandlerHandleEvent(this.ptr, _event.ptr); GC.KeepAlive(this); GC.KeepAlive(_event); if (this != null) { this.ptrs_to.AddLast(_event); }; diff --git a/c_sharp/src/org/ldk/structs/EventsProvider.cs b/c_sharp/src/org/ldk/structs/EventsProvider.cs index cc42c27d4..4bd92b4aa 100644 --- a/c_sharp/src/org/ldk/structs/EventsProvider.cs +++ b/c_sharp/src/org/ldk/structs/EventsProvider.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of EventsProvider */ -public interface EventsProviderInterface { +public interface IEventsProvider { /**Processes any events generated since the last call using the given event handler. * * See the trait-level documentation for requirements. @@ -56,20 +56,20 @@ public interface EventsProviderInterface { * [`ChainMonitor::process_pending_events_async`]: crate::chain::chainmonitor::ChainMonitor::process_pending_events_async */ public class EventsProvider : CommonBase { - internal bindings.LDKEventsProvider bindings_instance; + internal Bindings.LDKEventsProvider bindings_instance; internal long instance_idx; internal EventsProvider(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~EventsProvider() { - if (ptr != 0) { bindings.EventsProvider_free(ptr); } + if (ptr != 0) { Bindings.EventsProviderFree(ptr); } } private class LDKEventsProviderHolder { internal EventsProvider held; } - private class LDKEventsProviderImpl : bindings.LDKEventsProvider { - internal LDKEventsProviderImpl(EventsProviderInterface arg, LDKEventsProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private EventsProviderInterface arg; + private class LDKEventsProviderImpl : Bindings.LDKEventsProvider { + internal LDKEventsProviderImpl(IEventsProvider arg, LDKEventsProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IEventsProvider arg; private LDKEventsProviderHolder impl_holder; - public void process_pending_events(long _handler) { + public void ProcessPendingEvents(long _handler) { EventHandler ret_hu_conv = new EventHandler(null, _handler); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; arg.process_pending_events(ret_hu_conv); @@ -78,10 +78,10 @@ public void process_pending_events(long _handler) { } /** Creates a new instance of EventsProvider from a given implementation */ - public static EventsProvider new_impl(EventsProviderInterface arg) { + public static EventsProvider new_impl(IEventsProvider arg) { LDKEventsProviderHolder impl_holder = new LDKEventsProviderHolder(); LDKEventsProviderImpl impl = new LDKEventsProviderImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKEventsProvider_new(impl); + long[] ptr_idx = Bindings.LDKEventsProviderNew(impl); impl_holder.held = new EventsProvider(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -95,7 +95,7 @@ public static EventsProvider new_impl(EventsProviderInterface arg) { * See the trait-level documentation for requirements. */ public void process_pending_events(org.ldk.structs.EventHandler handler) { - bindings.EventsProvider_process_pending_events(this.ptr, handler.ptr); + Bindings.EventsProviderProcessPendingEvents(this.ptr, handler.ptr); GC.KeepAlive(this); GC.KeepAlive(handler); if (this != null) { this.ptrs_to.AddLast(handler); }; diff --git a/c_sharp/src/org/ldk/structs/ExpandedKey.cs b/c_sharp/src/org/ldk/structs/ExpandedKey.cs index 1d6c21c7b..ab7115d03 100644 --- a/c_sharp/src/org/ldk/structs/ExpandedKey.cs +++ b/c_sharp/src/org/ldk/structs/ExpandedKey.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class ExpandedKey : CommonBase { internal ExpandedKey(object _dummy, long ptr) : base(ptr) { } ~ExpandedKey() { - if (ptr != 0) { bindings.ExpandedKey_free(ptr); } + if (ptr != 0) { Bindings.ExpandedKeyFree(ptr); } } /** @@ -24,7 +24,7 @@ internal ExpandedKey(object _dummy, long ptr) : base(ptr) { } * It is recommended to cache this value and not regenerate it for each new inbound payment. */ public static ExpandedKey of(byte[] key_material) { - long ret = bindings.ExpandedKey_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(key_material, 32))); + long ret = Bindings.ExpandedKeyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(key_material, 32))); GC.KeepAlive(key_material); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ExpandedKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpandedKey(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ExpiryTime.cs b/c_sharp/src/org/ldk/structs/ExpiryTime.cs index 66aaf8dca..fd71bd81d 100644 --- a/c_sharp/src/org/ldk/structs/ExpiryTime.cs +++ b/c_sharp/src/org/ldk/structs/ExpiryTime.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class ExpiryTime : CommonBase { internal ExpiryTime(object _dummy, long ptr) : base(ptr) { } ~ExpiryTime() { - if (ptr != 0) { bindings.ExpiryTime_free(ptr); } + if (ptr != 0) { Bindings.ExpiryTimeFree(ptr); } } internal long clone_ptr() { - long ret = bindings.ExpiryTime_clone_ptr(this.ptr); + long ret = Bindings.ExpiryTimeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -26,7 +26,7 @@ internal long clone_ptr() { * Creates a copy of the ExpiryTime */ public ExpiryTime clone() { - long ret = bindings.ExpiryTime_clone(this.ptr); + long ret = Bindings.ExpiryTimeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ExpiryTime ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpiryTime(null, ret); } @@ -38,7 +38,7 @@ public ExpiryTime clone() { * Generates a non-cryptographic 64-bit hash of the ExpiryTime. */ public long hash() { - long ret = bindings.ExpiryTime_hash(this.ptr); + long ret = Bindings.ExpiryTimeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ExpiryTime b) { - bool ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ExpiryTimeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -67,7 +67,7 @@ public override bool Equals(object o) { * Construct an `ExpiryTime` from seconds. */ public static ExpiryTime from_seconds(long seconds) { - long ret = bindings.ExpiryTime_from_seconds(seconds); + long ret = Bindings.ExpiryTimeFromSeconds(seconds); GC.KeepAlive(seconds); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ExpiryTime ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpiryTime(null, ret); } @@ -79,7 +79,7 @@ public static ExpiryTime from_seconds(long seconds) { * Construct an `ExpiryTime` from a [`Duration`], dropping the sub-second part. */ public static ExpiryTime from_duration(long duration) { - long ret = bindings.ExpiryTime_from_duration(duration); + long ret = Bindings.ExpiryTimeFromDuration(duration); GC.KeepAlive(duration); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ExpiryTime ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpiryTime(null, ret); } @@ -91,7 +91,7 @@ public static ExpiryTime from_duration(long duration) { * Returns the expiry time in seconds */ public long as_seconds() { - long ret = bindings.ExpiryTime_as_seconds(this.ptr); + long ret = Bindings.ExpiryTimeAsSeconds(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ public long as_seconds() { * Returns a reference to the underlying [`Duration`] (=expiry time) */ public long as_duration() { - long ret = bindings.ExpiryTime_as_duration(this.ptr); + long ret = Bindings.ExpiryTimeAsDuration(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/FailureCode.cs b/c_sharp/src/org/ldk/structs/FailureCode.cs index 9b5d88bb7..39c608c22 100644 --- a/c_sharp/src/org/ldk/structs/FailureCode.cs +++ b/c_sharp/src/org/ldk/structs/FailureCode.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class FailureCode : CommonBase { protected FailureCode(object _dummy, long ptr) : base(ptr) { } ~FailureCode() { - if (ptr != 0) { bindings.FailureCode_free(ptr); } + if (ptr != 0) { Bindings.FailureCodeFree(ptr); } } internal static FailureCode constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKFailureCode_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKFailureCodeTyFromPtr(ptr); switch (raw_ty) { case 0: return new FailureCode_TemporaryNodeFailure(ptr); case 1: return new FailureCode_RequiredNodeFeatureMissing(ptr); @@ -48,14 +48,14 @@ internal FailureCode_IncorrectOrUnknownPaymentDetails(long ptr) : base(null, ptr public class FailureCode_InvalidOnionPayload : FailureCode { public Option_C2Tuple_u64u16ZZ invalid_onion_payload; internal FailureCode_InvalidOnionPayload(long ptr) : base(null, ptr) { - long invalid_onion_payload = bindings.LDKFailureCode_InvalidOnionPayload_get_invalid_onion_payload(ptr); + long invalid_onion_payload = Bindings.LDKFailureCodeInvalidOnionPayloadGetInvalidOnionPayload(ptr); org.ldk.structs.Option_C2Tuple_u64u16ZZ invalid_onion_payload_hu_conv = org.ldk.structs.Option_C2Tuple_u64u16ZZ.constr_from_ptr(invalid_onion_payload); if (invalid_onion_payload_hu_conv != null) { invalid_onion_payload_hu_conv.ptrs_to.AddLast(this); }; this.invalid_onion_payload = invalid_onion_payload_hu_conv; } } internal long clone_ptr() { - long ret = bindings.FailureCode_clone_ptr(this.ptr); + long ret = Bindings.FailureCodeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -64,7 +64,7 @@ internal long clone_ptr() { * Creates a copy of the FailureCode */ public FailureCode clone() { - long ret = bindings.FailureCode_clone(this.ptr); + long ret = Bindings.FailureCodeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FailureCode ret_hu_conv = org.ldk.structs.FailureCode.constr_from_ptr(ret); @@ -76,7 +76,7 @@ public FailureCode clone() { * Utility method to constructs a new TemporaryNodeFailure-variant FailureCode */ public static FailureCode temporary_node_failure() { - long ret = bindings.FailureCode_temporary_node_failure(); + long ret = Bindings.FailureCodeTemporaryNodeFailure(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FailureCode ret_hu_conv = org.ldk.structs.FailureCode.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -87,7 +87,7 @@ public static FailureCode temporary_node_failure() { * Utility method to constructs a new RequiredNodeFeatureMissing-variant FailureCode */ public static FailureCode required_node_feature_missing() { - long ret = bindings.FailureCode_required_node_feature_missing(); + long ret = Bindings.FailureCodeRequiredNodeFeatureMissing(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FailureCode ret_hu_conv = org.ldk.structs.FailureCode.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -98,7 +98,7 @@ public static FailureCode required_node_feature_missing() { * Utility method to constructs a new IncorrectOrUnknownPaymentDetails-variant FailureCode */ public static FailureCode incorrect_or_unknown_payment_details() { - long ret = bindings.FailureCode_incorrect_or_unknown_payment_details(); + long ret = Bindings.FailureCodeIncorrectOrUnknownPaymentDetails(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FailureCode ret_hu_conv = org.ldk.structs.FailureCode.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -109,7 +109,7 @@ public static FailureCode incorrect_or_unknown_payment_details() { * Utility method to constructs a new InvalidOnionPayload-variant FailureCode */ public static FailureCode invalid_onion_payload(org.ldk.structs.Option_C2Tuple_u64u16ZZ a) { - long ret = bindings.FailureCode_invalid_onion_payload(a.ptr); + long ret = Bindings.FailureCodeInvalidOnionPayload(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FailureCode ret_hu_conv = org.ldk.structs.FailureCode.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Fallback.cs b/c_sharp/src/org/ldk/structs/Fallback.cs index 0fc469f39..02f4474df 100644 --- a/c_sharp/src/org/ldk/structs/Fallback.cs +++ b/c_sharp/src/org/ldk/structs/Fallback.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Fallback : CommonBase { protected Fallback(object _dummy, long ptr) : base(ptr) { } ~Fallback() { - if (ptr != 0) { bindings.Fallback_free(ptr); } + if (ptr != 0) { Bindings.FallbackFree(ptr); } } internal static Fallback constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKFallback_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKFallbackTyFromPtr(ptr); switch (raw_ty) { case 0: return new Fallback_SegWitProgram(ptr); case 1: return new Fallback_PubKeyHash(ptr); @@ -30,11 +30,11 @@ public class Fallback_SegWitProgram : Fallback { public WitnessVersion version; public byte[] program; internal Fallback_SegWitProgram(long ptr) : base(null, ptr) { - byte version = bindings.LDKFallback_SegWitProgram_get_version(ptr); + byte version = Bindings.LDKFallbackSegWitProgramGetVersion(ptr); WitnessVersion version_conv = new WitnessVersion(version); this.version = version_conv; - long program = bindings.LDKFallback_SegWitProgram_get_program(ptr); - byte[] program_conv = InternalUtils.decodeUint8Array(program); + long program = Bindings.LDKFallbackSegWitProgramGetProgram(ptr); + byte[] program_conv = InternalUtils.DecodeUint8Array(program); this.program = program_conv; } } @@ -42,8 +42,8 @@ internal Fallback_SegWitProgram(long ptr) : base(null, ptr) { public class Fallback_PubKeyHash : Fallback { public byte[] pub_key_hash; internal Fallback_PubKeyHash(long ptr) : base(null, ptr) { - long pub_key_hash = bindings.LDKFallback_PubKeyHash_get_pub_key_hash(ptr); - byte[] pub_key_hash_conv = InternalUtils.decodeUint8Array(pub_key_hash); + long pub_key_hash = Bindings.LDKFallbackPubKeyHashGetPubKeyHash(ptr); + byte[] pub_key_hash_conv = InternalUtils.DecodeUint8Array(pub_key_hash); this.pub_key_hash = pub_key_hash_conv; } } @@ -51,13 +51,13 @@ internal Fallback_PubKeyHash(long ptr) : base(null, ptr) { public class Fallback_ScriptHash : Fallback { public byte[] script_hash; internal Fallback_ScriptHash(long ptr) : base(null, ptr) { - long script_hash = bindings.LDKFallback_ScriptHash_get_script_hash(ptr); - byte[] script_hash_conv = InternalUtils.decodeUint8Array(script_hash); + long script_hash = Bindings.LDKFallbackScriptHashGetScriptHash(ptr); + byte[] script_hash_conv = InternalUtils.DecodeUint8Array(script_hash); this.script_hash = script_hash_conv; } } internal long clone_ptr() { - long ret = bindings.Fallback_clone_ptr(this.ptr); + long ret = Bindings.FallbackClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ internal long clone_ptr() { * Creates a copy of the Fallback */ public Fallback clone() { - long ret = bindings.Fallback_clone(this.ptr); + long ret = Bindings.FallbackClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret); @@ -78,7 +78,7 @@ public Fallback clone() { * Utility method to constructs a new SegWitProgram-variant Fallback */ public static Fallback seg_wit_program(org.ldk.util.WitnessVersion version, byte[] program) { - long ret = bindings.Fallback_seg_wit_program(version.getVal(), InternalUtils.encodeUint8Array(program)); + long ret = Bindings.FallbackSegWitProgram(version.getVal(), InternalUtils.EncodeUint8Array(program)); GC.KeepAlive(version); GC.KeepAlive(program); if (ret >= 0 && ret <= 4096) { return null; } @@ -91,7 +91,7 @@ public static Fallback seg_wit_program(org.ldk.util.WitnessVersion version, byte * Utility method to constructs a new PubKeyHash-variant Fallback */ public static Fallback pub_key_hash(byte[] a) { - long ret = bindings.Fallback_pub_key_hash(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 20))); + long ret = Bindings.FallbackPubKeyHash(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 20))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret); @@ -103,7 +103,7 @@ public static Fallback pub_key_hash(byte[] a) { * Utility method to constructs a new ScriptHash-variant Fallback */ public static Fallback script_hash(byte[] a) { - long ret = bindings.Fallback_script_hash(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 20))); + long ret = Bindings.FallbackScriptHash(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 20))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Fallback ret_hu_conv = org.ldk.structs.Fallback.constr_from_ptr(ret); @@ -115,7 +115,7 @@ public static Fallback script_hash(byte[] a) { * Generates a non-cryptographic 64-bit hash of the Fallback. */ public long hash() { - long ret = bindings.Fallback_hash(this.ptr); + long ret = Bindings.FallbackHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -128,7 +128,7 @@ public override int GetHashCode() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Fallback b) { - bool ret = bindings.Fallback_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.FallbackEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/FeeEstimator.cs b/c_sharp/src/org/ldk/structs/FeeEstimator.cs index 964cf0021..c44b8a1c8 100644 --- a/c_sharp/src/org/ldk/structs/FeeEstimator.cs +++ b/c_sharp/src/org/ldk/structs/FeeEstimator.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of FeeEstimator */ -public interface FeeEstimatorInterface { +public interface IFeeEstimator { /**Gets estimated satoshis of fee required per 1000 Weight-Units. * * LDK will wrap this method and ensure that the value returned is no smaller than 253 @@ -35,20 +35,20 @@ public interface FeeEstimatorInterface { * called from inside the library in response to chain events, P2P events, or timer events). */ public class FeeEstimator : CommonBase { - internal bindings.LDKFeeEstimator bindings_instance; + internal Bindings.LDKFeeEstimator bindings_instance; internal long instance_idx; internal FeeEstimator(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~FeeEstimator() { - if (ptr != 0) { bindings.FeeEstimator_free(ptr); } + if (ptr != 0) { Bindings.FeeEstimatorFree(ptr); } } private class LDKFeeEstimatorHolder { internal FeeEstimator held; } - private class LDKFeeEstimatorImpl : bindings.LDKFeeEstimator { - internal LDKFeeEstimatorImpl(FeeEstimatorInterface arg, LDKFeeEstimatorHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private FeeEstimatorInterface arg; + private class LDKFeeEstimatorImpl : Bindings.LDKFeeEstimator { + internal LDKFeeEstimatorImpl(IFeeEstimator arg, LDKFeeEstimatorHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IFeeEstimator arg; private LDKFeeEstimatorHolder impl_holder; - public int get_est_sat_per_1000_weight(ConfirmationTarget _confirmation_target) { + public int GetEstSatPer1000Weight(ConfirmationTarget _confirmation_target) { int ret = arg.get_est_sat_per_1000_weight(_confirmation_target); GC.KeepAlive(arg); return ret; @@ -56,10 +56,10 @@ public int get_est_sat_per_1000_weight(ConfirmationTarget _confirmation_target) } /** Creates a new instance of FeeEstimator from a given implementation */ - public static FeeEstimator new_impl(FeeEstimatorInterface arg) { + public static FeeEstimator new_impl(IFeeEstimator arg) { LDKFeeEstimatorHolder impl_holder = new LDKFeeEstimatorHolder(); LDKFeeEstimatorImpl impl = new LDKFeeEstimatorImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKFeeEstimator_new(impl); + long[] ptr_idx = Bindings.LDKFeeEstimatorNew(impl); impl_holder.held = new FeeEstimator(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -78,7 +78,7 @@ public static FeeEstimator new_impl(FeeEstimatorInterface arg) { * satoshis-per-kbyte / 4 */ public int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target) { - int ret = bindings.FeeEstimator_get_est_sat_per_1000_weight(this.ptr, confirmation_target); + int ret = Bindings.FeeEstimatorGetEstSatPer1000Weight(this.ptr, confirmation_target); GC.KeepAlive(this); GC.KeepAlive(confirmation_target); return ret; diff --git a/c_sharp/src/org/ldk/structs/FilesystemStore.cs b/c_sharp/src/org/ldk/structs/FilesystemStore.cs index d86841a5a..f336795ac 100644 --- a/c_sharp/src/org/ldk/structs/FilesystemStore.cs +++ b/c_sharp/src/org/ldk/structs/FilesystemStore.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class FilesystemStore : CommonBase { internal FilesystemStore(object _dummy, long ptr) : base(ptr) { } ~FilesystemStore() { - if (ptr != 0) { bindings.FilesystemStore_free(ptr); } + if (ptr != 0) { Bindings.FilesystemStoreFree(ptr); } } /** * Constructs a new [`FilesystemStore`]. */ public static FilesystemStore of(string data_dir) { - long ret = bindings.FilesystemStore_new(InternalUtils.encodeString(data_dir)); + long ret = Bindings.FilesystemStoreNew(InternalUtils.EncodeString(data_dir)); GC.KeepAlive(data_dir); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FilesystemStore ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FilesystemStore(null, ret); } @@ -31,10 +31,10 @@ public static FilesystemStore of(string data_dir) { * Returns the data directory. */ public string get_data_dir() { - long ret = bindings.FilesystemStore_get_data_dir(this.ptr); + long ret = Bindings.FilesystemStoreGetDataDir(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -43,7 +43,7 @@ public string get_data_dir() { * This copies the `inner` pointer in this_arg and thus the returned KVStore must be freed before this_arg is */ public KVStore as_KVStore() { - long ret = bindings.FilesystemStore_as_KVStore(this.ptr); + long ret = Bindings.FilesystemStoreAsKVStore(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } KVStore ret_hu_conv = new KVStore(null, ret); diff --git a/c_sharp/src/org/ldk/structs/Filter.cs b/c_sharp/src/org/ldk/structs/Filter.cs index 32fb570e1..d6a82bae3 100644 --- a/c_sharp/src/org/ldk/structs/Filter.cs +++ b/c_sharp/src/org/ldk/structs/Filter.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Filter */ -public interface FilterInterface { +public interface IFilter { /**Registers interest in a transaction with `txid` and having an output with `script_pubkey` as * a spending condition. */ @@ -47,26 +47,26 @@ public interface FilterInterface { * [BIP 158]: https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki */ public class Filter : CommonBase { - internal bindings.LDKFilter bindings_instance; + internal Bindings.LDKFilter bindings_instance; internal long instance_idx; internal Filter(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Filter() { - if (ptr != 0) { bindings.Filter_free(ptr); } + if (ptr != 0) { Bindings.FilterFree(ptr); } } private class LDKFilterHolder { internal Filter held; } - private class LDKFilterImpl : bindings.LDKFilter { - internal LDKFilterImpl(FilterInterface arg, LDKFilterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private FilterInterface arg; + private class LDKFilterImpl : Bindings.LDKFilter { + internal LDKFilterImpl(IFilter arg, LDKFilterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IFilter arg; private LDKFilterHolder impl_holder; - public void register_tx(long _txid, long _script_pubkey) { - byte[] _txid_conv = InternalUtils.decodeUint8Array(_txid); - byte[] _script_pubkey_conv = InternalUtils.decodeUint8Array(_script_pubkey); + public void RegisterTx(long _txid, long _script_pubkey) { + byte[] _txid_conv = InternalUtils.DecodeUint8Array(_txid); + byte[] _script_pubkey_conv = InternalUtils.DecodeUint8Array(_script_pubkey); arg.register_tx(_txid_conv, _script_pubkey_conv); GC.KeepAlive(arg); } - public void register_output(long _output) { + public void RegisterOutput(long _output) { org.ldk.structs.WatchedOutput _output_hu_conv = null; if (_output < 0 || _output > 4096) { _output_hu_conv = new org.ldk.structs.WatchedOutput(null, _output); } if (_output_hu_conv != null) { _output_hu_conv.ptrs_to.AddLast(this); }; arg.register_output(_output_hu_conv); @@ -75,10 +75,10 @@ public void register_output(long _output) { } /** Creates a new instance of Filter from a given implementation */ - public static Filter new_impl(FilterInterface arg) { + public static Filter new_impl(IFilter arg) { LDKFilterHolder impl_holder = new LDKFilterHolder(); LDKFilterImpl impl = new LDKFilterImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKFilter_new(impl); + long[] ptr_idx = Bindings.LDKFilterNew(impl); impl_holder.held = new Filter(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -91,7 +91,7 @@ public static Filter new_impl(FilterInterface arg) { * a spending condition. */ public void register_tx(byte[] txid, byte[] script_pubkey) { - bindings.Filter_register_tx(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(txid, 32)), InternalUtils.encodeUint8Array(script_pubkey)); + Bindings.FilterRegisterTx(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(txid, 32)), InternalUtils.EncodeUint8Array(script_pubkey)); GC.KeepAlive(this); GC.KeepAlive(txid); GC.KeepAlive(script_pubkey); @@ -106,7 +106,7 @@ public void register_tx(byte[] txid, byte[] script_pubkey) { * registered mid-processing. */ public void register_output(org.ldk.structs.WatchedOutput output) { - bindings.Filter_register_output(this.ptr, output == null ? 0 : output.ptr); + Bindings.FilterRegisterOutput(this.ptr, output == null ? 0 : output.ptr); GC.KeepAlive(this); GC.KeepAlive(output); if (this != null) { this.ptrs_to.AddLast(output); }; diff --git a/c_sharp/src/org/ldk/structs/FinalOnionHopData.cs b/c_sharp/src/org/ldk/structs/FinalOnionHopData.cs index dd0ae7b3b..97fedfbc2 100644 --- a/c_sharp/src/org/ldk/structs/FinalOnionHopData.cs +++ b/c_sharp/src/org/ldk/structs/FinalOnionHopData.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class FinalOnionHopData : CommonBase { internal FinalOnionHopData(object _dummy, long ptr) : base(ptr) { } ~FinalOnionHopData() { - if (ptr != 0) { bindings.FinalOnionHopData_free(ptr); } + if (ptr != 0) { Bindings.FinalOnionHopDataFree(ptr); } } /** @@ -22,10 +22,10 @@ internal FinalOnionHopData(object _dummy, long ptr) : base(ptr) { } * proof to the recipient that the payment was sent by someone with the generated invoice. */ public byte[] get_payment_secret() { - long ret = bindings.FinalOnionHopData_get_payment_secret(this.ptr); + long ret = Bindings.FinalOnionHopDataGetPaymentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -35,7 +35,7 @@ public byte[] get_payment_secret() { * proof to the recipient that the payment was sent by someone with the generated invoice. */ public void set_payment_secret(byte[] val) { - bindings.FinalOnionHopData_set_payment_secret(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.FinalOnionHopDataSetPaymentSecret(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -46,7 +46,7 @@ public void set_payment_secret(byte[] val) { * Message serialization may panic if this value is more than 21 million Bitcoin. */ public long get_total_msat() { - long ret = bindings.FinalOnionHopData_get_total_msat(this.ptr); + long ret = Bindings.FinalOnionHopDataGetTotalMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -57,7 +57,7 @@ public long get_total_msat() { * Message serialization may panic if this value is more than 21 million Bitcoin. */ public void set_total_msat(long val) { - bindings.FinalOnionHopData_set_total_msat(this.ptr, val); + Bindings.FinalOnionHopDataSetTotalMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -66,7 +66,7 @@ public void set_total_msat(long val) { * Constructs a new FinalOnionHopData given each field */ public static FinalOnionHopData of(byte[] payment_secret_arg, long total_msat_arg) { - long ret = bindings.FinalOnionHopData_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_secret_arg, 32)), total_msat_arg); + long ret = Bindings.FinalOnionHopDataNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_secret_arg, 32)), total_msat_arg); GC.KeepAlive(payment_secret_arg); GC.KeepAlive(total_msat_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -76,7 +76,7 @@ public static FinalOnionHopData of(byte[] payment_secret_arg, long total_msat_ar } internal long clone_ptr() { - long ret = bindings.FinalOnionHopData_clone_ptr(this.ptr); + long ret = Bindings.FinalOnionHopDataClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -85,7 +85,7 @@ internal long clone_ptr() { * Creates a copy of the FinalOnionHopData */ public FinalOnionHopData clone() { - long ret = bindings.FinalOnionHopData_clone(this.ptr); + long ret = Bindings.FinalOnionHopDataClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FinalOnionHopData ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FinalOnionHopData(null, ret); } @@ -97,10 +97,10 @@ public FinalOnionHopData clone() { * Serialize the FinalOnionHopData object into a byte array which can be read by FinalOnionHopData_read */ public byte[] write() { - long ret = bindings.FinalOnionHopData_write(this.ptr); + long ret = Bindings.FinalOnionHopDataWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -108,7 +108,7 @@ public byte[] write() { * Read a FinalOnionHopData from a byte array, created by FinalOnionHopData_write */ public static Result_FinalOnionHopDataDecodeErrorZ read(byte[] ser) { - long ret = bindings.FinalOnionHopData_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.FinalOnionHopDataRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_FinalOnionHopDataDecodeErrorZ ret_hu_conv = Result_FinalOnionHopDataDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/FirstHopCandidate.cs b/c_sharp/src/org/ldk/structs/FirstHopCandidate.cs index b6e7c802b..a87211471 100644 --- a/c_sharp/src/org/ldk/structs/FirstHopCandidate.cs +++ b/c_sharp/src/org/ldk/structs/FirstHopCandidate.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class FirstHopCandidate : CommonBase { internal FirstHopCandidate(object _dummy, long ptr) : base(ptr) { } ~FirstHopCandidate() { - if (ptr != 0) { bindings.FirstHopCandidate_free(ptr); } + if (ptr != 0) { Bindings.FirstHopCandidateFree(ptr); } } internal long clone_ptr() { - long ret = bindings.FirstHopCandidate_clone_ptr(this.ptr); + long ret = Bindings.FirstHopCandidateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the FirstHopCandidate */ public FirstHopCandidate clone() { - long ret = bindings.FirstHopCandidate_clone(this.ptr); + long ret = Bindings.FirstHopCandidateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FirstHopCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FirstHopCandidate(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/FixedPenaltyScorer.cs b/c_sharp/src/org/ldk/structs/FixedPenaltyScorer.cs index 000dccb83..e27b0f7b7 100644 --- a/c_sharp/src/org/ldk/structs/FixedPenaltyScorer.cs +++ b/c_sharp/src/org/ldk/structs/FixedPenaltyScorer.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class FixedPenaltyScorer : CommonBase { internal FixedPenaltyScorer(object _dummy, long ptr) : base(ptr) { } ~FixedPenaltyScorer() { - if (ptr != 0) { bindings.FixedPenaltyScorer_free(ptr); } + if (ptr != 0) { Bindings.FixedPenaltyScorerFree(ptr); } } internal long clone_ptr() { - long ret = bindings.FixedPenaltyScorer_clone_ptr(this.ptr); + long ret = Bindings.FixedPenaltyScorerClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the FixedPenaltyScorer */ public FixedPenaltyScorer clone() { - long ret = bindings.FixedPenaltyScorer_clone(this.ptr); + long ret = Bindings.FixedPenaltyScorerClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FixedPenaltyScorer ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FixedPenaltyScorer(null, ret); } @@ -37,7 +37,7 @@ public FixedPenaltyScorer clone() { * Creates a new scorer using `penalty_msat`. */ public static FixedPenaltyScorer with_penalty(long penalty_msat) { - long ret = bindings.FixedPenaltyScorer_with_penalty(penalty_msat); + long ret = Bindings.FixedPenaltyScorerWithPenalty(penalty_msat); GC.KeepAlive(penalty_msat); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FixedPenaltyScorer ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FixedPenaltyScorer(null, ret); } @@ -50,7 +50,7 @@ public static FixedPenaltyScorer with_penalty(long penalty_msat) { * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ public ScoreLookUp as_ScoreLookUp() { - long ret = bindings.FixedPenaltyScorer_as_ScoreLookUp(this.ptr); + long ret = Bindings.FixedPenaltyScorerAsScoreLookUp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); @@ -63,7 +63,7 @@ public ScoreLookUp as_ScoreLookUp() { * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is */ public ScoreUpdate as_ScoreUpdate() { - long ret = bindings.FixedPenaltyScorer_as_ScoreUpdate(this.ptr); + long ret = Bindings.FixedPenaltyScorerAsScoreUpdate(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreUpdate ret_hu_conv = new ScoreUpdate(null, ret); @@ -75,10 +75,10 @@ public ScoreUpdate as_ScoreUpdate() { * Serialize the FixedPenaltyScorer object into a byte array which can be read by FixedPenaltyScorer_read */ public byte[] write() { - long ret = bindings.FixedPenaltyScorer_write(this.ptr); + long ret = Bindings.FixedPenaltyScorerWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -86,7 +86,7 @@ public byte[] write() { * Read a FixedPenaltyScorer from a byte array, created by FixedPenaltyScorer_write */ public static Result_FixedPenaltyScorerDecodeErrorZ read(byte[] ser, long arg) { - long ret = bindings.FixedPenaltyScorer_read(InternalUtils.encodeUint8Array(ser), arg); + long ret = Bindings.FixedPenaltyScorerRead(InternalUtils.EncodeUint8Array(ser), arg); GC.KeepAlive(ser); GC.KeepAlive(arg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/ForwardNode.cs b/c_sharp/src/org/ldk/structs/ForwardNode.cs index 6860009e4..6ffc67022 100644 --- a/c_sharp/src/org/ldk/structs/ForwardNode.cs +++ b/c_sharp/src/org/ldk/structs/ForwardNode.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ForwardNode : CommonBase { internal ForwardNode(object _dummy, long ptr) : base(ptr) { } ~ForwardNode() { - if (ptr != 0) { bindings.ForwardNode_free(ptr); } + if (ptr != 0) { Bindings.ForwardNodeFree(ptr); } } /** @@ -20,7 +20,7 @@ internal ForwardNode(object _dummy, long ptr) : base(ptr) { } * used for [`BlindedPayInfo`] construction. */ public ForwardTlvs get_tlvs() { - long ret = bindings.ForwardNode_get_tlvs(this.ptr); + long ret = Bindings.ForwardNodeGetTlvs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ForwardTlvs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ForwardTlvs(null, ret); } @@ -33,7 +33,7 @@ public ForwardTlvs get_tlvs() { * used for [`BlindedPayInfo`] construction. */ public void set_tlvs(org.ldk.structs.ForwardTlvs val) { - bindings.ForwardNode_set_tlvs(this.ptr, val == null ? 0 : val.ptr); + Bindings.ForwardNodeSetTlvs(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,10 +43,10 @@ public void set_tlvs(org.ldk.structs.ForwardTlvs val) { * This node's pubkey. */ public byte[] get_node_id() { - long ret = bindings.ForwardNode_get_node_id(this.ptr); + long ret = Bindings.ForwardNodeGetNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_node_id() { * This node's pubkey. */ public void set_node_id(byte[] val) { - bindings.ForwardNode_set_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.ForwardNodeSetNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_node_id(byte[] val) { * The maximum value, in msat, that may be accepted by this node. */ public long get_htlc_maximum_msat() { - long ret = bindings.ForwardNode_get_htlc_maximum_msat(this.ptr); + long ret = Bindings.ForwardNodeGetHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ public long get_htlc_maximum_msat() { * The maximum value, in msat, that may be accepted by this node. */ public void set_htlc_maximum_msat(long val) { - bindings.ForwardNode_set_htlc_maximum_msat(this.ptr, val); + Bindings.ForwardNodeSetHtlcMaximumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,7 +81,7 @@ public void set_htlc_maximum_msat(long val) { * Constructs a new ForwardNode given each field */ public static ForwardNode of(org.ldk.structs.ForwardTlvs tlvs_arg, byte[] node_id_arg, long htlc_maximum_msat_arg) { - long ret = bindings.ForwardNode_new(tlvs_arg == null ? 0 : tlvs_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_arg, 33)), htlc_maximum_msat_arg); + long ret = Bindings.ForwardNodeNew(tlvs_arg == null ? 0 : tlvs_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id_arg, 33)), htlc_maximum_msat_arg); GC.KeepAlive(tlvs_arg); GC.KeepAlive(node_id_arg); GC.KeepAlive(htlc_maximum_msat_arg); @@ -93,7 +93,7 @@ public static ForwardNode of(org.ldk.structs.ForwardTlvs tlvs_arg, byte[] node_i } internal long clone_ptr() { - long ret = bindings.ForwardNode_clone_ptr(this.ptr); + long ret = Bindings.ForwardNodeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ internal long clone_ptr() { * Creates a copy of the ForwardNode */ public ForwardNode clone() { - long ret = bindings.ForwardNode_clone(this.ptr); + long ret = Bindings.ForwardNodeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ForwardNode ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ForwardNode(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ForwardTlvs.cs b/c_sharp/src/org/ldk/structs/ForwardTlvs.cs index fb662994c..162aaf209 100644 --- a/c_sharp/src/org/ldk/structs/ForwardTlvs.cs +++ b/c_sharp/src/org/ldk/structs/ForwardTlvs.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ForwardTlvs : CommonBase { internal ForwardTlvs(object _dummy, long ptr) : base(ptr) { } ~ForwardTlvs() { - if (ptr != 0) { bindings.ForwardTlvs_free(ptr); } + if (ptr != 0) { Bindings.ForwardTlvsFree(ptr); } } /** * The short channel id this payment should be forwarded out over. */ public long get_short_channel_id() { - long ret = bindings.ForwardTlvs_get_short_channel_id(this.ptr); + long ret = Bindings.ForwardTlvsGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public long get_short_channel_id() { * The short channel id this payment should be forwarded out over. */ public void set_short_channel_id(long val) { - bindings.ForwardTlvs_set_short_channel_id(this.ptr, val); + Bindings.ForwardTlvsSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,7 +37,7 @@ public void set_short_channel_id(long val) { * Payment parameters for relaying over [`Self::short_channel_id`]. */ public PaymentRelay get_payment_relay() { - long ret = bindings.ForwardTlvs_get_payment_relay(this.ptr); + long ret = Bindings.ForwardTlvsGetPaymentRelay(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentRelay ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentRelay(null, ret); } @@ -49,7 +49,7 @@ public PaymentRelay get_payment_relay() { * Payment parameters for relaying over [`Self::short_channel_id`]. */ public void set_payment_relay(org.ldk.structs.PaymentRelay val) { - bindings.ForwardTlvs_set_payment_relay(this.ptr, val == null ? 0 : val.ptr); + Bindings.ForwardTlvsSetPaymentRelay(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -59,7 +59,7 @@ public void set_payment_relay(org.ldk.structs.PaymentRelay val) { * Payment constraints for relaying over [`Self::short_channel_id`]. */ public PaymentConstraints get_payment_constraints() { - long ret = bindings.ForwardTlvs_get_payment_constraints(this.ptr); + long ret = Bindings.ForwardTlvsGetPaymentConstraints(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentConstraints ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentConstraints(null, ret); } @@ -71,7 +71,7 @@ public PaymentConstraints get_payment_constraints() { * Payment constraints for relaying over [`Self::short_channel_id`]. */ public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) { - bindings.ForwardTlvs_set_payment_constraints(this.ptr, val == null ? 0 : val.ptr); + Bindings.ForwardTlvsSetPaymentConstraints(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -84,7 +84,7 @@ public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) { * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload */ public BlindedHopFeatures get_features() { - long ret = bindings.ForwardTlvs_get_features(this.ptr); + long ret = Bindings.ForwardTlvsGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedHopFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedHopFeatures(null, ret); } @@ -99,7 +99,7 @@ public BlindedHopFeatures get_features() { * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload */ public void set_features(org.ldk.structs.BlindedHopFeatures val) { - bindings.ForwardTlvs_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.ForwardTlvsSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -109,7 +109,7 @@ public void set_features(org.ldk.structs.BlindedHopFeatures val) { * Constructs a new ForwardTlvs given each field */ public static ForwardTlvs of(long short_channel_id_arg, org.ldk.structs.PaymentRelay payment_relay_arg, org.ldk.structs.PaymentConstraints payment_constraints_arg, org.ldk.structs.BlindedHopFeatures features_arg) { - long ret = bindings.ForwardTlvs_new(short_channel_id_arg, payment_relay_arg == null ? 0 : payment_relay_arg.ptr, payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr, features_arg == null ? 0 : features_arg.ptr); + long ret = Bindings.ForwardTlvsNew(short_channel_id_arg, payment_relay_arg == null ? 0 : payment_relay_arg.ptr, payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr, features_arg == null ? 0 : features_arg.ptr); GC.KeepAlive(short_channel_id_arg); GC.KeepAlive(payment_relay_arg); GC.KeepAlive(payment_constraints_arg); @@ -124,7 +124,7 @@ public static ForwardTlvs of(long short_channel_id_arg, org.ldk.structs.PaymentR } internal long clone_ptr() { - long ret = bindings.ForwardTlvs_clone_ptr(this.ptr); + long ret = Bindings.ForwardTlvsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -133,7 +133,7 @@ internal long clone_ptr() { * Creates a copy of the ForwardTlvs */ public ForwardTlvs clone() { - long ret = bindings.ForwardTlvs_clone(this.ptr); + long ret = Bindings.ForwardTlvsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ForwardTlvs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ForwardTlvs(null, ret); } @@ -145,10 +145,10 @@ public ForwardTlvs clone() { * Serialize the ForwardTlvs object into a byte array which can be read by ForwardTlvs_read */ public byte[] write() { - long ret = bindings.ForwardTlvs_write(this.ptr); + long ret = Bindings.ForwardTlvsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/FundingCreated.cs b/c_sharp/src/org/ldk/structs/FundingCreated.cs index 55436ec14..7f8463ae6 100644 --- a/c_sharp/src/org/ldk/structs/FundingCreated.cs +++ b/c_sharp/src/org/ldk/structs/FundingCreated.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class FundingCreated : CommonBase { internal FundingCreated(object _dummy, long ptr) : base(ptr) { } ~FundingCreated() { - if (ptr != 0) { bindings.FundingCreated_free(ptr); } + if (ptr != 0) { Bindings.FundingCreatedFree(ptr); } } /** * A temporary channel ID, until the funding is established */ public byte[] get_temporary_channel_id() { - long ret = bindings.FundingCreated_get_temporary_channel_id(this.ptr); + long ret = Bindings.FundingCreatedGetTemporaryChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_temporary_channel_id() { * A temporary channel ID, until the funding is established */ public void set_temporary_channel_id(byte[] val) { - bindings.FundingCreated_set_temporary_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.FundingCreatedSetTemporaryChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,10 +43,10 @@ public void set_temporary_channel_id(byte[] val) { * The funding transaction ID */ public byte[] get_funding_txid() { - long ret = bindings.FundingCreated_get_funding_txid(this.ptr); + long ret = Bindings.FundingCreatedGetFundingTxid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_funding_txid() { * The funding transaction ID */ public void set_funding_txid(byte[] val) { - bindings.FundingCreated_set_funding_txid(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.FundingCreatedSetFundingTxid(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_funding_txid(byte[] val) { * The specific output index funding this channel */ public short get_funding_output_index() { - short ret = bindings.FundingCreated_get_funding_output_index(this.ptr); + short ret = Bindings.FundingCreatedGetFundingOutputIndex(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ public short get_funding_output_index() { * The specific output index funding this channel */ public void set_funding_output_index(short val) { - bindings.FundingCreated_set_funding_output_index(this.ptr, val); + Bindings.FundingCreatedSetFundingOutputIndex(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,10 +81,10 @@ public void set_funding_output_index(short val) { * The signature of the channel initiator (funder) on the initial commitment transaction */ public byte[] get_signature() { - long ret = bindings.FundingCreated_get_signature(this.ptr); + long ret = Bindings.FundingCreatedGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -92,7 +92,7 @@ public byte[] get_signature() { * The signature of the channel initiator (funder) on the initial commitment transaction */ public void set_signature(byte[] val) { - bindings.FundingCreated_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.FundingCreatedSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_signature(byte[] val) { * Constructs a new FundingCreated given each field */ public static FundingCreated of(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg) { - long ret = bindings.FundingCreated_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_txid_arg, 32)), funding_output_index_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64))); + long ret = Bindings.FundingCreatedNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_txid_arg, 32)), funding_output_index_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64))); GC.KeepAlive(temporary_channel_id_arg); GC.KeepAlive(funding_txid_arg); GC.KeepAlive(funding_output_index_arg); @@ -113,7 +113,7 @@ public static FundingCreated of(byte[] temporary_channel_id_arg, byte[] funding_ } internal long clone_ptr() { - long ret = bindings.FundingCreated_clone_ptr(this.ptr); + long ret = Bindings.FundingCreatedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -122,7 +122,7 @@ internal long clone_ptr() { * Creates a copy of the FundingCreated */ public FundingCreated clone() { - long ret = bindings.FundingCreated_clone(this.ptr); + long ret = Bindings.FundingCreatedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FundingCreated ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FundingCreated(null, ret); } @@ -134,7 +134,7 @@ public FundingCreated clone() { * Generates a non-cryptographic 64-bit hash of the FundingCreated. */ public long hash() { - long ret = bindings.FundingCreated_hash(this.ptr); + long ret = Bindings.FundingCreatedHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -148,7 +148,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.FundingCreated b) { - bool ret = bindings.FundingCreated_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.FundingCreatedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -163,10 +163,10 @@ public override bool Equals(object o) { * Serialize the FundingCreated object into a byte array which can be read by FundingCreated_read */ public byte[] write() { - long ret = bindings.FundingCreated_write(this.ptr); + long ret = Bindings.FundingCreatedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -174,7 +174,7 @@ public byte[] write() { * Read a FundingCreated from a byte array, created by FundingCreated_write */ public static Result_FundingCreatedDecodeErrorZ read(byte[] ser) { - long ret = bindings.FundingCreated_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.FundingCreatedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/FundingSigned.cs b/c_sharp/src/org/ldk/structs/FundingSigned.cs index 9056396a0..8a069ad20 100644 --- a/c_sharp/src/org/ldk/structs/FundingSigned.cs +++ b/c_sharp/src/org/ldk/structs/FundingSigned.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class FundingSigned : CommonBase { internal FundingSigned(object _dummy, long ptr) : base(ptr) { } ~FundingSigned() { - if (ptr != 0) { bindings.FundingSigned_free(ptr); } + if (ptr != 0) { Bindings.FundingSignedFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.FundingSigned_get_channel_id(this.ptr); + long ret = Bindings.FundingSignedGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.FundingSigned_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.FundingSignedSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,10 +43,10 @@ public void set_channel_id(byte[] val) { * The signature of the channel acceptor (fundee) on the initial commitment transaction */ public byte[] get_signature() { - long ret = bindings.FundingSigned_get_signature(this.ptr); + long ret = Bindings.FundingSignedGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_signature() { * The signature of the channel acceptor (fundee) on the initial commitment transaction */ public void set_signature(byte[] val) { - bindings.FundingSigned_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.FundingSignedSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_signature(byte[] val) { * Constructs a new FundingSigned given each field */ public static FundingSigned of(byte[] channel_id_arg, byte[] signature_arg) { - long ret = bindings.FundingSigned_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64))); + long ret = Bindings.FundingSignedNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(signature_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -73,7 +73,7 @@ public static FundingSigned of(byte[] channel_id_arg, byte[] signature_arg) { } internal long clone_ptr() { - long ret = bindings.FundingSigned_clone_ptr(this.ptr); + long ret = Bindings.FundingSignedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * Creates a copy of the FundingSigned */ public FundingSigned clone() { - long ret = bindings.FundingSigned_clone(this.ptr); + long ret = Bindings.FundingSignedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.FundingSigned ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FundingSigned(null, ret); } @@ -94,7 +94,7 @@ public FundingSigned clone() { * Generates a non-cryptographic 64-bit hash of the FundingSigned. */ public long hash() { - long ret = bindings.FundingSigned_hash(this.ptr); + long ret = Bindings.FundingSignedHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -108,7 +108,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.FundingSigned b) { - bool ret = bindings.FundingSigned_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.FundingSignedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -123,10 +123,10 @@ public override bool Equals(object o) { * Serialize the FundingSigned object into a byte array which can be read by FundingSigned_read */ public byte[] write() { - long ret = bindings.FundingSigned_write(this.ptr); + long ret = Bindings.FundingSignedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -134,7 +134,7 @@ public byte[] write() { * Read a FundingSigned from a byte array, created by FundingSigned_write */ public static Result_FundingSignedDecodeErrorZ read(byte[] ser) { - long ret = bindings.FundingSigned_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.FundingSignedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Future.cs b/c_sharp/src/org/ldk/structs/Future.cs index b48dbf6f7..2dcd08cbd 100644 --- a/c_sharp/src/org/ldk/structs/Future.cs +++ b/c_sharp/src/org/ldk/structs/Future.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class Future : CommonBase { internal Future(object _dummy, long ptr) : base(ptr) { } ~Future() { - if (ptr != 0) { bindings.Future_free(ptr); } + if (ptr != 0) { Bindings.FutureFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Future_clone_ptr(this.ptr); + long ret = Bindings.FutureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -27,7 +27,7 @@ internal long clone_ptr() { * Creates a copy of the Future */ public Future clone() { - long ret = bindings.Future_clone(this.ptr); + long ret = Bindings.FutureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Future ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Future(null, ret); } @@ -40,7 +40,7 @@ public Future clone() { * completed, the callback will be called immediately. */ public void register_callback_fn(org.ldk.structs.FutureCallback callback) { - bindings.Future_register_callback_fn(this.ptr, callback.ptr); + Bindings.FutureRegisterCallbackFn(this.ptr, callback.ptr); GC.KeepAlive(this); GC.KeepAlive(callback); if (this != null) { this.ptrs_to.AddLast(callback); }; @@ -50,7 +50,7 @@ public void register_callback_fn(org.ldk.structs.FutureCallback callback) { * Waits until this [`Future`] completes. */ public void wait() { - bindings.Future_wait(this.ptr); + Bindings.FutureWait(this.ptr); GC.KeepAlive(this); if (this != null) { this.ptrs_to.AddLast(this); }; } @@ -61,7 +61,7 @@ public void wait() { * Returns true if the [`Future`] completed, false if the time elapsed. */ public bool wait_timeout(long max_wait) { - bool ret = bindings.Future_wait_timeout(this.ptr, max_wait); + bool ret = Bindings.FutureWaitTimeout(this.ptr, max_wait); GC.KeepAlive(this); GC.KeepAlive(max_wait); if (this != null) { this.ptrs_to.AddLast(this); }; diff --git a/c_sharp/src/org/ldk/structs/FutureCallback.cs b/c_sharp/src/org/ldk/structs/FutureCallback.cs index 793877a74..8655553ac 100644 --- a/c_sharp/src/org/ldk/structs/FutureCallback.cs +++ b/c_sharp/src/org/ldk/structs/FutureCallback.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of FutureCallback */ -public interface FutureCallbackInterface { +public interface IFutureCallback { /**The method which is called. */ void call(); @@ -26,30 +26,30 @@ public interface FutureCallbackInterface { * futures when they receive a wake, rather than immediately executing them. */ public class FutureCallback : CommonBase { - internal bindings.LDKFutureCallback bindings_instance; + internal Bindings.LDKFutureCallback bindings_instance; internal long instance_idx; internal FutureCallback(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~FutureCallback() { - if (ptr != 0) { bindings.FutureCallback_free(ptr); } + if (ptr != 0) { Bindings.FutureCallbackFree(ptr); } } private class LDKFutureCallbackHolder { internal FutureCallback held; } - private class LDKFutureCallbackImpl : bindings.LDKFutureCallback { - internal LDKFutureCallbackImpl(FutureCallbackInterface arg, LDKFutureCallbackHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private FutureCallbackInterface arg; + private class LDKFutureCallbackImpl : Bindings.LDKFutureCallback { + internal LDKFutureCallbackImpl(IFutureCallback arg, LDKFutureCallbackHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IFutureCallback arg; private LDKFutureCallbackHolder impl_holder; - public void call() { + public void Call() { arg.call(); GC.KeepAlive(arg); } } /** Creates a new instance of FutureCallback from a given implementation */ - public static FutureCallback new_impl(FutureCallbackInterface arg) { + public static FutureCallback new_impl(IFutureCallback arg) { LDKFutureCallbackHolder impl_holder = new LDKFutureCallbackHolder(); LDKFutureCallbackImpl impl = new LDKFutureCallbackImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKFutureCallback_new(impl); + long[] ptr_idx = Bindings.LDKFutureCallbackNew(impl); impl_holder.held = new FutureCallback(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -61,7 +61,7 @@ public static FutureCallback new_impl(FutureCallbackInterface arg) { * The method which is called. */ public void call() { - bindings.FutureCallback_call(this.ptr); + Bindings.FutureCallbackCall(this.ptr); GC.KeepAlive(this); } diff --git a/c_sharp/src/org/ldk/structs/GossipSync.cs b/c_sharp/src/org/ldk/structs/GossipSync.cs index 65d547d86..2a08b8f5e 100644 --- a/c_sharp/src/org/ldk/structs/GossipSync.cs +++ b/c_sharp/src/org/ldk/structs/GossipSync.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class GossipSync : CommonBase { protected GossipSync(object _dummy, long ptr) : base(ptr) { } ~GossipSync() { - if (ptr != 0) { bindings.GossipSync_free(ptr); } + if (ptr != 0) { Bindings.GossipSyncFree(ptr); } } internal static GossipSync constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKGossipSync_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKGossipSyncTyFromPtr(ptr); switch (raw_ty) { case 0: return new GossipSync_P2P(ptr); case 1: return new GossipSync_Rapid(ptr); @@ -29,7 +29,7 @@ internal static GossipSync constr_from_ptr(long ptr) { public class GossipSync_P2P : GossipSync { public P2PGossipSync p2p; internal GossipSync_P2P(long ptr) : base(null, ptr) { - long p2p = bindings.LDKGossipSync_P2P_get_p2p(ptr); + long p2p = Bindings.LDKGossipSyncP2PGetP2P(ptr); org.ldk.structs.P2PGossipSync p2p_hu_conv = null; if (p2p < 0 || p2p > 4096) { p2p_hu_conv = new org.ldk.structs.P2PGossipSync(null, p2p); } if (p2p_hu_conv != null) { p2p_hu_conv.ptrs_to.AddLast(this); }; this.p2p = p2p_hu_conv; @@ -39,7 +39,7 @@ internal GossipSync_P2P(long ptr) : base(null, ptr) { public class GossipSync_Rapid : GossipSync { public RapidGossipSync rapid; internal GossipSync_Rapid(long ptr) : base(null, ptr) { - long rapid = bindings.LDKGossipSync_Rapid_get_rapid(ptr); + long rapid = Bindings.LDKGossipSyncRapidGetRapid(ptr); org.ldk.structs.RapidGossipSync rapid_hu_conv = null; if (rapid < 0 || rapid > 4096) { rapid_hu_conv = new org.ldk.structs.RapidGossipSync(null, rapid); } if (rapid_hu_conv != null) { rapid_hu_conv.ptrs_to.AddLast(this); }; this.rapid = rapid_hu_conv; @@ -54,7 +54,7 @@ internal GossipSync_None(long ptr) : base(null, ptr) { * Utility method to constructs a new P2P-variant GossipSync */ public static GossipSync p2_p(org.ldk.structs.P2PGossipSync a) { - long ret = bindings.GossipSync_p2_p(a == null ? 0 : a.ptr); + long ret = Bindings.GossipSyncP2P(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret); @@ -67,7 +67,7 @@ public static GossipSync p2_p(org.ldk.structs.P2PGossipSync a) { * Utility method to constructs a new Rapid-variant GossipSync */ public static GossipSync rapid(org.ldk.structs.RapidGossipSync a) { - long ret = bindings.GossipSync_rapid(a == null ? 0 : a.ptr); + long ret = Bindings.GossipSyncRapid(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret); @@ -80,7 +80,7 @@ public static GossipSync rapid(org.ldk.structs.RapidGossipSync a) { * Utility method to constructs a new None-variant GossipSync */ public static GossipSync none() { - long ret = bindings.GossipSync_none(); + long ret = Bindings.GossipSyncNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipSync ret_hu_conv = org.ldk.structs.GossipSync.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/GossipTimestampFilter.cs b/c_sharp/src/org/ldk/structs/GossipTimestampFilter.cs index 8eac42663..8f0976349 100644 --- a/c_sharp/src/org/ldk/structs/GossipTimestampFilter.cs +++ b/c_sharp/src/org/ldk/structs/GossipTimestampFilter.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class GossipTimestampFilter : CommonBase { internal GossipTimestampFilter(object _dummy, long ptr) : base(ptr) { } ~GossipTimestampFilter() { - if (ptr != 0) { bindings.GossipTimestampFilter_free(ptr); } + if (ptr != 0) { Bindings.GossipTimestampFilterFree(ptr); } } /** * The genesis hash of the blockchain for channel and node information */ public byte[] get_chain_hash() { - long ret = bindings.GossipTimestampFilter_get_chain_hash(this.ptr); + long ret = Bindings.GossipTimestampFilterGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain for channel and node information */ public void set_chain_hash(byte[] val) { - bindings.GossipTimestampFilter_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.GossipTimestampFilterSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_chain_hash(byte[] val) { * The starting unix timestamp */ public int get_first_timestamp() { - int ret = bindings.GossipTimestampFilter_get_first_timestamp(this.ptr); + int ret = Bindings.GossipTimestampFilterGetFirstTimestamp(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public int get_first_timestamp() { * The starting unix timestamp */ public void set_first_timestamp(int val) { - bindings.GossipTimestampFilter_set_first_timestamp(this.ptr, val); + Bindings.GossipTimestampFilterSetFirstTimestamp(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_first_timestamp(int val) { * The range of information in seconds */ public int get_timestamp_range() { - int ret = bindings.GossipTimestampFilter_get_timestamp_range(this.ptr); + int ret = Bindings.GossipTimestampFilterGetTimestampRange(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public int get_timestamp_range() { * The range of information in seconds */ public void set_timestamp_range(int val) { - bindings.GossipTimestampFilter_set_timestamp_range(this.ptr, val); + Bindings.GossipTimestampFilterSetTimestampRange(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_timestamp_range(int val) { * Constructs a new GossipTimestampFilter given each field */ public static GossipTimestampFilter of(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg) { - long ret = bindings.GossipTimestampFilter_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), first_timestamp_arg, timestamp_range_arg); + long ret = Bindings.GossipTimestampFilterNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), first_timestamp_arg, timestamp_range_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(first_timestamp_arg); GC.KeepAlive(timestamp_range_arg); @@ -90,7 +90,7 @@ public static GossipTimestampFilter of(byte[] chain_hash_arg, int first_timestam } internal long clone_ptr() { - long ret = bindings.GossipTimestampFilter_clone_ptr(this.ptr); + long ret = Bindings.GossipTimestampFilterClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -99,7 +99,7 @@ internal long clone_ptr() { * Creates a copy of the GossipTimestampFilter */ public GossipTimestampFilter clone() { - long ret = bindings.GossipTimestampFilter_clone(this.ptr); + long ret = Bindings.GossipTimestampFilterClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GossipTimestampFilter ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.GossipTimestampFilter(null, ret); } @@ -111,7 +111,7 @@ public GossipTimestampFilter clone() { * Generates a non-cryptographic 64-bit hash of the GossipTimestampFilter. */ public long hash() { - long ret = bindings.GossipTimestampFilter_hash(this.ptr); + long ret = Bindings.GossipTimestampFilterHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -125,7 +125,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.GossipTimestampFilter b) { - bool ret = bindings.GossipTimestampFilter_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.GossipTimestampFilterEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -140,10 +140,10 @@ public override bool Equals(object o) { * Serialize the GossipTimestampFilter object into a byte array which can be read by GossipTimestampFilter_read */ public byte[] write() { - long ret = bindings.GossipTimestampFilter_write(this.ptr); + long ret = Bindings.GossipTimestampFilterWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -151,7 +151,7 @@ public byte[] write() { * Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_write */ public static Result_GossipTimestampFilterDecodeErrorZ read(byte[] ser) { - long ret = bindings.GossipTimestampFilter_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.GossipTimestampFilterRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/GraphSyncError.cs b/c_sharp/src/org/ldk/structs/GraphSyncError.cs index 1078fe243..80880654a 100644 --- a/c_sharp/src/org/ldk/structs/GraphSyncError.cs +++ b/c_sharp/src/org/ldk/structs/GraphSyncError.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class GraphSyncError : CommonBase { protected GraphSyncError(object _dummy, long ptr) : base(ptr) { } ~GraphSyncError() { - if (ptr != 0) { bindings.GraphSyncError_free(ptr); } + if (ptr != 0) { Bindings.GraphSyncErrorFree(ptr); } } internal static GraphSyncError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKGraphSyncError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKGraphSyncErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new GraphSyncError_DecodeError(ptr); case 1: return new GraphSyncError_LightningError(ptr); @@ -28,7 +28,7 @@ internal static GraphSyncError constr_from_ptr(long ptr) { public class GraphSyncError_DecodeError : GraphSyncError { public DecodeError decode_error; internal GraphSyncError_DecodeError(long ptr) : base(null, ptr) { - long decode_error = bindings.LDKGraphSyncError_DecodeError_get_decode_error(ptr); + long decode_error = Bindings.LDKGraphSyncErrorDecodeErrorGetDecodeError(ptr); org.ldk.structs.DecodeError decode_error_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(decode_error); if (decode_error_hu_conv != null) { decode_error_hu_conv.ptrs_to.AddLast(this); }; this.decode_error = decode_error_hu_conv; @@ -38,14 +38,14 @@ internal GraphSyncError_DecodeError(long ptr) : base(null, ptr) { public class GraphSyncError_LightningError : GraphSyncError { public LightningError lightning_error; internal GraphSyncError_LightningError(long ptr) : base(null, ptr) { - long lightning_error = bindings.LDKGraphSyncError_LightningError_get_lightning_error(ptr); + long lightning_error = Bindings.LDKGraphSyncErrorLightningErrorGetLightningError(ptr); org.ldk.structs.LightningError lightning_error_hu_conv = null; if (lightning_error < 0 || lightning_error > 4096) { lightning_error_hu_conv = new org.ldk.structs.LightningError(null, lightning_error); } if (lightning_error_hu_conv != null) { lightning_error_hu_conv.ptrs_to.AddLast(this); }; this.lightning_error = lightning_error_hu_conv; } } internal long clone_ptr() { - long ret = bindings.GraphSyncError_clone_ptr(this.ptr); + long ret = Bindings.GraphSyncErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ internal long clone_ptr() { * Creates a copy of the GraphSyncError */ public GraphSyncError clone() { - long ret = bindings.GraphSyncError_clone(this.ptr); + long ret = Bindings.GraphSyncErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret); @@ -66,7 +66,7 @@ public GraphSyncError clone() { * Utility method to constructs a new DecodeError-variant GraphSyncError */ public static GraphSyncError decode_error(org.ldk.structs.DecodeError a) { - long ret = bindings.GraphSyncError_decode_error(a.ptr); + long ret = Bindings.GraphSyncErrorDecodeError(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret); @@ -79,7 +79,7 @@ public static GraphSyncError decode_error(org.ldk.structs.DecodeError a) { * Utility method to constructs a new LightningError-variant GraphSyncError */ public static GraphSyncError lightning_error(org.ldk.structs.LightningError a) { - long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr); + long ret = Bindings.GraphSyncErrorLightningError(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/HTLCDescriptor.cs b/c_sharp/src/org/ldk/structs/HTLCDescriptor.cs index 9abae7ca7..337c6f7a8 100644 --- a/c_sharp/src/org/ldk/structs/HTLCDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/HTLCDescriptor.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class HTLCDescriptor : CommonBase { internal HTLCDescriptor(object _dummy, long ptr) : base(ptr) { } ~HTLCDescriptor() { - if (ptr != 0) { bindings.HTLCDescriptor_free(ptr); } + if (ptr != 0) { Bindings.HTLCDescriptorFree(ptr); } } /** * The parameters required to derive the signer for the HTLC input. */ public ChannelDerivationParameters get_channel_derivation_parameters() { - long ret = bindings.HTLCDescriptor_get_channel_derivation_parameters(this.ptr); + long ret = Bindings.HTLCDescriptorGetChannelDerivationParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelDerivationParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelDerivationParameters(null, ret); } @@ -31,7 +31,7 @@ public ChannelDerivationParameters get_channel_derivation_parameters() { * The parameters required to derive the signer for the HTLC input. */ public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationParameters val) { - bindings.HTLCDescriptor_set_channel_derivation_parameters(this.ptr, val == null ? 0 : val.ptr); + Bindings.HTLCDescriptorSetChannelDerivationParameters(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -41,7 +41,7 @@ public void set_channel_derivation_parameters(org.ldk.structs.ChannelDerivationP * The number of the commitment transaction in which the HTLC output lives. */ public long get_per_commitment_number() { - long ret = bindings.HTLCDescriptor_get_per_commitment_number(this.ptr); + long ret = Bindings.HTLCDescriptorGetPerCommitmentNumber(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_per_commitment_number() { * The number of the commitment transaction in which the HTLC output lives. */ public void set_per_commitment_number(long val) { - bindings.HTLCDescriptor_set_per_commitment_number(this.ptr, val); + Bindings.HTLCDescriptorSetPerCommitmentNumber(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,10 +63,10 @@ public void set_per_commitment_number(long val) { * See for more info. */ public byte[] get_per_commitment_point() { - long ret = bindings.HTLCDescriptor_get_per_commitment_point(this.ptr); + long ret = Bindings.HTLCDescriptorGetPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -78,7 +78,7 @@ public byte[] get_per_commitment_point() { * See for more info. */ public void set_per_commitment_point(byte[] val) { - bindings.HTLCDescriptor_set_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.HTLCDescriptorSetPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -89,7 +89,7 @@ public void set_per_commitment_point(byte[] val) { * negotiated feerate at the time the commitment transaction was built. */ public int get_feerate_per_kw() { - int ret = bindings.HTLCDescriptor_get_feerate_per_kw(this.ptr); + int ret = Bindings.HTLCDescriptorGetFeeratePerKw(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ public int get_feerate_per_kw() { * negotiated feerate at the time the commitment transaction was built. */ public void set_feerate_per_kw(int val) { - bindings.HTLCDescriptor_set_feerate_per_kw(this.ptr, val); + Bindings.HTLCDescriptorSetFeeratePerKw(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -109,7 +109,7 @@ public void set_feerate_per_kw(int val) { * The details of the HTLC as it appears in the commitment transaction. */ public HTLCOutputInCommitment get_htlc() { - long ret = bindings.HTLCDescriptor_get_htlc(this.ptr); + long ret = Bindings.HTLCDescriptorGetHtlc(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCOutputInCommitment ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, ret); } @@ -121,7 +121,7 @@ public HTLCOutputInCommitment get_htlc() { * The details of the HTLC as it appears in the commitment transaction. */ public void set_htlc(org.ldk.structs.HTLCOutputInCommitment val) { - bindings.HTLCDescriptor_set_htlc(this.ptr, val == null ? 0 : val.ptr); + Bindings.HTLCDescriptorSetHtlc(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -132,7 +132,7 @@ public void set_htlc(org.ldk.structs.HTLCOutputInCommitment val) { * taken. */ public Option_ThirtyTwoBytesZ get_preimage() { - long ret = bindings.HTLCDescriptor_get_preimage(this.ptr); + long ret = Bindings.HTLCDescriptorGetPreimage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -145,7 +145,7 @@ public Option_ThirtyTwoBytesZ get_preimage() { * taken. */ public void set_preimage(org.ldk.structs.Option_ThirtyTwoBytesZ val) { - bindings.HTLCDescriptor_set_preimage(this.ptr, val.ptr); + Bindings.HTLCDescriptorSetPreimage(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -155,10 +155,10 @@ public void set_preimage(org.ldk.structs.Option_ThirtyTwoBytesZ val) { * The counterparty's signature required to spend the HTLC output. */ public byte[] get_counterparty_sig() { - long ret = bindings.HTLCDescriptor_get_counterparty_sig(this.ptr); + long ret = Bindings.HTLCDescriptorGetCounterpartySig(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -166,13 +166,13 @@ public byte[] get_counterparty_sig() { * The counterparty's signature required to spend the HTLC output. */ public void set_counterparty_sig(byte[] val) { - bindings.HTLCDescriptor_set_counterparty_sig(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.HTLCDescriptorSetCounterpartySig(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.HTLCDescriptor_clone_ptr(this.ptr); + long ret = Bindings.HTLCDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -181,7 +181,7 @@ internal long clone_ptr() { * Creates a copy of the HTLCDescriptor */ public HTLCDescriptor clone() { - long ret = bindings.HTLCDescriptor_clone(this.ptr); + long ret = Bindings.HTLCDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCDescriptor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HTLCDescriptor(null, ret); } @@ -195,7 +195,7 @@ public HTLCDescriptor clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.HTLCDescriptor b) { - bool ret = bindings.HTLCDescriptor_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HTLCDescriptorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -210,10 +210,10 @@ public override bool Equals(object o) { * Serialize the HTLCDescriptor object into a byte array which can be read by HTLCDescriptor_read */ public byte[] write() { - long ret = bindings.HTLCDescriptor_write(this.ptr); + long ret = Bindings.HTLCDescriptorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -221,7 +221,7 @@ public byte[] write() { * Read a HTLCDescriptor from a byte array, created by HTLCDescriptor_write */ public static Result_HTLCDescriptorDecodeErrorZ read(byte[] ser) { - long ret = bindings.HTLCDescriptor_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HTLCDescriptorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCDescriptorDecodeErrorZ ret_hu_conv = Result_HTLCDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -233,7 +233,7 @@ public static Result_HTLCDescriptorDecodeErrorZ read(byte[] ser) { * being spent by the HTLC input in the HTLC transaction. */ public OutPoint outpoint() { - long ret = bindings.HTLCDescriptor_outpoint(this.ptr); + long ret = Bindings.HTLCDescriptorOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -246,7 +246,7 @@ public OutPoint outpoint() { * [`Self::unsigned_tx_input`]. */ public TxOut previous_utxo() { - long ret = bindings.HTLCDescriptor_previous_utxo(this.ptr); + long ret = Bindings.HTLCDescriptorPreviousUtxo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -258,7 +258,7 @@ public TxOut previous_utxo() { * transaction. */ public TxIn unsigned_tx_input() { - long ret = bindings.HTLCDescriptor_unsigned_tx_input(this.ptr); + long ret = Bindings.HTLCDescriptorUnsignedTxInput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxIn ret_conv = new TxIn(null, ret); @@ -270,7 +270,7 @@ public TxIn unsigned_tx_input() { * transaction. */ public TxOut tx_output() { - long ret = bindings.HTLCDescriptor_tx_output(this.ptr); + long ret = Bindings.HTLCDescriptorTxOutput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -281,10 +281,10 @@ public TxOut tx_output() { * Returns the witness script of the HTLC output in the commitment transaction. */ public byte[] witness_script() { - long ret = bindings.HTLCDescriptor_witness_script(this.ptr); + long ret = Bindings.HTLCDescriptorWitnessScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -293,12 +293,12 @@ public byte[] witness_script() { * transaction. */ public byte[] tx_input_witness(byte[] signature, byte[] witness_script) { - long ret = bindings.HTLCDescriptor_tx_input_witness(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature, 64)), InternalUtils.encodeUint8Array(witness_script)); + long ret = Bindings.HTLCDescriptorTxInputWitness(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature, 64)), InternalUtils.EncodeUint8Array(witness_script)); GC.KeepAlive(this); GC.KeepAlive(signature); GC.KeepAlive(witness_script); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -306,7 +306,7 @@ public byte[] tx_input_witness(byte[] signature, byte[] witness_script) { * Derives the channel signer required to sign the HTLC input. */ public WriteableEcdsaChannelSigner derive_channel_signer(org.ldk.structs.SignerProvider signer_provider) { - long ret = bindings.HTLCDescriptor_derive_channel_signer(this.ptr, signer_provider.ptr); + long ret = Bindings.HTLCDescriptorDeriveChannelSigner(this.ptr, signer_provider.ptr); GC.KeepAlive(this); GC.KeepAlive(signer_provider); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/HTLCDestination.cs b/c_sharp/src/org/ldk/structs/HTLCDestination.cs index c8ebe79d7..05cb00cf9 100644 --- a/c_sharp/src/org/ldk/structs/HTLCDestination.cs +++ b/c_sharp/src/org/ldk/structs/HTLCDestination.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class HTLCDestination : CommonBase { protected HTLCDestination(object _dummy, long ptr) : base(ptr) { } ~HTLCDestination() { - if (ptr != 0) { bindings.HTLCDestination_free(ptr); } + if (ptr != 0) { Bindings.HTLCDestinationFree(ptr); } } internal static HTLCDestination constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKHTLCDestination_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKHTLCDestinationTyFromPtr(ptr); switch (raw_ty) { case 0: return new HTLCDestination_NextHopChannel(ptr); case 1: return new HTLCDestination_UnknownNextHop(ptr); @@ -41,11 +41,11 @@ public class HTLCDestination_NextHopChannel : HTLCDestination { */ public byte[] channel_id; internal HTLCDestination_NextHopChannel(long ptr) : base(null, ptr) { - long node_id = bindings.LDKHTLCDestination_NextHopChannel_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKHTLCDestinationNextHopChannelGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long channel_id = bindings.LDKHTLCDestination_NextHopChannel_get_channel_id(ptr); - byte[] channel_id_conv = InternalUtils.decodeUint8Array(channel_id); + long channel_id = Bindings.LDKHTLCDestinationNextHopChannelGetChannelId(ptr); + byte[] channel_id_conv = InternalUtils.DecodeUint8Array(channel_id); this.channel_id = channel_id_conv; } } @@ -56,7 +56,7 @@ public class HTLCDestination_UnknownNextHop : HTLCDestination { */ public long requested_forward_scid; internal HTLCDestination_UnknownNextHop(long ptr) : base(null, ptr) { - this.requested_forward_scid = bindings.LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(ptr); + this.requested_forward_scid = Bindings.LDKHTLCDestinationUnknownNextHopGetRequestedForwardScid(ptr); } } /** A HTLCDestination of type InvalidForward */ @@ -66,7 +66,7 @@ public class HTLCDestination_InvalidForward : HTLCDestination { */ public long requested_forward_scid; internal HTLCDestination_InvalidForward(long ptr) : base(null, ptr) { - this.requested_forward_scid = bindings.LDKHTLCDestination_InvalidForward_get_requested_forward_scid(ptr); + this.requested_forward_scid = Bindings.LDKHTLCDestinationInvalidForwardGetRequestedForwardScid(ptr); } } /** A HTLCDestination of type FailedPayment */ @@ -76,13 +76,13 @@ public class HTLCDestination_FailedPayment : HTLCDestination { */ public byte[] payment_hash; internal HTLCDestination_FailedPayment(long ptr) : base(null, ptr) { - long payment_hash = bindings.LDKHTLCDestination_FailedPayment_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKHTLCDestinationFailedPaymentGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; } } internal long clone_ptr() { - long ret = bindings.HTLCDestination_clone_ptr(this.ptr); + long ret = Bindings.HTLCDestinationClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -91,7 +91,7 @@ internal long clone_ptr() { * Creates a copy of the HTLCDestination */ public HTLCDestination clone() { - long ret = bindings.HTLCDestination_clone(this.ptr); + long ret = Bindings.HTLCDestinationClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCDestination ret_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(ret); @@ -103,7 +103,7 @@ public HTLCDestination clone() { * Utility method to constructs a new NextHopChannel-variant HTLCDestination */ public static HTLCDestination next_hop_channel(byte[] node_id, byte[] channel_id) { - long ret = bindings.HTLCDestination_next_hop_channel(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id, 32))); + long ret = Bindings.HTLCDestinationNextHopChannel(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id, 32))); GC.KeepAlive(node_id); GC.KeepAlive(channel_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -116,7 +116,7 @@ public static HTLCDestination next_hop_channel(byte[] node_id, byte[] channel_id * Utility method to constructs a new UnknownNextHop-variant HTLCDestination */ public static HTLCDestination unknown_next_hop(long requested_forward_scid) { - long ret = bindings.HTLCDestination_unknown_next_hop(requested_forward_scid); + long ret = Bindings.HTLCDestinationUnknownNextHop(requested_forward_scid); GC.KeepAlive(requested_forward_scid); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCDestination ret_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(ret); @@ -128,7 +128,7 @@ public static HTLCDestination unknown_next_hop(long requested_forward_scid) { * Utility method to constructs a new InvalidForward-variant HTLCDestination */ public static HTLCDestination invalid_forward(long requested_forward_scid) { - long ret = bindings.HTLCDestination_invalid_forward(requested_forward_scid); + long ret = Bindings.HTLCDestinationInvalidForward(requested_forward_scid); GC.KeepAlive(requested_forward_scid); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCDestination ret_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(ret); @@ -140,7 +140,7 @@ public static HTLCDestination invalid_forward(long requested_forward_scid) { * Utility method to constructs a new FailedPayment-variant HTLCDestination */ public static HTLCDestination failed_payment(byte[] payment_hash) { - long ret = bindings.HTLCDestination_failed_payment(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32))); + long ret = Bindings.HTLCDestinationFailedPayment(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32))); GC.KeepAlive(payment_hash); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCDestination ret_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(ret); @@ -153,7 +153,7 @@ public static HTLCDestination failed_payment(byte[] payment_hash) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.HTLCDestination b) { - bool ret = bindings.HTLCDestination_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HTLCDestinationEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -167,10 +167,10 @@ public override bool Equals(object o) { * Serialize the HTLCDestination object into a byte array which can be read by HTLCDestination_read */ public byte[] write() { - long ret = bindings.HTLCDestination_write(this.ptr); + long ret = Bindings.HTLCDestinationWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/HTLCOutputInCommitment.cs b/c_sharp/src/org/ldk/structs/HTLCOutputInCommitment.cs index 4e64beeea..4ed9d87fc 100644 --- a/c_sharp/src/org/ldk/structs/HTLCOutputInCommitment.cs +++ b/c_sharp/src/org/ldk/structs/HTLCOutputInCommitment.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class HTLCOutputInCommitment : CommonBase { internal HTLCOutputInCommitment(object _dummy, long ptr) : base(ptr) { } ~HTLCOutputInCommitment() { - if (ptr != 0) { bindings.HTLCOutputInCommitment_free(ptr); } + if (ptr != 0) { Bindings.HTLCOutputInCommitmentFree(ptr); } } /** @@ -22,7 +22,7 @@ internal HTLCOutputInCommitment(object _dummy, long ptr) : base(ptr) { } * the counterparty or our own. */ public bool get_offered() { - bool ret = bindings.HTLCOutputInCommitment_get_offered(this.ptr); + bool ret = Bindings.HTLCOutputInCommitmentGetOffered(this.ptr); GC.KeepAlive(this); return ret; } @@ -34,7 +34,7 @@ public bool get_offered() { * the counterparty or our own. */ public void set_offered(bool val) { - bindings.HTLCOutputInCommitment_set_offered(this.ptr, val); + Bindings.HTLCOutputInCommitmentSetOffered(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,7 +44,7 @@ public void set_offered(bool val) { * this divided by 1000. */ public long get_amount_msat() { - long ret = bindings.HTLCOutputInCommitment_get_amount_msat(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentGetAmountMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public long get_amount_msat() { * this divided by 1000. */ public void set_amount_msat(long val) { - bindings.HTLCOutputInCommitment_set_amount_msat(this.ptr, val); + Bindings.HTLCOutputInCommitmentSetAmountMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_amount_msat(long val) { * The CLTV lock-time at which this HTLC expires. */ public int get_cltv_expiry() { - int ret = bindings.HTLCOutputInCommitment_get_cltv_expiry(this.ptr); + int ret = Bindings.HTLCOutputInCommitmentGetCltvExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ public int get_cltv_expiry() { * The CLTV lock-time at which this HTLC expires. */ public void set_cltv_expiry(int val) { - bindings.HTLCOutputInCommitment_set_cltv_expiry(this.ptr, val); + Bindings.HTLCOutputInCommitmentSetCltvExpiry(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,10 +81,10 @@ public void set_cltv_expiry(int val) { * The hash of the preimage which unlocks this HTLC. */ public byte[] get_payment_hash() { - long ret = bindings.HTLCOutputInCommitment_get_payment_hash(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentGetPaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -92,7 +92,7 @@ public byte[] get_payment_hash() { * The hash of the preimage which unlocks this HTLC. */ public void set_payment_hash(byte[] val) { - bindings.HTLCOutputInCommitment_set_payment_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.HTLCOutputInCommitmentSetPaymentHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -103,7 +103,7 @@ public void set_payment_hash(byte[] val) { * value is spent to additional transaction fees). */ public Option_u32Z get_transaction_output_index() { - long ret = bindings.HTLCOutputInCommitment_get_transaction_output_index(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentGetTransactionOutputIndex(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -117,7 +117,7 @@ public Option_u32Z get_transaction_output_index() { * value is spent to additional transaction fees). */ public void set_transaction_output_index(org.ldk.structs.Option_u32Z val) { - bindings.HTLCOutputInCommitment_set_transaction_output_index(this.ptr, val.ptr); + Bindings.HTLCOutputInCommitmentSetTransactionOutputIndex(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -127,7 +127,7 @@ public void set_transaction_output_index(org.ldk.structs.Option_u32Z val) { * Constructs a new HTLCOutputInCommitment given each field */ public static HTLCOutputInCommitment of(bool offered_arg, long amount_msat_arg, int cltv_expiry_arg, byte[] payment_hash_arg, org.ldk.structs.Option_u32Z transaction_output_index_arg) { - long ret = bindings.HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash_arg, 32)), transaction_output_index_arg.ptr); + long ret = Bindings.HTLCOutputInCommitmentNew(offered_arg, amount_msat_arg, cltv_expiry_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash_arg, 32)), transaction_output_index_arg.ptr); GC.KeepAlive(offered_arg); GC.KeepAlive(amount_msat_arg); GC.KeepAlive(cltv_expiry_arg); @@ -141,7 +141,7 @@ public static HTLCOutputInCommitment of(bool offered_arg, long amount_msat_arg, } internal long clone_ptr() { - long ret = bindings.HTLCOutputInCommitment_clone_ptr(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -150,7 +150,7 @@ internal long clone_ptr() { * Creates a copy of the HTLCOutputInCommitment */ public HTLCOutputInCommitment clone() { - long ret = bindings.HTLCOutputInCommitment_clone(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCOutputInCommitment ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, ret); } @@ -164,7 +164,7 @@ public HTLCOutputInCommitment clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.HTLCOutputInCommitment b) { - bool ret = bindings.HTLCOutputInCommitment_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HTLCOutputInCommitmentEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -179,10 +179,10 @@ public override bool Equals(object o) { * Serialize the HTLCOutputInCommitment object into a byte array which can be read by HTLCOutputInCommitment_read */ public byte[] write() { - long ret = bindings.HTLCOutputInCommitment_write(this.ptr); + long ret = Bindings.HTLCOutputInCommitmentWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -190,7 +190,7 @@ public byte[] write() { * Read a HTLCOutputInCommitment from a byte array, created by HTLCOutputInCommitment_write */ public static Result_HTLCOutputInCommitmentDecodeErrorZ read(byte[] ser) { - long ret = bindings.HTLCOutputInCommitment_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HTLCOutputInCommitmentRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/HTLCUpdate.cs b/c_sharp/src/org/ldk/structs/HTLCUpdate.cs index 74bb98cec..261951abe 100644 --- a/c_sharp/src/org/ldk/structs/HTLCUpdate.cs +++ b/c_sharp/src/org/ldk/structs/HTLCUpdate.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class HTLCUpdate : CommonBase { internal HTLCUpdate(object _dummy, long ptr) : base(ptr) { } ~HTLCUpdate() { - if (ptr != 0) { bindings.HTLCUpdate_free(ptr); } + if (ptr != 0) { Bindings.HTLCUpdateFree(ptr); } } internal long clone_ptr() { - long ret = bindings.HTLCUpdate_clone_ptr(this.ptr); + long ret = Bindings.HTLCUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -27,7 +27,7 @@ internal long clone_ptr() { * Creates a copy of the HTLCUpdate */ public HTLCUpdate clone() { - long ret = bindings.HTLCUpdate_clone(this.ptr); + long ret = Bindings.HTLCUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HTLCUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HTLCUpdate(null, ret); } @@ -41,7 +41,7 @@ public HTLCUpdate clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.HTLCUpdate b) { - bool ret = bindings.HTLCUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HTLCUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -56,10 +56,10 @@ public override bool Equals(object o) { * Serialize the HTLCUpdate object into a byte array which can be read by HTLCUpdate_read */ public byte[] write() { - long ret = bindings.HTLCUpdate_write(this.ptr); + long ret = Bindings.HTLCUpdateWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -67,7 +67,7 @@ public byte[] write() { * Read a HTLCUpdate from a byte array, created by HTLCUpdate_write */ public static Result_HTLCUpdateDecodeErrorZ read(byte[] ser) { - long ret = bindings.HTLCUpdate_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HTLCUpdateRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/HolderCommitmentTransaction.cs b/c_sharp/src/org/ldk/structs/HolderCommitmentTransaction.cs index c8da499c3..1239e6c66 100644 --- a/c_sharp/src/org/ldk/structs/HolderCommitmentTransaction.cs +++ b/c_sharp/src/org/ldk/structs/HolderCommitmentTransaction.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class HolderCommitmentTransaction : CommonBase { internal HolderCommitmentTransaction(object _dummy, long ptr) : base(ptr) { } ~HolderCommitmentTransaction() { - if (ptr != 0) { bindings.HolderCommitmentTransaction_free(ptr); } + if (ptr != 0) { Bindings.HolderCommitmentTransactionFree(ptr); } } /** * Our counterparty's signature for the transaction */ public byte[] get_counterparty_sig() { - long ret = bindings.HolderCommitmentTransaction_get_counterparty_sig(this.ptr); + long ret = Bindings.HolderCommitmentTransactionGetCounterpartySig(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_counterparty_sig() { * Our counterparty's signature for the transaction */ public void set_counterparty_sig(byte[] val) { - bindings.HolderCommitmentTransaction_set_counterparty_sig(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.HolderCommitmentTransactionSetCounterpartySig(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,17 +43,17 @@ public void set_counterparty_sig(byte[] val) { * Returns a copy of the field. */ public byte[][] get_counterparty_htlc_sigs() { - long ret = bindings.HolderCommitmentTransaction_get_counterparty_htlc_sigs(this.ptr); + long ret = Bindings.HolderCommitmentTransactionGetCounterpartyHtlcSigs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -61,13 +61,13 @@ public byte[][] get_counterparty_htlc_sigs() { * All non-dust counterparty HTLC signatures, in the order they appear in the transaction */ public void set_counterparty_htlc_sigs(byte[][] val) { - bindings.HolderCommitmentTransaction_set_counterparty_htlc_sigs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val_conv_8, 64))))); + Bindings.HolderCommitmentTransactionSetCounterpartyHtlcSigs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val_conv_8, 64))))); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.HolderCommitmentTransaction_clone_ptr(this.ptr); + long ret = Bindings.HolderCommitmentTransactionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the HolderCommitmentTransaction */ public HolderCommitmentTransaction clone() { - long ret = bindings.HolderCommitmentTransaction_clone(this.ptr); + long ret = Bindings.HolderCommitmentTransactionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HolderCommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HolderCommitmentTransaction(null, ret); } @@ -88,10 +88,10 @@ public HolderCommitmentTransaction clone() { * Serialize the HolderCommitmentTransaction object into a byte array which can be read by HolderCommitmentTransaction_read */ public byte[] write() { - long ret = bindings.HolderCommitmentTransaction_write(this.ptr); + long ret = Bindings.HolderCommitmentTransactionWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -99,7 +99,7 @@ public byte[] write() { * Read a HolderCommitmentTransaction from a byte array, created by HolderCommitmentTransaction_write */ public static Result_HolderCommitmentTransactionDecodeErrorZ read(byte[] ser) { - long ret = bindings.HolderCommitmentTransaction_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HolderCommitmentTransactionRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -111,7 +111,7 @@ public static Result_HolderCommitmentTransactionDecodeErrorZ read(byte[] ser) { * The funding keys are used to figure out which signature should go first when building the transaction for broadcast. */ public static HolderCommitmentTransaction of(org.ldk.structs.CommitmentTransaction commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key) { - long ret = bindings.HolderCommitmentTransaction_new(commitment_tx == null ? 0 : commitment_tx.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_sig, 64)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(counterparty_htlc_sigs, counterparty_htlc_sigs_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_htlc_sigs_conv_8, 64)))), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(holder_funding_key, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(counterparty_funding_key, 33))); + long ret = Bindings.HolderCommitmentTransactionNew(commitment_tx == null ? 0 : commitment_tx.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_sig, 64)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(counterparty_htlc_sigs, counterparty_htlc_sigs_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_htlc_sigs_conv_8, 64)))), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(holder_funding_key, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(counterparty_funding_key, 33))); GC.KeepAlive(commitment_tx); GC.KeepAlive(counterparty_sig); GC.KeepAlive(counterparty_htlc_sigs); diff --git a/c_sharp/src/org/ldk/structs/Hostname.cs b/c_sharp/src/org/ldk/structs/Hostname.cs index 0d5840edc..3d77f95ab 100644 --- a/c_sharp/src/org/ldk/structs/Hostname.cs +++ b/c_sharp/src/org/ldk/structs/Hostname.cs @@ -18,11 +18,11 @@ namespace org { namespace ldk { namespace structs { public class Hostname : CommonBase { internal Hostname(object _dummy, long ptr) : base(ptr) { } ~Hostname() { - if (ptr != 0) { bindings.Hostname_free(ptr); } + if (ptr != 0) { Bindings.HostnameFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Hostname_clone_ptr(this.ptr); + long ret = Bindings.HostnameClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -31,7 +31,7 @@ internal long clone_ptr() { * Creates a copy of the Hostname */ public Hostname clone() { - long ret = bindings.Hostname_clone(this.ptr); + long ret = Bindings.HostnameClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Hostname ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Hostname(null, ret); } @@ -43,7 +43,7 @@ public Hostname clone() { * Generates a non-cryptographic 64-bit hash of the Hostname. */ public long hash() { - long ret = bindings.Hostname_hash(this.ptr); + long ret = Bindings.HostnameHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -57,7 +57,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Hostname b) { - bool ret = bindings.Hostname_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HostnameEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -72,7 +72,7 @@ public override bool Equals(object o) { * Returns the length of the hostname. */ public byte len() { - byte ret = bindings.Hostname_len(this.ptr); + byte ret = Bindings.HostnameLen(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,10 +81,10 @@ public byte len() { * Serialize the Hostname object into a byte array which can be read by Hostname_read */ public byte[] write() { - long ret = bindings.Hostname_write(this.ptr); + long ret = Bindings.HostnameWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -92,7 +92,7 @@ public byte[] write() { * Read a Hostname from a byte array, created by Hostname_write */ public static Result_HostnameDecodeErrorZ read(byte[] ser) { - long ret = bindings.Hostname_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HostnameRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HostnameDecodeErrorZ ret_hu_conv = Result_HostnameDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/HtlcBasepoint.cs b/c_sharp/src/org/ldk/structs/HtlcBasepoint.cs index 5738f99a5..3f44487a3 100644 --- a/c_sharp/src/org/ldk/structs/HtlcBasepoint.cs +++ b/c_sharp/src/org/ldk/structs/HtlcBasepoint.cs @@ -16,19 +16,19 @@ namespace org { namespace ldk { namespace structs { public class HtlcBasepoint : CommonBase { internal HtlcBasepoint(object _dummy, long ptr) : base(ptr) { } ~HtlcBasepoint() { - if (ptr != 0) { bindings.HtlcBasepoint_free(ptr); } + if (ptr != 0) { Bindings.HtlcBasepointFree(ptr); } } public byte[] get_a() { - long ret = bindings.HtlcBasepoint_get_a(this.ptr); + long ret = Bindings.HtlcBasepointGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.HtlcBasepoint_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.HtlcBasepointSetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,7 +37,7 @@ public void set_a(byte[] val) { * Constructs a new HtlcBasepoint given each field */ public static HtlcBasepoint of(byte[] a_arg) { - long ret = bindings.HtlcBasepoint_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.HtlcBasepointNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcBasepoint(null, ret); } @@ -51,7 +51,7 @@ public static HtlcBasepoint of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.HtlcBasepoint b) { - bool ret = bindings.HtlcBasepoint_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HtlcBasepointEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -63,7 +63,7 @@ public override bool Equals(object o) { return this.eq((HtlcBasepoint)o); } internal long clone_ptr() { - long ret = bindings.HtlcBasepoint_clone_ptr(this.ptr); + long ret = Bindings.HtlcBasepointClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * Creates a copy of the HtlcBasepoint */ public HtlcBasepoint clone() { - long ret = bindings.HtlcBasepoint_clone(this.ptr); + long ret = Bindings.HtlcBasepointClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcBasepoint(null, ret); } @@ -84,7 +84,7 @@ public HtlcBasepoint clone() { * Generates a non-cryptographic 64-bit hash of the HtlcBasepoint. */ public long hash() { - long ret = bindings.HtlcBasepoint_hash(this.ptr); + long ret = Bindings.HtlcBasepointHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -96,10 +96,10 @@ public override int GetHashCode() { * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.HtlcBasepoint_to_public_key(this.ptr); + long ret = Bindings.HtlcBasepointToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -107,10 +107,10 @@ public byte[] to_public_key() { * Serialize the HtlcBasepoint object into a byte array which can be read by HtlcBasepoint_read */ public byte[] write() { - long ret = bindings.HtlcBasepoint_write(this.ptr); + long ret = Bindings.HtlcBasepointWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -118,7 +118,7 @@ public byte[] write() { * Read a HtlcBasepoint from a byte array, created by HtlcBasepoint_write */ public static Result_HtlcBasepointDecodeErrorZ read(byte[] ser) { - long ret = bindings.HtlcBasepoint_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HtlcBasepointRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcBasepointDecodeErrorZ ret_hu_conv = Result_HtlcBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/HtlcKey.cs b/c_sharp/src/org/ldk/structs/HtlcKey.cs index c91c83a81..64c78d46e 100644 --- a/c_sharp/src/org/ldk/structs/HtlcKey.cs +++ b/c_sharp/src/org/ldk/structs/HtlcKey.cs @@ -20,19 +20,19 @@ namespace org { namespace ldk { namespace structs { public class HtlcKey : CommonBase { internal HtlcKey(object _dummy, long ptr) : base(ptr) { } ~HtlcKey() { - if (ptr != 0) { bindings.HtlcKey_free(ptr); } + if (ptr != 0) { Bindings.HtlcKeyFree(ptr); } } public byte[] get_a() { - long ret = bindings.HtlcKey_get_a(this.ptr); + long ret = Bindings.HtlcKeyGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.HtlcKey_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.HtlcKeySetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_a(byte[] val) { * Constructs a new HtlcKey given each field */ public static HtlcKey of(byte[] a_arg) { - long ret = bindings.HtlcKey_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.HtlcKeyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcKey(null, ret); } @@ -55,7 +55,7 @@ public static HtlcKey of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.HtlcKey b) { - bool ret = bindings.HtlcKey_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.HtlcKeyEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -67,7 +67,7 @@ public override bool Equals(object o) { return this.eq((HtlcKey)o); } internal long clone_ptr() { - long ret = bindings.HtlcKey_clone_ptr(this.ptr); + long ret = Bindings.HtlcKeyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the HtlcKey */ public HtlcKey clone() { - long ret = bindings.HtlcKey_clone(this.ptr); + long ret = Bindings.HtlcKeyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcKey(null, ret); } @@ -88,7 +88,7 @@ public HtlcKey clone() { * Derive a public htlcpubkey using one node\'s `per_commitment_point` and its countersignatory\'s `basepoint` */ public static HtlcKey from_basepoint(org.ldk.structs.HtlcBasepoint countersignatory_basepoint, byte[] per_commitment_point) { - long ret = bindings.HtlcKey_from_basepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33))); + long ret = Bindings.HtlcKeyFromBasepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33))); GC.KeepAlive(countersignatory_basepoint); GC.KeepAlive(per_commitment_point); if (ret >= 0 && ret <= 4096) { return null; } @@ -102,7 +102,7 @@ public static HtlcKey from_basepoint(org.ldk.structs.HtlcBasepoint countersignat * Build a htlcpubkey directly from an already-derived private key */ public static HtlcKey from_secret_key(byte[] sk) { - long ret = bindings.HtlcKey_from_secret_key(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(sk, 32))); + long ret = Bindings.HtlcKeyFromSecretKey(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(sk, 32))); GC.KeepAlive(sk); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcKey(null, ret); } @@ -114,10 +114,10 @@ public static HtlcKey from_secret_key(byte[] sk) { * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.HtlcKey_to_public_key(this.ptr); + long ret = Bindings.HtlcKeyToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -125,10 +125,10 @@ public byte[] to_public_key() { * Serialize the HtlcKey object into a byte array which can be read by HtlcKey_read */ public byte[] write() { - long ret = bindings.HtlcKey_write(this.ptr); + long ret = Bindings.HtlcKeyWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -136,7 +136,7 @@ public byte[] write() { * Read a HtlcKey from a byte array, created by HtlcKey_write */ public static Result_HtlcKeyDecodeErrorZ read(byte[] ser) { - long ret = bindings.HtlcKey_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HtlcKeyRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcKeyDecodeErrorZ ret_hu_conv = Result_HtlcKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/IgnoringMessageHandler.cs b/c_sharp/src/org/ldk/structs/IgnoringMessageHandler.cs index 4b9d0662c..bf035f98d 100644 --- a/c_sharp/src/org/ldk/structs/IgnoringMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/IgnoringMessageHandler.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class IgnoringMessageHandler : CommonBase { internal IgnoringMessageHandler(object _dummy, long ptr) : base(ptr) { } ~IgnoringMessageHandler() { - if (ptr != 0) { bindings.IgnoringMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.IgnoringMessageHandlerFree(ptr); } } /** * Constructs a new IgnoringMessageHandler given each field */ public static IgnoringMessageHandler of() { - long ret = bindings.IgnoringMessageHandler_new(); + long ret = Bindings.IgnoringMessageHandlerNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.IgnoringMessageHandler ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.IgnoringMessageHandler(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -32,7 +32,7 @@ public static IgnoringMessageHandler of() { * This copies the `inner` pointer in this_arg and thus the returned EventsProvider must be freed before this_arg is */ public EventsProvider as_EventsProvider() { - long ret = bindings.IgnoringMessageHandler_as_EventsProvider(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EventsProvider ret_hu_conv = new EventsProvider(null, ret); @@ -45,7 +45,7 @@ public EventsProvider as_EventsProvider() { * This copies the `inner` pointer in this_arg and thus the returned MessageSendEventsProvider must be freed before this_arg is */ public MessageSendEventsProvider as_MessageSendEventsProvider() { - long ret = bindings.IgnoringMessageHandler_as_MessageSendEventsProvider(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsMessageSendEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageSendEventsProvider ret_hu_conv = new MessageSendEventsProvider(null, ret); @@ -58,7 +58,7 @@ public MessageSendEventsProvider as_MessageSendEventsProvider() { * This copies the `inner` pointer in this_arg and thus the returned RoutingMessageHandler must be freed before this_arg is */ public RoutingMessageHandler as_RoutingMessageHandler() { - long ret = bindings.IgnoringMessageHandler_as_RoutingMessageHandler(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsRoutingMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } RoutingMessageHandler ret_hu_conv = new RoutingMessageHandler(null, ret); @@ -71,7 +71,7 @@ public RoutingMessageHandler as_RoutingMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned OnionMessageHandler must be freed before this_arg is */ public OnionMessageHandler as_OnionMessageHandler() { - long ret = bindings.IgnoringMessageHandler_as_OnionMessageHandler(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsOnionMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageHandler ret_hu_conv = new OnionMessageHandler(null, ret); @@ -84,7 +84,7 @@ public OnionMessageHandler as_OnionMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned OffersMessageHandler must be freed before this_arg is */ public OffersMessageHandler as_OffersMessageHandler() { - long ret = bindings.IgnoringMessageHandler_as_OffersMessageHandler(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsOffersMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OffersMessageHandler ret_hu_conv = new OffersMessageHandler(null, ret); @@ -97,7 +97,7 @@ public OffersMessageHandler as_OffersMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned CustomOnionMessageHandler must be freed before this_arg is */ public CustomOnionMessageHandler as_CustomOnionMessageHandler() { - long ret = bindings.IgnoringMessageHandler_as_CustomOnionMessageHandler(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsCustomOnionMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } CustomOnionMessageHandler ret_hu_conv = new CustomOnionMessageHandler(null, ret); @@ -110,7 +110,7 @@ public CustomOnionMessageHandler as_CustomOnionMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned CustomMessageReader must be freed before this_arg is */ public CustomMessageReader as_CustomMessageReader() { - long ret = bindings.IgnoringMessageHandler_as_CustomMessageReader(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsCustomMessageReader(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } CustomMessageReader ret_hu_conv = new CustomMessageReader(null, ret); @@ -123,7 +123,7 @@ public CustomMessageReader as_CustomMessageReader() { * This copies the `inner` pointer in this_arg and thus the returned CustomMessageHandler must be freed before this_arg is */ public CustomMessageHandler as_CustomMessageHandler() { - long ret = bindings.IgnoringMessageHandler_as_CustomMessageHandler(this.ptr); + long ret = Bindings.IgnoringMessageHandlerAsCustomMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } CustomMessageHandler ret_hu_conv = new CustomMessageHandler(null, ret); diff --git a/c_sharp/src/org/ldk/structs/InFlightHtlcs.cs b/c_sharp/src/org/ldk/structs/InFlightHtlcs.cs index 6a805b28c..ea40347f3 100644 --- a/c_sharp/src/org/ldk/structs/InFlightHtlcs.cs +++ b/c_sharp/src/org/ldk/structs/InFlightHtlcs.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class InFlightHtlcs : CommonBase { internal InFlightHtlcs(object _dummy, long ptr) : base(ptr) { } ~InFlightHtlcs() { - if (ptr != 0) { bindings.InFlightHtlcs_free(ptr); } + if (ptr != 0) { Bindings.InFlightHtlcsFree(ptr); } } internal long clone_ptr() { - long ret = bindings.InFlightHtlcs_clone_ptr(this.ptr); + long ret = Bindings.InFlightHtlcsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -26,7 +26,7 @@ internal long clone_ptr() { * Creates a copy of the InFlightHtlcs */ public InFlightHtlcs clone() { - long ret = bindings.InFlightHtlcs_clone(this.ptr); + long ret = Bindings.InFlightHtlcsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InFlightHtlcs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InFlightHtlcs(null, ret); } @@ -38,7 +38,7 @@ public InFlightHtlcs clone() { * Constructs an empty `InFlightHtlcs`. */ public static InFlightHtlcs of() { - long ret = bindings.InFlightHtlcs_new(); + long ret = Bindings.InFlightHtlcsNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InFlightHtlcs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InFlightHtlcs(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -49,7 +49,7 @@ public static InFlightHtlcs of() { * Takes in a path with payer's node id and adds the path's details to `InFlightHtlcs`. */ public void process_path(org.ldk.structs.Path path, byte[] payer_node_id) { - bindings.InFlightHtlcs_process_path(this.ptr, path == null ? 0 : path.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payer_node_id, 33))); + Bindings.InFlightHtlcsProcessPath(this.ptr, path == null ? 0 : path.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payer_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(path); GC.KeepAlive(payer_node_id); @@ -61,7 +61,7 @@ public void process_path(org.ldk.structs.Path path, byte[] payer_node_id) { * id. */ public void add_inflight_htlc(org.ldk.structs.NodeId source, org.ldk.structs.NodeId target, long channel_scid, long used_msat) { - bindings.InFlightHtlcs_add_inflight_htlc(this.ptr, source == null ? 0 : source.ptr, target == null ? 0 : target.ptr, channel_scid, used_msat); + Bindings.InFlightHtlcsAddInflightHtlc(this.ptr, source == null ? 0 : source.ptr, target == null ? 0 : target.ptr, channel_scid, used_msat); GC.KeepAlive(this); GC.KeepAlive(source); GC.KeepAlive(target); @@ -76,7 +76,7 @@ public void add_inflight_htlc(org.ldk.structs.NodeId source, org.ldk.structs.Nod * id. */ public Option_u64Z used_liquidity_msat(org.ldk.structs.NodeId source, org.ldk.structs.NodeId target, long channel_scid) { - long ret = bindings.InFlightHtlcs_used_liquidity_msat(this.ptr, source == null ? 0 : source.ptr, target == null ? 0 : target.ptr, channel_scid); + long ret = Bindings.InFlightHtlcsUsedLiquidityMsat(this.ptr, source == null ? 0 : source.ptr, target == null ? 0 : target.ptr, channel_scid); GC.KeepAlive(this); GC.KeepAlive(source); GC.KeepAlive(target); @@ -93,10 +93,10 @@ public Option_u64Z used_liquidity_msat(org.ldk.structs.NodeId source, org.ldk.st * Serialize the InFlightHtlcs object into a byte array which can be read by InFlightHtlcs_read */ public byte[] write() { - long ret = bindings.InFlightHtlcs_write(this.ptr); + long ret = Bindings.InFlightHtlcsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -104,7 +104,7 @@ public byte[] write() { * Read a InFlightHtlcs from a byte array, created by InFlightHtlcs_write */ public static Result_InFlightHtlcsDecodeErrorZ read(byte[] ser) { - long ret = bindings.InFlightHtlcs_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.InFlightHtlcsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_InFlightHtlcsDecodeErrorZ ret_hu_conv = Result_InFlightHtlcsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/InMemorySigner.cs b/c_sharp/src/org/ldk/structs/InMemorySigner.cs index caa0905e4..bfbb799cc 100644 --- a/c_sharp/src/org/ldk/structs/InMemorySigner.cs +++ b/c_sharp/src/org/ldk/structs/InMemorySigner.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class InMemorySigner : CommonBase { internal InMemorySigner(object _dummy, long ptr) : base(ptr) { } ~InMemorySigner() { - if (ptr != 0) { bindings.InMemorySigner_free(ptr); } + if (ptr != 0) { Bindings.InMemorySignerFree(ptr); } } /** @@ -23,10 +23,10 @@ internal InMemorySigner(object _dummy, long ptr) : base(ptr) { } * holder's anchor output in a commitment transaction, if one is present. */ public byte[] get_funding_key() { - long ret = bindings.InMemorySigner_get_funding_key(this.ptr); + long ret = Bindings.InMemorySignerGetFundingKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -35,7 +35,7 @@ public byte[] get_funding_key() { * holder's anchor output in a commitment transaction, if one is present. */ public void set_funding_key(byte[] val) { - bindings.InMemorySigner_set_funding_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetFundingKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,10 +44,10 @@ public void set_funding_key(byte[] val) { * Holder secret key for blinded revocation pubkey. */ public byte[] get_revocation_base_key() { - long ret = bindings.InMemorySigner_get_revocation_base_key(this.ptr); + long ret = Bindings.InMemorySignerGetRevocationBaseKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -55,7 +55,7 @@ public byte[] get_revocation_base_key() { * Holder secret key for blinded revocation pubkey. */ public void set_revocation_base_key(byte[] val) { - bindings.InMemorySigner_set_revocation_base_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetRevocationBaseKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,10 +64,10 @@ public void set_revocation_base_key(byte[] val) { * Holder secret key used for our balance in counterparty-broadcasted commitment transactions. */ public byte[] get_payment_key() { - long ret = bindings.InMemorySigner_get_payment_key(this.ptr); + long ret = Bindings.InMemorySignerGetPaymentKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -75,7 +75,7 @@ public byte[] get_payment_key() { * Holder secret key used for our balance in counterparty-broadcasted commitment transactions. */ public void set_payment_key(byte[] val) { - bindings.InMemorySigner_set_payment_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetPaymentKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -84,10 +84,10 @@ public void set_payment_key(byte[] val) { * Holder secret key used in an HTLC transaction. */ public byte[] get_delayed_payment_base_key() { - long ret = bindings.InMemorySigner_get_delayed_payment_base_key(this.ptr); + long ret = Bindings.InMemorySignerGetDelayedPaymentBaseKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -95,7 +95,7 @@ public byte[] get_delayed_payment_base_key() { * Holder secret key used in an HTLC transaction. */ public void set_delayed_payment_base_key(byte[] val) { - bindings.InMemorySigner_set_delayed_payment_base_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetDelayedPaymentBaseKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -104,10 +104,10 @@ public void set_delayed_payment_base_key(byte[] val) { * Holder HTLC secret key used in commitment transaction HTLC outputs. */ public byte[] get_htlc_base_key() { - long ret = bindings.InMemorySigner_get_htlc_base_key(this.ptr); + long ret = Bindings.InMemorySignerGetHtlcBaseKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -115,7 +115,7 @@ public byte[] get_htlc_base_key() { * Holder HTLC secret key used in commitment transaction HTLC outputs. */ public void set_htlc_base_key(byte[] val) { - bindings.InMemorySigner_set_htlc_base_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetHtlcBaseKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -124,10 +124,10 @@ public void set_htlc_base_key(byte[] val) { * Commitment seed. */ public byte[] get_commitment_seed() { - long ret = bindings.InMemorySigner_get_commitment_seed(this.ptr); + long ret = Bindings.InMemorySignerGetCommitmentSeed(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -135,13 +135,13 @@ public byte[] get_commitment_seed() { * Commitment seed. */ public void set_commitment_seed(byte[] val) { - bindings.InMemorySigner_set_commitment_seed(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.InMemorySignerSetCommitmentSeed(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.InMemorySigner_clone_ptr(this.ptr); + long ret = Bindings.InMemorySignerClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -150,7 +150,7 @@ internal long clone_ptr() { * Creates a copy of the InMemorySigner */ public InMemorySigner clone() { - long ret = bindings.InMemorySigner_clone(this.ptr); + long ret = Bindings.InMemorySignerClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InMemorySigner ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InMemorySigner(null, ret); } @@ -162,7 +162,7 @@ public InMemorySigner clone() { * Creates a new [`InMemorySigner`]. */ public static InMemorySigner of(byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, byte[] channel_keys_id, byte[] rand_bytes_unique_start) { - long ret = bindings.InMemorySigner_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_key, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(revocation_base_key, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_key, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(delayed_payment_base_key, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_base_key, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(commitment_seed, 32)), channel_value_satoshis, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(rand_bytes_unique_start, 32))); + long ret = Bindings.InMemorySignerNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_key, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(revocation_base_key, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_key, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(delayed_payment_base_key, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_base_key, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(commitment_seed, 32)), channel_value_satoshis, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(rand_bytes_unique_start, 32))); GC.KeepAlive(funding_key); GC.KeepAlive(revocation_base_key); GC.KeepAlive(payment_key); @@ -187,7 +187,7 @@ public static InMemorySigner of(byte[] funding_key, byte[] revocation_base_key, * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelPublicKeys counterparty_pubkeys() { - long ret = bindings.InMemorySigner_counterparty_pubkeys(this.ptr); + long ret = Bindings.InMemorySignerCounterpartyPubkeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelPublicKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, ret); } @@ -204,7 +204,7 @@ public ChannelPublicKeys counterparty_pubkeys() { * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ public Option_u16Z counterparty_selected_contest_delay() { - long ret = bindings.InMemorySigner_counterparty_selected_contest_delay(this.ptr); + long ret = Bindings.InMemorySignerCounterpartySelectedContestDelay(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); @@ -221,7 +221,7 @@ public Option_u16Z counterparty_selected_contest_delay() { * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ public Option_u16Z holder_selected_contest_delay() { - long ret = bindings.InMemorySigner_holder_selected_contest_delay(this.ptr); + long ret = Bindings.InMemorySignerHolderSelectedContestDelay(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); @@ -236,7 +236,7 @@ public Option_u16Z holder_selected_contest_delay() { * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ public Option_boolZ is_outbound() { - long ret = bindings.InMemorySigner_is_outbound(this.ptr); + long ret = Bindings.InMemorySignerIsOutbound(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_boolZ ret_hu_conv = org.ldk.structs.Option_boolZ.constr_from_ptr(ret); @@ -253,7 +253,7 @@ public Option_boolZ is_outbound() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OutPoint funding_outpoint() { - long ret = bindings.InMemorySigner_funding_outpoint(this.ptr); + long ret = Bindings.InMemorySignerFundingOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -271,7 +271,7 @@ public OutPoint funding_outpoint() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTransactionParameters get_channel_parameters() { - long ret = bindings.InMemorySigner_get_channel_parameters(this.ptr); + long ret = Bindings.InMemorySignerGetChannelParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, ret); } @@ -289,7 +289,7 @@ public ChannelTransactionParameters get_channel_parameters() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures channel_type_features() { - long ret = bindings.InMemorySigner_channel_type_features(this.ptr); + long ret = Bindings.InMemorySignerChannelTypeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -308,7 +308,7 @@ public ChannelTypeFeatures channel_type_features() { * [`descriptor.outpoint`]: StaticPaymentOutputDescriptor::outpoint */ public Result_WitnessNoneZ sign_counterparty_payment_input(byte[] spend_tx, long input_idx, org.ldk.structs.StaticPaymentOutputDescriptor descriptor) { - long ret = bindings.InMemorySigner_sign_counterparty_payment_input(this.ptr, InternalUtils.encodeUint8Array(spend_tx), input_idx, descriptor == null ? 0 : descriptor.ptr); + long ret = Bindings.InMemorySignerSignCounterpartyPaymentInput(this.ptr, InternalUtils.EncodeUint8Array(spend_tx), input_idx, descriptor == null ? 0 : descriptor.ptr); GC.KeepAlive(this); GC.KeepAlive(spend_tx); GC.KeepAlive(input_idx); @@ -332,7 +332,7 @@ public Result_WitnessNoneZ sign_counterparty_payment_input(byte[] spend_tx, long * [`descriptor.to_self_delay`]: DelayedPaymentOutputDescriptor::to_self_delay */ public Result_WitnessNoneZ sign_dynamic_p2wsh_input(byte[] spend_tx, long input_idx, org.ldk.structs.DelayedPaymentOutputDescriptor descriptor) { - long ret = bindings.InMemorySigner_sign_dynamic_p2wsh_input(this.ptr, InternalUtils.encodeUint8Array(spend_tx), input_idx, descriptor == null ? 0 : descriptor.ptr); + long ret = Bindings.InMemorySignerSignDynamicP2WshInput(this.ptr, InternalUtils.EncodeUint8Array(spend_tx), input_idx, descriptor == null ? 0 : descriptor.ptr); GC.KeepAlive(this); GC.KeepAlive(spend_tx); GC.KeepAlive(input_idx); @@ -348,7 +348,7 @@ public Result_WitnessNoneZ sign_dynamic_p2wsh_input(byte[] spend_tx, long input_ * This copies the `inner` pointer in this_arg and thus the returned EntropySource must be freed before this_arg is */ public EntropySource as_EntropySource() { - long ret = bindings.InMemorySigner_as_EntropySource(this.ptr); + long ret = Bindings.InMemorySignerAsEntropySource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EntropySource ret_hu_conv = new EntropySource(null, ret); @@ -361,7 +361,7 @@ public EntropySource as_EntropySource() { * This copies the `inner` pointer in this_arg and thus the returned ChannelSigner must be freed before this_arg is */ public ChannelSigner as_ChannelSigner() { - long ret = bindings.InMemorySigner_as_ChannelSigner(this.ptr); + long ret = Bindings.InMemorySignerAsChannelSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ChannelSigner ret_hu_conv = new ChannelSigner(null, ret); @@ -374,7 +374,7 @@ public ChannelSigner as_ChannelSigner() { * This copies the `inner` pointer in this_arg and thus the returned EcdsaChannelSigner must be freed before this_arg is */ public EcdsaChannelSigner as_EcdsaChannelSigner() { - long ret = bindings.InMemorySigner_as_EcdsaChannelSigner(this.ptr); + long ret = Bindings.InMemorySignerAsEcdsaChannelSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EcdsaChannelSigner ret_hu_conv = new EcdsaChannelSigner(null, ret); @@ -387,7 +387,7 @@ public EcdsaChannelSigner as_EcdsaChannelSigner() { * This copies the `inner` pointer in this_arg and thus the returned WriteableEcdsaChannelSigner must be freed before this_arg is */ public WriteableEcdsaChannelSigner as_WriteableEcdsaChannelSigner() { - long ret = bindings.InMemorySigner_as_WriteableEcdsaChannelSigner(this.ptr); + long ret = Bindings.InMemorySignerAsWriteableEcdsaChannelSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } WriteableEcdsaChannelSigner ret_hu_conv = new WriteableEcdsaChannelSigner(null, ret); @@ -399,10 +399,10 @@ public WriteableEcdsaChannelSigner as_WriteableEcdsaChannelSigner() { * Serialize the InMemorySigner object into a byte array which can be read by InMemorySigner_read */ public byte[] write() { - long ret = bindings.InMemorySigner_write(this.ptr); + long ret = Bindings.InMemorySignerWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -410,7 +410,7 @@ public byte[] write() { * Read a InMemorySigner from a byte array, created by InMemorySigner_write */ public static Result_InMemorySignerDecodeErrorZ read(byte[] ser, org.ldk.structs.EntropySource arg) { - long ret = bindings.InMemorySigner_read(InternalUtils.encodeUint8Array(ser), arg.ptr); + long ret = Bindings.InMemorySignerRead(InternalUtils.EncodeUint8Array(ser), arg.ptr); GC.KeepAlive(ser); GC.KeepAlive(arg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/InboundHTLCErr.cs b/c_sharp/src/org/ldk/structs/InboundHTLCErr.cs index ccca20d2e..9914026d1 100644 --- a/c_sharp/src/org/ldk/structs/InboundHTLCErr.cs +++ b/c_sharp/src/org/ldk/structs/InboundHTLCErr.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class InboundHTLCErr : CommonBase { internal InboundHTLCErr(object _dummy, long ptr) : base(ptr) { } ~InboundHTLCErr() { - if (ptr != 0) { bindings.InboundHTLCErr_free(ptr); } + if (ptr != 0) { Bindings.InboundHTLCErrFree(ptr); } } /** * BOLT 4 error code. */ public short get_err_code() { - short ret = bindings.InboundHTLCErr_get_err_code(this.ptr); + short ret = Bindings.InboundHTLCErrGetErrCode(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public short get_err_code() { * BOLT 4 error code. */ public void set_err_code(short val) { - bindings.InboundHTLCErr_set_err_code(this.ptr, val); + Bindings.InboundHTLCErrSetErrCode(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,10 +39,10 @@ public void set_err_code(short val) { * Returns a copy of the field. */ public byte[] get_err_data() { - long ret = bindings.InboundHTLCErr_get_err_data(this.ptr); + long ret = Bindings.InboundHTLCErrGetErrData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -50,7 +50,7 @@ public byte[] get_err_data() { * Data attached to this error. */ public void set_err_data(byte[] val) { - bindings.InboundHTLCErr_set_err_data(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.InboundHTLCErrSetErrData(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,10 +59,10 @@ public void set_err_data(byte[] val) { * Error message text. */ public string get_msg() { - long ret = bindings.InboundHTLCErr_get_msg(this.ptr); + long ret = Bindings.InboundHTLCErrGetMsg(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -70,7 +70,7 @@ public string get_msg() { * Error message text. */ public void set_msg(string val) { - bindings.InboundHTLCErr_set_msg(this.ptr, InternalUtils.encodeString(val)); + Bindings.InboundHTLCErrSetMsg(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_msg(string val) { * Constructs a new InboundHTLCErr given each field */ public static InboundHTLCErr of(short err_code_arg, byte[] err_data_arg, string msg_arg) { - long ret = bindings.InboundHTLCErr_new(err_code_arg, InternalUtils.encodeUint8Array(err_data_arg), InternalUtils.encodeString(msg_arg)); + long ret = Bindings.InboundHTLCErrNew(err_code_arg, InternalUtils.EncodeUint8Array(err_data_arg), InternalUtils.EncodeString(msg_arg)); GC.KeepAlive(err_code_arg); GC.KeepAlive(err_data_arg); GC.KeepAlive(msg_arg); diff --git a/c_sharp/src/org/ldk/structs/Init.cs b/c_sharp/src/org/ldk/structs/Init.cs index bc5f9ca63..b60dc2e45 100644 --- a/c_sharp/src/org/ldk/structs/Init.cs +++ b/c_sharp/src/org/ldk/structs/Init.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class Init : CommonBase { internal Init(object _dummy, long ptr) : base(ptr) { } ~Init() { - if (ptr != 0) { bindings.Init_free(ptr); } + if (ptr != 0) { Bindings.InitFree(ptr); } } /** * The relevant features which the sender supports. */ public InitFeatures get_features() { - long ret = bindings.Init_get_features(this.ptr); + long ret = Bindings.InitGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } @@ -33,7 +33,7 @@ public InitFeatures get_features() { * The relevant features which the sender supports. */ public void set_features(org.ldk.structs.InitFeatures val) { - bindings.Init_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.InitSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -47,7 +47,7 @@ public void set_features(org.ldk.structs.InitFeatures val) { * Returns a copy of the field. */ public Option_CVec_ThirtyTwoBytesZZ get_networks() { - long ret = bindings.Init_get_networks(this.ptr); + long ret = Bindings.InitGetNetworks(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); @@ -61,7 +61,7 @@ public Option_CVec_ThirtyTwoBytesZZ get_networks() { * If there are no common chains, the connection will be closed. */ public void set_networks(org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ val) { - bindings.Init_set_networks(this.ptr, val.ptr); + Bindings.InitSetNetworks(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -76,7 +76,7 @@ public void set_networks(org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ val) { * the new address. */ public Option_SocketAddressZ get_remote_network_address() { - long ret = bindings.Init_get_remote_network_address(this.ptr); + long ret = Bindings.InitGetRemoteNetworkAddress(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SocketAddressZ ret_hu_conv = org.ldk.structs.Option_SocketAddressZ.constr_from_ptr(ret); @@ -93,7 +93,7 @@ public Option_SocketAddressZ get_remote_network_address() { * the new address. */ public void set_remote_network_address(org.ldk.structs.Option_SocketAddressZ val) { - bindings.Init_set_remote_network_address(this.ptr, val.ptr); + Bindings.InitSetRemoteNetworkAddress(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -103,7 +103,7 @@ public void set_remote_network_address(org.ldk.structs.Option_SocketAddressZ val * Constructs a new Init given each field */ public static Init of(org.ldk.structs.InitFeatures features_arg, org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ networks_arg, org.ldk.structs.Option_SocketAddressZ remote_network_address_arg) { - long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr, networks_arg.ptr, remote_network_address_arg.ptr); + long ret = Bindings.InitNew(features_arg == null ? 0 : features_arg.ptr, networks_arg.ptr, remote_network_address_arg.ptr); GC.KeepAlive(features_arg); GC.KeepAlive(networks_arg); GC.KeepAlive(remote_network_address_arg); @@ -117,7 +117,7 @@ public static Init of(org.ldk.structs.InitFeatures features_arg, org.ldk.structs } internal long clone_ptr() { - long ret = bindings.Init_clone_ptr(this.ptr); + long ret = Bindings.InitClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -126,7 +126,7 @@ internal long clone_ptr() { * Creates a copy of the Init */ public Init clone() { - long ret = bindings.Init_clone(this.ptr); + long ret = Bindings.InitClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Init ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Init(null, ret); } @@ -138,7 +138,7 @@ public Init clone() { * Generates a non-cryptographic 64-bit hash of the Init. */ public long hash() { - long ret = bindings.Init_hash(this.ptr); + long ret = Bindings.InitHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -152,7 +152,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Init b) { - bool ret = bindings.Init_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.InitEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -167,10 +167,10 @@ public override bool Equals(object o) { * Serialize the Init object into a byte array which can be read by Init_read */ public byte[] write() { - long ret = bindings.Init_write(this.ptr); + long ret = Bindings.InitWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -178,7 +178,7 @@ public byte[] write() { * Read a Init from a byte array, created by Init_write */ public static Result_InitDecodeErrorZ read(byte[] ser) { - long ret = bindings.Init_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.InitRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/InitFeatures.cs b/c_sharp/src/org/ldk/structs/InitFeatures.cs index 4f1551e37..b47ac4082 100644 --- a/c_sharp/src/org/ldk/structs/InitFeatures.cs +++ b/c_sharp/src/org/ldk/structs/InitFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class InitFeatures : CommonBase { internal InitFeatures(object _dummy, long ptr) : base(ptr) { } ~InitFeatures() { - if (ptr != 0) { bindings.InitFeatures_free(ptr); } + if (ptr != 0) { Bindings.InitFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal InitFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.InitFeatures b) { - bool ret = bindings.InitFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.InitFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((InitFeatures)o); } internal long clone_ptr() { - long ret = bindings.InitFeatures_clone_ptr(this.ptr); + long ret = Bindings.InitFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the InitFeatures */ public InitFeatures clone() { - long ret = bindings.InitFeatures_clone(this.ptr); + long ret = Bindings.InitFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } @@ -54,7 +54,7 @@ public InitFeatures clone() { * Generates a non-cryptographic 64-bit hash of the InitFeatures. */ public long hash() { - long ret = bindings.InitFeatures_hash(this.ptr); + long ret = Bindings.InitFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static InitFeatures empty() { - long ret = bindings.InitFeatures_empty(); + long ret = Bindings.InitFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static InitFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.InitFeatures other) { - bool ret = bindings.InitFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.InitFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.InitFeatures other) { * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.InitFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.InitFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.InitFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.InitFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.InitFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.InitFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.InitFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.InitFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.InitFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.InitFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the InitFeatures object into a byte array which can be read by InitFeatures_read */ public byte[] write() { - long ret = bindings.InitFeatures_write(this.ptr); + long ret = Bindings.InitFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a InitFeatures from a byte array, created by InitFeatures_write */ public static Result_InitFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.InitFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.InitFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -192,7 +192,7 @@ public static Result_InitFeaturesDecodeErrorZ read(byte[] ser) { * Set this feature as optional. */ public void set_data_loss_protect_optional() { - bindings.InitFeatures_set_data_loss_protect_optional(this.ptr); + Bindings.InitFeaturesSetDataLossProtectOptional(this.ptr); GC.KeepAlive(this); } @@ -200,7 +200,7 @@ public void set_data_loss_protect_optional() { * Set this feature as required. */ public void set_data_loss_protect_required() { - bindings.InitFeatures_set_data_loss_protect_required(this.ptr); + Bindings.InitFeaturesSetDataLossProtectRequired(this.ptr); GC.KeepAlive(this); } @@ -208,7 +208,7 @@ public void set_data_loss_protect_required() { * Checks if this feature is supported. */ public bool supports_data_loss_protect() { - bool ret = bindings.InitFeatures_supports_data_loss_protect(this.ptr); + bool ret = Bindings.InitFeaturesSupportsDataLossProtect(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public bool supports_data_loss_protect() { * Checks if this feature is required. */ public bool requires_data_loss_protect() { - bool ret = bindings.InitFeatures_requires_data_loss_protect(this.ptr); + bool ret = Bindings.InitFeaturesRequiresDataLossProtect(this.ptr); GC.KeepAlive(this); return ret; } @@ -226,7 +226,7 @@ public bool requires_data_loss_protect() { * Set this feature as optional. */ public void set_initial_routing_sync_optional() { - bindings.InitFeatures_set_initial_routing_sync_optional(this.ptr); + Bindings.InitFeaturesSetInitialRoutingSyncOptional(this.ptr); GC.KeepAlive(this); } @@ -234,7 +234,7 @@ public void set_initial_routing_sync_optional() { * Set this feature as required. */ public void set_initial_routing_sync_required() { - bindings.InitFeatures_set_initial_routing_sync_required(this.ptr); + Bindings.InitFeaturesSetInitialRoutingSyncRequired(this.ptr); GC.KeepAlive(this); } @@ -242,7 +242,7 @@ public void set_initial_routing_sync_required() { * Checks if this feature is supported. */ public bool initial_routing_sync() { - bool ret = bindings.InitFeatures_initial_routing_sync(this.ptr); + bool ret = Bindings.InitFeaturesInitialRoutingSync(this.ptr); GC.KeepAlive(this); return ret; } @@ -251,7 +251,7 @@ public bool initial_routing_sync() { * Set this feature as optional. */ public void set_upfront_shutdown_script_optional() { - bindings.InitFeatures_set_upfront_shutdown_script_optional(this.ptr); + Bindings.InitFeaturesSetUpfrontShutdownScriptOptional(this.ptr); GC.KeepAlive(this); } @@ -259,7 +259,7 @@ public void set_upfront_shutdown_script_optional() { * Set this feature as required. */ public void set_upfront_shutdown_script_required() { - bindings.InitFeatures_set_upfront_shutdown_script_required(this.ptr); + Bindings.InitFeaturesSetUpfrontShutdownScriptRequired(this.ptr); GC.KeepAlive(this); } @@ -267,7 +267,7 @@ public void set_upfront_shutdown_script_required() { * Checks if this feature is supported. */ public bool supports_upfront_shutdown_script() { - bool ret = bindings.InitFeatures_supports_upfront_shutdown_script(this.ptr); + bool ret = Bindings.InitFeaturesSupportsUpfrontShutdownScript(this.ptr); GC.KeepAlive(this); return ret; } @@ -276,7 +276,7 @@ public bool supports_upfront_shutdown_script() { * Checks if this feature is required. */ public bool requires_upfront_shutdown_script() { - bool ret = bindings.InitFeatures_requires_upfront_shutdown_script(this.ptr); + bool ret = Bindings.InitFeaturesRequiresUpfrontShutdownScript(this.ptr); GC.KeepAlive(this); return ret; } @@ -285,7 +285,7 @@ public bool requires_upfront_shutdown_script() { * Set this feature as optional. */ public void set_gossip_queries_optional() { - bindings.InitFeatures_set_gossip_queries_optional(this.ptr); + Bindings.InitFeaturesSetGossipQueriesOptional(this.ptr); GC.KeepAlive(this); } @@ -293,7 +293,7 @@ public void set_gossip_queries_optional() { * Set this feature as required. */ public void set_gossip_queries_required() { - bindings.InitFeatures_set_gossip_queries_required(this.ptr); + Bindings.InitFeaturesSetGossipQueriesRequired(this.ptr); GC.KeepAlive(this); } @@ -301,7 +301,7 @@ public void set_gossip_queries_required() { * Checks if this feature is supported. */ public bool supports_gossip_queries() { - bool ret = bindings.InitFeatures_supports_gossip_queries(this.ptr); + bool ret = Bindings.InitFeaturesSupportsGossipQueries(this.ptr); GC.KeepAlive(this); return ret; } @@ -310,7 +310,7 @@ public bool supports_gossip_queries() { * Checks if this feature is required. */ public bool requires_gossip_queries() { - bool ret = bindings.InitFeatures_requires_gossip_queries(this.ptr); + bool ret = Bindings.InitFeaturesRequiresGossipQueries(this.ptr); GC.KeepAlive(this); return ret; } @@ -319,7 +319,7 @@ public bool requires_gossip_queries() { * Set this feature as optional. */ public void set_variable_length_onion_optional() { - bindings.InitFeatures_set_variable_length_onion_optional(this.ptr); + Bindings.InitFeaturesSetVariableLengthOnionOptional(this.ptr); GC.KeepAlive(this); } @@ -327,7 +327,7 @@ public void set_variable_length_onion_optional() { * Set this feature as required. */ public void set_variable_length_onion_required() { - bindings.InitFeatures_set_variable_length_onion_required(this.ptr); + Bindings.InitFeaturesSetVariableLengthOnionRequired(this.ptr); GC.KeepAlive(this); } @@ -335,7 +335,7 @@ public void set_variable_length_onion_required() { * Checks if this feature is supported. */ public bool supports_variable_length_onion() { - bool ret = bindings.InitFeatures_supports_variable_length_onion(this.ptr); + bool ret = Bindings.InitFeaturesSupportsVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -344,7 +344,7 @@ public bool supports_variable_length_onion() { * Checks if this feature is required. */ public bool requires_variable_length_onion() { - bool ret = bindings.InitFeatures_requires_variable_length_onion(this.ptr); + bool ret = Bindings.InitFeaturesRequiresVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -353,7 +353,7 @@ public bool requires_variable_length_onion() { * Set this feature as optional. */ public void set_static_remote_key_optional() { - bindings.InitFeatures_set_static_remote_key_optional(this.ptr); + Bindings.InitFeaturesSetStaticRemoteKeyOptional(this.ptr); GC.KeepAlive(this); } @@ -361,7 +361,7 @@ public void set_static_remote_key_optional() { * Set this feature as required. */ public void set_static_remote_key_required() { - bindings.InitFeatures_set_static_remote_key_required(this.ptr); + Bindings.InitFeaturesSetStaticRemoteKeyRequired(this.ptr); GC.KeepAlive(this); } @@ -369,7 +369,7 @@ public void set_static_remote_key_required() { * Checks if this feature is supported. */ public bool supports_static_remote_key() { - bool ret = bindings.InitFeatures_supports_static_remote_key(this.ptr); + bool ret = Bindings.InitFeaturesSupportsStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -378,7 +378,7 @@ public bool supports_static_remote_key() { * Checks if this feature is required. */ public bool requires_static_remote_key() { - bool ret = bindings.InitFeatures_requires_static_remote_key(this.ptr); + bool ret = Bindings.InitFeaturesRequiresStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -387,7 +387,7 @@ public bool requires_static_remote_key() { * Set this feature as optional. */ public void set_payment_secret_optional() { - bindings.InitFeatures_set_payment_secret_optional(this.ptr); + Bindings.InitFeaturesSetPaymentSecretOptional(this.ptr); GC.KeepAlive(this); } @@ -395,7 +395,7 @@ public void set_payment_secret_optional() { * Set this feature as required. */ public void set_payment_secret_required() { - bindings.InitFeatures_set_payment_secret_required(this.ptr); + Bindings.InitFeaturesSetPaymentSecretRequired(this.ptr); GC.KeepAlive(this); } @@ -403,7 +403,7 @@ public void set_payment_secret_required() { * Checks if this feature is supported. */ public bool supports_payment_secret() { - bool ret = bindings.InitFeatures_supports_payment_secret(this.ptr); + bool ret = Bindings.InitFeaturesSupportsPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -412,7 +412,7 @@ public bool supports_payment_secret() { * Checks if this feature is required. */ public bool requires_payment_secret() { - bool ret = bindings.InitFeatures_requires_payment_secret(this.ptr); + bool ret = Bindings.InitFeaturesRequiresPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -421,7 +421,7 @@ public bool requires_payment_secret() { * Set this feature as optional. */ public void set_basic_mpp_optional() { - bindings.InitFeatures_set_basic_mpp_optional(this.ptr); + Bindings.InitFeaturesSetBasicMppOptional(this.ptr); GC.KeepAlive(this); } @@ -429,7 +429,7 @@ public void set_basic_mpp_optional() { * Set this feature as required. */ public void set_basic_mpp_required() { - bindings.InitFeatures_set_basic_mpp_required(this.ptr); + Bindings.InitFeaturesSetBasicMppRequired(this.ptr); GC.KeepAlive(this); } @@ -437,7 +437,7 @@ public void set_basic_mpp_required() { * Checks if this feature is supported. */ public bool supports_basic_mpp() { - bool ret = bindings.InitFeatures_supports_basic_mpp(this.ptr); + bool ret = Bindings.InitFeaturesSupportsBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -446,7 +446,7 @@ public bool supports_basic_mpp() { * Checks if this feature is required. */ public bool requires_basic_mpp() { - bool ret = bindings.InitFeatures_requires_basic_mpp(this.ptr); + bool ret = Bindings.InitFeaturesRequiresBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -455,7 +455,7 @@ public bool requires_basic_mpp() { * Set this feature as optional. */ public void set_wumbo_optional() { - bindings.InitFeatures_set_wumbo_optional(this.ptr); + Bindings.InitFeaturesSetWumboOptional(this.ptr); GC.KeepAlive(this); } @@ -463,7 +463,7 @@ public void set_wumbo_optional() { * Set this feature as required. */ public void set_wumbo_required() { - bindings.InitFeatures_set_wumbo_required(this.ptr); + Bindings.InitFeaturesSetWumboRequired(this.ptr); GC.KeepAlive(this); } @@ -471,7 +471,7 @@ public void set_wumbo_required() { * Checks if this feature is supported. */ public bool supports_wumbo() { - bool ret = bindings.InitFeatures_supports_wumbo(this.ptr); + bool ret = Bindings.InitFeaturesSupportsWumbo(this.ptr); GC.KeepAlive(this); return ret; } @@ -480,7 +480,7 @@ public bool supports_wumbo() { * Checks if this feature is required. */ public bool requires_wumbo() { - bool ret = bindings.InitFeatures_requires_wumbo(this.ptr); + bool ret = Bindings.InitFeaturesRequiresWumbo(this.ptr); GC.KeepAlive(this); return ret; } @@ -489,7 +489,7 @@ public bool requires_wumbo() { * Set this feature as optional. */ public void set_anchors_nonzero_fee_htlc_tx_optional() { - bindings.InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr); + Bindings.InitFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -497,7 +497,7 @@ public void set_anchors_nonzero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_nonzero_fee_htlc_tx_required() { - bindings.InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr); + Bindings.InitFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -505,7 +505,7 @@ public void set_anchors_nonzero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.InitFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.InitFeaturesSupportsAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -514,7 +514,7 @@ public bool supports_anchors_nonzero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.InitFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.InitFeaturesRequiresAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -523,7 +523,7 @@ public bool requires_anchors_nonzero_fee_htlc_tx() { * Set this feature as optional. */ public void set_anchors_zero_fee_htlc_tx_optional() { - bindings.InitFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr); + Bindings.InitFeaturesSetAnchorsZeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -531,7 +531,7 @@ public void set_anchors_zero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_zero_fee_htlc_tx_required() { - bindings.InitFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr); + Bindings.InitFeaturesSetAnchorsZeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -539,7 +539,7 @@ public void set_anchors_zero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_zero_fee_htlc_tx() { - bool ret = bindings.InitFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.InitFeaturesSupportsAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -548,7 +548,7 @@ public bool supports_anchors_zero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_zero_fee_htlc_tx() { - bool ret = bindings.InitFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.InitFeaturesRequiresAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -557,7 +557,7 @@ public bool requires_anchors_zero_fee_htlc_tx() { * Set this feature as optional. */ public void set_route_blinding_optional() { - bindings.InitFeatures_set_route_blinding_optional(this.ptr); + Bindings.InitFeaturesSetRouteBlindingOptional(this.ptr); GC.KeepAlive(this); } @@ -565,7 +565,7 @@ public void set_route_blinding_optional() { * Set this feature as required. */ public void set_route_blinding_required() { - bindings.InitFeatures_set_route_blinding_required(this.ptr); + Bindings.InitFeaturesSetRouteBlindingRequired(this.ptr); GC.KeepAlive(this); } @@ -573,7 +573,7 @@ public void set_route_blinding_required() { * Checks if this feature is supported. */ public bool supports_route_blinding() { - bool ret = bindings.InitFeatures_supports_route_blinding(this.ptr); + bool ret = Bindings.InitFeaturesSupportsRouteBlinding(this.ptr); GC.KeepAlive(this); return ret; } @@ -582,7 +582,7 @@ public bool supports_route_blinding() { * Checks if this feature is required. */ public bool requires_route_blinding() { - bool ret = bindings.InitFeatures_requires_route_blinding(this.ptr); + bool ret = Bindings.InitFeaturesRequiresRouteBlinding(this.ptr); GC.KeepAlive(this); return ret; } @@ -591,7 +591,7 @@ public bool requires_route_blinding() { * Set this feature as optional. */ public void set_shutdown_any_segwit_optional() { - bindings.InitFeatures_set_shutdown_any_segwit_optional(this.ptr); + Bindings.InitFeaturesSetShutdownAnySegwitOptional(this.ptr); GC.KeepAlive(this); } @@ -599,7 +599,7 @@ public void set_shutdown_any_segwit_optional() { * Set this feature as required. */ public void set_shutdown_any_segwit_required() { - bindings.InitFeatures_set_shutdown_any_segwit_required(this.ptr); + Bindings.InitFeaturesSetShutdownAnySegwitRequired(this.ptr); GC.KeepAlive(this); } @@ -607,7 +607,7 @@ public void set_shutdown_any_segwit_required() { * Checks if this feature is supported. */ public bool supports_shutdown_anysegwit() { - bool ret = bindings.InitFeatures_supports_shutdown_anysegwit(this.ptr); + bool ret = Bindings.InitFeaturesSupportsShutdownAnysegwit(this.ptr); GC.KeepAlive(this); return ret; } @@ -616,7 +616,7 @@ public bool supports_shutdown_anysegwit() { * Checks if this feature is required. */ public bool requires_shutdown_anysegwit() { - bool ret = bindings.InitFeatures_requires_shutdown_anysegwit(this.ptr); + bool ret = Bindings.InitFeaturesRequiresShutdownAnysegwit(this.ptr); GC.KeepAlive(this); return ret; } @@ -625,7 +625,7 @@ public bool requires_shutdown_anysegwit() { * Set this feature as optional. */ public void set_taproot_optional() { - bindings.InitFeatures_set_taproot_optional(this.ptr); + Bindings.InitFeaturesSetTaprootOptional(this.ptr); GC.KeepAlive(this); } @@ -633,7 +633,7 @@ public void set_taproot_optional() { * Set this feature as required. */ public void set_taproot_required() { - bindings.InitFeatures_set_taproot_required(this.ptr); + Bindings.InitFeaturesSetTaprootRequired(this.ptr); GC.KeepAlive(this); } @@ -641,7 +641,7 @@ public void set_taproot_required() { * Checks if this feature is supported. */ public bool supports_taproot() { - bool ret = bindings.InitFeatures_supports_taproot(this.ptr); + bool ret = Bindings.InitFeaturesSupportsTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -650,7 +650,7 @@ public bool supports_taproot() { * Checks if this feature is required. */ public bool requires_taproot() { - bool ret = bindings.InitFeatures_requires_taproot(this.ptr); + bool ret = Bindings.InitFeaturesRequiresTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -659,7 +659,7 @@ public bool requires_taproot() { * Set this feature as optional. */ public void set_onion_messages_optional() { - bindings.InitFeatures_set_onion_messages_optional(this.ptr); + Bindings.InitFeaturesSetOnionMessagesOptional(this.ptr); GC.KeepAlive(this); } @@ -667,7 +667,7 @@ public void set_onion_messages_optional() { * Set this feature as required. */ public void set_onion_messages_required() { - bindings.InitFeatures_set_onion_messages_required(this.ptr); + Bindings.InitFeaturesSetOnionMessagesRequired(this.ptr); GC.KeepAlive(this); } @@ -675,7 +675,7 @@ public void set_onion_messages_required() { * Checks if this feature is supported. */ public bool supports_onion_messages() { - bool ret = bindings.InitFeatures_supports_onion_messages(this.ptr); + bool ret = Bindings.InitFeaturesSupportsOnionMessages(this.ptr); GC.KeepAlive(this); return ret; } @@ -684,7 +684,7 @@ public bool supports_onion_messages() { * Checks if this feature is required. */ public bool requires_onion_messages() { - bool ret = bindings.InitFeatures_requires_onion_messages(this.ptr); + bool ret = Bindings.InitFeaturesRequiresOnionMessages(this.ptr); GC.KeepAlive(this); return ret; } @@ -693,7 +693,7 @@ public bool requires_onion_messages() { * Set this feature as optional. */ public void set_channel_type_optional() { - bindings.InitFeatures_set_channel_type_optional(this.ptr); + Bindings.InitFeaturesSetChannelTypeOptional(this.ptr); GC.KeepAlive(this); } @@ -701,7 +701,7 @@ public void set_channel_type_optional() { * Set this feature as required. */ public void set_channel_type_required() { - bindings.InitFeatures_set_channel_type_required(this.ptr); + Bindings.InitFeaturesSetChannelTypeRequired(this.ptr); GC.KeepAlive(this); } @@ -709,7 +709,7 @@ public void set_channel_type_required() { * Checks if this feature is supported. */ public bool supports_channel_type() { - bool ret = bindings.InitFeatures_supports_channel_type(this.ptr); + bool ret = Bindings.InitFeaturesSupportsChannelType(this.ptr); GC.KeepAlive(this); return ret; } @@ -718,7 +718,7 @@ public bool supports_channel_type() { * Checks if this feature is required. */ public bool requires_channel_type() { - bool ret = bindings.InitFeatures_requires_channel_type(this.ptr); + bool ret = Bindings.InitFeaturesRequiresChannelType(this.ptr); GC.KeepAlive(this); return ret; } @@ -727,7 +727,7 @@ public bool requires_channel_type() { * Set this feature as optional. */ public void set_scid_privacy_optional() { - bindings.InitFeatures_set_scid_privacy_optional(this.ptr); + Bindings.InitFeaturesSetScidPrivacyOptional(this.ptr); GC.KeepAlive(this); } @@ -735,7 +735,7 @@ public void set_scid_privacy_optional() { * Set this feature as required. */ public void set_scid_privacy_required() { - bindings.InitFeatures_set_scid_privacy_required(this.ptr); + Bindings.InitFeaturesSetScidPrivacyRequired(this.ptr); GC.KeepAlive(this); } @@ -743,7 +743,7 @@ public void set_scid_privacy_required() { * Checks if this feature is supported. */ public bool supports_scid_privacy() { - bool ret = bindings.InitFeatures_supports_scid_privacy(this.ptr); + bool ret = Bindings.InitFeaturesSupportsScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -752,7 +752,7 @@ public bool supports_scid_privacy() { * Checks if this feature is required. */ public bool requires_scid_privacy() { - bool ret = bindings.InitFeatures_requires_scid_privacy(this.ptr); + bool ret = Bindings.InitFeaturesRequiresScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -761,7 +761,7 @@ public bool requires_scid_privacy() { * Set this feature as optional. */ public void set_zero_conf_optional() { - bindings.InitFeatures_set_zero_conf_optional(this.ptr); + Bindings.InitFeaturesSetZeroConfOptional(this.ptr); GC.KeepAlive(this); } @@ -769,7 +769,7 @@ public void set_zero_conf_optional() { * Set this feature as required. */ public void set_zero_conf_required() { - bindings.InitFeatures_set_zero_conf_required(this.ptr); + Bindings.InitFeaturesSetZeroConfRequired(this.ptr); GC.KeepAlive(this); } @@ -777,7 +777,7 @@ public void set_zero_conf_required() { * Checks if this feature is supported. */ public bool supports_zero_conf() { - bool ret = bindings.InitFeatures_supports_zero_conf(this.ptr); + bool ret = Bindings.InitFeaturesSupportsZeroConf(this.ptr); GC.KeepAlive(this); return ret; } @@ -786,7 +786,7 @@ public bool supports_zero_conf() { * Checks if this feature is required. */ public bool requires_zero_conf() { - bool ret = bindings.InitFeatures_requires_zero_conf(this.ptr); + bool ret = Bindings.InitFeaturesRequiresZeroConf(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Input.cs b/c_sharp/src/org/ldk/structs/Input.cs index b5d1084ab..4233ac148 100644 --- a/c_sharp/src/org/ldk/structs/Input.cs +++ b/c_sharp/src/org/ldk/structs/Input.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class Input : CommonBase { internal Input(object _dummy, long ptr) : base(ptr) { } ~Input() { - if (ptr != 0) { bindings.Input_free(ptr); } + if (ptr != 0) { Bindings.InputFree(ptr); } } /** * The unique identifier of the input. */ public OutPoint get_outpoint() { - long ret = bindings.Input_get_outpoint(this.ptr); + long ret = Bindings.InputGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -33,7 +33,7 @@ public OutPoint get_outpoint() { * The unique identifier of the input. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.Input_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.InputSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * The UTXO being spent by the input. */ public TxOut get_previous_utxo() { - long ret = bindings.Input_get_previous_utxo(this.ptr); + long ret = Bindings.InputGetPreviousUtxo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -54,7 +54,7 @@ public TxOut get_previous_utxo() { * The UTXO being spent by the input. */ public void set_previous_utxo(org.ldk.structs.TxOut val) { - bindings.Input_set_previous_utxo(this.ptr, val.ptr); + Bindings.InputSetPreviousUtxo(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -65,7 +65,7 @@ public void set_previous_utxo(org.ldk.structs.TxOut val) { * script. */ public long get_satisfaction_weight() { - long ret = bindings.Input_get_satisfaction_weight(this.ptr); + long ret = Bindings.InputGetSatisfactionWeight(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ public long get_satisfaction_weight() { * script. */ public void set_satisfaction_weight(long val) { - bindings.Input_set_satisfaction_weight(this.ptr, val); + Bindings.InputSetSatisfactionWeight(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -85,7 +85,7 @@ public void set_satisfaction_weight(long val) { * Constructs a new Input given each field */ public static Input of(org.ldk.structs.OutPoint outpoint_arg, org.ldk.structs.TxOut previous_utxo_arg, long satisfaction_weight_arg) { - long ret = bindings.Input_new(outpoint_arg == null ? 0 : outpoint_arg.ptr, previous_utxo_arg.ptr, satisfaction_weight_arg); + long ret = Bindings.InputNew(outpoint_arg == null ? 0 : outpoint_arg.ptr, previous_utxo_arg.ptr, satisfaction_weight_arg); GC.KeepAlive(outpoint_arg); GC.KeepAlive(previous_utxo_arg); GC.KeepAlive(satisfaction_weight_arg); @@ -97,7 +97,7 @@ public static Input of(org.ldk.structs.OutPoint outpoint_arg, org.ldk.structs.Tx } internal long clone_ptr() { - long ret = bindings.Input_clone_ptr(this.ptr); + long ret = Bindings.InputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ internal long clone_ptr() { * Creates a copy of the Input */ public Input clone() { - long ret = bindings.Input_clone(this.ptr); + long ret = Bindings.InputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Input ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Input(null, ret); } @@ -118,7 +118,7 @@ public Input clone() { * Generates a non-cryptographic 64-bit hash of the Input. */ public long hash() { - long ret = bindings.Input_hash(this.ptr); + long ret = Bindings.InputHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -132,7 +132,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Input b) { - bool ret = bindings.Input_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.InputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/InvalidShutdownScript.cs b/c_sharp/src/org/ldk/structs/InvalidShutdownScript.cs index 4f739fa57..b4c55c58e 100644 --- a/c_sharp/src/org/ldk/structs/InvalidShutdownScript.cs +++ b/c_sharp/src/org/ldk/structs/InvalidShutdownScript.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class InvalidShutdownScript : CommonBase { internal InvalidShutdownScript(object _dummy, long ptr) : base(ptr) { } ~InvalidShutdownScript() { - if (ptr != 0) { bindings.InvalidShutdownScript_free(ptr); } + if (ptr != 0) { Bindings.InvalidShutdownScriptFree(ptr); } } /** @@ -21,10 +21,10 @@ internal InvalidShutdownScript(object _dummy, long ptr) : base(ptr) { } * [BOLT #2]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md */ public byte[] get_script() { - long ret = bindings.InvalidShutdownScript_get_script(this.ptr); + long ret = Bindings.InvalidShutdownScriptGetScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_script() { * [BOLT #2]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md */ public void set_script(byte[] val) { - bindings.InvalidShutdownScript_set_script(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.InvalidShutdownScriptSetScript(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_script(byte[] val) { * Constructs a new InvalidShutdownScript given each field */ public static InvalidShutdownScript of(byte[] script_arg) { - long ret = bindings.InvalidShutdownScript_new(InternalUtils.encodeUint8Array(script_arg)); + long ret = Bindings.InvalidShutdownScriptNew(InternalUtils.EncodeUint8Array(script_arg)); GC.KeepAlive(script_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvalidShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvalidShutdownScript(null, ret); } @@ -52,7 +52,7 @@ public static InvalidShutdownScript of(byte[] script_arg) { } internal long clone_ptr() { - long ret = bindings.InvalidShutdownScript_clone_ptr(this.ptr); + long ret = Bindings.InvalidShutdownScriptClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * Creates a copy of the InvalidShutdownScript */ public InvalidShutdownScript clone() { - long ret = bindings.InvalidShutdownScript_clone(this.ptr); + long ret = Bindings.InvalidShutdownScriptClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvalidShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvalidShutdownScript(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/InvoiceError.cs b/c_sharp/src/org/ldk/structs/InvoiceError.cs index d797add87..8fc9db13c 100644 --- a/c_sharp/src/org/ldk/structs/InvoiceError.cs +++ b/c_sharp/src/org/ldk/structs/InvoiceError.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class InvoiceError : CommonBase { internal InvoiceError(object _dummy, long ptr) : base(ptr) { } ~InvoiceError() { - if (ptr != 0) { bindings.InvoiceError_free(ptr); } + if (ptr != 0) { Bindings.InvoiceErrorFree(ptr); } } /** @@ -27,7 +27,7 @@ internal InvoiceError(object _dummy, long ptr) : base(ptr) { } * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ErroneousField get_erroneous_field() { - long ret = bindings.InvoiceError_get_erroneous_field(this.ptr); + long ret = Bindings.InvoiceErrorGetErroneousField(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErroneousField ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ErroneousField(null, ret); } @@ -44,7 +44,7 @@ public ErroneousField get_erroneous_field() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_erroneous_field(org.ldk.structs.ErroneousField val) { - bindings.InvoiceError_set_erroneous_field(this.ptr, val == null ? 0 : val.ptr); + Bindings.InvoiceErrorSetErroneousField(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -54,7 +54,7 @@ public void set_erroneous_field(org.ldk.structs.ErroneousField val) { * An explanation of the error. */ public UntrustedString get_message() { - long ret = bindings.InvoiceError_get_message(this.ptr); + long ret = Bindings.InvoiceErrorGetMessage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UntrustedString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UntrustedString(null, ret); } @@ -66,7 +66,7 @@ public UntrustedString get_message() { * An explanation of the error. */ public void set_message(org.ldk.structs.UntrustedString val) { - bindings.InvoiceError_set_message(this.ptr, val == null ? 0 : val.ptr); + Bindings.InvoiceErrorSetMessage(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -78,7 +78,7 @@ public void set_message(org.ldk.structs.UntrustedString val) { * Note that erroneous_field_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static InvoiceError of(org.ldk.structs.ErroneousField erroneous_field_arg, org.ldk.structs.UntrustedString message_arg) { - long ret = bindings.InvoiceError_new(erroneous_field_arg == null ? 0 : erroneous_field_arg.ptr, message_arg == null ? 0 : message_arg.ptr); + long ret = Bindings.InvoiceErrorNew(erroneous_field_arg == null ? 0 : erroneous_field_arg.ptr, message_arg == null ? 0 : message_arg.ptr); GC.KeepAlive(erroneous_field_arg); GC.KeepAlive(message_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -90,7 +90,7 @@ public static InvoiceError of(org.ldk.structs.ErroneousField erroneous_field_arg } internal long clone_ptr() { - long ret = bindings.InvoiceError_clone_ptr(this.ptr); + long ret = Bindings.InvoiceErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -99,7 +99,7 @@ internal long clone_ptr() { * Creates a copy of the InvoiceError */ public InvoiceError clone() { - long ret = bindings.InvoiceError_clone(this.ptr); + long ret = Bindings.InvoiceErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceError(null, ret); } @@ -111,7 +111,7 @@ public InvoiceError clone() { * Creates an [`InvoiceError`] with the given message. */ public static InvoiceError from_string(string s) { - long ret = bindings.InvoiceError_from_string(InternalUtils.encodeString(s)); + long ret = Bindings.InvoiceErrorFromString(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceError(null, ret); } @@ -123,10 +123,10 @@ public static InvoiceError from_string(string s) { * Serialize the InvoiceError object into a byte array which can be read by InvoiceError_read */ public byte[] write() { - long ret = bindings.InvoiceError_write(this.ptr); + long ret = Bindings.InvoiceErrorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -134,7 +134,7 @@ public byte[] write() { * Read a InvoiceError from a byte array, created by InvoiceError_write */ public static Result_InvoiceErrorDecodeErrorZ read(byte[] ser) { - long ret = bindings.InvoiceError_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.InvoiceErrorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_InvoiceErrorDecodeErrorZ ret_hu_conv = Result_InvoiceErrorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/InvoiceRequest.cs b/c_sharp/src/org/ldk/structs/InvoiceRequest.cs index edbbb5a67..0a8ec8369 100644 --- a/c_sharp/src/org/ldk/structs/InvoiceRequest.cs +++ b/c_sharp/src/org/ldk/structs/InvoiceRequest.cs @@ -18,11 +18,11 @@ namespace org { namespace ldk { namespace structs { public class InvoiceRequest : CommonBase { internal InvoiceRequest(object _dummy, long ptr) : base(ptr) { } ~InvoiceRequest() { - if (ptr != 0) { bindings.InvoiceRequest_free(ptr); } + if (ptr != 0) { Bindings.InvoiceRequestFree(ptr); } } internal long clone_ptr() { - long ret = bindings.InvoiceRequest_clone_ptr(this.ptr); + long ret = Bindings.InvoiceRequestClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -31,7 +31,7 @@ internal long clone_ptr() { * Creates a copy of the InvoiceRequest */ public InvoiceRequest clone() { - long ret = bindings.InvoiceRequest_clone(this.ptr); + long ret = Bindings.InvoiceRequestClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequest ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequest(null, ret); } @@ -45,17 +45,17 @@ public InvoiceRequest clone() { * for the selected chain. */ public byte[][] chains() { - long ret = bindings.InvoiceRequest_chains(this.ptr); + long ret = Bindings.InvoiceRequestChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -64,7 +64,7 @@ public byte[][] chains() { * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.InvoiceRequest_metadata(this.ptr); + long ret = Bindings.InvoiceRequestMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -78,7 +78,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.InvoiceRequest_amount(this.ptr); + long ret = Bindings.InvoiceRequestAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -91,7 +91,7 @@ public Amount amount() { * but with the caveat that it has not been verified in any way. */ public PrintableString description() { - long ret = bindings.InvoiceRequest_description(this.ptr); + long ret = Bindings.InvoiceRequestDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -103,7 +103,7 @@ public PrintableString description() { * Features pertaining to the offer. */ public OfferFeatures offer_features() { - long ret = bindings.InvoiceRequest_offer_features(this.ptr); + long ret = Bindings.InvoiceRequestOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -117,7 +117,7 @@ public OfferFeatures offer_features() { * If `None`, the offer does not expire. */ public Option_u64Z absolute_expiry() { - long ret = bindings.InvoiceRequest_absolute_expiry(this.ptr); + long ret = Bindings.InvoiceRequestAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -132,7 +132,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.InvoiceRequest_issuer(this.ptr); + long ret = Bindings.InvoiceRequestIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -145,18 +145,18 @@ public PrintableString issuer() { * recipient privacy by obfuscating its node id. */ public BlindedPath[] paths() { - long ret = bindings.InvoiceRequest_paths(this.ptr); + long ret = Bindings.InvoiceRequestPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -164,7 +164,7 @@ public BlindedPath[] paths() { * The quantity of items supported. */ public Quantity supported_quantity() { - long ret = bindings.InvoiceRequest_supported_quantity(this.ptr); + long ret = Bindings.InvoiceRequestSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -176,10 +176,10 @@ public Quantity supported_quantity() { * The public key used by the recipient to sign invoices. */ public byte[] signing_pubkey() { - long ret = bindings.InvoiceRequest_signing_pubkey(this.ptr); + long ret = Bindings.InvoiceRequestSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -190,10 +190,10 @@ public byte[] signing_pubkey() { * [`payer_id`]: Self::payer_id */ public byte[] payer_metadata() { - long ret = bindings.InvoiceRequest_payer_metadata(this.ptr); + long ret = Bindings.InvoiceRequestPayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -201,10 +201,10 @@ public byte[] payer_metadata() { * A chain from [`Offer::chains`] that the offer is valid for. */ public byte[] chain() { - long ret = bindings.InvoiceRequest_chain(this.ptr); + long ret = Bindings.InvoiceRequestChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -215,7 +215,7 @@ public byte[] chain() { * [`chain`]: Self::chain */ public Option_u64Z amount_msats() { - long ret = bindings.InvoiceRequest_amount_msats(this.ptr); + long ret = Bindings.InvoiceRequestAmountMsats(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -227,7 +227,7 @@ public Option_u64Z amount_msats() { * Features pertaining to requesting an invoice. */ public InvoiceRequestFeatures invoice_request_features() { - long ret = bindings.InvoiceRequest_invoice_request_features(this.ptr); + long ret = Bindings.InvoiceRequestInvoiceRequestFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -239,7 +239,7 @@ public InvoiceRequestFeatures invoice_request_features() { * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. */ public Option_u64Z quantity() { - long ret = bindings.InvoiceRequest_quantity(this.ptr); + long ret = Bindings.InvoiceRequestQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -251,10 +251,10 @@ public Option_u64Z quantity() { * A possibly transient pubkey used to sign the invoice request. */ public byte[] payer_id() { - long ret = bindings.InvoiceRequest_payer_id(this.ptr); + long ret = Bindings.InvoiceRequestPayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -265,7 +265,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.InvoiceRequest_payer_note(this.ptr); + long ret = Bindings.InvoiceRequestPayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -279,10 +279,10 @@ public PrintableString payer_note() { * [`payer_id`]: Self::payer_id */ public byte[] signature() { - long ret = bindings.InvoiceRequest_signature(this.ptr); + long ret = Bindings.InvoiceRequestSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -294,7 +294,7 @@ public byte[] signature() { * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ public Result_VerifiedInvoiceRequestNoneZ verify(org.ldk.structs.ExpandedKey key) { - long ret = bindings.InvoiceRequest_verify(this.ptr, key == null ? 0 : key.ptr); + long ret = Bindings.InvoiceRequestVerify(this.ptr, key == null ? 0 : key.ptr); GC.KeepAlive(this); GC.KeepAlive(key); if (ret >= 0 && ret <= 4096) { return null; } @@ -308,10 +308,10 @@ public Result_VerifiedInvoiceRequestNoneZ verify(org.ldk.structs.ExpandedKey key * Serialize the InvoiceRequest object into a byte array which can be read by InvoiceRequest_read */ public byte[] write() { - long ret = bindings.InvoiceRequest_write(this.ptr); + long ret = Bindings.InvoiceRequestWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs b/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs index f3d15d0db..604c146b8 100644 --- a/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs +++ b/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class InvoiceRequestFeatures : CommonBase { internal InvoiceRequestFeatures(object _dummy, long ptr) : base(ptr) { } ~InvoiceRequestFeatures() { - if (ptr != 0) { bindings.InvoiceRequestFeatures_free(ptr); } + if (ptr != 0) { Bindings.InvoiceRequestFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal InvoiceRequestFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.InvoiceRequestFeatures b) { - bool ret = bindings.InvoiceRequestFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.InvoiceRequestFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((InvoiceRequestFeatures)o); } internal long clone_ptr() { - long ret = bindings.InvoiceRequestFeatures_clone_ptr(this.ptr); + long ret = Bindings.InvoiceRequestFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the InvoiceRequestFeatures */ public InvoiceRequestFeatures clone() { - long ret = bindings.InvoiceRequestFeatures_clone(this.ptr); + long ret = Bindings.InvoiceRequestFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -54,7 +54,7 @@ public InvoiceRequestFeatures clone() { * Generates a non-cryptographic 64-bit hash of the InvoiceRequestFeatures. */ public long hash() { - long ret = bindings.InvoiceRequestFeatures_hash(this.ptr); + long ret = Bindings.InvoiceRequestFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static InvoiceRequestFeatures empty() { - long ret = bindings.InvoiceRequestFeatures_empty(); + long ret = Bindings.InvoiceRequestFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static InvoiceRequestFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.InvoiceRequestFeatures other) { - bool ret = bindings.InvoiceRequestFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.InvoiceRequestFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.InvoiceRequestFeatures ot * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.InvoiceRequestFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.InvoiceRequestFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.InvoiceRequestFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.InvoiceRequestFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.InvoiceRequestFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.InvoiceRequestFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.InvoiceRequestFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.InvoiceRequestFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.InvoiceRequestFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.InvoiceRequestFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/KVStore.cs b/c_sharp/src/org/ldk/structs/KVStore.cs index 8e33e985f..778eb2dc6 100644 --- a/c_sharp/src/org/ldk/structs/KVStore.cs +++ b/c_sharp/src/org/ldk/structs/KVStore.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of KVStore */ -public interface KVStoreInterface { +public interface IKVStore { /**Returns the data stored for the given `primary_namespace`, `secondary_namespace`, and * `key`. * @@ -75,50 +75,50 @@ public interface KVStoreInterface { * recover a `key` compatible with the data model previously assumed by `KVStorePersister::persist`. */ public class KVStore : CommonBase { - internal bindings.LDKKVStore bindings_instance; + internal Bindings.LDKKVStore bindings_instance; internal long instance_idx; internal KVStore(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~KVStore() { - if (ptr != 0) { bindings.KVStore_free(ptr); } + if (ptr != 0) { Bindings.KVStoreFree(ptr); } } private class LDKKVStoreHolder { internal KVStore held; } - private class LDKKVStoreImpl : bindings.LDKKVStore { - internal LDKKVStoreImpl(KVStoreInterface arg, LDKKVStoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private KVStoreInterface arg; + private class LDKKVStoreImpl : Bindings.LDKKVStore { + internal LDKKVStoreImpl(IKVStore arg, LDKKVStoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IKVStore arg; private LDKKVStoreHolder impl_holder; - public long read(long _primary_namespace, long _secondary_namespace, long _key) { - string _primary_namespace_conv = InternalUtils.decodeString(_primary_namespace); - string _secondary_namespace_conv = InternalUtils.decodeString(_secondary_namespace); - string _key_conv = InternalUtils.decodeString(_key); + public long Read(long _primary_namespace, long _secondary_namespace, long _key) { + string _primary_namespace_conv = InternalUtils.DecodeString(_primary_namespace); + string _secondary_namespace_conv = InternalUtils.DecodeString(_secondary_namespace); + string _key_conv = InternalUtils.DecodeString(_key); Result_CVec_u8ZIOErrorZ ret = arg.read(_primary_namespace_conv, _secondary_namespace_conv, _key_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long write(long _primary_namespace, long _secondary_namespace, long _key, long _buf) { - string _primary_namespace_conv = InternalUtils.decodeString(_primary_namespace); - string _secondary_namespace_conv = InternalUtils.decodeString(_secondary_namespace); - string _key_conv = InternalUtils.decodeString(_key); - byte[] _buf_conv = InternalUtils.decodeUint8Array(_buf); + public long Write(long _primary_namespace, long _secondary_namespace, long _key, long _buf) { + string _primary_namespace_conv = InternalUtils.DecodeString(_primary_namespace); + string _secondary_namespace_conv = InternalUtils.DecodeString(_secondary_namespace); + string _key_conv = InternalUtils.DecodeString(_key); + byte[] _buf_conv = InternalUtils.DecodeUint8Array(_buf); Result_NoneIOErrorZ ret = arg.write(_primary_namespace_conv, _secondary_namespace_conv, _key_conv, _buf_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long remove(long _primary_namespace, long _secondary_namespace, long _key, bool _lazy) { - string _primary_namespace_conv = InternalUtils.decodeString(_primary_namespace); - string _secondary_namespace_conv = InternalUtils.decodeString(_secondary_namespace); - string _key_conv = InternalUtils.decodeString(_key); + public long Remove(long _primary_namespace, long _secondary_namespace, long _key, bool _lazy) { + string _primary_namespace_conv = InternalUtils.DecodeString(_primary_namespace); + string _secondary_namespace_conv = InternalUtils.DecodeString(_secondary_namespace); + string _key_conv = InternalUtils.DecodeString(_key); Result_NoneIOErrorZ ret = arg.remove(_primary_namespace_conv, _secondary_namespace_conv, _key_conv, _lazy); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long list(long _primary_namespace, long _secondary_namespace) { - string _primary_namespace_conv = InternalUtils.decodeString(_primary_namespace); - string _secondary_namespace_conv = InternalUtils.decodeString(_secondary_namespace); + public long List(long _primary_namespace, long _secondary_namespace) { + string _primary_namespace_conv = InternalUtils.DecodeString(_primary_namespace); + string _secondary_namespace_conv = InternalUtils.DecodeString(_secondary_namespace); Result_CVec_StrZIOErrorZ ret = arg.list(_primary_namespace_conv, _secondary_namespace_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -127,10 +127,10 @@ public long list(long _primary_namespace, long _secondary_namespace) { } /** Creates a new instance of KVStore from a given implementation */ - public static KVStore new_impl(KVStoreInterface arg) { + public static KVStore new_impl(IKVStore arg) { LDKKVStoreHolder impl_holder = new LDKKVStoreHolder(); LDKKVStoreImpl impl = new LDKKVStoreImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKKVStore_new(impl); + long[] ptr_idx = Bindings.LDKKVStoreNew(impl); impl_holder.held = new KVStore(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -148,7 +148,7 @@ public static KVStore new_impl(KVStoreInterface arg) { * [`ErrorKind::NotFound`]: io::ErrorKind::NotFound */ public Result_CVec_u8ZIOErrorZ read(string primary_namespace, string secondary_namespace, string key) { - long ret = bindings.KVStore_read(this.ptr, InternalUtils.encodeString(primary_namespace), InternalUtils.encodeString(secondary_namespace), InternalUtils.encodeString(key)); + long ret = Bindings.KVStoreRead(this.ptr, InternalUtils.EncodeString(primary_namespace), InternalUtils.EncodeString(secondary_namespace), InternalUtils.EncodeString(key)); GC.KeepAlive(this); GC.KeepAlive(primary_namespace); GC.KeepAlive(secondary_namespace); @@ -165,7 +165,7 @@ public Result_CVec_u8ZIOErrorZ read(string primary_namespace, string secondary_n * in the store. */ public Result_NoneIOErrorZ write(string primary_namespace, string secondary_namespace, string key, byte[] buf) { - long ret = bindings.KVStore_write(this.ptr, InternalUtils.encodeString(primary_namespace), InternalUtils.encodeString(secondary_namespace), InternalUtils.encodeString(key), InternalUtils.encodeUint8Array(buf)); + long ret = Bindings.KVStoreWrite(this.ptr, InternalUtils.EncodeString(primary_namespace), InternalUtils.EncodeString(secondary_namespace), InternalUtils.EncodeString(key), InternalUtils.EncodeUint8Array(buf)); GC.KeepAlive(this); GC.KeepAlive(primary_namespace); GC.KeepAlive(secondary_namespace); @@ -194,7 +194,7 @@ public Result_NoneIOErrorZ write(string primary_namespace, string secondary_name * invokation or not. */ public Result_NoneIOErrorZ remove(string primary_namespace, string secondary_namespace, string key, bool lazy) { - long ret = bindings.KVStore_remove(this.ptr, InternalUtils.encodeString(primary_namespace), InternalUtils.encodeString(secondary_namespace), InternalUtils.encodeString(key), lazy); + long ret = Bindings.KVStoreRemove(this.ptr, InternalUtils.EncodeString(primary_namespace), InternalUtils.EncodeString(secondary_namespace), InternalUtils.EncodeString(key), lazy); GC.KeepAlive(this); GC.KeepAlive(primary_namespace); GC.KeepAlive(secondary_namespace); @@ -213,7 +213,7 @@ public Result_NoneIOErrorZ remove(string primary_namespace, string secondary_nam * returned keys. Returns an empty list if `primary_namespace` or `secondary_namespace` is unknown. */ public Result_CVec_StrZIOErrorZ list(string primary_namespace, string secondary_namespace) { - long ret = bindings.KVStore_list(this.ptr, InternalUtils.encodeString(primary_namespace), InternalUtils.encodeString(secondary_namespace)); + long ret = Bindings.KVStoreList(this.ptr, InternalUtils.EncodeString(primary_namespace), InternalUtils.EncodeString(secondary_namespace)); GC.KeepAlive(this); GC.KeepAlive(primary_namespace); GC.KeepAlive(secondary_namespace); diff --git a/c_sharp/src/org/ldk/structs/KeysManager.cs b/c_sharp/src/org/ldk/structs/KeysManager.cs index 1b7802854..cbda75436 100644 --- a/c_sharp/src/org/ldk/structs/KeysManager.cs +++ b/c_sharp/src/org/ldk/structs/KeysManager.cs @@ -24,7 +24,7 @@ namespace org { namespace ldk { namespace structs { public class KeysManager : CommonBase { internal KeysManager(object _dummy, long ptr) : base(ptr) { } ~KeysManager() { - if (ptr != 0) { bindings.KeysManager_free(ptr); } + if (ptr != 0) { Bindings.KeysManagerFree(ptr); } } /** @@ -47,7 +47,7 @@ internal KeysManager(object _dummy, long ptr) : base(ptr) { } * [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor */ public static KeysManager of(byte[] seed, long starting_time_secs, int starting_time_nanos) { - long ret = bindings.KeysManager_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(seed, 32)), starting_time_secs, starting_time_nanos); + long ret = Bindings.KeysManagerNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(seed, 32)), starting_time_secs, starting_time_nanos); GC.KeepAlive(seed); GC.KeepAlive(starting_time_secs); GC.KeepAlive(starting_time_nanos); @@ -61,10 +61,10 @@ public static KeysManager of(byte[] seed, long starting_time_secs, int starting_ * Gets the \"node_id\" secret key used to sign gossip announcements, decode onion data, etc. */ public byte[] get_node_secret_key() { - long ret = bindings.KeysManager_get_node_secret_key(this.ptr); + long ret = Bindings.KeysManagerGetNodeSecretKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -72,7 +72,7 @@ public byte[] get_node_secret_key() { * Derive an old [`WriteableEcdsaChannelSigner`] containing per-channel secrets based on a key derivation parameters. */ public InMemorySigner derive_channel_keys(long channel_value_satoshis, byte[] _params) { - long ret = bindings.KeysManager_derive_channel_keys(this.ptr, channel_value_satoshis, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(_params, 32))); + long ret = Bindings.KeysManagerDeriveChannelKeys(this.ptr, channel_value_satoshis, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(_params, 32))); GC.KeepAlive(this); GC.KeepAlive(channel_value_satoshis); GC.KeepAlive(_params); @@ -93,7 +93,7 @@ public InMemorySigner derive_channel_keys(long channel_value_satoshis, byte[] _p * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ public Result_CVec_u8ZNoneZ sign_spendable_outputs_psbt(SpendableOutputDescriptor[] descriptors, byte[] psbt) { - long ret = bindings.KeysManager_sign_spendable_outputs_psbt(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.encodeUint8Array(psbt)); + long ret = Bindings.KeysManagerSignSpendableOutputsPsbt(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.EncodeUint8Array(psbt)); GC.KeepAlive(this); GC.KeepAlive(descriptors); GC.KeepAlive(psbt); @@ -123,7 +123,7 @@ public Result_CVec_u8ZNoneZ sign_spendable_outputs_psbt(SpendableOutputDescripto * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ public Result_TransactionNoneZ spend_spendable_outputs(SpendableOutputDescriptor[] descriptors, TxOut[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, org.ldk.structs.Option_u32Z locktime) { - long ret = bindings.KeysManager_spend_spendable_outputs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.encodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); + long ret = Bindings.KeysManagerSpendSpendableOutputs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.EncodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); GC.KeepAlive(this); GC.KeepAlive(descriptors); GC.KeepAlive(outputs); @@ -142,7 +142,7 @@ public Result_TransactionNoneZ spend_spendable_outputs(SpendableOutputDescriptor * This copies the `inner` pointer in this_arg and thus the returned EntropySource must be freed before this_arg is */ public EntropySource as_EntropySource() { - long ret = bindings.KeysManager_as_EntropySource(this.ptr); + long ret = Bindings.KeysManagerAsEntropySource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EntropySource ret_hu_conv = new EntropySource(null, ret); @@ -155,7 +155,7 @@ public EntropySource as_EntropySource() { * This copies the `inner` pointer in this_arg and thus the returned NodeSigner must be freed before this_arg is */ public NodeSigner as_NodeSigner() { - long ret = bindings.KeysManager_as_NodeSigner(this.ptr); + long ret = Bindings.KeysManagerAsNodeSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } NodeSigner ret_hu_conv = new NodeSigner(null, ret); @@ -168,7 +168,7 @@ public NodeSigner as_NodeSigner() { * This copies the `inner` pointer in this_arg and thus the returned SignerProvider must be freed before this_arg is */ public SignerProvider as_SignerProvider() { - long ret = bindings.KeysManager_as_SignerProvider(this.ptr); + long ret = Bindings.KeysManagerAsSignerProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } SignerProvider ret_hu_conv = new SignerProvider(null, ret); diff --git a/c_sharp/src/org/ldk/structs/LightningError.cs b/c_sharp/src/org/ldk/structs/LightningError.cs index b06f312fb..907ca5b28 100644 --- a/c_sharp/src/org/ldk/structs/LightningError.cs +++ b/c_sharp/src/org/ldk/structs/LightningError.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class LightningError : CommonBase { internal LightningError(object _dummy, long ptr) : base(ptr) { } ~LightningError() { - if (ptr != 0) { bindings.LightningError_free(ptr); } + if (ptr != 0) { Bindings.LightningErrorFree(ptr); } } /** * A human-readable message describing the error */ public string get_err() { - long ret = bindings.LightningError_get_err(this.ptr); + long ret = Bindings.LightningErrorGetErr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -30,7 +30,7 @@ public string get_err() { * A human-readable message describing the error */ public void set_err(string val) { - bindings.LightningError_set_err(this.ptr, InternalUtils.encodeString(val)); + Bindings.LightningErrorSetErr(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_err(string val) { * The action which should be taken against the offending peer. */ public ErrorAction get_action() { - long ret = bindings.LightningError_get_action(this.ptr); + long ret = Bindings.LightningErrorGetAction(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ErrorAction ret_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public ErrorAction get_action() { * The action which should be taken against the offending peer. */ public void set_action(org.ldk.structs.ErrorAction val) { - bindings.LightningError_set_action(this.ptr, val.ptr); + Bindings.LightningErrorSetAction(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -61,7 +61,7 @@ public void set_action(org.ldk.structs.ErrorAction val) { * Constructs a new LightningError given each field */ public static LightningError of(string err_arg, org.ldk.structs.ErrorAction action_arg) { - long ret = bindings.LightningError_new(InternalUtils.encodeString(err_arg), action_arg.ptr); + long ret = Bindings.LightningErrorNew(InternalUtils.EncodeString(err_arg), action_arg.ptr); GC.KeepAlive(err_arg); GC.KeepAlive(action_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -72,7 +72,7 @@ public static LightningError of(string err_arg, org.ldk.structs.ErrorAction acti } internal long clone_ptr() { - long ret = bindings.LightningError_clone_ptr(this.ptr); + long ret = Bindings.LightningErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * Creates a copy of the LightningError */ public LightningError clone() { - long ret = bindings.LightningError_clone(this.ptr); + long ret = Bindings.LightningErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.LightningError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.LightningError(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/Listen.cs b/c_sharp/src/org/ldk/structs/Listen.cs index fa31f7146..a4efa6b40 100644 --- a/c_sharp/src/org/ldk/structs/Listen.cs +++ b/c_sharp/src/org/ldk/structs/Listen.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Listen */ -public interface ListenInterface { +public interface IListen { /**Notifies the listener that a block was added at the given height, with the transaction data * possibly filtered. */ @@ -36,50 +36,50 @@ public interface ListenInterface { * other similar filtering. */ public class Listen : CommonBase { - internal bindings.LDKListen bindings_instance; + internal Bindings.LDKListen bindings_instance; internal long instance_idx; internal Listen(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Listen() { - if (ptr != 0) { bindings.Listen_free(ptr); } + if (ptr != 0) { Bindings.ListenFree(ptr); } } private class LDKListenHolder { internal Listen held; } - private class LDKListenImpl : bindings.LDKListen { - internal LDKListenImpl(ListenInterface arg, LDKListenHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ListenInterface arg; + private class LDKListenImpl : Bindings.LDKListen { + internal LDKListenImpl(IListen arg, LDKListenHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IListen arg; private LDKListenHolder impl_holder; - public void filtered_block_connected(long _header, long _txdata, int _height) { - byte[] _header_conv = InternalUtils.decodeUint8Array(_header); - int _txdata_conv_28_len = InternalUtils.getArrayLength(_txdata); + public void FilteredBlockConnected(long _header, long _txdata, int _height) { + byte[] _header_conv = InternalUtils.DecodeUint8Array(_header); + int _txdata_conv_28_len = InternalUtils.GetArrayLength(_txdata); TwoTuple_usizeTransactionZ[] _txdata_conv_28_arr = new TwoTuple_usizeTransactionZ[_txdata_conv_28_len]; for (int c = 0; c < _txdata_conv_28_len; c++) { - long _txdata_conv_28 = InternalUtils.getU64ArrayElem(_txdata, c); + long _txdata_conv_28 = InternalUtils.GetU64ArrayElem(_txdata, c); TwoTuple_usizeTransactionZ _txdata_conv_28_hu_conv = new TwoTuple_usizeTransactionZ(null, _txdata_conv_28); if (_txdata_conv_28_hu_conv != null) { _txdata_conv_28_hu_conv.ptrs_to.AddLast(this); }; _txdata_conv_28_arr[c] = _txdata_conv_28_hu_conv; } - bindings.free_buffer(_txdata); + Bindings.FreeBuffer(_txdata); arg.filtered_block_connected(_header_conv, _txdata_conv_28_arr, _height); GC.KeepAlive(arg); } - public void block_connected(long _block, int _height) { - byte[] _block_conv = InternalUtils.decodeUint8Array(_block); + public void BlockConnected(long _block, int _height) { + byte[] _block_conv = InternalUtils.DecodeUint8Array(_block); arg.block_connected(_block_conv, _height); GC.KeepAlive(arg); } - public void block_disconnected(long _header, int _height) { - byte[] _header_conv = InternalUtils.decodeUint8Array(_header); + public void BlockDisconnected(long _header, int _height) { + byte[] _header_conv = InternalUtils.DecodeUint8Array(_header); arg.block_disconnected(_header_conv, _height); GC.KeepAlive(arg); } } /** Creates a new instance of Listen from a given implementation */ - public static Listen new_impl(ListenInterface arg) { + public static Listen new_impl(IListen arg) { LDKListenHolder impl_holder = new LDKListenHolder(); LDKListenImpl impl = new LDKListenImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKListen_new(impl); + long[] ptr_idx = Bindings.LDKListenNew(impl); impl_holder.held = new Listen(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -92,7 +92,7 @@ public static Listen new_impl(ListenInterface arg) { * possibly filtered. */ public void filtered_block_connected(byte[] header, TwoTuple_usizeTransactionZ[] txdata, int height) { - bindings.Listen_filtered_block_connected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height); + Bindings.ListenFilteredBlockConnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(txdata, txdata_conv_28 => txdata_conv_28 != null ? txdata_conv_28.ptr : 0)), height); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(txdata); @@ -103,7 +103,7 @@ public void filtered_block_connected(byte[] header, TwoTuple_usizeTransactionZ[] * Notifies the listener that a block was added at the given height. */ public void block_connected(byte[] block, int height) { - bindings.Listen_block_connected(this.ptr, InternalUtils.encodeUint8Array(block), height); + Bindings.ListenBlockConnected(this.ptr, InternalUtils.EncodeUint8Array(block), height); GC.KeepAlive(this); GC.KeepAlive(block); GC.KeepAlive(height); @@ -113,7 +113,7 @@ public void block_connected(byte[] block, int height) { * Notifies the listener that a block was removed at the given height. */ public void block_disconnected(byte[] header, int height) { - bindings.Listen_block_disconnected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(header, 80)), height); + Bindings.ListenBlockDisconnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(header, 80)), height); GC.KeepAlive(this); GC.KeepAlive(header); GC.KeepAlive(height); diff --git a/c_sharp/src/org/ldk/structs/LockableScore.cs b/c_sharp/src/org/ldk/structs/LockableScore.cs index 8b1abf3a2..1f14eb93e 100644 --- a/c_sharp/src/org/ldk/structs/LockableScore.cs +++ b/c_sharp/src/org/ldk/structs/LockableScore.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of LockableScore */ -public interface LockableScoreInterface { +public interface ILockableScore { /**Returns read locked scorer. */ ScoreLookUp read_lock(); @@ -29,27 +29,27 @@ public interface LockableScoreInterface { * [`find_route`]: crate::routing::router::find_route */ public class LockableScore : CommonBase { - internal bindings.LDKLockableScore bindings_instance; + internal Bindings.LDKLockableScore bindings_instance; internal long instance_idx; internal LockableScore(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~LockableScore() { - if (ptr != 0) { bindings.LockableScore_free(ptr); } + if (ptr != 0) { Bindings.LockableScoreFree(ptr); } } private class LDKLockableScoreHolder { internal LockableScore held; } - private class LDKLockableScoreImpl : bindings.LDKLockableScore { - internal LDKLockableScoreImpl(LockableScoreInterface arg, LDKLockableScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private LockableScoreInterface arg; + private class LDKLockableScoreImpl : Bindings.LDKLockableScore { + internal LDKLockableScoreImpl(ILockableScore arg, LDKLockableScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ILockableScore arg; private LDKLockableScoreHolder impl_holder; - public long read_lock() { + public long ReadLock() { ScoreLookUp ret = arg.read_lock(); GC.KeepAlive(arg); long result = ret.ptr; if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret); }; return result; } - public long write_lock() { + public long WriteLock() { ScoreUpdate ret = arg.write_lock(); GC.KeepAlive(arg); long result = ret.ptr; @@ -59,10 +59,10 @@ public long write_lock() { } /** Creates a new instance of LockableScore from a given implementation */ - public static LockableScore new_impl(LockableScoreInterface arg) { + public static LockableScore new_impl(ILockableScore arg) { LDKLockableScoreHolder impl_holder = new LDKLockableScoreHolder(); LDKLockableScoreImpl impl = new LDKLockableScoreImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKLockableScore_new(impl); + long[] ptr_idx = Bindings.LDKLockableScoreNew(impl); impl_holder.held = new LockableScore(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -74,7 +74,7 @@ public static LockableScore new_impl(LockableScoreInterface arg) { * Returns read locked scorer. */ public ScoreLookUp read_lock() { - long ret = bindings.LockableScore_read_lock(this.ptr); + long ret = Bindings.LockableScoreReadLock(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); @@ -86,7 +86,7 @@ public ScoreLookUp read_lock() { * Returns write locked scorer. */ public ScoreUpdate write_lock() { - long ret = bindings.LockableScore_write_lock(this.ptr); + long ret = Bindings.LockableScoreWriteLock(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreUpdate ret_hu_conv = new ScoreUpdate(null, ret); diff --git a/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs b/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs index 35ded467c..4d9bd9bf3 100644 --- a/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs +++ b/c_sharp/src/org/ldk/structs/LockedChannelMonitor.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class LockedChannelMonitor : CommonBase, IDisposable { internal LockedChannelMonitor(object _dummy, long ptr) : base(ptr) { } public void Dispose() { - if (ptr != 0) { bindings.LockedChannelMonitor_free(ptr); } + if (ptr != 0) { Bindings.LockedChannelMonitorFree(ptr); } } } diff --git a/c_sharp/src/org/ldk/structs/Logger.cs b/c_sharp/src/org/ldk/structs/Logger.cs index ef2533979..df161fdf8 100644 --- a/c_sharp/src/org/ldk/structs/Logger.cs +++ b/c_sharp/src/org/ldk/structs/Logger.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Logger */ -public interface LoggerInterface { +public interface ILogger { /**Logs the [`Record`]. */ void log(Record record); @@ -19,20 +19,20 @@ public interface LoggerInterface { * A trait encapsulating the operations required of a logger. */ public class Logger : CommonBase { - internal bindings.LDKLogger bindings_instance; + internal Bindings.LDKLogger bindings_instance; internal long instance_idx; internal Logger(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Logger() { - if (ptr != 0) { bindings.Logger_free(ptr); } + if (ptr != 0) { Bindings.LoggerFree(ptr); } } private class LDKLoggerHolder { internal Logger held; } - private class LDKLoggerImpl : bindings.LDKLogger { - internal LDKLoggerImpl(LoggerInterface arg, LDKLoggerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private LoggerInterface arg; + private class LDKLoggerImpl : Bindings.LDKLogger { + internal LDKLoggerImpl(ILogger arg, LDKLoggerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ILogger arg; private LDKLoggerHolder impl_holder; - public void log(long _record) { + public void Log(long _record) { org.ldk.structs.Record _record_hu_conv = null; if (_record < 0 || _record > 4096) { _record_hu_conv = new org.ldk.structs.Record(null, _record); } if (_record_hu_conv != null) { _record_hu_conv.ptrs_to.AddLast(this); }; arg.log(_record_hu_conv); @@ -41,10 +41,10 @@ public void log(long _record) { } /** Creates a new instance of Logger from a given implementation */ - public static Logger new_impl(LoggerInterface arg) { + public static Logger new_impl(ILogger arg) { LDKLoggerHolder impl_holder = new LDKLoggerHolder(); LDKLoggerImpl impl = new LDKLoggerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKLogger_new(impl); + long[] ptr_idx = Bindings.LDKLoggerNew(impl); impl_holder.held = new Logger(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; diff --git a/c_sharp/src/org/ldk/structs/MaxDustHTLCExposure.cs b/c_sharp/src/org/ldk/structs/MaxDustHTLCExposure.cs index 3cc67b310..fdb69d0e5 100644 --- a/c_sharp/src/org/ldk/structs/MaxDustHTLCExposure.cs +++ b/c_sharp/src/org/ldk/structs/MaxDustHTLCExposure.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class MaxDustHTLCExposure : CommonBase { protected MaxDustHTLCExposure(object _dummy, long ptr) : base(ptr) { } ~MaxDustHTLCExposure() { - if (ptr != 0) { bindings.MaxDustHTLCExposure_free(ptr); } + if (ptr != 0) { Bindings.MaxDustHTLCExposureFree(ptr); } } internal static MaxDustHTLCExposure constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKMaxDustHTLCExposure_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKMaxDustHTLCExposureTyFromPtr(ptr); switch (raw_ty) { case 0: return new MaxDustHTLCExposure_FixedLimitMsat(ptr); case 1: return new MaxDustHTLCExposure_FeeRateMultiplier(ptr); @@ -29,18 +29,18 @@ internal static MaxDustHTLCExposure constr_from_ptr(long ptr) { public class MaxDustHTLCExposure_FixedLimitMsat : MaxDustHTLCExposure { public long fixed_limit_msat; internal MaxDustHTLCExposure_FixedLimitMsat(long ptr) : base(null, ptr) { - this.fixed_limit_msat = bindings.LDKMaxDustHTLCExposure_FixedLimitMsat_get_fixed_limit_msat(ptr); + this.fixed_limit_msat = Bindings.LDKMaxDustHTLCExposureFixedLimitMsatGetFixedLimitMsat(ptr); } } /** A MaxDustHTLCExposure of type FeeRateMultiplier */ public class MaxDustHTLCExposure_FeeRateMultiplier : MaxDustHTLCExposure { public long fee_rate_multiplier; internal MaxDustHTLCExposure_FeeRateMultiplier(long ptr) : base(null, ptr) { - this.fee_rate_multiplier = bindings.LDKMaxDustHTLCExposure_FeeRateMultiplier_get_fee_rate_multiplier(ptr); + this.fee_rate_multiplier = Bindings.LDKMaxDustHTLCExposureFeeRateMultiplierGetFeeRateMultiplier(ptr); } } internal long clone_ptr() { - long ret = bindings.MaxDustHTLCExposure_clone_ptr(this.ptr); + long ret = Bindings.MaxDustHTLCExposureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * Creates a copy of the MaxDustHTLCExposure */ public MaxDustHTLCExposure clone() { - long ret = bindings.MaxDustHTLCExposure_clone(this.ptr); + long ret = Bindings.MaxDustHTLCExposureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MaxDustHTLCExposure ret_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(ret); @@ -61,7 +61,7 @@ public MaxDustHTLCExposure clone() { * Utility method to constructs a new FixedLimitMsat-variant MaxDustHTLCExposure */ public static MaxDustHTLCExposure fixed_limit_msat(long a) { - long ret = bindings.MaxDustHTLCExposure_fixed_limit_msat(a); + long ret = Bindings.MaxDustHTLCExposureFixedLimitMsat(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MaxDustHTLCExposure ret_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(ret); @@ -73,7 +73,7 @@ public static MaxDustHTLCExposure fixed_limit_msat(long a) { * Utility method to constructs a new FeeRateMultiplier-variant MaxDustHTLCExposure */ public static MaxDustHTLCExposure fee_rate_multiplier(long a) { - long ret = bindings.MaxDustHTLCExposure_fee_rate_multiplier(a); + long ret = Bindings.MaxDustHTLCExposureFeeRateMultiplier(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MaxDustHTLCExposure ret_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(ret); @@ -86,7 +86,7 @@ public static MaxDustHTLCExposure fee_rate_multiplier(long a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.MaxDustHTLCExposure b) { - bool ret = bindings.MaxDustHTLCExposure_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.MaxDustHTLCExposureEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -100,10 +100,10 @@ public override bool Equals(object o) { * Serialize the MaxDustHTLCExposure object into a byte array which can be read by MaxDustHTLCExposure_read */ public byte[] write() { - long ret = bindings.MaxDustHTLCExposure_write(this.ptr); + long ret = Bindings.MaxDustHTLCExposureWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -111,7 +111,7 @@ public byte[] write() { * Read a MaxDustHTLCExposure from a byte array, created by MaxDustHTLCExposure_write */ public static Result_MaxDustHTLCExposureDecodeErrorZ read(byte[] ser) { - long ret = bindings.MaxDustHTLCExposure_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.MaxDustHTLCExposureRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_MaxDustHTLCExposureDecodeErrorZ ret_hu_conv = Result_MaxDustHTLCExposureDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/MessageHandler.cs b/c_sharp/src/org/ldk/structs/MessageHandler.cs index da7bd7c52..4c953f741 100644 --- a/c_sharp/src/org/ldk/structs/MessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/MessageHandler.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class MessageHandler : CommonBase { internal MessageHandler(object _dummy, long ptr) : base(ptr) { } ~MessageHandler() { - if (ptr != 0) { bindings.MessageHandler_free(ptr); } + if (ptr != 0) { Bindings.MessageHandlerFree(ptr); } } /** @@ -22,7 +22,7 @@ internal MessageHandler(object _dummy, long ptr) : base(ptr) { } * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public ChannelMessageHandler get_chan_handler() { - long ret = bindings.MessageHandler_get_chan_handler(this.ptr); + long ret = Bindings.MessageHandlerGetChanHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ChannelMessageHandler ret_hu_conv = new ChannelMessageHandler(null, ret); @@ -37,7 +37,7 @@ public ChannelMessageHandler get_chan_handler() { * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public void set_chan_handler(org.ldk.structs.ChannelMessageHandler val) { - bindings.MessageHandler_set_chan_handler(this.ptr, val.ptr); + Bindings.MessageHandlerSetChanHandler(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -50,7 +50,7 @@ public void set_chan_handler(org.ldk.structs.ChannelMessageHandler val) { * [`P2PGossipSync`]: crate::routing::gossip::P2PGossipSync */ public RoutingMessageHandler get_route_handler() { - long ret = bindings.MessageHandler_get_route_handler(this.ptr); + long ret = Bindings.MessageHandlerGetRouteHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } RoutingMessageHandler ret_hu_conv = new RoutingMessageHandler(null, ret); @@ -65,7 +65,7 @@ public RoutingMessageHandler get_route_handler() { * [`P2PGossipSync`]: crate::routing::gossip::P2PGossipSync */ public void set_route_handler(org.ldk.structs.RoutingMessageHandler val) { - bindings.MessageHandler_set_route_handler(this.ptr, val.ptr); + Bindings.MessageHandlerSetRouteHandler(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -78,7 +78,7 @@ public void set_route_handler(org.ldk.structs.RoutingMessageHandler val) { * [`OnionMessenger`]: crate::onion_message::messenger::OnionMessenger */ public OnionMessageHandler get_onion_message_handler() { - long ret = bindings.MessageHandler_get_onion_message_handler(this.ptr); + long ret = Bindings.MessageHandlerGetOnionMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageHandler ret_hu_conv = new OnionMessageHandler(null, ret); @@ -93,7 +93,7 @@ public OnionMessageHandler get_onion_message_handler() { * [`OnionMessenger`]: crate::onion_message::messenger::OnionMessenger */ public void set_onion_message_handler(org.ldk.structs.OnionMessageHandler val) { - bindings.MessageHandler_set_onion_message_handler(this.ptr, val.ptr); + Bindings.MessageHandlerSetOnionMessageHandler(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -104,7 +104,7 @@ public void set_onion_message_handler(org.ldk.structs.OnionMessageHandler val) { * [`IgnoringMessageHandler`]. */ public CustomMessageHandler get_custom_message_handler() { - long ret = bindings.MessageHandler_get_custom_message_handler(this.ptr); + long ret = Bindings.MessageHandlerGetCustomMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } CustomMessageHandler ret_hu_conv = new CustomMessageHandler(null, ret); @@ -117,7 +117,7 @@ public CustomMessageHandler get_custom_message_handler() { * [`IgnoringMessageHandler`]. */ public void set_custom_message_handler(org.ldk.structs.CustomMessageHandler val) { - bindings.MessageHandler_set_custom_message_handler(this.ptr, val.ptr); + Bindings.MessageHandlerSetCustomMessageHandler(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -127,7 +127,7 @@ public void set_custom_message_handler(org.ldk.structs.CustomMessageHandler val) * Constructs a new MessageHandler given each field */ public static MessageHandler of(org.ldk.structs.ChannelMessageHandler chan_handler_arg, org.ldk.structs.RoutingMessageHandler route_handler_arg, org.ldk.structs.OnionMessageHandler onion_message_handler_arg, org.ldk.structs.CustomMessageHandler custom_message_handler_arg) { - long ret = bindings.MessageHandler_new(chan_handler_arg.ptr, route_handler_arg.ptr, onion_message_handler_arg.ptr, custom_message_handler_arg.ptr); + long ret = Bindings.MessageHandlerNew(chan_handler_arg.ptr, route_handler_arg.ptr, onion_message_handler_arg.ptr, custom_message_handler_arg.ptr); GC.KeepAlive(chan_handler_arg); GC.KeepAlive(route_handler_arg); GC.KeepAlive(onion_message_handler_arg); diff --git a/c_sharp/src/org/ldk/structs/MessageRouter.cs b/c_sharp/src/org/ldk/structs/MessageRouter.cs index 12f593e16..c3de31f86 100644 --- a/c_sharp/src/org/ldk/structs/MessageRouter.cs +++ b/c_sharp/src/org/ldk/structs/MessageRouter.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of MessageRouter */ -public interface MessageRouterInterface { +public interface IMessageRouter { /**Returns a route for sending an [`OnionMessage`] to the given [`Destination`]. */ Result_OnionMessagePathNoneZ find_path(byte[] sender, byte[][] peers, Destination destination); @@ -23,29 +23,29 @@ public interface MessageRouterInterface { * A trait defining behavior for routing an [`OnionMessage`]. */ public class MessageRouter : CommonBase { - internal bindings.LDKMessageRouter bindings_instance; + internal Bindings.LDKMessageRouter bindings_instance; internal long instance_idx; internal MessageRouter(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~MessageRouter() { - if (ptr != 0) { bindings.MessageRouter_free(ptr); } + if (ptr != 0) { Bindings.MessageRouterFree(ptr); } } private class LDKMessageRouterHolder { internal MessageRouter held; } - private class LDKMessageRouterImpl : bindings.LDKMessageRouter { - internal LDKMessageRouterImpl(MessageRouterInterface arg, LDKMessageRouterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private MessageRouterInterface arg; + private class LDKMessageRouterImpl : Bindings.LDKMessageRouter { + internal LDKMessageRouterImpl(IMessageRouter arg, LDKMessageRouterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IMessageRouter arg; private LDKMessageRouterHolder impl_holder; - public long find_path(long _sender, long _peers, long _destination) { - byte[] _sender_conv = InternalUtils.decodeUint8Array(_sender); - int _peers_conv_8_len = InternalUtils.getArrayLength(_peers); + public long FindPath(long _sender, long _peers, long _destination) { + byte[] _sender_conv = InternalUtils.DecodeUint8Array(_sender); + int _peers_conv_8_len = InternalUtils.GetArrayLength(_peers); byte[][] _peers_conv_8_arr = new byte[_peers_conv_8_len][]; for (int i = 0; i < _peers_conv_8_len; i++) { - long _peers_conv_8 = InternalUtils.getU64ArrayElem(_peers, i); - byte[] _peers_conv_8_conv = InternalUtils.decodeUint8Array(_peers_conv_8); + long _peers_conv_8 = InternalUtils.GetU64ArrayElem(_peers, i); + byte[] _peers_conv_8_conv = InternalUtils.DecodeUint8Array(_peers_conv_8); _peers_conv_8_arr[i] = _peers_conv_8_conv; } - bindings.free_buffer(_peers); + Bindings.FreeBuffer(_peers); org.ldk.structs.Destination _destination_hu_conv = org.ldk.structs.Destination.constr_from_ptr(_destination); if (_destination_hu_conv != null) { _destination_hu_conv.ptrs_to.AddLast(this); }; Result_OnionMessagePathNoneZ ret = arg.find_path(_sender_conv, _peers_conv_8_arr, _destination_hu_conv); @@ -53,16 +53,16 @@ public long find_path(long _sender, long _peers, long _destination) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long create_blinded_paths(long _recipient, long _peers) { - byte[] _recipient_conv = InternalUtils.decodeUint8Array(_recipient); - int _peers_conv_8_len = InternalUtils.getArrayLength(_peers); + public long CreateBlindedPaths(long _recipient, long _peers) { + byte[] _recipient_conv = InternalUtils.DecodeUint8Array(_recipient); + int _peers_conv_8_len = InternalUtils.GetArrayLength(_peers); byte[][] _peers_conv_8_arr = new byte[_peers_conv_8_len][]; for (int i = 0; i < _peers_conv_8_len; i++) { - long _peers_conv_8 = InternalUtils.getU64ArrayElem(_peers, i); - byte[] _peers_conv_8_conv = InternalUtils.decodeUint8Array(_peers_conv_8); + long _peers_conv_8 = InternalUtils.GetU64ArrayElem(_peers, i); + byte[] _peers_conv_8_conv = InternalUtils.DecodeUint8Array(_peers_conv_8); _peers_conv_8_arr[i] = _peers_conv_8_conv; } - bindings.free_buffer(_peers); + Bindings.FreeBuffer(_peers); Result_CVec_BlindedPathZNoneZ ret = arg.create_blinded_paths(_recipient_conv, _peers_conv_8_arr); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -71,10 +71,10 @@ public long create_blinded_paths(long _recipient, long _peers) { } /** Creates a new instance of MessageRouter from a given implementation */ - public static MessageRouter new_impl(MessageRouterInterface arg) { + public static MessageRouter new_impl(IMessageRouter arg) { LDKMessageRouterHolder impl_holder = new LDKMessageRouterHolder(); LDKMessageRouterImpl impl = new LDKMessageRouterImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKMessageRouter_new(impl); + long[] ptr_idx = Bindings.LDKMessageRouterNew(impl); impl_holder.held = new MessageRouter(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -86,7 +86,7 @@ public static MessageRouter new_impl(MessageRouterInterface arg) { * Returns a route for sending an [`OnionMessage`] to the given [`Destination`]. */ public Result_OnionMessagePathNoneZ find_path(byte[] sender, byte[][] peers, org.ldk.structs.Destination destination) { - long ret = bindings.MessageRouter_find_path(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(sender, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(peers, peers_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(peers_conv_8, 33)))), destination.ptr); + long ret = Bindings.MessageRouterFindPath(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(sender, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(peers, peers_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(peers_conv_8, 33)))), destination.ptr); GC.KeepAlive(this); GC.KeepAlive(sender); GC.KeepAlive(peers); @@ -102,7 +102,7 @@ public Result_OnionMessagePathNoneZ find_path(byte[] sender, byte[][] peers, org * direct peers with the `recipient`. */ public Result_CVec_BlindedPathZNoneZ create_blinded_paths(byte[] recipient, byte[][] peers) { - long ret = bindings.MessageRouter_create_blinded_paths(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(recipient, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(peers, peers_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(peers_conv_8, 33))))); + long ret = Bindings.MessageRouterCreateBlindedPaths(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(recipient, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(peers, peers_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(peers_conv_8, 33))))); GC.KeepAlive(this); GC.KeepAlive(recipient); GC.KeepAlive(peers); diff --git a/c_sharp/src/org/ldk/structs/MessageSendEvent.cs b/c_sharp/src/org/ldk/structs/MessageSendEvent.cs index fb60dee8e..47f546b5a 100644 --- a/c_sharp/src/org/ldk/structs/MessageSendEvent.cs +++ b/c_sharp/src/org/ldk/structs/MessageSendEvent.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class MessageSendEvent : CommonBase { protected MessageSendEvent(object _dummy, long ptr) : base(ptr) { } ~MessageSendEvent() { - if (ptr != 0) { bindings.MessageSendEvent_free(ptr); } + if (ptr != 0) { Bindings.MessageSendEventFree(ptr); } } internal static MessageSendEvent constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKMessageSendEvent_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKMessageSendEventTyFromPtr(ptr); switch (raw_ty) { case 0: return new MessageSendEvent_SendAcceptChannel(ptr); case 1: return new MessageSendEvent_SendAcceptChannelV2(ptr); @@ -71,10 +71,10 @@ public class MessageSendEvent_SendAcceptChannel : MessageSendEvent { */ public AcceptChannel msg; internal MessageSendEvent_SendAcceptChannel(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendAcceptChannelGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendAcceptChannelGetMsg(ptr); org.ldk.structs.AcceptChannel msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.AcceptChannel(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -91,10 +91,10 @@ public class MessageSendEvent_SendAcceptChannelV2 : MessageSendEvent { */ public AcceptChannelV2 msg; internal MessageSendEvent_SendAcceptChannelV2(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendAcceptChannelV2GetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendAcceptChannelV2GetMsg(ptr); org.ldk.structs.AcceptChannelV2 msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.AcceptChannelV2(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -111,10 +111,10 @@ public class MessageSendEvent_SendOpenChannel : MessageSendEvent { */ public OpenChannel msg; internal MessageSendEvent_SendOpenChannel(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendOpenChannelGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendOpenChannel_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendOpenChannelGetMsg(ptr); org.ldk.structs.OpenChannel msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.OpenChannel(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -131,10 +131,10 @@ public class MessageSendEvent_SendOpenChannelV2 : MessageSendEvent { */ public OpenChannelV2 msg; internal MessageSendEvent_SendOpenChannelV2(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendOpenChannelV2GetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendOpenChannelV2GetMsg(ptr); org.ldk.structs.OpenChannelV2 msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.OpenChannelV2(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -151,10 +151,10 @@ public class MessageSendEvent_SendFundingCreated : MessageSendEvent { */ public FundingCreated msg; internal MessageSendEvent_SendFundingCreated(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendFundingCreatedGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendFundingCreated_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendFundingCreatedGetMsg(ptr); org.ldk.structs.FundingCreated msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.FundingCreated(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -171,10 +171,10 @@ public class MessageSendEvent_SendFundingSigned : MessageSendEvent { */ public FundingSigned msg; internal MessageSendEvent_SendFundingSigned(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendFundingSignedGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendFundingSigned_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendFundingSignedGetMsg(ptr); org.ldk.structs.FundingSigned msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.FundingSigned(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -191,10 +191,10 @@ public class MessageSendEvent_SendStfu : MessageSendEvent { */ public Stfu msg; internal MessageSendEvent_SendStfu(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendStfuGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendStfuGetMsg(ptr); org.ldk.structs.Stfu msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Stfu(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -211,10 +211,10 @@ public class MessageSendEvent_SendSplice : MessageSendEvent { */ public Splice msg; internal MessageSendEvent_SendSplice(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendSpliceGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendSpliceGetMsg(ptr); org.ldk.structs.Splice msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Splice(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -231,10 +231,10 @@ public class MessageSendEvent_SendSpliceAck : MessageSendEvent { */ public SpliceAck msg; internal MessageSendEvent_SendSpliceAck(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendSpliceAckGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendSpliceAckGetMsg(ptr); org.ldk.structs.SpliceAck msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceAck(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -251,10 +251,10 @@ public class MessageSendEvent_SendSpliceLocked : MessageSendEvent { */ public SpliceLocked msg; internal MessageSendEvent_SendSpliceLocked(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendSpliceLockedGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendSpliceLockedGetMsg(ptr); org.ldk.structs.SpliceLocked msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceLocked(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -271,10 +271,10 @@ public class MessageSendEvent_SendTxAddInput : MessageSendEvent { */ public TxAddInput msg; internal MessageSendEvent_SendTxAddInput(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxAddInput_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxAddInputGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxAddInput_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxAddInputGetMsg(ptr); org.ldk.structs.TxAddInput msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxAddInput(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -291,10 +291,10 @@ public class MessageSendEvent_SendTxAddOutput : MessageSendEvent { */ public TxAddOutput msg; internal MessageSendEvent_SendTxAddOutput(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxAddOutput_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxAddOutputGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxAddOutput_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxAddOutputGetMsg(ptr); org.ldk.structs.TxAddOutput msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxAddOutput(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -311,10 +311,10 @@ public class MessageSendEvent_SendTxRemoveInput : MessageSendEvent { */ public TxRemoveInput msg; internal MessageSendEvent_SendTxRemoveInput(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxRemoveInputGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxRemoveInputGetMsg(ptr); org.ldk.structs.TxRemoveInput msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxRemoveInput(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -331,10 +331,10 @@ public class MessageSendEvent_SendTxRemoveOutput : MessageSendEvent { */ public TxRemoveOutput msg; internal MessageSendEvent_SendTxRemoveOutput(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxRemoveOutputGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxRemoveOutputGetMsg(ptr); org.ldk.structs.TxRemoveOutput msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxRemoveOutput(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -351,10 +351,10 @@ public class MessageSendEvent_SendTxComplete : MessageSendEvent { */ public TxComplete msg; internal MessageSendEvent_SendTxComplete(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxComplete_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxCompleteGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxComplete_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxCompleteGetMsg(ptr); org.ldk.structs.TxComplete msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxComplete(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -371,10 +371,10 @@ public class MessageSendEvent_SendTxSignatures : MessageSendEvent { */ public TxSignatures msg; internal MessageSendEvent_SendTxSignatures(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxSignatures_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxSignaturesGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxSignatures_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxSignaturesGetMsg(ptr); org.ldk.structs.TxSignatures msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxSignatures(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -391,10 +391,10 @@ public class MessageSendEvent_SendTxInitRbf : MessageSendEvent { */ public TxInitRbf msg; internal MessageSendEvent_SendTxInitRbf(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxInitRbf_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxInitRbfGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxInitRbf_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxInitRbfGetMsg(ptr); org.ldk.structs.TxInitRbf msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxInitRbf(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -411,10 +411,10 @@ public class MessageSendEvent_SendTxAckRbf : MessageSendEvent { */ public TxAckRbf msg; internal MessageSendEvent_SendTxAckRbf(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxAckRbf_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxAckRbfGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxAckRbf_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxAckRbfGetMsg(ptr); org.ldk.structs.TxAckRbf msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxAckRbf(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -431,10 +431,10 @@ public class MessageSendEvent_SendTxAbort : MessageSendEvent { */ public TxAbort msg; internal MessageSendEvent_SendTxAbort(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendTxAbort_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendTxAbortGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendTxAbort_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendTxAbortGetMsg(ptr); org.ldk.structs.TxAbort msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxAbort(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -451,10 +451,10 @@ public class MessageSendEvent_SendChannelReady : MessageSendEvent { */ public ChannelReady msg; internal MessageSendEvent_SendChannelReady(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendChannelReady_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendChannelReadyGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendChannelReady_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendChannelReadyGetMsg(ptr); org.ldk.structs.ChannelReady msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelReady(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -471,10 +471,10 @@ public class MessageSendEvent_SendAnnouncementSignatures : MessageSendEvent { */ public AnnouncementSignatures msg; internal MessageSendEvent_SendAnnouncementSignatures(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendAnnouncementSignaturesGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendAnnouncementSignaturesGetMsg(ptr); org.ldk.structs.AnnouncementSignatures msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.AnnouncementSignatures(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -491,10 +491,10 @@ public class MessageSendEvent_UpdateHTLCs : MessageSendEvent { */ public CommitmentUpdate updates; internal MessageSendEvent_UpdateHTLCs(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventUpdateHTLCsGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long updates = bindings.LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr); + long updates = Bindings.LDKMessageSendEventUpdateHTLCsGetUpdates(ptr); org.ldk.structs.CommitmentUpdate updates_hu_conv = null; if (updates < 0 || updates > 4096) { updates_hu_conv = new org.ldk.structs.CommitmentUpdate(null, updates); } if (updates_hu_conv != null) { updates_hu_conv.ptrs_to.AddLast(this); }; this.updates = updates_hu_conv; @@ -511,10 +511,10 @@ public class MessageSendEvent_SendRevokeAndACK : MessageSendEvent { */ public RevokeAndACK msg; internal MessageSendEvent_SendRevokeAndACK(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendRevokeAndACKGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendRevokeAndACKGetMsg(ptr); org.ldk.structs.RevokeAndACK msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.RevokeAndACK(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -531,10 +531,10 @@ public class MessageSendEvent_SendClosingSigned : MessageSendEvent { */ public ClosingSigned msg; internal MessageSendEvent_SendClosingSigned(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendClosingSignedGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendClosingSigned_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendClosingSignedGetMsg(ptr); org.ldk.structs.ClosingSigned msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ClosingSigned(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -551,10 +551,10 @@ public class MessageSendEvent_SendShutdown : MessageSendEvent { */ public Shutdown msg; internal MessageSendEvent_SendShutdown(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendShutdown_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendShutdownGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendShutdown_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendShutdownGetMsg(ptr); org.ldk.structs.Shutdown msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Shutdown(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -571,10 +571,10 @@ public class MessageSendEvent_SendChannelReestablish : MessageSendEvent { */ public ChannelReestablish msg; internal MessageSendEvent_SendChannelReestablish(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendChannelReestablishGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendChannelReestablishGetMsg(ptr); org.ldk.structs.ChannelReestablish msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelReestablish(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -595,14 +595,14 @@ public class MessageSendEvent_SendChannelAnnouncement : MessageSendEvent { */ public ChannelUpdate update_msg; internal MessageSendEvent_SendChannelAnnouncement(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendChannelAnnouncementGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendChannelAnnouncementGetMsg(ptr); org.ldk.structs.ChannelAnnouncement msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; - long update_msg = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr); + long update_msg = Bindings.LDKMessageSendEventSendChannelAnnouncementGetUpdateMsg(ptr); org.ldk.structs.ChannelUpdate update_msg_hu_conv = null; if (update_msg < 0 || update_msg > 4096) { update_msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, update_msg); } if (update_msg_hu_conv != null) { update_msg_hu_conv.ptrs_to.AddLast(this); }; this.update_msg = update_msg_hu_conv; @@ -621,11 +621,11 @@ public class MessageSendEvent_BroadcastChannelAnnouncement : MessageSendEvent { */ public ChannelUpdate update_msg; internal MessageSendEvent_BroadcastChannelAnnouncement(long ptr) : base(null, ptr) { - long msg = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventBroadcastChannelAnnouncementGetMsg(ptr); org.ldk.structs.ChannelAnnouncement msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; - long update_msg = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr); + long update_msg = Bindings.LDKMessageSendEventBroadcastChannelAnnouncementGetUpdateMsg(ptr); org.ldk.structs.ChannelUpdate update_msg_hu_conv = null; if (update_msg < 0 || update_msg > 4096) { update_msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, update_msg); } if (update_msg_hu_conv != null) { update_msg_hu_conv.ptrs_to.AddLast(this); }; this.update_msg = update_msg_hu_conv; @@ -638,7 +638,7 @@ public class MessageSendEvent_BroadcastChannelUpdate : MessageSendEvent { */ public ChannelUpdate msg; internal MessageSendEvent_BroadcastChannelUpdate(long ptr) : base(null, ptr) { - long msg = bindings.LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventBroadcastChannelUpdateGetMsg(ptr); org.ldk.structs.ChannelUpdate msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -651,7 +651,7 @@ public class MessageSendEvent_BroadcastNodeAnnouncement : MessageSendEvent { */ public NodeAnnouncement msg; internal MessageSendEvent_BroadcastNodeAnnouncement(long ptr) : base(null, ptr) { - long msg = bindings.LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventBroadcastNodeAnnouncementGetMsg(ptr); org.ldk.structs.NodeAnnouncement msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.NodeAnnouncement(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -668,10 +668,10 @@ public class MessageSendEvent_SendChannelUpdate : MessageSendEvent { */ public ChannelUpdate msg; internal MessageSendEvent_SendChannelUpdate(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendChannelUpdateGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendChannelUpdateGetMsg(ptr); org.ldk.structs.ChannelUpdate msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -688,10 +688,10 @@ public class MessageSendEvent_HandleError : MessageSendEvent { */ public ErrorAction action; internal MessageSendEvent_HandleError(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_HandleError_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventHandleErrorGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long action = bindings.LDKMessageSendEvent_HandleError_get_action(ptr); + long action = Bindings.LDKMessageSendEventHandleErrorGetAction(ptr); org.ldk.structs.ErrorAction action_hu_conv = org.ldk.structs.ErrorAction.constr_from_ptr(action); if (action_hu_conv != null) { action_hu_conv.ptrs_to.AddLast(this); }; this.action = action_hu_conv; @@ -708,10 +708,10 @@ public class MessageSendEvent_SendChannelRangeQuery : MessageSendEvent { */ public QueryChannelRange msg; internal MessageSendEvent_SendChannelRangeQuery(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendChannelRangeQueryGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendChannelRangeQueryGetMsg(ptr); org.ldk.structs.QueryChannelRange msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.QueryChannelRange(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -728,10 +728,10 @@ public class MessageSendEvent_SendShortIdsQuery : MessageSendEvent { */ public QueryShortChannelIds msg; internal MessageSendEvent_SendShortIdsQuery(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendShortIdsQueryGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendShortIdsQueryGetMsg(ptr); org.ldk.structs.QueryShortChannelIds msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.QueryShortChannelIds(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -748,10 +748,10 @@ public class MessageSendEvent_SendReplyChannelRange : MessageSendEvent { */ public ReplyChannelRange msg; internal MessageSendEvent_SendReplyChannelRange(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendReplyChannelRangeGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendReplyChannelRangeGetMsg(ptr); org.ldk.structs.ReplyChannelRange msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ReplyChannelRange(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -768,17 +768,17 @@ public class MessageSendEvent_SendGossipTimestampFilter : MessageSendEvent { */ public GossipTimestampFilter msg; internal MessageSendEvent_SendGossipTimestampFilter(long ptr) : base(null, ptr) { - long node_id = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKMessageSendEventSendGossipTimestampFilterGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long msg = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr); + long msg = Bindings.LDKMessageSendEventSendGossipTimestampFilterGetMsg(ptr); org.ldk.structs.GossipTimestampFilter msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.GossipTimestampFilter(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; } } internal long clone_ptr() { - long ret = bindings.MessageSendEvent_clone_ptr(this.ptr); + long ret = Bindings.MessageSendEventClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -787,7 +787,7 @@ internal long clone_ptr() { * Creates a copy of the MessageSendEvent */ public MessageSendEvent clone() { - long ret = bindings.MessageSendEvent_clone(this.ptr); + long ret = Bindings.MessageSendEventClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MessageSendEvent ret_hu_conv = org.ldk.structs.MessageSendEvent.constr_from_ptr(ret); @@ -799,7 +799,7 @@ public MessageSendEvent clone() { * Utility method to constructs a new SendAcceptChannel-variant MessageSendEvent */ public static MessageSendEvent send_accept_channel(byte[] node_id, org.ldk.structs.AcceptChannel msg) { - long ret = bindings.MessageSendEvent_send_accept_channel(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendAcceptChannel(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -813,7 +813,7 @@ public static MessageSendEvent send_accept_channel(byte[] node_id, org.ldk.struc * Utility method to constructs a new SendAcceptChannelV2-variant MessageSendEvent */ public static MessageSendEvent send_accept_channel_v2(byte[] node_id, org.ldk.structs.AcceptChannelV2 msg) { - long ret = bindings.MessageSendEvent_send_accept_channel_v2(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendAcceptChannelV2(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -827,7 +827,7 @@ public static MessageSendEvent send_accept_channel_v2(byte[] node_id, org.ldk.st * Utility method to constructs a new SendOpenChannel-variant MessageSendEvent */ public static MessageSendEvent send_open_channel(byte[] node_id, org.ldk.structs.OpenChannel msg) { - long ret = bindings.MessageSendEvent_send_open_channel(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendOpenChannel(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -841,7 +841,7 @@ public static MessageSendEvent send_open_channel(byte[] node_id, org.ldk.structs * Utility method to constructs a new SendOpenChannelV2-variant MessageSendEvent */ public static MessageSendEvent send_open_channel_v2(byte[] node_id, org.ldk.structs.OpenChannelV2 msg) { - long ret = bindings.MessageSendEvent_send_open_channel_v2(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendOpenChannelV2(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -855,7 +855,7 @@ public static MessageSendEvent send_open_channel_v2(byte[] node_id, org.ldk.stru * Utility method to constructs a new SendFundingCreated-variant MessageSendEvent */ public static MessageSendEvent send_funding_created(byte[] node_id, org.ldk.structs.FundingCreated msg) { - long ret = bindings.MessageSendEvent_send_funding_created(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendFundingCreated(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -869,7 +869,7 @@ public static MessageSendEvent send_funding_created(byte[] node_id, org.ldk.stru * Utility method to constructs a new SendFundingSigned-variant MessageSendEvent */ public static MessageSendEvent send_funding_signed(byte[] node_id, org.ldk.structs.FundingSigned msg) { - long ret = bindings.MessageSendEvent_send_funding_signed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendFundingSigned(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -883,7 +883,7 @@ public static MessageSendEvent send_funding_signed(byte[] node_id, org.ldk.struc * Utility method to constructs a new SendStfu-variant MessageSendEvent */ public static MessageSendEvent send_stfu(byte[] node_id, org.ldk.structs.Stfu msg) { - long ret = bindings.MessageSendEvent_send_stfu(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendStfu(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -897,7 +897,7 @@ public static MessageSendEvent send_stfu(byte[] node_id, org.ldk.structs.Stfu ms * Utility method to constructs a new SendSplice-variant MessageSendEvent */ public static MessageSendEvent send_splice(byte[] node_id, org.ldk.structs.Splice msg) { - long ret = bindings.MessageSendEvent_send_splice(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendSplice(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -911,7 +911,7 @@ public static MessageSendEvent send_splice(byte[] node_id, org.ldk.structs.Splic * Utility method to constructs a new SendSpliceAck-variant MessageSendEvent */ public static MessageSendEvent send_splice_ack(byte[] node_id, org.ldk.structs.SpliceAck msg) { - long ret = bindings.MessageSendEvent_send_splice_ack(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendSpliceAck(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -925,7 +925,7 @@ public static MessageSendEvent send_splice_ack(byte[] node_id, org.ldk.structs.S * Utility method to constructs a new SendSpliceLocked-variant MessageSendEvent */ public static MessageSendEvent send_splice_locked(byte[] node_id, org.ldk.structs.SpliceLocked msg) { - long ret = bindings.MessageSendEvent_send_splice_locked(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendSpliceLocked(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -939,7 +939,7 @@ public static MessageSendEvent send_splice_locked(byte[] node_id, org.ldk.struct * Utility method to constructs a new SendTxAddInput-variant MessageSendEvent */ public static MessageSendEvent send_tx_add_input(byte[] node_id, org.ldk.structs.TxAddInput msg) { - long ret = bindings.MessageSendEvent_send_tx_add_input(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxAddInput(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -953,7 +953,7 @@ public static MessageSendEvent send_tx_add_input(byte[] node_id, org.ldk.structs * Utility method to constructs a new SendTxAddOutput-variant MessageSendEvent */ public static MessageSendEvent send_tx_add_output(byte[] node_id, org.ldk.structs.TxAddOutput msg) { - long ret = bindings.MessageSendEvent_send_tx_add_output(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxAddOutput(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -967,7 +967,7 @@ public static MessageSendEvent send_tx_add_output(byte[] node_id, org.ldk.struct * Utility method to constructs a new SendTxRemoveInput-variant MessageSendEvent */ public static MessageSendEvent send_tx_remove_input(byte[] node_id, org.ldk.structs.TxRemoveInput msg) { - long ret = bindings.MessageSendEvent_send_tx_remove_input(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxRemoveInput(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -981,7 +981,7 @@ public static MessageSendEvent send_tx_remove_input(byte[] node_id, org.ldk.stru * Utility method to constructs a new SendTxRemoveOutput-variant MessageSendEvent */ public static MessageSendEvent send_tx_remove_output(byte[] node_id, org.ldk.structs.TxRemoveOutput msg) { - long ret = bindings.MessageSendEvent_send_tx_remove_output(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxRemoveOutput(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -995,7 +995,7 @@ public static MessageSendEvent send_tx_remove_output(byte[] node_id, org.ldk.str * Utility method to constructs a new SendTxComplete-variant MessageSendEvent */ public static MessageSendEvent send_tx_complete(byte[] node_id, org.ldk.structs.TxComplete msg) { - long ret = bindings.MessageSendEvent_send_tx_complete(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxComplete(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1009,7 +1009,7 @@ public static MessageSendEvent send_tx_complete(byte[] node_id, org.ldk.structs. * Utility method to constructs a new SendTxSignatures-variant MessageSendEvent */ public static MessageSendEvent send_tx_signatures(byte[] node_id, org.ldk.structs.TxSignatures msg) { - long ret = bindings.MessageSendEvent_send_tx_signatures(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxSignatures(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1023,7 +1023,7 @@ public static MessageSendEvent send_tx_signatures(byte[] node_id, org.ldk.struct * Utility method to constructs a new SendTxInitRbf-variant MessageSendEvent */ public static MessageSendEvent send_tx_init_rbf(byte[] node_id, org.ldk.structs.TxInitRbf msg) { - long ret = bindings.MessageSendEvent_send_tx_init_rbf(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxInitRbf(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1037,7 +1037,7 @@ public static MessageSendEvent send_tx_init_rbf(byte[] node_id, org.ldk.structs. * Utility method to constructs a new SendTxAckRbf-variant MessageSendEvent */ public static MessageSendEvent send_tx_ack_rbf(byte[] node_id, org.ldk.structs.TxAckRbf msg) { - long ret = bindings.MessageSendEvent_send_tx_ack_rbf(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxAckRbf(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1051,7 +1051,7 @@ public static MessageSendEvent send_tx_ack_rbf(byte[] node_id, org.ldk.structs.T * Utility method to constructs a new SendTxAbort-variant MessageSendEvent */ public static MessageSendEvent send_tx_abort(byte[] node_id, org.ldk.structs.TxAbort msg) { - long ret = bindings.MessageSendEvent_send_tx_abort(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendTxAbort(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1065,7 +1065,7 @@ public static MessageSendEvent send_tx_abort(byte[] node_id, org.ldk.structs.TxA * Utility method to constructs a new SendChannelReady-variant MessageSendEvent */ public static MessageSendEvent send_channel_ready(byte[] node_id, org.ldk.structs.ChannelReady msg) { - long ret = bindings.MessageSendEvent_send_channel_ready(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendChannelReady(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1079,7 +1079,7 @@ public static MessageSendEvent send_channel_ready(byte[] node_id, org.ldk.struct * Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEvent */ public static MessageSendEvent send_announcement_signatures(byte[] node_id, org.ldk.structs.AnnouncementSignatures msg) { - long ret = bindings.MessageSendEvent_send_announcement_signatures(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendAnnouncementSignatures(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1093,7 +1093,7 @@ public static MessageSendEvent send_announcement_signatures(byte[] node_id, org. * Utility method to constructs a new UpdateHTLCs-variant MessageSendEvent */ public static MessageSendEvent update_htlcs(byte[] node_id, org.ldk.structs.CommitmentUpdate updates) { - long ret = bindings.MessageSendEvent_update_htlcs(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), updates == null ? 0 : updates.ptr); + long ret = Bindings.MessageSendEventUpdateHtlcs(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), updates == null ? 0 : updates.ptr); GC.KeepAlive(node_id); GC.KeepAlive(updates); if (ret >= 0 && ret <= 4096) { return null; } @@ -1107,7 +1107,7 @@ public static MessageSendEvent update_htlcs(byte[] node_id, org.ldk.structs.Comm * Utility method to constructs a new SendRevokeAndACK-variant MessageSendEvent */ public static MessageSendEvent send_revoke_and_ack(byte[] node_id, org.ldk.structs.RevokeAndACK msg) { - long ret = bindings.MessageSendEvent_send_revoke_and_ack(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendRevokeAndAck(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1121,7 +1121,7 @@ public static MessageSendEvent send_revoke_and_ack(byte[] node_id, org.ldk.struc * Utility method to constructs a new SendClosingSigned-variant MessageSendEvent */ public static MessageSendEvent send_closing_signed(byte[] node_id, org.ldk.structs.ClosingSigned msg) { - long ret = bindings.MessageSendEvent_send_closing_signed(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendClosingSigned(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1135,7 +1135,7 @@ public static MessageSendEvent send_closing_signed(byte[] node_id, org.ldk.struc * Utility method to constructs a new SendShutdown-variant MessageSendEvent */ public static MessageSendEvent send_shutdown(byte[] node_id, org.ldk.structs.Shutdown msg) { - long ret = bindings.MessageSendEvent_send_shutdown(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendShutdown(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1149,7 +1149,7 @@ public static MessageSendEvent send_shutdown(byte[] node_id, org.ldk.structs.Shu * Utility method to constructs a new SendChannelReestablish-variant MessageSendEvent */ public static MessageSendEvent send_channel_reestablish(byte[] node_id, org.ldk.structs.ChannelReestablish msg) { - long ret = bindings.MessageSendEvent_send_channel_reestablish(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendChannelReestablish(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1163,7 +1163,7 @@ public static MessageSendEvent send_channel_reestablish(byte[] node_id, org.ldk. * Utility method to constructs a new SendChannelAnnouncement-variant MessageSendEvent */ public static MessageSendEvent send_channel_announcement(byte[] node_id, org.ldk.structs.ChannelAnnouncement msg, org.ldk.structs.ChannelUpdate update_msg) { - long ret = bindings.MessageSendEvent_send_channel_announcement(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr, update_msg == null ? 0 : update_msg.ptr); + long ret = Bindings.MessageSendEventSendChannelAnnouncement(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr, update_msg == null ? 0 : update_msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); GC.KeepAlive(update_msg); @@ -1179,7 +1179,7 @@ public static MessageSendEvent send_channel_announcement(byte[] node_id, org.ldk * Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEvent */ public static MessageSendEvent broadcast_channel_announcement(org.ldk.structs.ChannelAnnouncement msg, org.ldk.structs.ChannelUpdate update_msg) { - long ret = bindings.MessageSendEvent_broadcast_channel_announcement(msg == null ? 0 : msg.ptr, update_msg == null ? 0 : update_msg.ptr); + long ret = Bindings.MessageSendEventBroadcastChannelAnnouncement(msg == null ? 0 : msg.ptr, update_msg == null ? 0 : update_msg.ptr); GC.KeepAlive(msg); GC.KeepAlive(update_msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1194,7 +1194,7 @@ public static MessageSendEvent broadcast_channel_announcement(org.ldk.structs.Ch * Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEvent */ public static MessageSendEvent broadcast_channel_update(org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.MessageSendEvent_broadcast_channel_update(msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventBroadcastChannelUpdate(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MessageSendEvent ret_hu_conv = org.ldk.structs.MessageSendEvent.constr_from_ptr(ret); @@ -1207,7 +1207,7 @@ public static MessageSendEvent broadcast_channel_update(org.ldk.structs.ChannelU * Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEvent */ public static MessageSendEvent broadcast_node_announcement(org.ldk.structs.NodeAnnouncement msg) { - long ret = bindings.MessageSendEvent_broadcast_node_announcement(msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventBroadcastNodeAnnouncement(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MessageSendEvent ret_hu_conv = org.ldk.structs.MessageSendEvent.constr_from_ptr(ret); @@ -1220,7 +1220,7 @@ public static MessageSendEvent broadcast_node_announcement(org.ldk.structs.NodeA * Utility method to constructs a new SendChannelUpdate-variant MessageSendEvent */ public static MessageSendEvent send_channel_update(byte[] node_id, org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.MessageSendEvent_send_channel_update(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendChannelUpdate(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1234,7 +1234,7 @@ public static MessageSendEvent send_channel_update(byte[] node_id, org.ldk.struc * Utility method to constructs a new HandleError-variant MessageSendEvent */ public static MessageSendEvent handle_error(byte[] node_id, org.ldk.structs.ErrorAction action) { - long ret = bindings.MessageSendEvent_handle_error(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), action.ptr); + long ret = Bindings.MessageSendEventHandleError(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), action.ptr); GC.KeepAlive(node_id); GC.KeepAlive(action); if (ret >= 0 && ret <= 4096) { return null; } @@ -1248,7 +1248,7 @@ public static MessageSendEvent handle_error(byte[] node_id, org.ldk.structs.Erro * Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEvent */ public static MessageSendEvent send_channel_range_query(byte[] node_id, org.ldk.structs.QueryChannelRange msg) { - long ret = bindings.MessageSendEvent_send_channel_range_query(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendChannelRangeQuery(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1262,7 +1262,7 @@ public static MessageSendEvent send_channel_range_query(byte[] node_id, org.ldk. * Utility method to constructs a new SendShortIdsQuery-variant MessageSendEvent */ public static MessageSendEvent send_short_ids_query(byte[] node_id, org.ldk.structs.QueryShortChannelIds msg) { - long ret = bindings.MessageSendEvent_send_short_ids_query(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendShortIdsQuery(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1276,7 +1276,7 @@ public static MessageSendEvent send_short_ids_query(byte[] node_id, org.ldk.stru * Utility method to constructs a new SendReplyChannelRange-variant MessageSendEvent */ public static MessageSendEvent send_reply_channel_range(byte[] node_id, org.ldk.structs.ReplyChannelRange msg) { - long ret = bindings.MessageSendEvent_send_reply_channel_range(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendReplyChannelRange(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -1290,7 +1290,7 @@ public static MessageSendEvent send_reply_channel_range(byte[] node_id, org.ldk. * Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEvent */ public static MessageSendEvent send_gossip_timestamp_filter(byte[] node_id, org.ldk.structs.GossipTimestampFilter msg) { - long ret = bindings.MessageSendEvent_send_gossip_timestamp_filter(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.MessageSendEventSendGossipTimestampFilter(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(node_id); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/MessageSendEventsProvider.cs b/c_sharp/src/org/ldk/structs/MessageSendEventsProvider.cs index 815a5409d..3f4c2ab34 100644 --- a/c_sharp/src/org/ldk/structs/MessageSendEventsProvider.cs +++ b/c_sharp/src/org/ldk/structs/MessageSendEventsProvider.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of MessageSendEventsProvider */ -public interface MessageSendEventsProviderInterface { +public interface IMessageSendEventsProvider { /**Gets the list of pending events which were generated by previous actions, clearing the list * in the process. */ @@ -20,33 +20,33 @@ public interface MessageSendEventsProviderInterface { * A trait indicating an object may generate message send events */ public class MessageSendEventsProvider : CommonBase { - internal bindings.LDKMessageSendEventsProvider bindings_instance; + internal Bindings.LDKMessageSendEventsProvider bindings_instance; internal long instance_idx; internal MessageSendEventsProvider(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~MessageSendEventsProvider() { - if (ptr != 0) { bindings.MessageSendEventsProvider_free(ptr); } + if (ptr != 0) { Bindings.MessageSendEventsProviderFree(ptr); } } private class LDKMessageSendEventsProviderHolder { internal MessageSendEventsProvider held; } - private class LDKMessageSendEventsProviderImpl : bindings.LDKMessageSendEventsProvider { - internal LDKMessageSendEventsProviderImpl(MessageSendEventsProviderInterface arg, LDKMessageSendEventsProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private MessageSendEventsProviderInterface arg; + private class LDKMessageSendEventsProviderImpl : Bindings.LDKMessageSendEventsProvider { + internal LDKMessageSendEventsProviderImpl(IMessageSendEventsProvider arg, LDKMessageSendEventsProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IMessageSendEventsProvider arg; private LDKMessageSendEventsProviderHolder impl_holder; - public long get_and_clear_pending_msg_events() { + public long GetAndClearPendingMsgEvents() { MessageSendEvent[] ret = arg.get_and_clear_pending_msg_events(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_18 => ret_conv_18 == null ? 0 : ret_conv_18.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_18 => ret_conv_18 == null ? 0 : ret_conv_18.clone_ptr())); foreach (MessageSendEvent ret_conv_18 in ret) { if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret_conv_18); }; }; return result; } } /** Creates a new instance of MessageSendEventsProvider from a given implementation */ - public static MessageSendEventsProvider new_impl(MessageSendEventsProviderInterface arg) { + public static MessageSendEventsProvider new_impl(IMessageSendEventsProvider arg) { LDKMessageSendEventsProviderHolder impl_holder = new LDKMessageSendEventsProviderHolder(); LDKMessageSendEventsProviderImpl impl = new LDKMessageSendEventsProviderImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKMessageSendEventsProvider_new(impl); + long[] ptr_idx = Bindings.LDKMessageSendEventsProviderNew(impl); impl_holder.held = new MessageSendEventsProvider(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -59,18 +59,18 @@ public static MessageSendEventsProvider new_impl(MessageSendEventsProviderInterf * in the process. */ public MessageSendEvent[] get_and_clear_pending_msg_events() { - long ret = bindings.MessageSendEventsProvider_get_and_clear_pending_msg_events(this.ptr); + long ret = Bindings.MessageSendEventsProviderGetAndClearPendingMsgEvents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_18_len = InternalUtils.getArrayLength(ret); + int ret_conv_18_len = InternalUtils.GetArrayLength(ret); MessageSendEvent[] ret_conv_18_arr = new MessageSendEvent[ret_conv_18_len]; for (int s = 0; s < ret_conv_18_len; s++) { - long ret_conv_18 = InternalUtils.getU64ArrayElem(ret, s); + long ret_conv_18 = InternalUtils.GetU64ArrayElem(ret, s); org.ldk.structs.MessageSendEvent ret_conv_18_hu_conv = org.ldk.structs.MessageSendEvent.constr_from_ptr(ret_conv_18); if (ret_conv_18_hu_conv != null) { ret_conv_18_hu_conv.ptrs_to.AddLast(this); }; ret_conv_18_arr[s] = ret_conv_18_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_18_arr; } diff --git a/c_sharp/src/org/ldk/structs/MinFinalCltvExpiryDelta.cs b/c_sharp/src/org/ldk/structs/MinFinalCltvExpiryDelta.cs index e407faf8d..b2113b20f 100644 --- a/c_sharp/src/org/ldk/structs/MinFinalCltvExpiryDelta.cs +++ b/c_sharp/src/org/ldk/structs/MinFinalCltvExpiryDelta.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class MinFinalCltvExpiryDelta : CommonBase { internal MinFinalCltvExpiryDelta(object _dummy, long ptr) : base(ptr) { } ~MinFinalCltvExpiryDelta() { - if (ptr != 0) { bindings.MinFinalCltvExpiryDelta_free(ptr); } + if (ptr != 0) { Bindings.MinFinalCltvExpiryDeltaFree(ptr); } } public long get_a() { - long ret = bindings.MinFinalCltvExpiryDelta_get_a(this.ptr); + long ret = Bindings.MinFinalCltvExpiryDeltaGetA(this.ptr); GC.KeepAlive(this); return ret; } public void set_a(long val) { - bindings.MinFinalCltvExpiryDelta_set_a(this.ptr, val); + Bindings.MinFinalCltvExpiryDeltaSetA(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -31,7 +31,7 @@ public void set_a(long val) { * Constructs a new MinFinalCltvExpiryDelta given each field */ public static MinFinalCltvExpiryDelta of(long a_arg) { - long ret = bindings.MinFinalCltvExpiryDelta_new(a_arg); + long ret = Bindings.MinFinalCltvExpiryDeltaNew(a_arg); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MinFinalCltvExpiryDelta ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MinFinalCltvExpiryDelta(null, ret); } @@ -40,7 +40,7 @@ public static MinFinalCltvExpiryDelta of(long a_arg) { } internal long clone_ptr() { - long ret = bindings.MinFinalCltvExpiryDelta_clone_ptr(this.ptr); + long ret = Bindings.MinFinalCltvExpiryDeltaClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * Creates a copy of the MinFinalCltvExpiryDelta */ public MinFinalCltvExpiryDelta clone() { - long ret = bindings.MinFinalCltvExpiryDelta_clone(this.ptr); + long ret = Bindings.MinFinalCltvExpiryDeltaClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MinFinalCltvExpiryDelta ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MinFinalCltvExpiryDelta(null, ret); } @@ -61,7 +61,7 @@ public MinFinalCltvExpiryDelta clone() { * Generates a non-cryptographic 64-bit hash of the MinFinalCltvExpiryDelta. */ public long hash() { - long ret = bindings.MinFinalCltvExpiryDelta_hash(this.ptr); + long ret = Bindings.MinFinalCltvExpiryDeltaHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.MinFinalCltvExpiryDelta b) { - bool ret = bindings.MinFinalCltvExpiryDelta_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.MinFinalCltvExpiryDeltaEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/MonitorEvent.cs b/c_sharp/src/org/ldk/structs/MonitorEvent.cs index d569d222b..cb18d328e 100644 --- a/c_sharp/src/org/ldk/structs/MonitorEvent.cs +++ b/c_sharp/src/org/ldk/structs/MonitorEvent.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class MonitorEvent : CommonBase { protected MonitorEvent(object _dummy, long ptr) : base(ptr) { } ~MonitorEvent() { - if (ptr != 0) { bindings.MonitorEvent_free(ptr); } + if (ptr != 0) { Bindings.MonitorEventFree(ptr); } } internal static MonitorEvent constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKMonitorEvent_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKMonitorEventTyFromPtr(ptr); switch (raw_ty) { case 0: return new MonitorEvent_HTLCEvent(ptr); case 1: return new MonitorEvent_HolderForceClosed(ptr); @@ -29,7 +29,7 @@ internal static MonitorEvent constr_from_ptr(long ptr) { public class MonitorEvent_HTLCEvent : MonitorEvent { public HTLCUpdate htlc_event; internal MonitorEvent_HTLCEvent(long ptr) : base(null, ptr) { - long htlc_event = bindings.LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr); + long htlc_event = Bindings.LDKMonitorEventHTLCEventGetHtlcEvent(ptr); org.ldk.structs.HTLCUpdate htlc_event_hu_conv = null; if (htlc_event < 0 || htlc_event > 4096) { htlc_event_hu_conv = new org.ldk.structs.HTLCUpdate(null, htlc_event); } if (htlc_event_hu_conv != null) { htlc_event_hu_conv.ptrs_to.AddLast(this); }; this.htlc_event = htlc_event_hu_conv; @@ -39,7 +39,7 @@ internal MonitorEvent_HTLCEvent(long ptr) : base(null, ptr) { public class MonitorEvent_HolderForceClosed : MonitorEvent { public OutPoint holder_force_closed; internal MonitorEvent_HolderForceClosed(long ptr) : base(null, ptr) { - long holder_force_closed = bindings.LDKMonitorEvent_HolderForceClosed_get_holder_force_closed(ptr); + long holder_force_closed = Bindings.LDKMonitorEventHolderForceClosedGetHolderForceClosed(ptr); org.ldk.structs.OutPoint holder_force_closed_hu_conv = null; if (holder_force_closed < 0 || holder_force_closed > 4096) { holder_force_closed_hu_conv = new org.ldk.structs.OutPoint(null, holder_force_closed); } if (holder_force_closed_hu_conv != null) { holder_force_closed_hu_conv.ptrs_to.AddLast(this); }; this.holder_force_closed = holder_force_closed_hu_conv; @@ -60,15 +60,15 @@ public class MonitorEvent_Completed : MonitorEvent { */ public long monitor_update_id; internal MonitorEvent_Completed(long ptr) : base(null, ptr) { - long funding_txo = bindings.LDKMonitorEvent_Completed_get_funding_txo(ptr); + long funding_txo = Bindings.LDKMonitorEventCompletedGetFundingTxo(ptr); org.ldk.structs.OutPoint funding_txo_hu_conv = null; if (funding_txo < 0 || funding_txo > 4096) { funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, funding_txo); } if (funding_txo_hu_conv != null) { funding_txo_hu_conv.ptrs_to.AddLast(this); }; this.funding_txo = funding_txo_hu_conv; - this.monitor_update_id = bindings.LDKMonitorEvent_Completed_get_monitor_update_id(ptr); + this.monitor_update_id = Bindings.LDKMonitorEventCompletedGetMonitorUpdateId(ptr); } } internal long clone_ptr() { - long ret = bindings.MonitorEvent_clone_ptr(this.ptr); + long ret = Bindings.MonitorEventClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -77,7 +77,7 @@ internal long clone_ptr() { * Creates a copy of the MonitorEvent */ public MonitorEvent clone() { - long ret = bindings.MonitorEvent_clone(this.ptr); + long ret = Bindings.MonitorEventClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MonitorEvent ret_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret); @@ -89,7 +89,7 @@ public MonitorEvent clone() { * Utility method to constructs a new HTLCEvent-variant MonitorEvent */ public static MonitorEvent htlcevent(org.ldk.structs.HTLCUpdate a) { - long ret = bindings.MonitorEvent_htlcevent(a == null ? 0 : a.ptr); + long ret = Bindings.MonitorEventHtlcevent(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MonitorEvent ret_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret); @@ -102,7 +102,7 @@ public static MonitorEvent htlcevent(org.ldk.structs.HTLCUpdate a) { * Utility method to constructs a new HolderForceClosed-variant MonitorEvent */ public static MonitorEvent holder_force_closed(org.ldk.structs.OutPoint a) { - long ret = bindings.MonitorEvent_holder_force_closed(a == null ? 0 : a.ptr); + long ret = Bindings.MonitorEventHolderForceClosed(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MonitorEvent ret_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret); @@ -115,7 +115,7 @@ public static MonitorEvent holder_force_closed(org.ldk.structs.OutPoint a) { * Utility method to constructs a new Completed-variant MonitorEvent */ public static MonitorEvent completed(org.ldk.structs.OutPoint funding_txo, long monitor_update_id) { - long ret = bindings.MonitorEvent_completed(funding_txo == null ? 0 : funding_txo.ptr, monitor_update_id); + long ret = Bindings.MonitorEventCompleted(funding_txo == null ? 0 : funding_txo.ptr, monitor_update_id); GC.KeepAlive(funding_txo); GC.KeepAlive(monitor_update_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -130,7 +130,7 @@ public static MonitorEvent completed(org.ldk.structs.OutPoint funding_txo, long * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.MonitorEvent b) { - bool ret = bindings.MonitorEvent_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.MonitorEventEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -144,10 +144,10 @@ public override bool Equals(object o) { * Serialize the MonitorEvent object into a byte array which can be read by MonitorEvent_read */ public byte[] write() { - long ret = bindings.MonitorEvent_write(this.ptr); + long ret = Bindings.MonitorEventWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/MonitorUpdateId.cs b/c_sharp/src/org/ldk/structs/MonitorUpdateId.cs index 95245380b..72aa1c83c 100644 --- a/c_sharp/src/org/ldk/structs/MonitorUpdateId.cs +++ b/c_sharp/src/org/ldk/structs/MonitorUpdateId.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class MonitorUpdateId : CommonBase { internal MonitorUpdateId(object _dummy, long ptr) : base(ptr) { } ~MonitorUpdateId() { - if (ptr != 0) { bindings.MonitorUpdateId_free(ptr); } + if (ptr != 0) { Bindings.MonitorUpdateIdFree(ptr); } } internal long clone_ptr() { - long ret = bindings.MonitorUpdateId_clone_ptr(this.ptr); + long ret = Bindings.MonitorUpdateIdClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the MonitorUpdateId */ public MonitorUpdateId clone() { - long ret = bindings.MonitorUpdateId_clone(this.ptr); + long ret = Bindings.MonitorUpdateIdClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MonitorUpdateId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MonitorUpdateId(null, ret); } @@ -37,7 +37,7 @@ public MonitorUpdateId clone() { * Generates a non-cryptographic 64-bit hash of the MonitorUpdateId. */ public long hash() { - long ret = bindings.MonitorUpdateId_hash(this.ptr); + long ret = Bindings.MonitorUpdateIdHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.MonitorUpdateId b) { - bool ret = bindings.MonitorUpdateId_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.MonitorUpdateIdEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/MonitorUpdatingPersister.cs b/c_sharp/src/org/ldk/structs/MonitorUpdatingPersister.cs index 6a3c5447b..9f3fb6edc 100644 --- a/c_sharp/src/org/ldk/structs/MonitorUpdatingPersister.cs +++ b/c_sharp/src/org/ldk/structs/MonitorUpdatingPersister.cs @@ -94,7 +94,7 @@ namespace org { namespace ldk { namespace structs { public class MonitorUpdatingPersister : CommonBase { internal MonitorUpdatingPersister(object _dummy, long ptr) : base(ptr) { } ~MonitorUpdatingPersister() { - if (ptr != 0) { bindings.MonitorUpdatingPersister_free(ptr); } + if (ptr != 0) { Bindings.MonitorUpdatingPersisterFree(ptr); } } /** @@ -116,7 +116,7 @@ internal MonitorUpdatingPersister(object _dummy, long ptr) : base(ptr) { } * [`MonitorUpdatingPersister::cleanup_stale_updates`]. */ public static MonitorUpdatingPersister of(org.ldk.structs.KVStore kv_store, org.ldk.structs.Logger logger, long maximum_pending_updates, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.SignerProvider signer_provider) { - long ret = bindings.MonitorUpdatingPersister_new(kv_store.ptr, logger.ptr, maximum_pending_updates, entropy_source.ptr, signer_provider.ptr); + long ret = Bindings.MonitorUpdatingPersisterNew(kv_store.ptr, logger.ptr, maximum_pending_updates, entropy_source.ptr, signer_provider.ptr); GC.KeepAlive(kv_store); GC.KeepAlive(logger); GC.KeepAlive(maximum_pending_updates); @@ -140,7 +140,7 @@ public static MonitorUpdatingPersister of(org.ldk.structs.KVStore kv_store, org. * documentation for [`MonitorUpdatingPersister`]. */ public Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_all_channel_monitors_with_updates(org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator) { - long ret = bindings.MonitorUpdatingPersister_read_all_channel_monitors_with_updates(this.ptr, broadcaster.ptr, fee_estimator.ptr); + long ret = Bindings.MonitorUpdatingPersisterReadAllChannelMonitorsWithUpdates(this.ptr, broadcaster.ptr, fee_estimator.ptr); GC.KeepAlive(this); GC.KeepAlive(broadcaster); GC.KeepAlive(fee_estimator); @@ -171,7 +171,7 @@ public Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_all_chann * function to accomplish this. Take care to limit the number of parallel readers. */ public Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ read_channel_monitor_with_updates(org.ldk.structs.BroadcasterInterface broadcaster, org.ldk.structs.FeeEstimator fee_estimator, string monitor_key) { - long ret = bindings.MonitorUpdatingPersister_read_channel_monitor_with_updates(this.ptr, broadcaster.ptr, fee_estimator.ptr, InternalUtils.encodeString(monitor_key)); + long ret = Bindings.MonitorUpdatingPersisterReadChannelMonitorWithUpdates(this.ptr, broadcaster.ptr, fee_estimator.ptr, InternalUtils.EncodeString(monitor_key)); GC.KeepAlive(this); GC.KeepAlive(broadcaster); GC.KeepAlive(fee_estimator); @@ -192,7 +192,7 @@ public Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ read_channel_monitor * be passed to [`KVStore::remove`]. */ public Result_NoneIOErrorZ cleanup_stale_updates(bool lazy) { - long ret = bindings.MonitorUpdatingPersister_cleanup_stale_updates(this.ptr, lazy); + long ret = Bindings.MonitorUpdatingPersisterCleanupStaleUpdates(this.ptr, lazy); GC.KeepAlive(this); GC.KeepAlive(lazy); if (ret >= 0 && ret <= 4096) { return null; } @@ -205,7 +205,7 @@ public Result_NoneIOErrorZ cleanup_stale_updates(bool lazy) { * This copies the `inner` pointer in this_arg and thus the returned Persist must be freed before this_arg is */ public Persist as_Persist() { - long ret = bindings.MonitorUpdatingPersister_as_Persist(this.ptr); + long ret = Bindings.MonitorUpdatingPersisterAsPersist(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Persist ret_hu_conv = new Persist(null, ret); diff --git a/c_sharp/src/org/ldk/structs/MultiThreadedLockableScore.cs b/c_sharp/src/org/ldk/structs/MultiThreadedLockableScore.cs index a0256e75c..42fb84ea2 100644 --- a/c_sharp/src/org/ldk/structs/MultiThreadedLockableScore.cs +++ b/c_sharp/src/org/ldk/structs/MultiThreadedLockableScore.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class MultiThreadedLockableScore : CommonBase { internal MultiThreadedLockableScore(object _dummy, long ptr) : base(ptr) { } ~MultiThreadedLockableScore() { - if (ptr != 0) { bindings.MultiThreadedLockableScore_free(ptr); } + if (ptr != 0) { Bindings.MultiThreadedLockableScoreFree(ptr); } } /** @@ -20,7 +20,7 @@ internal MultiThreadedLockableScore(object _dummy, long ptr) : base(ptr) { } * This copies the `inner` pointer in this_arg and thus the returned LockableScore must be freed before this_arg is */ public LockableScore as_LockableScore() { - long ret = bindings.MultiThreadedLockableScore_as_LockableScore(this.ptr); + long ret = Bindings.MultiThreadedLockableScoreAsLockableScore(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } LockableScore ret_hu_conv = new LockableScore(null, ret); @@ -32,10 +32,10 @@ public LockableScore as_LockableScore() { * Serialize the MultiThreadedLockableScore object into a byte array which can be read by MultiThreadedLockableScore_read */ public byte[] write() { - long ret = bindings.MultiThreadedLockableScore_write(this.ptr); + long ret = Bindings.MultiThreadedLockableScoreWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -44,7 +44,7 @@ public byte[] write() { * This copies the `inner` pointer in this_arg and thus the returned WriteableScore must be freed before this_arg is */ public WriteableScore as_WriteableScore() { - long ret = bindings.MultiThreadedLockableScore_as_WriteableScore(this.ptr); + long ret = Bindings.MultiThreadedLockableScoreAsWriteableScore(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } WriteableScore ret_hu_conv = new WriteableScore(null, ret); @@ -56,7 +56,7 @@ public WriteableScore as_WriteableScore() { * Creates a new [`MultiThreadedLockableScore`] given an underlying [`Score`]. */ public static MultiThreadedLockableScore of(org.ldk.structs.Score score) { - long ret = bindings.MultiThreadedLockableScore_new(score.ptr); + long ret = Bindings.MultiThreadedLockableScoreNew(score.ptr); GC.KeepAlive(score); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MultiThreadedLockableScore ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MultiThreadedLockableScore(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockRead.cs b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockRead.cs index 83e516115..3b430d224 100644 --- a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockRead.cs +++ b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockRead.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class MultiThreadedScoreLockRead : CommonBase { internal MultiThreadedScoreLockRead(object _dummy, long ptr) : base(ptr) { } ~MultiThreadedScoreLockRead() { - if (ptr != 0) { bindings.MultiThreadedScoreLockRead_free(ptr); } + if (ptr != 0) { Bindings.MultiThreadedScoreLockReadFree(ptr); } } /** @@ -20,7 +20,7 @@ internal MultiThreadedScoreLockRead(object _dummy, long ptr) : base(ptr) { } * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ public ScoreLookUp as_ScoreLookUp() { - long ret = bindings.MultiThreadedScoreLockRead_as_ScoreLookUp(this.ptr); + long ret = Bindings.MultiThreadedScoreLockReadAsScoreLookUp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); diff --git a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockWrite.cs b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockWrite.cs index 2384d46b8..a7434c308 100644 --- a/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockWrite.cs +++ b/c_sharp/src/org/ldk/structs/MultiThreadedScoreLockWrite.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class MultiThreadedScoreLockWrite : CommonBase { internal MultiThreadedScoreLockWrite(object _dummy, long ptr) : base(ptr) { } ~MultiThreadedScoreLockWrite() { - if (ptr != 0) { bindings.MultiThreadedScoreLockWrite_free(ptr); } + if (ptr != 0) { Bindings.MultiThreadedScoreLockWriteFree(ptr); } } /** * Serialize the MultiThreadedScoreLockWrite object into a byte array which can be read by MultiThreadedScoreLockWrite_read */ public byte[] write() { - long ret = bindings.MultiThreadedScoreLockWrite_write(this.ptr); + long ret = Bindings.MultiThreadedScoreLockWriteWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] write() { * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is */ public ScoreUpdate as_ScoreUpdate() { - long ret = bindings.MultiThreadedScoreLockWrite_as_ScoreUpdate(this.ptr); + long ret = Bindings.MultiThreadedScoreLockWriteAsScoreUpdate(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreUpdate ret_hu_conv = new ScoreUpdate(null, ret); diff --git a/c_sharp/src/org/ldk/structs/NetworkGraph.cs b/c_sharp/src/org/ldk/structs/NetworkGraph.cs index d5d098acc..e841bd367 100644 --- a/c_sharp/src/org/ldk/structs/NetworkGraph.cs +++ b/c_sharp/src/org/ldk/structs/NetworkGraph.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class NetworkGraph : CommonBase { internal NetworkGraph(object _dummy, long ptr) : base(ptr) { } ~NetworkGraph() { - if (ptr != 0) { bindings.NetworkGraph_free(ptr); } + if (ptr != 0) { Bindings.NetworkGraphFree(ptr); } } /** @@ -23,7 +23,7 @@ internal NetworkGraph(object _dummy, long ptr) : base(ptr) { } * [`Event`]: crate::events::Event */ public void handle_network_update(org.ldk.structs.NetworkUpdate network_update) { - bindings.NetworkGraph_handle_network_update(this.ptr, network_update == null ? 0 : network_update.ptr); + Bindings.NetworkGraphHandleNetworkUpdate(this.ptr, network_update == null ? 0 : network_update.ptr); GC.KeepAlive(this); GC.KeepAlive(network_update); } @@ -32,10 +32,10 @@ public void handle_network_update(org.ldk.structs.NetworkUpdate network_update) * Gets the chain hash for this network graph. */ public byte[] get_chain_hash() { - long ret = bindings.NetworkGraph_get_chain_hash(this.ptr); + long ret = Bindings.NetworkGraphGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -43,10 +43,10 @@ public byte[] get_chain_hash() { * Serialize the NetworkGraph object into a byte array which can be read by NetworkGraph_read */ public byte[] write() { - long ret = bindings.NetworkGraph_write(this.ptr); + long ret = Bindings.NetworkGraphWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] write() { * Read a NetworkGraph from a byte array, created by NetworkGraph_write */ public static Result_NetworkGraphDecodeErrorZ read(byte[] ser, org.ldk.structs.Logger arg) { - long ret = bindings.NetworkGraph_read(InternalUtils.encodeUint8Array(ser), arg.ptr); + long ret = Bindings.NetworkGraphRead(InternalUtils.EncodeUint8Array(ser), arg.ptr); GC.KeepAlive(ser); GC.KeepAlive(arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -67,7 +67,7 @@ public static Result_NetworkGraphDecodeErrorZ read(byte[] ser, org.ldk.structs.L * Creates a new, empty, network graph. */ public static NetworkGraph of(Network network, org.ldk.structs.Logger logger) { - long ret = bindings.NetworkGraph_new(network, logger.ptr); + long ret = Bindings.NetworkGraphNew(network, logger.ptr); GC.KeepAlive(network); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } @@ -81,7 +81,7 @@ public static NetworkGraph of(Network network, org.ldk.structs.Logger logger) { * Returns a read-only view of the network graph. */ public ReadOnlyNetworkGraph read_only() { - long ret = bindings.NetworkGraph_read_only(this.ptr); + long ret = Bindings.NetworkGraphReadOnly(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ReadOnlyNetworkGraph ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReadOnlyNetworkGraph(null, ret); } @@ -94,7 +94,7 @@ public ReadOnlyNetworkGraph read_only() { * It will be set by the rapid sync process after every sync completion. */ public Option_u32Z get_last_rapid_gossip_sync_timestamp() { - long ret = bindings.NetworkGraph_get_last_rapid_gossip_sync_timestamp(this.ptr); + long ret = Bindings.NetworkGraphGetLastRapidGossipSyncTimestamp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -107,7 +107,7 @@ public Option_u32Z get_last_rapid_gossip_sync_timestamp() { * This should be done automatically by the rapid sync process after every sync completion. */ public void set_last_rapid_gossip_sync_timestamp(int last_rapid_gossip_sync_timestamp) { - bindings.NetworkGraph_set_last_rapid_gossip_sync_timestamp(this.ptr, last_rapid_gossip_sync_timestamp); + Bindings.NetworkGraphSetLastRapidGossipSyncTimestamp(this.ptr, last_rapid_gossip_sync_timestamp); GC.KeepAlive(this); GC.KeepAlive(last_rapid_gossip_sync_timestamp); } @@ -121,7 +121,7 @@ public void set_last_rapid_gossip_sync_timestamp(int last_rapid_gossip_sync_time * routing messages from a source using a protocol other than the lightning P2P protocol. */ public Result_NoneLightningErrorZ update_node_from_announcement(org.ldk.structs.NodeAnnouncement msg) { - long ret = bindings.NetworkGraph_update_node_from_announcement(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphUpdateNodeFromAnnouncement(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -137,7 +137,7 @@ public Result_NoneLightningErrorZ update_node_from_announcement(org.ldk.structs. * peers. */ public Result_NoneLightningErrorZ update_node_from_unsigned_announcement(org.ldk.structs.UnsignedNodeAnnouncement msg) { - long ret = bindings.NetworkGraph_update_node_from_unsigned_announcement(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphUpdateNodeFromUnsignedAnnouncement(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -157,7 +157,7 @@ public Result_NoneLightningErrorZ update_node_from_unsigned_announcement(org.ldk * the corresponding UTXO exists on chain and is correctly-formatted. */ public Result_NoneLightningErrorZ update_channel_from_announcement(org.ldk.structs.ChannelAnnouncement msg, org.ldk.structs.Option_UtxoLookupZ utxo_lookup) { - long ret = bindings.NetworkGraph_update_channel_from_announcement(this.ptr, msg == null ? 0 : msg.ptr, utxo_lookup.ptr); + long ret = Bindings.NetworkGraphUpdateChannelFromAnnouncement(this.ptr, msg == null ? 0 : msg.ptr, utxo_lookup.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); GC.KeepAlive(utxo_lookup); @@ -178,7 +178,7 @@ public Result_NoneLightningErrorZ update_channel_from_announcement(org.ldk.struc * This will skip verification of if the channel is actually on-chain. */ public Result_NoneLightningErrorZ update_channel_from_announcement_no_lookup(org.ldk.structs.ChannelAnnouncement msg) { - long ret = bindings.NetworkGraph_update_channel_from_announcement_no_lookup(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphUpdateChannelFromAnnouncementNoLookup(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -196,7 +196,7 @@ public Result_NoneLightningErrorZ update_channel_from_announcement_no_lookup(org * the corresponding UTXO exists on chain and is correctly-formatted. */ public Result_NoneLightningErrorZ update_channel_from_unsigned_announcement(org.ldk.structs.UnsignedChannelAnnouncement msg, org.ldk.structs.Option_UtxoLookupZ utxo_lookup) { - long ret = bindings.NetworkGraph_update_channel_from_unsigned_announcement(this.ptr, msg == null ? 0 : msg.ptr, utxo_lookup.ptr); + long ret = Bindings.NetworkGraphUpdateChannelFromUnsignedAnnouncement(this.ptr, msg == null ? 0 : msg.ptr, utxo_lookup.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); GC.KeepAlive(utxo_lookup); @@ -216,7 +216,7 @@ public Result_NoneLightningErrorZ update_channel_from_unsigned_announcement(org. * All other parameters as used in [`msgs::UnsignedChannelAnnouncement`] fields. */ public Result_NoneLightningErrorZ add_channel_from_partial_announcement(long short_channel_id, long timestamp, org.ldk.structs.ChannelFeatures features, byte[] node_id_1, byte[] node_id_2) { - long ret = bindings.NetworkGraph_add_channel_from_partial_announcement(this.ptr, short_channel_id, timestamp, features == null ? 0 : features.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_1, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id_2, 33))); + long ret = Bindings.NetworkGraphAddChannelFromPartialAnnouncement(this.ptr, short_channel_id, timestamp, features == null ? 0 : features.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id_1, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id_2, 33))); GC.KeepAlive(this); GC.KeepAlive(short_channel_id); GC.KeepAlive(timestamp); @@ -235,7 +235,7 @@ public Result_NoneLightningErrorZ add_channel_from_partial_announcement(long sho * The channel and any node for which this was their last channel are removed from the graph. */ public void channel_failed_permanent(long short_channel_id) { - bindings.NetworkGraph_channel_failed_permanent(this.ptr, short_channel_id); + Bindings.NetworkGraphChannelFailedPermanent(this.ptr, short_channel_id); GC.KeepAlive(this); GC.KeepAlive(short_channel_id); } @@ -245,7 +245,7 @@ public void channel_failed_permanent(long short_channel_id) { * from local storage. */ public void node_failed_permanent(byte[] node_id) { - bindings.NetworkGraph_node_failed_permanent(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33))); + Bindings.NetworkGraphNodeFailedPermanent(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(node_id); } @@ -269,7 +269,7 @@ public void node_failed_permanent(byte[] node_id) { * [`NetworkGraph::remove_stale_channels_and_tracking_with_time`] for `no-std` use. */ public void remove_stale_channels_and_tracking() { - bindings.NetworkGraph_remove_stale_channels_and_tracking(this.ptr); + Bindings.NetworkGraphRemoveStaleChannelsAndTracking(this.ptr); GC.KeepAlive(this); } @@ -289,7 +289,7 @@ public void remove_stale_channels_and_tracking() { * enabled, [`NetworkGraph::remove_stale_channels_and_tracking`] may be preferable. */ public void remove_stale_channels_and_tracking_with_time(long current_time_unix) { - bindings.NetworkGraph_remove_stale_channels_and_tracking_with_time(this.ptr, current_time_unix); + Bindings.NetworkGraphRemoveStaleChannelsAndTrackingWithTime(this.ptr, current_time_unix); GC.KeepAlive(this); GC.KeepAlive(current_time_unix); } @@ -306,7 +306,7 @@ public void remove_stale_channels_and_tracking_with_time(long current_time_unix) * materially in the future will be rejected. */ public Result_NoneLightningErrorZ update_channel(org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.NetworkGraph_update_channel(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphUpdateChannel(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -324,7 +324,7 @@ public Result_NoneLightningErrorZ update_channel(org.ldk.structs.ChannelUpdate m * materially in the future will be rejected. */ public Result_NoneLightningErrorZ update_channel_unsigned(org.ldk.structs.UnsignedChannelUpdate msg) { - long ret = bindings.NetworkGraph_update_channel_unsigned(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphUpdateChannelUnsigned(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -342,7 +342,7 @@ public Result_NoneLightningErrorZ update_channel_unsigned(org.ldk.structs.Unsign * materially in the future will be rejected. */ public Result_NoneLightningErrorZ verify_channel_update(org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.NetworkGraph_verify_channel_update(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkGraphVerifyChannelUpdate(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/NetworkUpdate.cs b/c_sharp/src/org/ldk/structs/NetworkUpdate.cs index 44ba3641a..e84e75d48 100644 --- a/c_sharp/src/org/ldk/structs/NetworkUpdate.cs +++ b/c_sharp/src/org/ldk/structs/NetworkUpdate.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class NetworkUpdate : CommonBase { protected NetworkUpdate(object _dummy, long ptr) : base(ptr) { } ~NetworkUpdate() { - if (ptr != 0) { bindings.NetworkUpdate_free(ptr); } + if (ptr != 0) { Bindings.NetworkUpdateFree(ptr); } } internal static NetworkUpdate constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKNetworkUpdate_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKNetworkUpdateTyFromPtr(ptr); switch (raw_ty) { case 0: return new NetworkUpdate_ChannelUpdateMessage(ptr); case 1: return new NetworkUpdate_ChannelFailure(ptr); @@ -35,7 +35,7 @@ public class NetworkUpdate_ChannelUpdateMessage : NetworkUpdate { */ public ChannelUpdate msg; internal NetworkUpdate_ChannelUpdateMessage(long ptr) : base(null, ptr) { - long msg = bindings.LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr); + long msg = Bindings.LDKNetworkUpdateChannelUpdateMessageGetMsg(ptr); org.ldk.structs.ChannelUpdate msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, msg); } if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); }; this.msg = msg_hu_conv; @@ -53,8 +53,8 @@ public class NetworkUpdate_ChannelFailure : NetworkUpdate { */ public bool is_permanent; internal NetworkUpdate_ChannelFailure(long ptr) : base(null, ptr) { - this.short_channel_id = bindings.LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr); - this.is_permanent = bindings.LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr); + this.short_channel_id = Bindings.LDKNetworkUpdateChannelFailureGetShortChannelId(ptr); + this.is_permanent = Bindings.LDKNetworkUpdateChannelFailureGetIsPermanent(ptr); } } /** A NetworkUpdate of type NodeFailure */ @@ -69,14 +69,14 @@ public class NetworkUpdate_NodeFailure : NetworkUpdate { */ public bool is_permanent; internal NetworkUpdate_NodeFailure(long ptr) : base(null, ptr) { - long node_id = bindings.LDKNetworkUpdate_NodeFailure_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKNetworkUpdateNodeFailureGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - this.is_permanent = bindings.LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr); + this.is_permanent = Bindings.LDKNetworkUpdateNodeFailureGetIsPermanent(ptr); } } internal long clone_ptr() { - long ret = bindings.NetworkUpdate_clone_ptr(this.ptr); + long ret = Bindings.NetworkUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -85,7 +85,7 @@ internal long clone_ptr() { * Creates a copy of the NetworkUpdate */ public NetworkUpdate clone() { - long ret = bindings.NetworkUpdate_clone(this.ptr); + long ret = Bindings.NetworkUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NetworkUpdate ret_hu_conv = org.ldk.structs.NetworkUpdate.constr_from_ptr(ret); @@ -97,7 +97,7 @@ public NetworkUpdate clone() { * Utility method to constructs a new ChannelUpdateMessage-variant NetworkUpdate */ public static NetworkUpdate channel_update_message(org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.NetworkUpdate_channel_update_message(msg == null ? 0 : msg.ptr); + long ret = Bindings.NetworkUpdateChannelUpdateMessage(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NetworkUpdate ret_hu_conv = org.ldk.structs.NetworkUpdate.constr_from_ptr(ret); @@ -110,7 +110,7 @@ public static NetworkUpdate channel_update_message(org.ldk.structs.ChannelUpdate * Utility method to constructs a new ChannelFailure-variant NetworkUpdate */ public static NetworkUpdate channel_failure(long short_channel_id, bool is_permanent) { - long ret = bindings.NetworkUpdate_channel_failure(short_channel_id, is_permanent); + long ret = Bindings.NetworkUpdateChannelFailure(short_channel_id, is_permanent); GC.KeepAlive(short_channel_id); GC.KeepAlive(is_permanent); if (ret >= 0 && ret <= 4096) { return null; } @@ -123,7 +123,7 @@ public static NetworkUpdate channel_failure(long short_channel_id, bool is_perma * Utility method to constructs a new NodeFailure-variant NetworkUpdate */ public static NetworkUpdate node_failure(byte[] node_id, bool is_permanent) { - long ret = bindings.NetworkUpdate_node_failure(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), is_permanent); + long ret = Bindings.NetworkUpdateNodeFailure(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), is_permanent); GC.KeepAlive(node_id); GC.KeepAlive(is_permanent); if (ret >= 0 && ret <= 4096) { return null; } @@ -137,7 +137,7 @@ public static NetworkUpdate node_failure(byte[] node_id, bool is_permanent) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.NetworkUpdate b) { - bool ret = bindings.NetworkUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NetworkUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -151,10 +151,10 @@ public override bool Equals(object o) { * Serialize the NetworkUpdate object into a byte array which can be read by NetworkUpdate_read */ public byte[] write() { - long ret = bindings.NetworkUpdate_write(this.ptr); + long ret = Bindings.NetworkUpdateWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/NodeAlias.cs b/c_sharp/src/org/ldk/structs/NodeAlias.cs index 8121cf142..75c272075 100644 --- a/c_sharp/src/org/ldk/structs/NodeAlias.cs +++ b/c_sharp/src/org/ldk/structs/NodeAlias.cs @@ -15,19 +15,19 @@ namespace org { namespace ldk { namespace structs { public class NodeAlias : CommonBase { internal NodeAlias(object _dummy, long ptr) : base(ptr) { } ~NodeAlias() { - if (ptr != 0) { bindings.NodeAlias_free(ptr); } + if (ptr != 0) { Bindings.NodeAliasFree(ptr); } } public byte[] get_a() { - long ret = bindings.NodeAlias_get_a(this.ptr); + long ret = Bindings.NodeAliasGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.NodeAlias_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.NodeAliasSetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -36,7 +36,7 @@ public void set_a(byte[] val) { * Constructs a new NodeAlias given each field */ public static NodeAlias of(byte[] a_arg) { - long ret = bindings.NodeAlias_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 32))); + long ret = Bindings.NodeAliasNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 32))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAlias ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAlias(null, ret); } @@ -45,7 +45,7 @@ public static NodeAlias of(byte[] a_arg) { } internal long clone_ptr() { - long ret = bindings.NodeAlias_clone_ptr(this.ptr); + long ret = Bindings.NodeAliasClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ internal long clone_ptr() { * Creates a copy of the NodeAlias */ public NodeAlias clone() { - long ret = bindings.NodeAlias_clone(this.ptr); + long ret = Bindings.NodeAliasClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAlias ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAlias(null, ret); } @@ -66,7 +66,7 @@ public NodeAlias clone() { * Generates a non-cryptographic 64-bit hash of the NodeAlias. */ public long hash() { - long ret = bindings.NodeAlias_hash(this.ptr); + long ret = Bindings.NodeAliasHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.NodeAlias b) { - bool ret = bindings.NodeAlias_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NodeAliasEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -95,10 +95,10 @@ public override bool Equals(object o) { * Serialize the NodeAlias object into a byte array which can be read by NodeAlias_read */ public byte[] write() { - long ret = bindings.NodeAlias_write(this.ptr); + long ret = Bindings.NodeAliasWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -106,7 +106,7 @@ public byte[] write() { * Read a NodeAlias from a byte array, created by NodeAlias_write */ public static Result_NodeAliasDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeAlias_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeAliasRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAliasDecodeErrorZ ret_hu_conv = Result_NodeAliasDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/NodeAnnouncement.cs b/c_sharp/src/org/ldk/structs/NodeAnnouncement.cs index ae3319556..254d825d0 100644 --- a/c_sharp/src/org/ldk/structs/NodeAnnouncement.cs +++ b/c_sharp/src/org/ldk/structs/NodeAnnouncement.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class NodeAnnouncement : CommonBase { internal NodeAnnouncement(object _dummy, long ptr) : base(ptr) { } ~NodeAnnouncement() { - if (ptr != 0) { bindings.NodeAnnouncement_free(ptr); } + if (ptr != 0) { Bindings.NodeAnnouncementFree(ptr); } } /** * The signature by the node key */ public byte[] get_signature() { - long ret = bindings.NodeAnnouncement_get_signature(this.ptr); + long ret = Bindings.NodeAnnouncementGetSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_signature() { * The signature by the node key */ public void set_signature(byte[] val) { - bindings.NodeAnnouncement_set_signature(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 64))); + Bindings.NodeAnnouncementSetSignature(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 64))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_signature(byte[] val) { * The actual content of the announcement */ public UnsignedNodeAnnouncement get_contents() { - long ret = bindings.NodeAnnouncement_get_contents(this.ptr); + long ret = Bindings.NodeAnnouncementGetContents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedNodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedNodeAnnouncement(null, ret); } @@ -53,7 +53,7 @@ public UnsignedNodeAnnouncement get_contents() { * The actual content of the announcement */ public void set_contents(org.ldk.structs.UnsignedNodeAnnouncement val) { - bindings.NodeAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr); + Bindings.NodeAnnouncementSetContents(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -63,7 +63,7 @@ public void set_contents(org.ldk.structs.UnsignedNodeAnnouncement val) { * Constructs a new NodeAnnouncement given each field */ public static NodeAnnouncement of(byte[] signature_arg, org.ldk.structs.UnsignedNodeAnnouncement contents_arg) { - long ret = bindings.NodeAnnouncement_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(signature_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); + long ret = Bindings.NodeAnnouncementNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(signature_arg, 64)), contents_arg == null ? 0 : contents_arg.ptr); GC.KeepAlive(signature_arg); GC.KeepAlive(contents_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -74,7 +74,7 @@ public static NodeAnnouncement of(byte[] signature_arg, org.ldk.structs.Unsigned } internal long clone_ptr() { - long ret = bindings.NodeAnnouncement_clone_ptr(this.ptr); + long ret = Bindings.NodeAnnouncementClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * Creates a copy of the NodeAnnouncement */ public NodeAnnouncement clone() { - long ret = bindings.NodeAnnouncement_clone(this.ptr); + long ret = Bindings.NodeAnnouncementClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAnnouncement(null, ret); } @@ -95,7 +95,7 @@ public NodeAnnouncement clone() { * Generates a non-cryptographic 64-bit hash of the NodeAnnouncement. */ public long hash() { - long ret = bindings.NodeAnnouncement_hash(this.ptr); + long ret = Bindings.NodeAnnouncementHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -109,7 +109,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.NodeAnnouncement b) { - bool ret = bindings.NodeAnnouncement_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NodeAnnouncementEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -124,10 +124,10 @@ public override bool Equals(object o) { * Serialize the NodeAnnouncement object into a byte array which can be read by NodeAnnouncement_read */ public byte[] write() { - long ret = bindings.NodeAnnouncement_write(this.ptr); + long ret = Bindings.NodeAnnouncementWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -135,7 +135,7 @@ public byte[] write() { * Read a NodeAnnouncement from a byte array, created by NodeAnnouncement_write */ public static Result_NodeAnnouncementDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeAnnouncement_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeAnnouncementRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/NodeAnnouncementInfo.cs b/c_sharp/src/org/ldk/structs/NodeAnnouncementInfo.cs index e1a6e0227..11b7ae4d3 100644 --- a/c_sharp/src/org/ldk/structs/NodeAnnouncementInfo.cs +++ b/c_sharp/src/org/ldk/structs/NodeAnnouncementInfo.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class NodeAnnouncementInfo : CommonBase { internal NodeAnnouncementInfo(object _dummy, long ptr) : base(ptr) { } ~NodeAnnouncementInfo() { - if (ptr != 0) { bindings.NodeAnnouncementInfo_free(ptr); } + if (ptr != 0) { Bindings.NodeAnnouncementInfoFree(ptr); } } /** * Protocol features the node announced support for */ public NodeFeatures get_features() { - long ret = bindings.NodeAnnouncementInfo_get_features(this.ptr); + long ret = Bindings.NodeAnnouncementInfoGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -31,7 +31,7 @@ public NodeFeatures get_features() { * Protocol features the node announced support for */ public void set_features(org.ldk.structs.NodeFeatures val) { - bindings.NodeAnnouncementInfo_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.NodeAnnouncementInfoSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -42,7 +42,7 @@ public void set_features(org.ldk.structs.NodeFeatures val) { * Value is opaque, as set in the announcement. */ public int get_last_update() { - int ret = bindings.NodeAnnouncementInfo_get_last_update(this.ptr); + int ret = Bindings.NodeAnnouncementInfoGetLastUpdate(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public int get_last_update() { * Value is opaque, as set in the announcement. */ public void set_last_update(int val) { - bindings.NodeAnnouncementInfo_set_last_update(this.ptr, val); + Bindings.NodeAnnouncementInfoSetLastUpdate(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,10 +61,10 @@ public void set_last_update(int val) { * Color assigned to the node */ public byte[] get_rgb() { - long ret = bindings.NodeAnnouncementInfo_get_rgb(this.ptr); + long ret = Bindings.NodeAnnouncementInfoGetRgb(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -72,7 +72,7 @@ public byte[] get_rgb() { * Color assigned to the node */ public void set_rgb(byte[] val) { - bindings.NodeAnnouncementInfo_set_rgb(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 3))); + Bindings.NodeAnnouncementInfoSetRgb(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 3))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -83,7 +83,7 @@ public void set_rgb(byte[] val) { * should not be exposed to the user. */ public NodeAlias get_alias() { - long ret = bindings.NodeAnnouncementInfo_get_alias(this.ptr); + long ret = Bindings.NodeAnnouncementInfoGetAlias(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAlias ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAlias(null, ret); } @@ -97,7 +97,7 @@ public NodeAlias get_alias() { * should not be exposed to the user. */ public void set_alias(org.ldk.structs.NodeAlias val) { - bindings.NodeAnnouncementInfo_set_alias(this.ptr, val == null ? 0 : val.ptr); + Bindings.NodeAnnouncementInfoSetAlias(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -112,7 +112,7 @@ public void set_alias(org.ldk.structs.NodeAlias val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public NodeAnnouncement get_announcement_message() { - long ret = bindings.NodeAnnouncementInfo_get_announcement_message(this.ptr); + long ret = Bindings.NodeAnnouncementInfoGetAnnouncementMessage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAnnouncement(null, ret); } @@ -129,7 +129,7 @@ public NodeAnnouncement get_announcement_message() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_announcement_message(org.ldk.structs.NodeAnnouncement val) { - bindings.NodeAnnouncementInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr); + Bindings.NodeAnnouncementInfoSetAnnouncementMessage(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -141,7 +141,7 @@ public void set_announcement_message(org.ldk.structs.NodeAnnouncement val) { * Note that announcement_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static NodeAnnouncementInfo of(org.ldk.structs.NodeFeatures features_arg, int last_update_arg, byte[] rgb_arg, org.ldk.structs.NodeAlias alias_arg, org.ldk.structs.NodeAnnouncement announcement_message_arg) { - long ret = bindings.NodeAnnouncementInfo_new(features_arg == null ? 0 : features_arg.ptr, last_update_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(rgb_arg, 3)), alias_arg == null ? 0 : alias_arg.ptr, announcement_message_arg == null ? 0 : announcement_message_arg.ptr); + long ret = Bindings.NodeAnnouncementInfoNew(features_arg == null ? 0 : features_arg.ptr, last_update_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(rgb_arg, 3)), alias_arg == null ? 0 : alias_arg.ptr, announcement_message_arg == null ? 0 : announcement_message_arg.ptr); GC.KeepAlive(features_arg); GC.KeepAlive(last_update_arg); GC.KeepAlive(rgb_arg); @@ -157,7 +157,7 @@ public static NodeAnnouncementInfo of(org.ldk.structs.NodeFeatures features_arg, } internal long clone_ptr() { - long ret = bindings.NodeAnnouncementInfo_clone_ptr(this.ptr); + long ret = Bindings.NodeAnnouncementInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -166,7 +166,7 @@ internal long clone_ptr() { * Creates a copy of the NodeAnnouncementInfo */ public NodeAnnouncementInfo clone() { - long ret = bindings.NodeAnnouncementInfo_clone(this.ptr); + long ret = Bindings.NodeAnnouncementInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAnnouncementInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAnnouncementInfo(null, ret); } @@ -180,7 +180,7 @@ public NodeAnnouncementInfo clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.NodeAnnouncementInfo b) { - bool ret = bindings.NodeAnnouncementInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NodeAnnouncementInfoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -195,18 +195,18 @@ public override bool Equals(object o) { * Internet-level addresses via which one can connect to the node */ public SocketAddress[] addresses() { - long ret = bindings.NodeAnnouncementInfo_addresses(this.ptr); + long ret = Bindings.NodeAnnouncementInfoAddresses(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_15_len = InternalUtils.getArrayLength(ret); + int ret_conv_15_len = InternalUtils.GetArrayLength(ret); SocketAddress[] ret_conv_15_arr = new SocketAddress[ret_conv_15_len]; for (int p = 0; p < ret_conv_15_len; p++) { - long ret_conv_15 = InternalUtils.getU64ArrayElem(ret, p); + long ret_conv_15 = InternalUtils.GetU64ArrayElem(ret, p); org.ldk.structs.SocketAddress ret_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret_conv_15); if (ret_conv_15_hu_conv != null) { ret_conv_15_hu_conv.ptrs_to.AddLast(this); }; ret_conv_15_arr[p] = ret_conv_15_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_15_arr; } @@ -214,10 +214,10 @@ public SocketAddress[] addresses() { * Serialize the NodeAnnouncementInfo object into a byte array which can be read by NodeAnnouncementInfo_read */ public byte[] write() { - long ret = bindings.NodeAnnouncementInfo_write(this.ptr); + long ret = Bindings.NodeAnnouncementInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -225,7 +225,7 @@ public byte[] write() { * Read a NodeAnnouncementInfo from a byte array, created by NodeAnnouncementInfo_write */ public static Result_NodeAnnouncementInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeAnnouncementInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeAnnouncementInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/NodeFeatures.cs b/c_sharp/src/org/ldk/structs/NodeFeatures.cs index 32eaf48f9..466b0cf31 100644 --- a/c_sharp/src/org/ldk/structs/NodeFeatures.cs +++ b/c_sharp/src/org/ldk/structs/NodeFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class NodeFeatures : CommonBase { internal NodeFeatures(object _dummy, long ptr) : base(ptr) { } ~NodeFeatures() { - if (ptr != 0) { bindings.NodeFeatures_free(ptr); } + if (ptr != 0) { Bindings.NodeFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal NodeFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.NodeFeatures b) { - bool ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NodeFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((NodeFeatures)o); } internal long clone_ptr() { - long ret = bindings.NodeFeatures_clone_ptr(this.ptr); + long ret = Bindings.NodeFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the NodeFeatures */ public NodeFeatures clone() { - long ret = bindings.NodeFeatures_clone(this.ptr); + long ret = Bindings.NodeFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -54,7 +54,7 @@ public NodeFeatures clone() { * Generates a non-cryptographic 64-bit hash of the NodeFeatures. */ public long hash() { - long ret = bindings.NodeFeatures_hash(this.ptr); + long ret = Bindings.NodeFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static NodeFeatures empty() { - long ret = bindings.NodeFeatures_empty(); + long ret = Bindings.NodeFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static NodeFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.NodeFeatures other) { - bool ret = bindings.NodeFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.NodeFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.NodeFeatures other) { * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.NodeFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.NodeFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.NodeFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.NodeFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.NodeFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.NodeFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.NodeFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.NodeFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.NodeFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -170,10 +170,10 @@ public Result_NoneNoneZ set_optional_custom_bit(long bit) { * Serialize the NodeFeatures object into a byte array which can be read by NodeFeatures_read */ public byte[] write() { - long ret = bindings.NodeFeatures_write(this.ptr); + long ret = Bindings.NodeFeaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -181,7 +181,7 @@ public byte[] write() { * Read a NodeFeatures from a byte array, created by NodeFeatures_write */ public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeFeatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeFeaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -192,7 +192,7 @@ public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) { * Set this feature as optional. */ public void set_data_loss_protect_optional() { - bindings.NodeFeatures_set_data_loss_protect_optional(this.ptr); + Bindings.NodeFeaturesSetDataLossProtectOptional(this.ptr); GC.KeepAlive(this); } @@ -200,7 +200,7 @@ public void set_data_loss_protect_optional() { * Set this feature as required. */ public void set_data_loss_protect_required() { - bindings.NodeFeatures_set_data_loss_protect_required(this.ptr); + Bindings.NodeFeaturesSetDataLossProtectRequired(this.ptr); GC.KeepAlive(this); } @@ -208,7 +208,7 @@ public void set_data_loss_protect_required() { * Checks if this feature is supported. */ public bool supports_data_loss_protect() { - bool ret = bindings.NodeFeatures_supports_data_loss_protect(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsDataLossProtect(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public bool supports_data_loss_protect() { * Checks if this feature is required. */ public bool requires_data_loss_protect() { - bool ret = bindings.NodeFeatures_requires_data_loss_protect(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresDataLossProtect(this.ptr); GC.KeepAlive(this); return ret; } @@ -226,7 +226,7 @@ public bool requires_data_loss_protect() { * Set this feature as optional. */ public void set_upfront_shutdown_script_optional() { - bindings.NodeFeatures_set_upfront_shutdown_script_optional(this.ptr); + Bindings.NodeFeaturesSetUpfrontShutdownScriptOptional(this.ptr); GC.KeepAlive(this); } @@ -234,7 +234,7 @@ public void set_upfront_shutdown_script_optional() { * Set this feature as required. */ public void set_upfront_shutdown_script_required() { - bindings.NodeFeatures_set_upfront_shutdown_script_required(this.ptr); + Bindings.NodeFeaturesSetUpfrontShutdownScriptRequired(this.ptr); GC.KeepAlive(this); } @@ -242,7 +242,7 @@ public void set_upfront_shutdown_script_required() { * Checks if this feature is supported. */ public bool supports_upfront_shutdown_script() { - bool ret = bindings.NodeFeatures_supports_upfront_shutdown_script(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsUpfrontShutdownScript(this.ptr); GC.KeepAlive(this); return ret; } @@ -251,7 +251,7 @@ public bool supports_upfront_shutdown_script() { * Checks if this feature is required. */ public bool requires_upfront_shutdown_script() { - bool ret = bindings.NodeFeatures_requires_upfront_shutdown_script(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresUpfrontShutdownScript(this.ptr); GC.KeepAlive(this); return ret; } @@ -260,7 +260,7 @@ public bool requires_upfront_shutdown_script() { * Set this feature as optional. */ public void set_gossip_queries_optional() { - bindings.NodeFeatures_set_gossip_queries_optional(this.ptr); + Bindings.NodeFeaturesSetGossipQueriesOptional(this.ptr); GC.KeepAlive(this); } @@ -268,7 +268,7 @@ public void set_gossip_queries_optional() { * Set this feature as required. */ public void set_gossip_queries_required() { - bindings.NodeFeatures_set_gossip_queries_required(this.ptr); + Bindings.NodeFeaturesSetGossipQueriesRequired(this.ptr); GC.KeepAlive(this); } @@ -276,7 +276,7 @@ public void set_gossip_queries_required() { * Checks if this feature is supported. */ public bool supports_gossip_queries() { - bool ret = bindings.NodeFeatures_supports_gossip_queries(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsGossipQueries(this.ptr); GC.KeepAlive(this); return ret; } @@ -285,7 +285,7 @@ public bool supports_gossip_queries() { * Checks if this feature is required. */ public bool requires_gossip_queries() { - bool ret = bindings.NodeFeatures_requires_gossip_queries(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresGossipQueries(this.ptr); GC.KeepAlive(this); return ret; } @@ -294,7 +294,7 @@ public bool requires_gossip_queries() { * Set this feature as optional. */ public void set_variable_length_onion_optional() { - bindings.NodeFeatures_set_variable_length_onion_optional(this.ptr); + Bindings.NodeFeaturesSetVariableLengthOnionOptional(this.ptr); GC.KeepAlive(this); } @@ -302,7 +302,7 @@ public void set_variable_length_onion_optional() { * Set this feature as required. */ public void set_variable_length_onion_required() { - bindings.NodeFeatures_set_variable_length_onion_required(this.ptr); + Bindings.NodeFeaturesSetVariableLengthOnionRequired(this.ptr); GC.KeepAlive(this); } @@ -310,7 +310,7 @@ public void set_variable_length_onion_required() { * Checks if this feature is supported. */ public bool supports_variable_length_onion() { - bool ret = bindings.NodeFeatures_supports_variable_length_onion(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -319,7 +319,7 @@ public bool supports_variable_length_onion() { * Checks if this feature is required. */ public bool requires_variable_length_onion() { - bool ret = bindings.NodeFeatures_requires_variable_length_onion(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresVariableLengthOnion(this.ptr); GC.KeepAlive(this); return ret; } @@ -328,7 +328,7 @@ public bool requires_variable_length_onion() { * Set this feature as optional. */ public void set_static_remote_key_optional() { - bindings.NodeFeatures_set_static_remote_key_optional(this.ptr); + Bindings.NodeFeaturesSetStaticRemoteKeyOptional(this.ptr); GC.KeepAlive(this); } @@ -336,7 +336,7 @@ public void set_static_remote_key_optional() { * Set this feature as required. */ public void set_static_remote_key_required() { - bindings.NodeFeatures_set_static_remote_key_required(this.ptr); + Bindings.NodeFeaturesSetStaticRemoteKeyRequired(this.ptr); GC.KeepAlive(this); } @@ -344,7 +344,7 @@ public void set_static_remote_key_required() { * Checks if this feature is supported. */ public bool supports_static_remote_key() { - bool ret = bindings.NodeFeatures_supports_static_remote_key(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -353,7 +353,7 @@ public bool supports_static_remote_key() { * Checks if this feature is required. */ public bool requires_static_remote_key() { - bool ret = bindings.NodeFeatures_requires_static_remote_key(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresStaticRemoteKey(this.ptr); GC.KeepAlive(this); return ret; } @@ -362,7 +362,7 @@ public bool requires_static_remote_key() { * Set this feature as optional. */ public void set_payment_secret_optional() { - bindings.NodeFeatures_set_payment_secret_optional(this.ptr); + Bindings.NodeFeaturesSetPaymentSecretOptional(this.ptr); GC.KeepAlive(this); } @@ -370,7 +370,7 @@ public void set_payment_secret_optional() { * Set this feature as required. */ public void set_payment_secret_required() { - bindings.NodeFeatures_set_payment_secret_required(this.ptr); + Bindings.NodeFeaturesSetPaymentSecretRequired(this.ptr); GC.KeepAlive(this); } @@ -378,7 +378,7 @@ public void set_payment_secret_required() { * Checks if this feature is supported. */ public bool supports_payment_secret() { - bool ret = bindings.NodeFeatures_supports_payment_secret(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -387,7 +387,7 @@ public bool supports_payment_secret() { * Checks if this feature is required. */ public bool requires_payment_secret() { - bool ret = bindings.NodeFeatures_requires_payment_secret(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresPaymentSecret(this.ptr); GC.KeepAlive(this); return ret; } @@ -396,7 +396,7 @@ public bool requires_payment_secret() { * Set this feature as optional. */ public void set_basic_mpp_optional() { - bindings.NodeFeatures_set_basic_mpp_optional(this.ptr); + Bindings.NodeFeaturesSetBasicMppOptional(this.ptr); GC.KeepAlive(this); } @@ -404,7 +404,7 @@ public void set_basic_mpp_optional() { * Set this feature as required. */ public void set_basic_mpp_required() { - bindings.NodeFeatures_set_basic_mpp_required(this.ptr); + Bindings.NodeFeaturesSetBasicMppRequired(this.ptr); GC.KeepAlive(this); } @@ -412,7 +412,7 @@ public void set_basic_mpp_required() { * Checks if this feature is supported. */ public bool supports_basic_mpp() { - bool ret = bindings.NodeFeatures_supports_basic_mpp(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -421,7 +421,7 @@ public bool supports_basic_mpp() { * Checks if this feature is required. */ public bool requires_basic_mpp() { - bool ret = bindings.NodeFeatures_requires_basic_mpp(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresBasicMpp(this.ptr); GC.KeepAlive(this); return ret; } @@ -430,7 +430,7 @@ public bool requires_basic_mpp() { * Set this feature as optional. */ public void set_wumbo_optional() { - bindings.NodeFeatures_set_wumbo_optional(this.ptr); + Bindings.NodeFeaturesSetWumboOptional(this.ptr); GC.KeepAlive(this); } @@ -438,7 +438,7 @@ public void set_wumbo_optional() { * Set this feature as required. */ public void set_wumbo_required() { - bindings.NodeFeatures_set_wumbo_required(this.ptr); + Bindings.NodeFeaturesSetWumboRequired(this.ptr); GC.KeepAlive(this); } @@ -446,7 +446,7 @@ public void set_wumbo_required() { * Checks if this feature is supported. */ public bool supports_wumbo() { - bool ret = bindings.NodeFeatures_supports_wumbo(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsWumbo(this.ptr); GC.KeepAlive(this); return ret; } @@ -455,7 +455,7 @@ public bool supports_wumbo() { * Checks if this feature is required. */ public bool requires_wumbo() { - bool ret = bindings.NodeFeatures_requires_wumbo(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresWumbo(this.ptr); GC.KeepAlive(this); return ret; } @@ -464,7 +464,7 @@ public bool requires_wumbo() { * Set this feature as optional. */ public void set_anchors_nonzero_fee_htlc_tx_optional() { - bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr); + Bindings.NodeFeaturesSetAnchorsNonzeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -472,7 +472,7 @@ public void set_anchors_nonzero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_nonzero_fee_htlc_tx_required() { - bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr); + Bindings.NodeFeaturesSetAnchorsNonzeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -480,7 +480,7 @@ public void set_anchors_nonzero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -489,7 +489,7 @@ public bool supports_anchors_nonzero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_nonzero_fee_htlc_tx() { - bool ret = bindings.NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresAnchorsNonzeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -498,7 +498,7 @@ public bool requires_anchors_nonzero_fee_htlc_tx() { * Set this feature as optional. */ public void set_anchors_zero_fee_htlc_tx_optional() { - bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr); + Bindings.NodeFeaturesSetAnchorsZeroFeeHtlcTxOptional(this.ptr); GC.KeepAlive(this); } @@ -506,7 +506,7 @@ public void set_anchors_zero_fee_htlc_tx_optional() { * Set this feature as required. */ public void set_anchors_zero_fee_htlc_tx_required() { - bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr); + Bindings.NodeFeaturesSetAnchorsZeroFeeHtlcTxRequired(this.ptr); GC.KeepAlive(this); } @@ -514,7 +514,7 @@ public void set_anchors_zero_fee_htlc_tx_required() { * Checks if this feature is supported. */ public bool supports_anchors_zero_fee_htlc_tx() { - bool ret = bindings.NodeFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -523,7 +523,7 @@ public bool supports_anchors_zero_fee_htlc_tx() { * Checks if this feature is required. */ public bool requires_anchors_zero_fee_htlc_tx() { - bool ret = bindings.NodeFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresAnchorsZeroFeeHtlcTx(this.ptr); GC.KeepAlive(this); return ret; } @@ -532,7 +532,7 @@ public bool requires_anchors_zero_fee_htlc_tx() { * Set this feature as optional. */ public void set_route_blinding_optional() { - bindings.NodeFeatures_set_route_blinding_optional(this.ptr); + Bindings.NodeFeaturesSetRouteBlindingOptional(this.ptr); GC.KeepAlive(this); } @@ -540,7 +540,7 @@ public void set_route_blinding_optional() { * Set this feature as required. */ public void set_route_blinding_required() { - bindings.NodeFeatures_set_route_blinding_required(this.ptr); + Bindings.NodeFeaturesSetRouteBlindingRequired(this.ptr); GC.KeepAlive(this); } @@ -548,7 +548,7 @@ public void set_route_blinding_required() { * Checks if this feature is supported. */ public bool supports_route_blinding() { - bool ret = bindings.NodeFeatures_supports_route_blinding(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsRouteBlinding(this.ptr); GC.KeepAlive(this); return ret; } @@ -557,7 +557,7 @@ public bool supports_route_blinding() { * Checks if this feature is required. */ public bool requires_route_blinding() { - bool ret = bindings.NodeFeatures_requires_route_blinding(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresRouteBlinding(this.ptr); GC.KeepAlive(this); return ret; } @@ -566,7 +566,7 @@ public bool requires_route_blinding() { * Set this feature as optional. */ public void set_shutdown_any_segwit_optional() { - bindings.NodeFeatures_set_shutdown_any_segwit_optional(this.ptr); + Bindings.NodeFeaturesSetShutdownAnySegwitOptional(this.ptr); GC.KeepAlive(this); } @@ -574,7 +574,7 @@ public void set_shutdown_any_segwit_optional() { * Set this feature as required. */ public void set_shutdown_any_segwit_required() { - bindings.NodeFeatures_set_shutdown_any_segwit_required(this.ptr); + Bindings.NodeFeaturesSetShutdownAnySegwitRequired(this.ptr); GC.KeepAlive(this); } @@ -582,7 +582,7 @@ public void set_shutdown_any_segwit_required() { * Checks if this feature is supported. */ public bool supports_shutdown_anysegwit() { - bool ret = bindings.NodeFeatures_supports_shutdown_anysegwit(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsShutdownAnysegwit(this.ptr); GC.KeepAlive(this); return ret; } @@ -591,7 +591,7 @@ public bool supports_shutdown_anysegwit() { * Checks if this feature is required. */ public bool requires_shutdown_anysegwit() { - bool ret = bindings.NodeFeatures_requires_shutdown_anysegwit(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresShutdownAnysegwit(this.ptr); GC.KeepAlive(this); return ret; } @@ -600,7 +600,7 @@ public bool requires_shutdown_anysegwit() { * Set this feature as optional. */ public void set_taproot_optional() { - bindings.NodeFeatures_set_taproot_optional(this.ptr); + Bindings.NodeFeaturesSetTaprootOptional(this.ptr); GC.KeepAlive(this); } @@ -608,7 +608,7 @@ public void set_taproot_optional() { * Set this feature as required. */ public void set_taproot_required() { - bindings.NodeFeatures_set_taproot_required(this.ptr); + Bindings.NodeFeaturesSetTaprootRequired(this.ptr); GC.KeepAlive(this); } @@ -616,7 +616,7 @@ public void set_taproot_required() { * Checks if this feature is supported. */ public bool supports_taproot() { - bool ret = bindings.NodeFeatures_supports_taproot(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -625,7 +625,7 @@ public bool supports_taproot() { * Checks if this feature is required. */ public bool requires_taproot() { - bool ret = bindings.NodeFeatures_requires_taproot(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresTaproot(this.ptr); GC.KeepAlive(this); return ret; } @@ -634,7 +634,7 @@ public bool requires_taproot() { * Set this feature as optional. */ public void set_onion_messages_optional() { - bindings.NodeFeatures_set_onion_messages_optional(this.ptr); + Bindings.NodeFeaturesSetOnionMessagesOptional(this.ptr); GC.KeepAlive(this); } @@ -642,7 +642,7 @@ public void set_onion_messages_optional() { * Set this feature as required. */ public void set_onion_messages_required() { - bindings.NodeFeatures_set_onion_messages_required(this.ptr); + Bindings.NodeFeaturesSetOnionMessagesRequired(this.ptr); GC.KeepAlive(this); } @@ -650,7 +650,7 @@ public void set_onion_messages_required() { * Checks if this feature is supported. */ public bool supports_onion_messages() { - bool ret = bindings.NodeFeatures_supports_onion_messages(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsOnionMessages(this.ptr); GC.KeepAlive(this); return ret; } @@ -659,7 +659,7 @@ public bool supports_onion_messages() { * Checks if this feature is required. */ public bool requires_onion_messages() { - bool ret = bindings.NodeFeatures_requires_onion_messages(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresOnionMessages(this.ptr); GC.KeepAlive(this); return ret; } @@ -668,7 +668,7 @@ public bool requires_onion_messages() { * Set this feature as optional. */ public void set_channel_type_optional() { - bindings.NodeFeatures_set_channel_type_optional(this.ptr); + Bindings.NodeFeaturesSetChannelTypeOptional(this.ptr); GC.KeepAlive(this); } @@ -676,7 +676,7 @@ public void set_channel_type_optional() { * Set this feature as required. */ public void set_channel_type_required() { - bindings.NodeFeatures_set_channel_type_required(this.ptr); + Bindings.NodeFeaturesSetChannelTypeRequired(this.ptr); GC.KeepAlive(this); } @@ -684,7 +684,7 @@ public void set_channel_type_required() { * Checks if this feature is supported. */ public bool supports_channel_type() { - bool ret = bindings.NodeFeatures_supports_channel_type(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsChannelType(this.ptr); GC.KeepAlive(this); return ret; } @@ -693,7 +693,7 @@ public bool supports_channel_type() { * Checks if this feature is required. */ public bool requires_channel_type() { - bool ret = bindings.NodeFeatures_requires_channel_type(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresChannelType(this.ptr); GC.KeepAlive(this); return ret; } @@ -702,7 +702,7 @@ public bool requires_channel_type() { * Set this feature as optional. */ public void set_scid_privacy_optional() { - bindings.NodeFeatures_set_scid_privacy_optional(this.ptr); + Bindings.NodeFeaturesSetScidPrivacyOptional(this.ptr); GC.KeepAlive(this); } @@ -710,7 +710,7 @@ public void set_scid_privacy_optional() { * Set this feature as required. */ public void set_scid_privacy_required() { - bindings.NodeFeatures_set_scid_privacy_required(this.ptr); + Bindings.NodeFeaturesSetScidPrivacyRequired(this.ptr); GC.KeepAlive(this); } @@ -718,7 +718,7 @@ public void set_scid_privacy_required() { * Checks if this feature is supported. */ public bool supports_scid_privacy() { - bool ret = bindings.NodeFeatures_supports_scid_privacy(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -727,7 +727,7 @@ public bool supports_scid_privacy() { * Checks if this feature is required. */ public bool requires_scid_privacy() { - bool ret = bindings.NodeFeatures_requires_scid_privacy(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresScidPrivacy(this.ptr); GC.KeepAlive(this); return ret; } @@ -736,7 +736,7 @@ public bool requires_scid_privacy() { * Set this feature as optional. */ public void set_zero_conf_optional() { - bindings.NodeFeatures_set_zero_conf_optional(this.ptr); + Bindings.NodeFeaturesSetZeroConfOptional(this.ptr); GC.KeepAlive(this); } @@ -744,7 +744,7 @@ public void set_zero_conf_optional() { * Set this feature as required. */ public void set_zero_conf_required() { - bindings.NodeFeatures_set_zero_conf_required(this.ptr); + Bindings.NodeFeaturesSetZeroConfRequired(this.ptr); GC.KeepAlive(this); } @@ -752,7 +752,7 @@ public void set_zero_conf_required() { * Checks if this feature is supported. */ public bool supports_zero_conf() { - bool ret = bindings.NodeFeatures_supports_zero_conf(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsZeroConf(this.ptr); GC.KeepAlive(this); return ret; } @@ -761,7 +761,7 @@ public bool supports_zero_conf() { * Checks if this feature is required. */ public bool requires_zero_conf() { - bool ret = bindings.NodeFeatures_requires_zero_conf(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresZeroConf(this.ptr); GC.KeepAlive(this); return ret; } @@ -770,7 +770,7 @@ public bool requires_zero_conf() { * Set this feature as optional. */ public void set_keysend_optional() { - bindings.NodeFeatures_set_keysend_optional(this.ptr); + Bindings.NodeFeaturesSetKeysendOptional(this.ptr); GC.KeepAlive(this); } @@ -778,7 +778,7 @@ public void set_keysend_optional() { * Set this feature as required. */ public void set_keysend_required() { - bindings.NodeFeatures_set_keysend_required(this.ptr); + Bindings.NodeFeaturesSetKeysendRequired(this.ptr); GC.KeepAlive(this); } @@ -786,7 +786,7 @@ public void set_keysend_required() { * Checks if this feature is supported. */ public bool supports_keysend() { - bool ret = bindings.NodeFeatures_supports_keysend(this.ptr); + bool ret = Bindings.NodeFeaturesSupportsKeysend(this.ptr); GC.KeepAlive(this); return ret; } @@ -795,7 +795,7 @@ public bool supports_keysend() { * Checks if this feature is required. */ public bool requires_keysend() { - bool ret = bindings.NodeFeatures_requires_keysend(this.ptr); + bool ret = Bindings.NodeFeaturesRequiresKeysend(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/NodeId.cs b/c_sharp/src/org/ldk/structs/NodeId.cs index b5b0522c7..5528c47b9 100644 --- a/c_sharp/src/org/ldk/structs/NodeId.cs +++ b/c_sharp/src/org/ldk/structs/NodeId.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class NodeId : CommonBase { internal NodeId(object _dummy, long ptr) : base(ptr) { } ~NodeId() { - if (ptr != 0) { bindings.NodeId_free(ptr); } + if (ptr != 0) { Bindings.NodeIdFree(ptr); } } internal long clone_ptr() { - long ret = bindings.NodeId_clone_ptr(this.ptr); + long ret = Bindings.NodeIdClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the NodeId */ public NodeId clone() { - long ret = bindings.NodeId_clone(this.ptr); + long ret = Bindings.NodeIdClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -37,7 +37,7 @@ public NodeId clone() { * Create a new NodeId from a public key */ public static NodeId from_pubkey(byte[] pubkey) { - long ret = bindings.NodeId_from_pubkey(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pubkey, 33))); + long ret = Bindings.NodeIdFromPubkey(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pubkey, 33))); GC.KeepAlive(pubkey); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -49,10 +49,10 @@ public static NodeId from_pubkey(byte[] pubkey) { * Get the public key slice from this NodeId */ public byte[] as_slice() { - long ret = bindings.NodeId_as_slice(this.ptr); + long ret = Bindings.NodeIdAsSlice(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -60,10 +60,10 @@ public byte[] as_slice() { * Get the public key as an array from this NodeId */ public byte[] as_array() { - long ret = bindings.NodeId_as_array(this.ptr); + long ret = Bindings.NodeIdAsArray(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -71,7 +71,7 @@ public byte[] as_array() { * Get the public key from this NodeId */ public Result_PublicKeySecp256k1ErrorZ as_pubkey() { - long ret = bindings.NodeId_as_pubkey(this.ptr); + long ret = Bindings.NodeIdAsPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeySecp256k1ErrorZ ret_hu_conv = Result_PublicKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -82,7 +82,7 @@ public Result_PublicKeySecp256k1ErrorZ as_pubkey() { * Generates a non-cryptographic 64-bit hash of the NodeId. */ public long hash() { - long ret = bindings.NodeId_hash(this.ptr); + long ret = Bindings.NodeIdHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,10 +94,10 @@ public override int GetHashCode() { * Serialize the NodeId object into a byte array which can be read by NodeId_read */ public byte[] write() { - long ret = bindings.NodeId_write(this.ptr); + long ret = Bindings.NodeIdWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -105,7 +105,7 @@ public byte[] write() { * Read a NodeId from a byte array, created by NodeId_write */ public static Result_NodeIdDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeId_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeIdRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/NodeInfo.cs b/c_sharp/src/org/ldk/structs/NodeInfo.cs index 78bb61900..1c5ddae24 100644 --- a/c_sharp/src/org/ldk/structs/NodeInfo.cs +++ b/c_sharp/src/org/ldk/structs/NodeInfo.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class NodeInfo : CommonBase { internal NodeInfo(object _dummy, long ptr) : base(ptr) { } ~NodeInfo() { - if (ptr != 0) { bindings.NodeInfo_free(ptr); } + if (ptr != 0) { Bindings.NodeInfoFree(ptr); } } /** @@ -21,10 +21,10 @@ internal NodeInfo(object _dummy, long ptr) : base(ptr) { } * Returns a copy of the field. */ public long[] get_channels() { - long ret = bindings.NodeInfo_get_channels(this.ptr); + long ret = Bindings.NodeInfoGetChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public long[] get_channels() { * All valid channels a node has announced */ public void set_channels(long[] val) { - bindings.NodeInfo_set_channels(this.ptr, InternalUtils.encodeUint64Array(val)); + Bindings.NodeInfoSetChannels(this.ptr, InternalUtils.EncodeUint64Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -45,7 +45,7 @@ public void set_channels(long[] val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public NodeAnnouncementInfo get_announcement_info() { - long ret = bindings.NodeInfo_get_announcement_info(this.ptr); + long ret = Bindings.NodeInfoGetAnnouncementInfo(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAnnouncementInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAnnouncementInfo(null, ret); } @@ -61,7 +61,7 @@ public NodeAnnouncementInfo get_announcement_info() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_announcement_info(org.ldk.structs.NodeAnnouncementInfo val) { - bindings.NodeInfo_set_announcement_info(this.ptr, val == null ? 0 : val.ptr); + Bindings.NodeInfoSetAnnouncementInfo(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -73,7 +73,7 @@ public void set_announcement_info(org.ldk.structs.NodeAnnouncementInfo val) { * Note that announcement_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static NodeInfo of(long[] channels_arg, org.ldk.structs.NodeAnnouncementInfo announcement_info_arg) { - long ret = bindings.NodeInfo_new(InternalUtils.encodeUint64Array(channels_arg), announcement_info_arg == null ? 0 : announcement_info_arg.ptr); + long ret = Bindings.NodeInfoNew(InternalUtils.EncodeUint64Array(channels_arg), announcement_info_arg == null ? 0 : announcement_info_arg.ptr); GC.KeepAlive(channels_arg); GC.KeepAlive(announcement_info_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -84,7 +84,7 @@ public static NodeInfo of(long[] channels_arg, org.ldk.structs.NodeAnnouncementI } internal long clone_ptr() { - long ret = bindings.NodeInfo_clone_ptr(this.ptr); + long ret = Bindings.NodeInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -93,7 +93,7 @@ internal long clone_ptr() { * Creates a copy of the NodeInfo */ public NodeInfo clone() { - long ret = bindings.NodeInfo_clone(this.ptr); + long ret = Bindings.NodeInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeInfo(null, ret); } @@ -107,7 +107,7 @@ public NodeInfo clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.NodeInfo b) { - bool ret = bindings.NodeInfo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.NodeInfoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -122,10 +122,10 @@ public override bool Equals(object o) { * Serialize the NodeInfo object into a byte array which can be read by NodeInfo_read */ public byte[] write() { - long ret = bindings.NodeInfo_write(this.ptr); + long ret = Bindings.NodeInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -133,7 +133,7 @@ public byte[] write() { * Read a NodeInfo from a byte array, created by NodeInfo_write */ public static Result_NodeInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.NodeInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NodeInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/NodeSigner.cs b/c_sharp/src/org/ldk/structs/NodeSigner.cs index 033f93acf..d7fe96cea 100644 --- a/c_sharp/src/org/ldk/structs/NodeSigner.cs +++ b/c_sharp/src/org/ldk/structs/NodeSigner.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of NodeSigner */ -public interface NodeSignerInterface { +public interface INodeSigner { /**Get secret key material as bytes for use in encrypting and decrypting inbound payment data. * * If the implementor of this trait supports [phantom node payments], then every node that is @@ -92,33 +92,33 @@ public interface NodeSignerInterface { * A trait that can handle cryptographic operations at the scope level of a node. */ public class NodeSigner : CommonBase { - internal bindings.LDKNodeSigner bindings_instance; + internal Bindings.LDKNodeSigner bindings_instance; internal long instance_idx; internal NodeSigner(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~NodeSigner() { - if (ptr != 0) { bindings.NodeSigner_free(ptr); } + if (ptr != 0) { Bindings.NodeSignerFree(ptr); } } private class LDKNodeSignerHolder { internal NodeSigner held; } - private class LDKNodeSignerImpl : bindings.LDKNodeSigner { - internal LDKNodeSignerImpl(NodeSignerInterface arg, LDKNodeSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private NodeSignerInterface arg; + private class LDKNodeSignerImpl : Bindings.LDKNodeSigner { + internal LDKNodeSignerImpl(INodeSigner arg, LDKNodeSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private INodeSigner arg; private LDKNodeSignerHolder impl_holder; - public long get_inbound_payment_key_material() { + public long GetInboundPaymentKeyMaterial() { byte[] ret = arg.get_inbound_payment_key_material(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 32)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 32)); return result; } - public long get_node_id(Recipient _recipient) { + public long GetNodeId(Recipient _recipient) { Result_PublicKeyNoneZ ret = arg.get_node_id(_recipient); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long ecdh(Recipient _recipient, long _other_key, long _tweak) { - byte[] _other_key_conv = InternalUtils.decodeUint8Array(_other_key); + public long Ecdh(Recipient _recipient, long _other_key, long _tweak) { + byte[] _other_key_conv = InternalUtils.DecodeUint8Array(_other_key); org.ldk.structs.Option_BigEndianScalarZ _tweak_hu_conv = org.ldk.structs.Option_BigEndianScalarZ.constr_from_ptr(_tweak); if (_tweak_hu_conv != null) { _tweak_hu_conv.ptrs_to.AddLast(this); }; Result_ThirtyTwoBytesNoneZ ret = arg.ecdh(_recipient, _other_key_conv, _tweak_hu_conv); @@ -126,36 +126,36 @@ public long ecdh(Recipient _recipient, long _other_key, long _tweak) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_invoice(long _hrp_bytes, long _invoice_data, Recipient _recipient) { - byte[] _hrp_bytes_conv = InternalUtils.decodeUint8Array(_hrp_bytes); - int _invoice_data_conv_7_len = InternalUtils.getArrayLength(_invoice_data); + public long SignInvoice(long _hrp_bytes, long _invoice_data, Recipient _recipient) { + byte[] _hrp_bytes_conv = InternalUtils.DecodeUint8Array(_hrp_bytes); + int _invoice_data_conv_7_len = InternalUtils.GetArrayLength(_invoice_data); UInt5[] _invoice_data_conv_7_arr = new UInt5[_invoice_data_conv_7_len]; for (int h = 0; h < _invoice_data_conv_7_len; h++) { - byte _invoice_data_conv_7 = InternalUtils.getU8ArrayElem(_invoice_data, h); + byte _invoice_data_conv_7 = InternalUtils.GetU8ArrayElem(_invoice_data, h); UInt5 _invoice_data_conv_7_conv = new UInt5(_invoice_data_conv_7); _invoice_data_conv_7_arr[h] = _invoice_data_conv_7_conv; } - bindings.free_buffer(_invoice_data); + Bindings.FreeBuffer(_invoice_data); Result_RecoverableSignatureNoneZ ret = arg.sign_invoice(_hrp_bytes_conv, _invoice_data_conv_7_arr, _recipient); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_bolt12_invoice_request(long _invoice_request) { + public long SignBolt12InvoiceRequest(long _invoice_request) { org.ldk.structs.UnsignedInvoiceRequest _invoice_request_hu_conv = null; if (_invoice_request < 0 || _invoice_request > 4096) { _invoice_request_hu_conv = new org.ldk.structs.UnsignedInvoiceRequest(null, _invoice_request); } Result_SchnorrSignatureNoneZ ret = arg.sign_bolt12_invoice_request(_invoice_request_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_bolt12_invoice(long _invoice) { + public long SignBolt12Invoice(long _invoice) { org.ldk.structs.UnsignedBolt12Invoice _invoice_hu_conv = null; if (_invoice < 0 || _invoice > 4096) { _invoice_hu_conv = new org.ldk.structs.UnsignedBolt12Invoice(null, _invoice); } Result_SchnorrSignatureNoneZ ret = arg.sign_bolt12_invoice(_invoice_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_gossip_message(long _msg) { + public long SignGossipMessage(long _msg) { org.ldk.structs.UnsignedGossipMessage _msg_hu_conv = org.ldk.structs.UnsignedGossipMessage.constr_from_ptr(_msg); if (_msg_hu_conv != null) { _msg_hu_conv.ptrs_to.AddLast(this); }; Result_ECDSASignatureNoneZ ret = arg.sign_gossip_message(_msg_hu_conv); @@ -166,10 +166,10 @@ public long sign_gossip_message(long _msg) { } /** Creates a new instance of NodeSigner from a given implementation */ - public static NodeSigner new_impl(NodeSignerInterface arg) { + public static NodeSigner new_impl(INodeSigner arg) { LDKNodeSignerHolder impl_holder = new LDKNodeSignerHolder(); LDKNodeSignerImpl impl = new LDKNodeSignerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKNodeSigner_new(impl); + long[] ptr_idx = Bindings.LDKNodeSignerNew(impl); impl_holder.held = new NodeSigner(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -189,10 +189,10 @@ public static NodeSigner new_impl(NodeSignerInterface arg) { * [phantom node payments]: PhantomKeysManager */ public byte[] get_inbound_payment_key_material() { - long ret = bindings.NodeSigner_get_inbound_payment_key_material(this.ptr); + long ret = Bindings.NodeSignerGetInboundPaymentKeyMaterial(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -205,7 +205,7 @@ public byte[] get_inbound_payment_key_material() { * Errors if the [`Recipient`] variant is not supported by the implementation. */ public Result_PublicKeyNoneZ get_node_id(Recipient recipient) { - long ret = bindings.NodeSigner_get_node_id(this.ptr, recipient); + long ret = Bindings.NodeSignerGetNodeId(this.ptr, recipient); GC.KeepAlive(this); GC.KeepAlive(recipient); if (ret >= 0 && ret <= 4096) { return null; } @@ -224,7 +224,7 @@ public Result_PublicKeyNoneZ get_node_id(Recipient recipient) { * Errors if the [`Recipient`] variant is not supported by the implementation. */ public Result_ThirtyTwoBytesNoneZ ecdh(Recipient recipient, byte[] other_key, org.ldk.structs.Option_BigEndianScalarZ tweak) { - long ret = bindings.NodeSigner_ecdh(this.ptr, recipient, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(other_key, 33)), tweak.ptr); + long ret = Bindings.NodeSignerEcdh(this.ptr, recipient, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(other_key, 33)), tweak.ptr); GC.KeepAlive(this); GC.KeepAlive(recipient); GC.KeepAlive(other_key); @@ -249,7 +249,7 @@ public Result_ThirtyTwoBytesNoneZ ecdh(Recipient recipient, byte[] other_key, or * Errors if the [`Recipient`] variant is not supported by the implementation. */ public Result_RecoverableSignatureNoneZ sign_invoice(byte[] hrp_bytes, UInt5[] invoice_data, Recipient recipient) { - long ret = bindings.NodeSigner_sign_invoice(this.ptr, InternalUtils.encodeUint8Array(hrp_bytes), InternalUtils.encodeUint8Array(InternalUtils.convUInt5Array(invoice_data)), recipient); + long ret = Bindings.NodeSignerSignInvoice(this.ptr, InternalUtils.EncodeUint8Array(hrp_bytes), InternalUtils.EncodeUint8Array(InternalUtils.ConvUInt5Array(invoice_data)), recipient); GC.KeepAlive(this); GC.KeepAlive(hrp_bytes); GC.KeepAlive(invoice_data); @@ -273,7 +273,7 @@ public Result_RecoverableSignatureNoneZ sign_invoice(byte[] hrp_bytes, UInt5[] i * [`TaggedHash`]: crate::offers::merkle::TaggedHash */ public Result_SchnorrSignatureNoneZ sign_bolt12_invoice_request(org.ldk.structs.UnsignedInvoiceRequest invoice_request) { - long ret = bindings.NodeSigner_sign_bolt12_invoice_request(this.ptr, invoice_request == null ? 0 : invoice_request.ptr); + long ret = Bindings.NodeSignerSignBolt12InvoiceRequest(this.ptr, invoice_request == null ? 0 : invoice_request.ptr); GC.KeepAlive(this); GC.KeepAlive(invoice_request); if (ret >= 0 && ret <= 4096) { return null; } @@ -296,7 +296,7 @@ public Result_SchnorrSignatureNoneZ sign_bolt12_invoice_request(org.ldk.structs. * [`TaggedHash`]: crate::offers::merkle::TaggedHash */ public Result_SchnorrSignatureNoneZ sign_bolt12_invoice(org.ldk.structs.UnsignedBolt12Invoice invoice) { - long ret = bindings.NodeSigner_sign_bolt12_invoice(this.ptr, invoice == null ? 0 : invoice.ptr); + long ret = Bindings.NodeSignerSignBolt12Invoice(this.ptr, invoice == null ? 0 : invoice.ptr); GC.KeepAlive(this); GC.KeepAlive(invoice); if (ret >= 0 && ret <= 4096) { return null; } @@ -314,7 +314,7 @@ public Result_SchnorrSignatureNoneZ sign_bolt12_invoice(org.ldk.structs.Unsigned * corresponding channel. */ public Result_ECDSASignatureNoneZ sign_gossip_message(org.ldk.structs.UnsignedGossipMessage msg) { - long ret = bindings.NodeSigner_sign_gossip_message(this.ptr, msg.ptr); + long ret = Bindings.NodeSignerSignGossipMessage(this.ptr, msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/Offer.cs b/c_sharp/src/org/ldk/structs/Offer.cs index 8ff67b8a9..e786fe357 100644 --- a/c_sharp/src/org/ldk/structs/Offer.cs +++ b/c_sharp/src/org/ldk/structs/Offer.cs @@ -24,11 +24,11 @@ namespace org { namespace ldk { namespace structs { public class Offer : CommonBase { internal Offer(object _dummy, long ptr) : base(ptr) { } ~Offer() { - if (ptr != 0) { bindings.Offer_free(ptr); } + if (ptr != 0) { Bindings.OfferFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Offer_clone_ptr(this.ptr); + long ret = Bindings.OfferClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -37,7 +37,7 @@ internal long clone_ptr() { * Creates a copy of the Offer */ public Offer clone() { - long ret = bindings.Offer_clone(this.ptr); + long ret = Bindings.OfferClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Offer ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Offer(null, ret); } @@ -51,17 +51,17 @@ public Offer clone() { * for the selected chain. */ public byte[][] chains() { - long ret = bindings.Offer_chains(this.ptr); + long ret = Bindings.OfferChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -70,7 +70,7 @@ public byte[][] chains() { * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.Offer_metadata(this.ptr); + long ret = Bindings.OfferMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -84,7 +84,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.Offer_amount(this.ptr); + long ret = Bindings.OfferAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -97,7 +97,7 @@ public Amount amount() { * but with the caveat that it has not been verified in any way. */ public PrintableString description() { - long ret = bindings.Offer_description(this.ptr); + long ret = Bindings.OfferDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -109,7 +109,7 @@ public PrintableString description() { * Features pertaining to the offer. */ public OfferFeatures offer_features() { - long ret = bindings.Offer_offer_features(this.ptr); + long ret = Bindings.OfferOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -123,7 +123,7 @@ public OfferFeatures offer_features() { * If `None`, the offer does not expire. */ public Option_u64Z absolute_expiry() { - long ret = bindings.Offer_absolute_expiry(this.ptr); + long ret = Bindings.OfferAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -138,7 +138,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.Offer_issuer(this.ptr); + long ret = Bindings.OfferIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -151,18 +151,18 @@ public PrintableString issuer() { * recipient privacy by obfuscating its node id. */ public BlindedPath[] paths() { - long ret = bindings.Offer_paths(this.ptr); + long ret = Bindings.OfferPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -170,7 +170,7 @@ public BlindedPath[] paths() { * The quantity of items supported. */ public Quantity supported_quantity() { - long ret = bindings.Offer_supported_quantity(this.ptr); + long ret = Bindings.OfferSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -182,10 +182,10 @@ public Quantity supported_quantity() { * The public key used by the recipient to sign invoices. */ public byte[] signing_pubkey() { - long ret = bindings.Offer_signing_pubkey(this.ptr); + long ret = Bindings.OfferSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -193,7 +193,7 @@ public byte[] signing_pubkey() { * Returns whether the given chain is supported by the offer. */ public bool supports_chain(byte[] chain) { - bool ret = bindings.Offer_supports_chain(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain, 32))); + bool ret = Bindings.OfferSupportsChain(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain, 32))); GC.KeepAlive(this); GC.KeepAlive(chain); return ret; @@ -203,7 +203,7 @@ public bool supports_chain(byte[] chain) { * Whether the offer has expired. */ public bool is_expired() { - bool ret = bindings.Offer_is_expired(this.ptr); + bool ret = Bindings.OfferIsExpired(this.ptr); GC.KeepAlive(this); return ret; } @@ -212,7 +212,7 @@ public bool is_expired() { * Whether the offer has expired given the duration since the Unix epoch. */ public bool is_expired_no_std(long duration_since_epoch) { - bool ret = bindings.Offer_is_expired_no_std(this.ptr, duration_since_epoch); + bool ret = Bindings.OfferIsExpiredNoStd(this.ptr, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(duration_since_epoch); return ret; @@ -222,7 +222,7 @@ public bool is_expired_no_std(long duration_since_epoch) { * Returns whether the given quantity is valid for the offer. */ public bool is_valid_quantity(long quantity) { - bool ret = bindings.Offer_is_valid_quantity(this.ptr, quantity); + bool ret = Bindings.OfferIsValidQuantity(this.ptr, quantity); GC.KeepAlive(this); GC.KeepAlive(quantity); return ret; @@ -234,7 +234,7 @@ public bool is_valid_quantity(long quantity) { * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest */ public bool expects_quantity() { - bool ret = bindings.Offer_expects_quantity(this.ptr); + bool ret = Bindings.OfferExpectsQuantity(this.ptr); GC.KeepAlive(this); return ret; } @@ -243,10 +243,10 @@ public bool expects_quantity() { * Serialize the Offer object into a byte array which can be read by Offer_read */ public byte[] write() { - long ret = bindings.Offer_write(this.ptr); + long ret = Bindings.OfferWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -254,7 +254,7 @@ public byte[] write() { * Read a Offer object from a string */ public static Result_OfferBolt12ParseErrorZ from_str(string s) { - long ret = bindings.Offer_from_str(InternalUtils.encodeString(s)); + long ret = Bindings.OfferFromStr(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } Result_OfferBolt12ParseErrorZ ret_hu_conv = Result_OfferBolt12ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/OfferFeatures.cs b/c_sharp/src/org/ldk/structs/OfferFeatures.cs index 8e6af54be..05f6d743a 100644 --- a/c_sharp/src/org/ldk/structs/OfferFeatures.cs +++ b/c_sharp/src/org/ldk/structs/OfferFeatures.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class OfferFeatures : CommonBase { internal OfferFeatures(object _dummy, long ptr) : base(ptr) { } ~OfferFeatures() { - if (ptr != 0) { bindings.OfferFeatures_free(ptr); } + if (ptr != 0) { Bindings.OfferFeaturesFree(ptr); } } /** @@ -21,7 +21,7 @@ internal OfferFeatures(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OfferFeatures b) { - bool ret = bindings.OfferFeatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OfferFeaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -33,7 +33,7 @@ public override bool Equals(object o) { return this.eq((OfferFeatures)o); } internal long clone_ptr() { - long ret = bindings.OfferFeatures_clone_ptr(this.ptr); + long ret = Bindings.OfferFeaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -42,7 +42,7 @@ internal long clone_ptr() { * Creates a copy of the OfferFeatures */ public OfferFeatures clone() { - long ret = bindings.OfferFeatures_clone(this.ptr); + long ret = Bindings.OfferFeaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -54,7 +54,7 @@ public OfferFeatures clone() { * Generates a non-cryptographic 64-bit hash of the OfferFeatures. */ public long hash() { - long ret = bindings.OfferFeatures_hash(this.ptr); + long ret = Bindings.OfferFeaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -66,7 +66,7 @@ public override int GetHashCode() { * Create a blank Features with no features set */ public static OfferFeatures empty() { - long ret = bindings.OfferFeatures_empty(); + long ret = Bindings.OfferFeaturesEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -77,7 +77,7 @@ public static OfferFeatures empty() { * Returns true if this `Features` object contains required features unknown by `other`. */ public bool requires_unknown_bits_from(org.ldk.structs.OfferFeatures other) { - bool ret = bindings.OfferFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr); + bool ret = Bindings.OfferFeaturesRequiresUnknownBitsFrom(this.ptr, other == null ? 0 : other.ptr); GC.KeepAlive(this); GC.KeepAlive(other); if (this != null) { this.ptrs_to.AddLast(other); }; @@ -89,7 +89,7 @@ public bool requires_unknown_bits_from(org.ldk.structs.OfferFeatures other) { * \"required\". */ public bool requires_unknown_bits() { - bool ret = bindings.OfferFeatures_requires_unknown_bits(this.ptr); + bool ret = Bindings.OfferFeaturesRequiresUnknownBits(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public bool requires_unknown_bits() { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_required_feature_bit(long bit) { - long ret = bindings.OfferFeatures_set_required_feature_bit(this.ptr, bit); + long ret = Bindings.OfferFeaturesSetRequiredFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -122,7 +122,7 @@ public Result_NoneNoneZ set_required_feature_bit(long bit) { * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md */ public Result_NoneNoneZ set_optional_feature_bit(long bit) { - long ret = bindings.OfferFeatures_set_optional_feature_bit(this.ptr, bit); + long ret = Bindings.OfferFeaturesSetOptionalFeatureBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -140,7 +140,7 @@ public Result_NoneNoneZ set_optional_feature_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_required_custom_bit(long bit) { - long ret = bindings.OfferFeatures_set_required_custom_bit(this.ptr, bit); + long ret = Bindings.OfferFeaturesSetRequiredCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } @@ -158,7 +158,7 @@ public Result_NoneNoneZ set_required_custom_bit(long bit) { * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits */ public Result_NoneNoneZ set_optional_custom_bit(long bit) { - long ret = bindings.OfferFeatures_set_optional_custom_bit(this.ptr, bit); + long ret = Bindings.OfferFeaturesSetOptionalCustomBit(this.ptr, bit); GC.KeepAlive(this); GC.KeepAlive(bit); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/OffersMessage.cs b/c_sharp/src/org/ldk/structs/OffersMessage.cs index 4f146f1ea..0987ad249 100644 --- a/c_sharp/src/org/ldk/structs/OffersMessage.cs +++ b/c_sharp/src/org/ldk/structs/OffersMessage.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class OffersMessage : CommonBase { protected OffersMessage(object _dummy, long ptr) : base(ptr) { } ~OffersMessage() { - if (ptr != 0) { bindings.OffersMessage_free(ptr); } + if (ptr != 0) { Bindings.OffersMessageFree(ptr); } } internal static OffersMessage constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKOffersMessage_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKOffersMessageTyFromPtr(ptr); switch (raw_ty) { case 0: return new OffersMessage_InvoiceRequest(ptr); case 1: return new OffersMessage_Invoice(ptr); @@ -31,7 +31,7 @@ internal static OffersMessage constr_from_ptr(long ptr) { public class OffersMessage_InvoiceRequest : OffersMessage { public InvoiceRequest invoice_request; internal OffersMessage_InvoiceRequest(long ptr) : base(null, ptr) { - long invoice_request = bindings.LDKOffersMessage_InvoiceRequest_get_invoice_request(ptr); + long invoice_request = Bindings.LDKOffersMessageInvoiceRequestGetInvoiceRequest(ptr); org.ldk.structs.InvoiceRequest invoice_request_hu_conv = null; if (invoice_request < 0 || invoice_request > 4096) { invoice_request_hu_conv = new org.ldk.structs.InvoiceRequest(null, invoice_request); } if (invoice_request_hu_conv != null) { invoice_request_hu_conv.ptrs_to.AddLast(this); }; this.invoice_request = invoice_request_hu_conv; @@ -41,7 +41,7 @@ internal OffersMessage_InvoiceRequest(long ptr) : base(null, ptr) { public class OffersMessage_Invoice : OffersMessage { public Bolt12Invoice invoice; internal OffersMessage_Invoice(long ptr) : base(null, ptr) { - long invoice = bindings.LDKOffersMessage_Invoice_get_invoice(ptr); + long invoice = Bindings.LDKOffersMessageInvoiceGetInvoice(ptr); org.ldk.structs.Bolt12Invoice invoice_hu_conv = null; if (invoice < 0 || invoice > 4096) { invoice_hu_conv = new org.ldk.structs.Bolt12Invoice(null, invoice); } if (invoice_hu_conv != null) { invoice_hu_conv.ptrs_to.AddLast(this); }; this.invoice = invoice_hu_conv; @@ -51,14 +51,14 @@ internal OffersMessage_Invoice(long ptr) : base(null, ptr) { public class OffersMessage_InvoiceError : OffersMessage { public InvoiceError invoice_error; internal OffersMessage_InvoiceError(long ptr) : base(null, ptr) { - long invoice_error = bindings.LDKOffersMessage_InvoiceError_get_invoice_error(ptr); + long invoice_error = Bindings.LDKOffersMessageInvoiceErrorGetInvoiceError(ptr); org.ldk.structs.InvoiceError invoice_error_hu_conv = null; if (invoice_error < 0 || invoice_error > 4096) { invoice_error_hu_conv = new org.ldk.structs.InvoiceError(null, invoice_error); } if (invoice_error_hu_conv != null) { invoice_error_hu_conv.ptrs_to.AddLast(this); }; this.invoice_error = invoice_error_hu_conv; } } internal long clone_ptr() { - long ret = bindings.OffersMessage_clone_ptr(this.ptr); + long ret = Bindings.OffersMessageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -67,7 +67,7 @@ internal long clone_ptr() { * Creates a copy of the OffersMessage */ public OffersMessage clone() { - long ret = bindings.OffersMessage_clone(this.ptr); + long ret = Bindings.OffersMessageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret); @@ -79,7 +79,7 @@ public OffersMessage clone() { * Utility method to constructs a new InvoiceRequest-variant OffersMessage */ public static OffersMessage invoice_request(org.ldk.structs.InvoiceRequest a) { - long ret = bindings.OffersMessage_invoice_request(a == null ? 0 : a.ptr); + long ret = Bindings.OffersMessageInvoiceRequest(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret); @@ -92,7 +92,7 @@ public static OffersMessage invoice_request(org.ldk.structs.InvoiceRequest a) { * Utility method to constructs a new Invoice-variant OffersMessage */ public static OffersMessage invoice(org.ldk.structs.Bolt12Invoice a) { - long ret = bindings.OffersMessage_invoice(a == null ? 0 : a.ptr); + long ret = Bindings.OffersMessageInvoice(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret); @@ -105,7 +105,7 @@ public static OffersMessage invoice(org.ldk.structs.Bolt12Invoice a) { * Utility method to constructs a new InvoiceError-variant OffersMessage */ public static OffersMessage invoice_error(org.ldk.structs.InvoiceError a) { - long ret = bindings.OffersMessage_invoice_error(a == null ? 0 : a.ptr); + long ret = Bindings.OffersMessageInvoiceError(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret); @@ -119,7 +119,7 @@ public static OffersMessage invoice_error(org.ldk.structs.InvoiceError a) { * This copies the `inner` pointer in this_arg and thus the returned OnionMessageContents must be freed before this_arg is */ public OnionMessageContents as_OnionMessageContents() { - long ret = bindings.OffersMessage_as_OnionMessageContents(this.ptr); + long ret = Bindings.OffersMessageAsOnionMessageContents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageContents ret_hu_conv = new OnionMessageContents(null, ret); @@ -131,10 +131,10 @@ public OnionMessageContents as_OnionMessageContents() { * Serialize the OffersMessage object into a byte array which can be read by OffersMessage_read */ public byte[] write() { - long ret = bindings.OffersMessage_write(this.ptr); + long ret = Bindings.OffersMessageWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -142,7 +142,7 @@ public byte[] write() { * Read a OffersMessage from a byte array, created by OffersMessage_write */ public static Result_OffersMessageDecodeErrorZ read(byte[] ser, long arg_a, org.ldk.structs.Logger arg_b) { - long ret = bindings.OffersMessage_read(InternalUtils.encodeUint8Array(ser), arg_a, arg_b.ptr); + long ret = Bindings.OffersMessageRead(InternalUtils.EncodeUint8Array(ser), arg_a, arg_b.ptr); GC.KeepAlive(ser); GC.KeepAlive(arg_a); GC.KeepAlive(arg_b); diff --git a/c_sharp/src/org/ldk/structs/OffersMessageHandler.cs b/c_sharp/src/org/ldk/structs/OffersMessageHandler.cs index 09ccab939..50dd9b5b4 100644 --- a/c_sharp/src/org/ldk/structs/OffersMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/OffersMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of OffersMessageHandler */ -public interface OffersMessageHandlerInterface { +public interface IOffersMessageHandler { /**Handles the given message by either responding with an [`Bolt12Invoice`], sending a payment, * or replying with an error. * @@ -32,20 +32,20 @@ public interface OffersMessageHandlerInterface { * [`OnionMessage`]: crate::ln::msgs::OnionMessage */ public class OffersMessageHandler : CommonBase { - internal bindings.LDKOffersMessageHandler bindings_instance; + internal Bindings.LDKOffersMessageHandler bindings_instance; internal long instance_idx; internal OffersMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~OffersMessageHandler() { - if (ptr != 0) { bindings.OffersMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.OffersMessageHandlerFree(ptr); } } private class LDKOffersMessageHandlerHolder { internal OffersMessageHandler held; } - private class LDKOffersMessageHandlerImpl : bindings.LDKOffersMessageHandler { - internal LDKOffersMessageHandlerImpl(OffersMessageHandlerInterface arg, LDKOffersMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private OffersMessageHandlerInterface arg; + private class LDKOffersMessageHandlerImpl : Bindings.LDKOffersMessageHandler { + internal LDKOffersMessageHandlerImpl(IOffersMessageHandler arg, LDKOffersMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IOffersMessageHandler arg; private LDKOffersMessageHandlerHolder impl_holder; - public long handle_message(long _message) { + public long HandleMessage(long _message) { org.ldk.structs.OffersMessage _message_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(_message); if (_message_hu_conv != null) { _message_hu_conv.ptrs_to.AddLast(this); }; Option_OffersMessageZ ret = arg.handle_message(_message_hu_conv); @@ -54,19 +54,19 @@ public long handle_message(long _message) { if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret); }; return result; } - public long release_pending_messages() { + public long ReleasePendingMessages() { ThreeTuple_OffersMessageDestinationBlindedPathZ[] ret = arg.release_pending_messages(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_49 => ret_conv_49 == null ? 0 : ret_conv_49.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_49 => ret_conv_49 == null ? 0 : ret_conv_49.clone_ptr())); return result; } } /** Creates a new instance of OffersMessageHandler from a given implementation */ - public static OffersMessageHandler new_impl(OffersMessageHandlerInterface arg) { + public static OffersMessageHandler new_impl(IOffersMessageHandler arg) { LDKOffersMessageHandlerHolder impl_holder = new LDKOffersMessageHandlerHolder(); LDKOffersMessageHandlerImpl impl = new LDKOffersMessageHandlerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKOffersMessageHandler_new(impl); + long[] ptr_idx = Bindings.LDKOffersMessageHandlerNew(impl); impl_holder.held = new OffersMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -83,7 +83,7 @@ public static OffersMessageHandler new_impl(OffersMessageHandlerInterface arg) { * [`OnionMessenger`]: crate::onion_message::messenger::OnionMessenger */ public Option_OffersMessageZ handle_message(org.ldk.structs.OffersMessage message) { - long ret = bindings.OffersMessageHandler_handle_message(this.ptr, message.ptr); + long ret = Bindings.OffersMessageHandlerHandleMessage(this.ptr, message.ptr); GC.KeepAlive(this); GC.KeepAlive(message); if (ret >= 0 && ret <= 4096) { return null; } @@ -100,18 +100,18 @@ public Option_OffersMessageZ handle_message(org.ldk.structs.OffersMessage messag * another message. The latter should use the return value of [`Self::handle_message`]. */ public ThreeTuple_OffersMessageDestinationBlindedPathZ[] release_pending_messages() { - long ret = bindings.OffersMessageHandler_release_pending_messages(this.ptr); + long ret = Bindings.OffersMessageHandlerReleasePendingMessages(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_49_len = InternalUtils.getArrayLength(ret); + int ret_conv_49_len = InternalUtils.GetArrayLength(ret); ThreeTuple_OffersMessageDestinationBlindedPathZ[] ret_conv_49_arr = new ThreeTuple_OffersMessageDestinationBlindedPathZ[ret_conv_49_len]; for (int x = 0; x < ret_conv_49_len; x++) { - long ret_conv_49 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_49 = InternalUtils.GetU64ArrayElem(ret, x); ThreeTuple_OffersMessageDestinationBlindedPathZ ret_conv_49_hu_conv = new ThreeTuple_OffersMessageDestinationBlindedPathZ(null, ret_conv_49); if (ret_conv_49_hu_conv != null) { ret_conv_49_hu_conv.ptrs_to.AddLast(this); }; ret_conv_49_arr[x] = ret_conv_49_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_49_arr; } diff --git a/c_sharp/src/org/ldk/structs/OneHopBlindedPathCandidate.cs b/c_sharp/src/org/ldk/structs/OneHopBlindedPathCandidate.cs index de03256a4..fda22797d 100644 --- a/c_sharp/src/org/ldk/structs/OneHopBlindedPathCandidate.cs +++ b/c_sharp/src/org/ldk/structs/OneHopBlindedPathCandidate.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class OneHopBlindedPathCandidate : CommonBase { internal OneHopBlindedPathCandidate(object _dummy, long ptr) : base(ptr) { } ~OneHopBlindedPathCandidate() { - if (ptr != 0) { bindings.OneHopBlindedPathCandidate_free(ptr); } + if (ptr != 0) { Bindings.OneHopBlindedPathCandidateFree(ptr); } } internal long clone_ptr() { - long ret = bindings.OneHopBlindedPathCandidate_clone_ptr(this.ptr); + long ret = Bindings.OneHopBlindedPathCandidateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the OneHopBlindedPathCandidate */ public OneHopBlindedPathCandidate clone() { - long ret = bindings.OneHopBlindedPathCandidate_clone(this.ptr); + long ret = Bindings.OneHopBlindedPathCandidateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OneHopBlindedPathCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OneHopBlindedPathCandidate(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/OnionMessage.cs b/c_sharp/src/org/ldk/structs/OnionMessage.cs index c7e1d4ab8..b038b62ce 100644 --- a/c_sharp/src/org/ldk/structs/OnionMessage.cs +++ b/c_sharp/src/org/ldk/structs/OnionMessage.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class OnionMessage : CommonBase { internal OnionMessage(object _dummy, long ptr) : base(ptr) { } ~OnionMessage() { - if (ptr != 0) { bindings.OnionMessage_free(ptr); } + if (ptr != 0) { Bindings.OnionMessageFree(ptr); } } /** * Used in decrypting the onion packet's payload. */ public byte[] get_blinding_point() { - long ret = bindings.OnionMessage_get_blinding_point(this.ptr); + long ret = Bindings.OnionMessageGetBlindingPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_blinding_point() { * Used in decrypting the onion packet's payload. */ public void set_blinding_point(byte[] val) { - bindings.OnionMessage_set_blinding_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OnionMessageSetBlindingPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_blinding_point(byte[] val) { * The full onion packet including hop data, pubkey, and hmac */ public Packet get_onion_routing_packet() { - long ret = bindings.OnionMessage_get_onion_routing_packet(this.ptr); + long ret = Bindings.OnionMessageGetOnionRoutingPacket(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Packet ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Packet(null, ret); } @@ -51,7 +51,7 @@ public Packet get_onion_routing_packet() { * The full onion packet including hop data, pubkey, and hmac */ public void set_onion_routing_packet(org.ldk.structs.Packet val) { - bindings.OnionMessage_set_onion_routing_packet(this.ptr, val == null ? 0 : val.ptr); + Bindings.OnionMessageSetOnionRoutingPacket(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -61,7 +61,7 @@ public void set_onion_routing_packet(org.ldk.structs.Packet val) { * Constructs a new OnionMessage given each field */ public static OnionMessage of(byte[] blinding_point_arg, org.ldk.structs.Packet onion_routing_packet_arg) { - long ret = bindings.OnionMessage_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(blinding_point_arg, 33)), onion_routing_packet_arg == null ? 0 : onion_routing_packet_arg.ptr); + long ret = Bindings.OnionMessageNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(blinding_point_arg, 33)), onion_routing_packet_arg == null ? 0 : onion_routing_packet_arg.ptr); GC.KeepAlive(blinding_point_arg); GC.KeepAlive(onion_routing_packet_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -72,7 +72,7 @@ public static OnionMessage of(byte[] blinding_point_arg, org.ldk.structs.Packet } internal long clone_ptr() { - long ret = bindings.OnionMessage_clone_ptr(this.ptr); + long ret = Bindings.OnionMessageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * Creates a copy of the OnionMessage */ public OnionMessage clone() { - long ret = bindings.OnionMessage_clone(this.ptr); + long ret = Bindings.OnionMessageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OnionMessage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OnionMessage(null, ret); } @@ -93,7 +93,7 @@ public OnionMessage clone() { * Generates a non-cryptographic 64-bit hash of the OnionMessage. */ public long hash() { - long ret = bindings.OnionMessage_hash(this.ptr); + long ret = Bindings.OnionMessageHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -107,7 +107,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OnionMessage b) { - bool ret = bindings.OnionMessage_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OnionMessageEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -122,7 +122,7 @@ public override bool Equals(object o) { * Read a OnionMessage from a byte array, created by OnionMessage_write */ public static Result_OnionMessageDecodeErrorZ read(byte[] ser) { - long ret = bindings.OnionMessage_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.OnionMessageRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessageDecodeErrorZ ret_hu_conv = Result_OnionMessageDecodeErrorZ.constr_from_ptr(ret); @@ -133,10 +133,10 @@ public static Result_OnionMessageDecodeErrorZ read(byte[] ser) { * Serialize the OnionMessage object into a byte array which can be read by OnionMessage_read */ public byte[] write() { - long ret = bindings.OnionMessage_write(this.ptr); + long ret = Bindings.OnionMessageWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/OnionMessageContents.cs b/c_sharp/src/org/ldk/structs/OnionMessageContents.cs index 61f863d95..f407d0bad 100644 --- a/c_sharp/src/org/ldk/structs/OnionMessageContents.cs +++ b/c_sharp/src/org/ldk/structs/OnionMessageContents.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of OnionMessageContents */ -public interface OnionMessageContentsInterface { +public interface IOnionMessageContents { /**Returns the TLV type identifying the message contents. MUST be >= 64. */ long tlv_type(); @@ -25,43 +25,43 @@ public interface OnionMessageContentsInterface { * The contents of an onion message. */ public class OnionMessageContents : CommonBase { - internal bindings.LDKOnionMessageContents bindings_instance; + internal Bindings.LDKOnionMessageContents bindings_instance; internal long instance_idx; internal OnionMessageContents(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~OnionMessageContents() { - if (ptr != 0) { bindings.OnionMessageContents_free(ptr); } + if (ptr != 0) { Bindings.OnionMessageContentsFree(ptr); } } private class LDKOnionMessageContentsHolder { internal OnionMessageContents held; } - private class LDKOnionMessageContentsImpl : bindings.LDKOnionMessageContents { - internal LDKOnionMessageContentsImpl(OnionMessageContentsInterface arg, LDKOnionMessageContentsHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private OnionMessageContentsInterface arg; + private class LDKOnionMessageContentsImpl : Bindings.LDKOnionMessageContents { + internal LDKOnionMessageContentsImpl(IOnionMessageContents arg, LDKOnionMessageContentsHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IOnionMessageContents arg; private LDKOnionMessageContentsHolder impl_holder; - public long tlv_type() { + public long TlvType() { long ret = arg.tlv_type(); GC.KeepAlive(arg); return ret; } - public long write() { + public long Write() { byte[] ret = arg.write(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(ret); + long result = InternalUtils.EncodeUint8Array(ret); return result; } - public long debug_str() { + public long DebugStr() { string ret = arg.debug_str(); GC.KeepAlive(arg); - long result = InternalUtils.encodeString(ret); + long result = InternalUtils.EncodeString(ret); return result; } } /** Creates a new instance of OnionMessageContents from a given implementation */ - public static OnionMessageContents new_impl(OnionMessageContentsInterface arg) { + public static OnionMessageContents new_impl(IOnionMessageContents arg) { LDKOnionMessageContentsHolder impl_holder = new LDKOnionMessageContentsHolder(); LDKOnionMessageContentsImpl impl = new LDKOnionMessageContentsImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKOnionMessageContents_new(impl); + long[] ptr_idx = Bindings.LDKOnionMessageContentsNew(impl); impl_holder.held = new OnionMessageContents(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -73,7 +73,7 @@ public static OnionMessageContents new_impl(OnionMessageContentsInterface arg) { * Returns the TLV type identifying the message contents. MUST be >= 64. */ public long tlv_type() { - long ret = bindings.OnionMessageContents_tlv_type(this.ptr); + long ret = Bindings.OnionMessageContentsTlvType(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,10 +82,10 @@ public long tlv_type() { * Serialize the object into a byte array */ public byte[] write() { - long ret = bindings.OnionMessageContents_write(this.ptr); + long ret = Bindings.OnionMessageContentsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -93,15 +93,15 @@ public byte[] write() { * Return a human-readable "debug" string describing this object */ public string debug_str() { - long ret = bindings.OnionMessageContents_debug_str(this.ptr); + long ret = Bindings.OnionMessageContentsDebugStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.OnionMessageContents_clone_ptr(this.ptr); + long ret = Bindings.OnionMessageContentsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ internal long clone_ptr() { * Creates a copy of a OnionMessageContents */ public OnionMessageContents clone() { - long ret = bindings.OnionMessageContents_clone(this.ptr); + long ret = Bindings.OnionMessageContentsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageContents ret_hu_conv = new OnionMessageContents(null, ret); diff --git a/c_sharp/src/org/ldk/structs/OnionMessageHandler.cs b/c_sharp/src/org/ldk/structs/OnionMessageHandler.cs index 30dccb5b3..fd21815ee 100644 --- a/c_sharp/src/org/ldk/structs/OnionMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/OnionMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of OnionMessageHandler */ -public interface OnionMessageHandlerInterface { +public interface IOnionMessageHandler { /**Because much of the lightning network does not yet support forwarding onion messages, we * may need to directly connect to a node which will forward a message for us. In such a case, * this method will return the set of nodes which need connection by node_id and the @@ -61,63 +61,63 @@ public interface OnionMessageHandlerInterface { * A handler for received [`OnionMessage`]s and for providing generated ones to send. */ public class OnionMessageHandler : CommonBase { - internal bindings.LDKOnionMessageHandler bindings_instance; + internal Bindings.LDKOnionMessageHandler bindings_instance; internal long instance_idx; internal OnionMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~OnionMessageHandler() { - if (ptr != 0) { bindings.OnionMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.OnionMessageHandlerFree(ptr); } } private class LDKOnionMessageHandlerHolder { internal OnionMessageHandler held; } - private class LDKOnionMessageHandlerImpl : bindings.LDKOnionMessageHandler { - internal LDKOnionMessageHandlerImpl(OnionMessageHandlerInterface arg, LDKOnionMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private OnionMessageHandlerInterface arg; + private class LDKOnionMessageHandlerImpl : Bindings.LDKOnionMessageHandler { + internal LDKOnionMessageHandlerImpl(IOnionMessageHandler arg, LDKOnionMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IOnionMessageHandler arg; private LDKOnionMessageHandlerHolder impl_holder; - public long get_and_clear_connections_needed() { + public long GetAndClearConnectionsNeeded() { TwoTuple_PublicKeyCVec_SocketAddressZZ[] ret = arg.get_and_clear_connections_needed(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_40 => ret_conv_40 == null ? 0 : ret_conv_40.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_40 => ret_conv_40 == null ? 0 : ret_conv_40.clone_ptr())); return result; } - public void handle_onion_message(long _peer_node_id, long _msg) { - byte[] _peer_node_id_conv = InternalUtils.decodeUint8Array(_peer_node_id); + public void HandleOnionMessage(long _peer_node_id, long _msg) { + byte[] _peer_node_id_conv = InternalUtils.DecodeUint8Array(_peer_node_id); org.ldk.structs.OnionMessage _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.OnionMessage(null, _msg); } arg.handle_onion_message(_peer_node_id_conv, _msg_hu_conv); GC.KeepAlive(arg); } - public long next_onion_message_for_peer(long _peer_node_id) { - byte[] _peer_node_id_conv = InternalUtils.decodeUint8Array(_peer_node_id); + public long NextOnionMessageForPeer(long _peer_node_id) { + byte[] _peer_node_id_conv = InternalUtils.DecodeUint8Array(_peer_node_id); OnionMessage ret = arg.next_onion_message_for_peer(_peer_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long peer_connected(long _their_node_id, long _init, bool _inbound) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long PeerConnected(long _their_node_id, long _init, bool _inbound) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Init _init_hu_conv = null; if (_init < 0 || _init > 4096) { _init_hu_conv = new org.ldk.structs.Init(null, _init); } Result_NoneNoneZ ret = arg.peer_connected(_their_node_id_conv, _init_hu_conv, _inbound); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public void peer_disconnected(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public void PeerDisconnected(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); arg.peer_disconnected(_their_node_id_conv); GC.KeepAlive(arg); } - public void timer_tick_occurred() { + public void TimerTickOccurred() { arg.timer_tick_occurred(); GC.KeepAlive(arg); } - public long provided_node_features() { + public long ProvidedNodeFeatures() { NodeFeatures ret = arg.provided_node_features(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long provided_init_features(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long ProvidedInitFeatures(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); InitFeatures ret = arg.provided_init_features(_their_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -126,10 +126,10 @@ public long provided_init_features(long _their_node_id) { } /** Creates a new instance of OnionMessageHandler from a given implementation */ - public static OnionMessageHandler new_impl(OnionMessageHandlerInterface arg) { + public static OnionMessageHandler new_impl(IOnionMessageHandler arg) { LDKOnionMessageHandlerHolder impl_holder = new LDKOnionMessageHandlerHolder(); LDKOnionMessageHandlerImpl impl = new LDKOnionMessageHandlerImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKOnionMessageHandler_new(impl); + long[] ptr_idx = Bindings.LDKOnionMessageHandlerNew(impl); impl_holder.held = new OnionMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -147,18 +147,18 @@ public static OnionMessageHandler new_impl(OnionMessageHandlerInterface arg) { * connection. */ public TwoTuple_PublicKeyCVec_SocketAddressZZ[] get_and_clear_connections_needed() { - long ret = bindings.OnionMessageHandler_get_and_clear_connections_needed(this.ptr); + long ret = Bindings.OnionMessageHandlerGetAndClearConnectionsNeeded(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_40_len = InternalUtils.getArrayLength(ret); + int ret_conv_40_len = InternalUtils.GetArrayLength(ret); TwoTuple_PublicKeyCVec_SocketAddressZZ[] ret_conv_40_arr = new TwoTuple_PublicKeyCVec_SocketAddressZZ[ret_conv_40_len]; for (int o = 0; o < ret_conv_40_len; o++) { - long ret_conv_40 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_40 = InternalUtils.GetU64ArrayElem(ret, o); TwoTuple_PublicKeyCVec_SocketAddressZZ ret_conv_40_hu_conv = new TwoTuple_PublicKeyCVec_SocketAddressZZ(null, ret_conv_40); if (ret_conv_40_hu_conv != null) { ret_conv_40_hu_conv.ptrs_to.AddLast(this); }; ret_conv_40_arr[o] = ret_conv_40_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_40_arr; } @@ -166,7 +166,7 @@ public TwoTuple_PublicKeyCVec_SocketAddressZZ[] get_and_clear_connections_needed * Handle an incoming `onion_message` message from the given peer. */ public void handle_onion_message(byte[] peer_node_id, org.ldk.structs.OnionMessage msg) { - bindings.OnionMessageHandler_handle_onion_message(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(peer_node_id, 33)), msg == null ? 0 : msg.ptr); + Bindings.OnionMessageHandlerHandleOnionMessage(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(peer_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(peer_node_id); GC.KeepAlive(msg); @@ -179,7 +179,7 @@ public void handle_onion_message(byte[] peer_node_id, org.ldk.structs.OnionMessa * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OnionMessage next_onion_message_for_peer(byte[] peer_node_id) { - long ret = bindings.OnionMessageHandler_next_onion_message_for_peer(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(peer_node_id, 33))); + long ret = Bindings.OnionMessageHandlerNextOnionMessageForPeer(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(peer_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(peer_node_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -197,7 +197,7 @@ public OnionMessage next_onion_message_for_peer(byte[] peer_node_id) { * message handlers may still wish to communicate with this peer. */ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Init init, bool inbound) { - long ret = bindings.OnionMessageHandler_peer_connected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), init == null ? 0 : init.ptr, inbound); + long ret = Bindings.OnionMessageHandlerPeerConnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), init == null ? 0 : init.ptr, inbound); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(init); @@ -213,7 +213,7 @@ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Ini * drop and refuse to forward onion messages to this peer. */ public void peer_disconnected(byte[] their_node_id) { - bindings.OnionMessageHandler_peer_disconnected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + Bindings.OnionMessageHandlerPeerDisconnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); } @@ -223,7 +223,7 @@ public void peer_disconnected(byte[] their_node_id) { * to drop any buffered onion messages intended for prospective peers. */ public void timer_tick_occurred() { - bindings.OnionMessageHandler_timer_tick_occurred(this.ptr); + Bindings.OnionMessageHandlerTimerTickOccurred(this.ptr); GC.KeepAlive(this); } @@ -233,7 +233,7 @@ public void timer_tick_occurred() { * which are broadcasted in our [`NodeAnnouncement`] message. */ public NodeFeatures provided_node_features() { - long ret = bindings.OnionMessageHandler_provided_node_features(this.ptr); + long ret = Bindings.OnionMessageHandlerProvidedNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -249,7 +249,7 @@ public NodeFeatures provided_node_features() { * Note that this method is called before [`Self::peer_connected`]. */ public InitFeatures provided_init_features(byte[] their_node_id) { - long ret = bindings.OnionMessageHandler_provided_init_features(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + long ret = Bindings.OnionMessageHandlerProvidedInitFeatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/OnionMessagePath.cs b/c_sharp/src/org/ldk/structs/OnionMessagePath.cs index f7d573a43..122e36bbb 100644 --- a/c_sharp/src/org/ldk/structs/OnionMessagePath.cs +++ b/c_sharp/src/org/ldk/structs/OnionMessagePath.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class OnionMessagePath : CommonBase { internal OnionMessagePath(object _dummy, long ptr) : base(ptr) { } ~OnionMessagePath() { - if (ptr != 0) { bindings.OnionMessagePath_free(ptr); } + if (ptr != 0) { Bindings.OnionMessagePathFree(ptr); } } /** @@ -21,17 +21,17 @@ internal OnionMessagePath(object _dummy, long ptr) : base(ptr) { } * Returns a copy of the field. */ public byte[][] get_intermediate_nodes() { - long ret = bindings.OnionMessagePath_get_intermediate_nodes(this.ptr); + long ret = Bindings.OnionMessagePathGetIntermediateNodes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -39,7 +39,7 @@ public byte[][] get_intermediate_nodes() { * Nodes on the path between the sender and the destination. */ public void set_intermediate_nodes(byte[][] val) { - bindings.OnionMessagePath_set_intermediate_nodes(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val_conv_8, 33))))); + Bindings.OnionMessagePathSetIntermediateNodes(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val_conv_8, 33))))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -48,7 +48,7 @@ public void set_intermediate_nodes(byte[][] val) { * The recipient of the message. */ public Destination get_destination() { - long ret = bindings.OnionMessagePath_get_destination(this.ptr); + long ret = Bindings.OnionMessagePathGetDestination(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); @@ -60,7 +60,7 @@ public Destination get_destination() { * The recipient of the message. */ public void set_destination(org.ldk.structs.Destination val) { - bindings.OnionMessagePath_set_destination(this.ptr, val.ptr); + Bindings.OnionMessagePathSetDestination(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -75,7 +75,7 @@ public void set_destination(org.ldk.structs.Destination val) { * Returns a copy of the field. */ public Option_CVec_SocketAddressZZ get_first_node_addresses() { - long ret = bindings.OnionMessagePath_get_first_node_addresses(this.ptr); + long ret = Bindings.OnionMessagePathGetFirstNodeAddresses(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret); @@ -90,7 +90,7 @@ public Option_CVec_SocketAddressZZ get_first_node_addresses() { * this to initiate such a connection. */ public void set_first_node_addresses(org.ldk.structs.Option_CVec_SocketAddressZZ val) { - bindings.OnionMessagePath_set_first_node_addresses(this.ptr, val.ptr); + Bindings.OnionMessagePathSetFirstNodeAddresses(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -100,7 +100,7 @@ public void set_first_node_addresses(org.ldk.structs.Option_CVec_SocketAddressZZ * Constructs a new OnionMessagePath given each field */ public static OnionMessagePath of(byte[][] intermediate_nodes_arg, org.ldk.structs.Destination destination_arg, org.ldk.structs.Option_CVec_SocketAddressZZ first_node_addresses_arg) { - long ret = bindings.OnionMessagePath_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(intermediate_nodes_arg, intermediate_nodes_arg_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(intermediate_nodes_arg_conv_8, 33)))), destination_arg.ptr, first_node_addresses_arg.ptr); + long ret = Bindings.OnionMessagePathNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(intermediate_nodes_arg, intermediate_nodes_arg_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(intermediate_nodes_arg_conv_8, 33)))), destination_arg.ptr, first_node_addresses_arg.ptr); GC.KeepAlive(intermediate_nodes_arg); GC.KeepAlive(destination_arg); GC.KeepAlive(first_node_addresses_arg); @@ -113,7 +113,7 @@ public static OnionMessagePath of(byte[][] intermediate_nodes_arg, org.ldk.struc } internal long clone_ptr() { - long ret = bindings.OnionMessagePath_clone_ptr(this.ptr); + long ret = Bindings.OnionMessagePathClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -122,7 +122,7 @@ internal long clone_ptr() { * Creates a copy of the OnionMessagePath */ public OnionMessagePath clone() { - long ret = bindings.OnionMessagePath_clone(this.ptr); + long ret = Bindings.OnionMessagePathClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OnionMessagePath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OnionMessagePath(null, ret); } @@ -134,10 +134,10 @@ public OnionMessagePath clone() { * Returns the first node in the path. */ public byte[] first_node() { - long ret = bindings.OnionMessagePath_first_node(this.ptr); + long ret = Bindings.OnionMessagePathFirstNode(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/OnionMessenger.cs b/c_sharp/src/org/ldk/structs/OnionMessenger.cs index 3bf8b6dfc..492b4b7d2 100644 --- a/c_sharp/src/org/ldk/structs/OnionMessenger.cs +++ b/c_sharp/src/org/ldk/structs/OnionMessenger.cs @@ -119,7 +119,7 @@ namespace org { namespace ldk { namespace structs { public class OnionMessenger : CommonBase { internal OnionMessenger(object _dummy, long ptr) : base(ptr) { } ~OnionMessenger() { - if (ptr != 0) { bindings.OnionMessenger_free(ptr); } + if (ptr != 0) { Bindings.OnionMessengerFree(ptr); } } /** @@ -127,7 +127,7 @@ internal OnionMessenger(object _dummy, long ptr) : base(ptr) { } * their respective handlers. */ public static OnionMessenger of(org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, org.ldk.structs.MessageRouter message_router, org.ldk.structs.OffersMessageHandler offers_handler, org.ldk.structs.CustomOnionMessageHandler custom_handler) { - long ret = bindings.OnionMessenger_new(entropy_source.ptr, node_signer.ptr, logger.ptr, message_router.ptr, offers_handler.ptr, custom_handler.ptr); + long ret = Bindings.OnionMessengerNew(entropy_source.ptr, node_signer.ptr, logger.ptr, message_router.ptr, offers_handler.ptr, custom_handler.ptr); GC.KeepAlive(entropy_source); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -154,7 +154,7 @@ public static OnionMessenger of(org.ldk.structs.EntropySource entropy_source, or * Note that reply_path (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Result_SendSuccessSendErrorZ send_onion_message(org.ldk.structs.OnionMessageContents contents, org.ldk.structs.Destination destination, org.ldk.structs.BlindedPath reply_path) { - long ret = bindings.OnionMessenger_send_onion_message(this.ptr, contents.ptr, destination.ptr, reply_path == null ? 0 : reply_path.ptr); + long ret = Bindings.OnionMessengerSendOnionMessage(this.ptr, contents.ptr, destination.ptr, reply_path == null ? 0 : reply_path.ptr); GC.KeepAlive(this); GC.KeepAlive(contents); GC.KeepAlive(destination); @@ -172,7 +172,7 @@ public Result_SendSuccessSendErrorZ send_onion_message(org.ldk.structs.OnionMess * This copies the `inner` pointer in this_arg and thus the returned OnionMessageHandler must be freed before this_arg is */ public OnionMessageHandler as_OnionMessageHandler() { - long ret = bindings.OnionMessenger_as_OnionMessageHandler(this.ptr); + long ret = Bindings.OnionMessengerAsOnionMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageHandler ret_hu_conv = new OnionMessageHandler(null, ret); diff --git a/c_sharp/src/org/ldk/structs/OnionPacket.cs b/c_sharp/src/org/ldk/structs/OnionPacket.cs index 065853393..7642de321 100644 --- a/c_sharp/src/org/ldk/structs/OnionPacket.cs +++ b/c_sharp/src/org/ldk/structs/OnionPacket.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class OnionPacket : CommonBase { internal OnionPacket(object _dummy, long ptr) : base(ptr) { } ~OnionPacket() { - if (ptr != 0) { bindings.OnionPacket_free(ptr); } + if (ptr != 0) { Bindings.OnionPacketFree(ptr); } } /** * BOLT 4 version number. */ public byte get_version() { - byte ret = bindings.OnionPacket_get_version(this.ptr); + byte ret = Bindings.OnionPacketGetVersion(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public byte get_version() { * BOLT 4 version number. */ public void set_version(byte val) { - bindings.OnionPacket_set_version(this.ptr, val); + Bindings.OnionPacketSetVersion(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_version(byte val) { * Returns a copy of the field. */ public Result_PublicKeySecp256k1ErrorZ get_public_key() { - long ret = bindings.OnionPacket_get_public_key(this.ptr); + long ret = Bindings.OnionPacketGetPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeySecp256k1ErrorZ ret_hu_conv = Result_PublicKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -58,7 +58,7 @@ public Result_PublicKeySecp256k1ErrorZ get_public_key() { * like. */ public void set_public_key(org.ldk.structs.Result_PublicKeySecp256k1ErrorZ val) { - bindings.OnionPacket_set_public_key(this.ptr, val != null ? val.ptr : 0); + Bindings.OnionPacketSetPublicKey(this.ptr, val != null ? val.ptr : 0); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -67,10 +67,10 @@ public void set_public_key(org.ldk.structs.Result_PublicKeySecp256k1ErrorZ val) * HMAC to verify the integrity of hop_data. */ public byte[] get_hmac() { - long ret = bindings.OnionPacket_get_hmac(this.ptr); + long ret = Bindings.OnionPacketGetHmac(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -78,13 +78,13 @@ public byte[] get_hmac() { * HMAC to verify the integrity of hop_data. */ public void set_hmac(byte[] val) { - bindings.OnionPacket_set_hmac(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OnionPacketSetHmac(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.OnionPacket_clone_ptr(this.ptr); + long ret = Bindings.OnionPacketClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -93,7 +93,7 @@ internal long clone_ptr() { * Creates a copy of the OnionPacket */ public OnionPacket clone() { - long ret = bindings.OnionPacket_clone(this.ptr); + long ret = Bindings.OnionPacketClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OnionPacket ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OnionPacket(null, ret); } @@ -105,7 +105,7 @@ public OnionPacket clone() { * Generates a non-cryptographic 64-bit hash of the OnionPacket. */ public long hash() { - long ret = bindings.OnionPacket_hash(this.ptr); + long ret = Bindings.OnionPacketHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -119,7 +119,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OnionPacket b) { - bool ret = bindings.OnionPacket_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OnionPacketEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -134,10 +134,10 @@ public override bool Equals(object o) { * Serialize the OnionPacket object into a byte array which can be read by OnionPacket_read */ public byte[] write() { - long ret = bindings.OnionPacket_write(this.ptr); + long ret = Bindings.OnionPacketWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -145,7 +145,7 @@ public byte[] write() { * Read a OnionPacket from a byte array, created by OnionPacket_write */ public static Result_OnionPacketDecodeErrorZ read(byte[] ser) { - long ret = bindings.OnionPacket_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.OnionPacketRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionPacketDecodeErrorZ ret_hu_conv = Result_OnionPacketDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/OpenChannel.cs b/c_sharp/src/org/ldk/structs/OpenChannel.cs index f46844fb7..4510f81fa 100644 --- a/c_sharp/src/org/ldk/structs/OpenChannel.cs +++ b/c_sharp/src/org/ldk/structs/OpenChannel.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class OpenChannel : CommonBase { internal OpenChannel(object _dummy, long ptr) : base(ptr) { } ~OpenChannel() { - if (ptr != 0) { bindings.OpenChannel_free(ptr); } + if (ptr != 0) { Bindings.OpenChannelFree(ptr); } } /** * The genesis hash of the blockchain where the channel is to be opened */ public byte[] get_chain_hash() { - long ret = bindings.OpenChannel_get_chain_hash(this.ptr); + long ret = Bindings.OpenChannelGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is to be opened */ public void set_chain_hash(byte[] val) { - bindings.OpenChannel_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OpenChannelSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,10 +43,10 @@ public void set_chain_hash(byte[] val) { * A temporary channel ID, until the funding outpoint is announced */ public byte[] get_temporary_channel_id() { - long ret = bindings.OpenChannel_get_temporary_channel_id(this.ptr); + long ret = Bindings.OpenChannelGetTemporaryChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_temporary_channel_id() { * A temporary channel ID, until the funding outpoint is announced */ public void set_temporary_channel_id(byte[] val) { - bindings.OpenChannel_set_temporary_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OpenChannelSetTemporaryChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_temporary_channel_id(byte[] val) { * The channel value */ public long get_funding_satoshis() { - long ret = bindings.OpenChannel_get_funding_satoshis(this.ptr); + long ret = Bindings.OpenChannelGetFundingSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ public long get_funding_satoshis() { * The channel value */ public void set_funding_satoshis(long val) { - bindings.OpenChannel_set_funding_satoshis(this.ptr, val); + Bindings.OpenChannelSetFundingSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,7 +81,7 @@ public void set_funding_satoshis(long val) { * The amount to push to the counterparty as part of the open, in milli-satoshi */ public long get_push_msat() { - long ret = bindings.OpenChannel_get_push_msat(this.ptr); + long ret = Bindings.OpenChannelGetPushMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ public long get_push_msat() { * The amount to push to the counterparty as part of the open, in milli-satoshi */ public void set_push_msat(long val) { - bindings.OpenChannel_set_push_msat(this.ptr, val); + Bindings.OpenChannelSetPushMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_push_msat(long val) { * The threshold below which outputs on transactions broadcast by sender will be omitted */ public long get_dust_limit_satoshis() { - long ret = bindings.OpenChannel_get_dust_limit_satoshis(this.ptr); + long ret = Bindings.OpenChannelGetDustLimitSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -108,7 +108,7 @@ public long get_dust_limit_satoshis() { * The threshold below which outputs on transactions broadcast by sender will be omitted */ public void set_dust_limit_satoshis(long val) { - bindings.OpenChannel_set_dust_limit_satoshis(this.ptr, val); + Bindings.OpenChannelSetDustLimitSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -117,7 +117,7 @@ public void set_dust_limit_satoshis(long val) { * The maximum inbound HTLC value in flight towards sender, in milli-satoshi */ public long get_max_htlc_value_in_flight_msat() { - long ret = bindings.OpenChannel_get_max_htlc_value_in_flight_msat(this.ptr); + long ret = Bindings.OpenChannelGetMaxHtlcValueInFlightMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -126,7 +126,7 @@ public long get_max_htlc_value_in_flight_msat() { * The maximum inbound HTLC value in flight towards sender, in milli-satoshi */ public void set_max_htlc_value_in_flight_msat(long val) { - bindings.OpenChannel_set_max_htlc_value_in_flight_msat(this.ptr, val); + Bindings.OpenChannelSetMaxHtlcValueInFlightMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -135,7 +135,7 @@ public void set_max_htlc_value_in_flight_msat(long val) { * The minimum value unencumbered by HTLCs for the counterparty to keep in the channel */ public long get_channel_reserve_satoshis() { - long ret = bindings.OpenChannel_get_channel_reserve_satoshis(this.ptr); + long ret = Bindings.OpenChannelGetChannelReserveSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -144,7 +144,7 @@ public long get_channel_reserve_satoshis() { * The minimum value unencumbered by HTLCs for the counterparty to keep in the channel */ public void set_channel_reserve_satoshis(long val) { - bindings.OpenChannel_set_channel_reserve_satoshis(this.ptr, val); + Bindings.OpenChannelSetChannelReserveSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -153,7 +153,7 @@ public void set_channel_reserve_satoshis(long val) { * The minimum HTLC size incoming to sender, in milli-satoshi */ public long get_htlc_minimum_msat() { - long ret = bindings.OpenChannel_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.OpenChannelGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -162,7 +162,7 @@ public long get_htlc_minimum_msat() { * The minimum HTLC size incoming to sender, in milli-satoshi */ public void set_htlc_minimum_msat(long val) { - bindings.OpenChannel_set_htlc_minimum_msat(this.ptr, val); + Bindings.OpenChannelSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -172,7 +172,7 @@ public void set_htlc_minimum_msat(long val) { * [`UpdateFee`] */ public int get_feerate_per_kw() { - int ret = bindings.OpenChannel_get_feerate_per_kw(this.ptr); + int ret = Bindings.OpenChannelGetFeeratePerKw(this.ptr); GC.KeepAlive(this); return ret; } @@ -182,7 +182,7 @@ public int get_feerate_per_kw() { * [`UpdateFee`] */ public void set_feerate_per_kw(int val) { - bindings.OpenChannel_set_feerate_per_kw(this.ptr, val); + Bindings.OpenChannelSetFeeratePerKw(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -192,7 +192,7 @@ public void set_feerate_per_kw(int val) { * they broadcast a commitment transaction */ public short get_to_self_delay() { - short ret = bindings.OpenChannel_get_to_self_delay(this.ptr); + short ret = Bindings.OpenChannelGetToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -202,7 +202,7 @@ public short get_to_self_delay() { * they broadcast a commitment transaction */ public void set_to_self_delay(short val) { - bindings.OpenChannel_set_to_self_delay(this.ptr, val); + Bindings.OpenChannelSetToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -211,7 +211,7 @@ public void set_to_self_delay(short val) { * The maximum number of inbound HTLCs towards sender */ public short get_max_accepted_htlcs() { - short ret = bindings.OpenChannel_get_max_accepted_htlcs(this.ptr); + short ret = Bindings.OpenChannelGetMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -220,7 +220,7 @@ public short get_max_accepted_htlcs() { * The maximum number of inbound HTLCs towards sender */ public void set_max_accepted_htlcs(short val) { - bindings.OpenChannel_set_max_accepted_htlcs(this.ptr, val); + Bindings.OpenChannelSetMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -229,10 +229,10 @@ public void set_max_accepted_htlcs(short val) { * The sender's key controlling the funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.OpenChannel_get_funding_pubkey(this.ptr); + long ret = Bindings.OpenChannelGetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -240,7 +240,7 @@ public byte[] get_funding_pubkey() { * The sender's key controlling the funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.OpenChannel_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -249,10 +249,10 @@ public void set_funding_pubkey(byte[] val) { * Used to derive a revocation key for transactions broadcast by counterparty */ public byte[] get_revocation_basepoint() { - long ret = bindings.OpenChannel_get_revocation_basepoint(this.ptr); + long ret = Bindings.OpenChannelGetRevocationBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -260,7 +260,7 @@ public byte[] get_revocation_basepoint() { * Used to derive a revocation key for transactions broadcast by counterparty */ public void set_revocation_basepoint(byte[] val) { - bindings.OpenChannel_set_revocation_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetRevocationBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -269,10 +269,10 @@ public void set_revocation_basepoint(byte[] val) { * A payment key to sender for transactions broadcast by counterparty */ public byte[] get_payment_point() { - long ret = bindings.OpenChannel_get_payment_point(this.ptr); + long ret = Bindings.OpenChannelGetPaymentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -280,7 +280,7 @@ public byte[] get_payment_point() { * A payment key to sender for transactions broadcast by counterparty */ public void set_payment_point(byte[] val) { - bindings.OpenChannel_set_payment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetPaymentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -289,10 +289,10 @@ public void set_payment_point(byte[] val) { * Used to derive a payment key to sender for transactions broadcast by sender */ public byte[] get_delayed_payment_basepoint() { - long ret = bindings.OpenChannel_get_delayed_payment_basepoint(this.ptr); + long ret = Bindings.OpenChannelGetDelayedPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -300,7 +300,7 @@ public byte[] get_delayed_payment_basepoint() { * Used to derive a payment key to sender for transactions broadcast by sender */ public void set_delayed_payment_basepoint(byte[] val) { - bindings.OpenChannel_set_delayed_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetDelayedPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -309,10 +309,10 @@ public void set_delayed_payment_basepoint(byte[] val) { * Used to derive an HTLC payment key to sender */ public byte[] get_htlc_basepoint() { - long ret = bindings.OpenChannel_get_htlc_basepoint(this.ptr); + long ret = Bindings.OpenChannelGetHtlcBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -320,7 +320,7 @@ public byte[] get_htlc_basepoint() { * Used to derive an HTLC payment key to sender */ public void set_htlc_basepoint(byte[] val) { - bindings.OpenChannel_set_htlc_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetHtlcBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -329,10 +329,10 @@ public void set_htlc_basepoint(byte[] val) { * The first to-be-broadcast-by-sender transaction's per commitment point */ public byte[] get_first_per_commitment_point() { - long ret = bindings.OpenChannel_get_first_per_commitment_point(this.ptr); + long ret = Bindings.OpenChannelGetFirstPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -340,7 +340,7 @@ public byte[] get_first_per_commitment_point() { * The first to-be-broadcast-by-sender transaction's per commitment point */ public void set_first_per_commitment_point(byte[] val) { - bindings.OpenChannel_set_first_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelSetFirstPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -349,7 +349,7 @@ public void set_first_per_commitment_point(byte[] val) { * The channel flags to be used */ public byte get_channel_flags() { - byte ret = bindings.OpenChannel_get_channel_flags(this.ptr); + byte ret = Bindings.OpenChannelGetChannelFlags(this.ptr); GC.KeepAlive(this); return ret; } @@ -358,7 +358,7 @@ public byte get_channel_flags() { * The channel flags to be used */ public void set_channel_flags(byte val) { - bindings.OpenChannel_set_channel_flags(this.ptr, val); + Bindings.OpenChannelSetChannelFlags(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -367,7 +367,7 @@ public void set_channel_flags(byte val) { * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { - long ret = bindings.OpenChannel_get_shutdown_scriptpubkey(this.ptr); + long ret = Bindings.OpenChannelGetShutdownScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -379,7 +379,7 @@ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.OpenChannel_set_shutdown_scriptpubkey(this.ptr, val.ptr); + Bindings.OpenChannelSetShutdownScriptpubkey(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -394,7 +394,7 @@ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures get_channel_type() { - long ret = bindings.OpenChannel_get_channel_type(this.ptr); + long ret = Bindings.OpenChannelGetChannelType(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -411,7 +411,7 @@ public ChannelTypeFeatures get_channel_type() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { - bindings.OpenChannel_set_channel_type(this.ptr, val == null ? 0 : val.ptr); + Bindings.OpenChannelSetChannelType(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -423,7 +423,7 @@ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static OpenChannel of(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, long funding_satoshis_arg, long push_msat_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int feerate_per_kw_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte channel_flags_arg, org.ldk.structs.Option_CVec_u8ZZ shutdown_scriptpubkey_arg, org.ldk.structs.ChannelTypeFeatures channel_type_arg) { - long ret = bindings.OpenChannel_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id_arg, 32)), funding_satoshis_arg, push_msat_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, feerate_per_kw_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(revocation_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_point_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(delayed_payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(first_per_commitment_point_arg, 33)), channel_flags_arg, shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr); + long ret = Bindings.OpenChannelNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id_arg, 32)), funding_satoshis_arg, push_msat_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, feerate_per_kw_arg, to_self_delay_arg, max_accepted_htlcs_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(revocation_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_point_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(delayed_payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(first_per_commitment_point_arg, 33)), channel_flags_arg, shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(temporary_channel_id_arg); GC.KeepAlive(funding_satoshis_arg); @@ -453,7 +453,7 @@ public static OpenChannel of(byte[] chain_hash_arg, byte[] temporary_channel_id_ } internal long clone_ptr() { - long ret = bindings.OpenChannel_clone_ptr(this.ptr); + long ret = Bindings.OpenChannelClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -462,7 +462,7 @@ internal long clone_ptr() { * Creates a copy of the OpenChannel */ public OpenChannel clone() { - long ret = bindings.OpenChannel_clone(this.ptr); + long ret = Bindings.OpenChannelClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OpenChannel ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OpenChannel(null, ret); } @@ -474,7 +474,7 @@ public OpenChannel clone() { * Generates a non-cryptographic 64-bit hash of the OpenChannel. */ public long hash() { - long ret = bindings.OpenChannel_hash(this.ptr); + long ret = Bindings.OpenChannelHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -488,7 +488,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OpenChannel b) { - bool ret = bindings.OpenChannel_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OpenChannelEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -503,10 +503,10 @@ public override bool Equals(object o) { * Serialize the OpenChannel object into a byte array which can be read by OpenChannel_read */ public byte[] write() { - long ret = bindings.OpenChannel_write(this.ptr); + long ret = Bindings.OpenChannelWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -514,7 +514,7 @@ public byte[] write() { * Read a OpenChannel from a byte array, created by OpenChannel_write */ public static Result_OpenChannelDecodeErrorZ read(byte[] ser) { - long ret = bindings.OpenChannel_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.OpenChannelRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/OpenChannelV2.cs b/c_sharp/src/org/ldk/structs/OpenChannelV2.cs index ec182be25..450b4ac49 100644 --- a/c_sharp/src/org/ldk/structs/OpenChannelV2.cs +++ b/c_sharp/src/org/ldk/structs/OpenChannelV2.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class OpenChannelV2 : CommonBase { internal OpenChannelV2(object _dummy, long ptr) : base(ptr) { } ~OpenChannelV2() { - if (ptr != 0) { bindings.OpenChannelV2_free(ptr); } + if (ptr != 0) { Bindings.OpenChannelV2Free(ptr); } } /** * The genesis hash of the blockchain where the channel is to be opened */ public byte[] get_chain_hash() { - long ret = bindings.OpenChannelV2_get_chain_hash(this.ptr); + long ret = Bindings.OpenChannelV2GetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is to be opened */ public void set_chain_hash(byte[] val) { - bindings.OpenChannelV2_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OpenChannelV2SetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_chain_hash(byte[] val) { * A temporary channel ID derived using a zeroed out value for the channel acceptor's revocation basepoint */ public byte[] get_temporary_channel_id() { - long ret = bindings.OpenChannelV2_get_temporary_channel_id(this.ptr); + long ret = Bindings.OpenChannelV2GetTemporaryChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_temporary_channel_id() { * A temporary channel ID derived using a zeroed out value for the channel acceptor's revocation basepoint */ public void set_temporary_channel_id(byte[] val) { - bindings.OpenChannelV2_set_temporary_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OpenChannelV2SetTemporaryChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_temporary_channel_id(byte[] val) { * The feerate for the funding transaction set by the channel initiator */ public int get_funding_feerate_sat_per_1000_weight() { - int ret = bindings.OpenChannelV2_get_funding_feerate_sat_per_1000_weight(this.ptr); + int ret = Bindings.OpenChannelV2GetFundingFeerateSatPer1000Weight(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public int get_funding_feerate_sat_per_1000_weight() { * The feerate for the funding transaction set by the channel initiator */ public void set_funding_feerate_sat_per_1000_weight(int val) { - bindings.OpenChannelV2_set_funding_feerate_sat_per_1000_weight(this.ptr, val); + Bindings.OpenChannelV2SetFundingFeerateSatPer1000Weight(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_funding_feerate_sat_per_1000_weight(int val) { * The feerate for the commitment transaction set by the channel initiator */ public int get_commitment_feerate_sat_per_1000_weight() { - int ret = bindings.OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(this.ptr); + int ret = Bindings.OpenChannelV2GetCommitmentFeerateSatPer1000Weight(this.ptr); GC.KeepAlive(this); return ret; } @@ -88,7 +88,7 @@ public int get_commitment_feerate_sat_per_1000_weight() { * The feerate for the commitment transaction set by the channel initiator */ public void set_commitment_feerate_sat_per_1000_weight(int val) { - bindings.OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(this.ptr, val); + Bindings.OpenChannelV2SetCommitmentFeerateSatPer1000Weight(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_commitment_feerate_sat_per_1000_weight(int val) { * Part of the channel value contributed by the channel initiator */ public long get_funding_satoshis() { - long ret = bindings.OpenChannelV2_get_funding_satoshis(this.ptr); + long ret = Bindings.OpenChannelV2GetFundingSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public long get_funding_satoshis() { * Part of the channel value contributed by the channel initiator */ public void set_funding_satoshis(long val) { - bindings.OpenChannelV2_set_funding_satoshis(this.ptr, val); + Bindings.OpenChannelV2SetFundingSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -116,7 +116,7 @@ public void set_funding_satoshis(long val) { * omitted */ public long get_dust_limit_satoshis() { - long ret = bindings.OpenChannelV2_get_dust_limit_satoshis(this.ptr); + long ret = Bindings.OpenChannelV2GetDustLimitSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -126,7 +126,7 @@ public long get_dust_limit_satoshis() { * omitted */ public void set_dust_limit_satoshis(long val) { - bindings.OpenChannelV2_set_dust_limit_satoshis(this.ptr, val); + Bindings.OpenChannelV2SetDustLimitSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -135,7 +135,7 @@ public void set_dust_limit_satoshis(long val) { * The maximum inbound HTLC value in flight towards channel initiator, in milli-satoshi */ public long get_max_htlc_value_in_flight_msat() { - long ret = bindings.OpenChannelV2_get_max_htlc_value_in_flight_msat(this.ptr); + long ret = Bindings.OpenChannelV2GetMaxHtlcValueInFlightMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -144,7 +144,7 @@ public long get_max_htlc_value_in_flight_msat() { * The maximum inbound HTLC value in flight towards channel initiator, in milli-satoshi */ public void set_max_htlc_value_in_flight_msat(long val) { - bindings.OpenChannelV2_set_max_htlc_value_in_flight_msat(this.ptr, val); + Bindings.OpenChannelV2SetMaxHtlcValueInFlightMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -153,7 +153,7 @@ public void set_max_htlc_value_in_flight_msat(long val) { * The minimum HTLC size incoming to channel initiator, in milli-satoshi */ public long get_htlc_minimum_msat() { - long ret = bindings.OpenChannelV2_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.OpenChannelV2GetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -162,7 +162,7 @@ public long get_htlc_minimum_msat() { * The minimum HTLC size incoming to channel initiator, in milli-satoshi */ public void set_htlc_minimum_msat(long val) { - bindings.OpenChannelV2_set_htlc_minimum_msat(this.ptr, val); + Bindings.OpenChannelV2SetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -172,7 +172,7 @@ public void set_htlc_minimum_msat(long val) { * broadcast a commitment transaction */ public short get_to_self_delay() { - short ret = bindings.OpenChannelV2_get_to_self_delay(this.ptr); + short ret = Bindings.OpenChannelV2GetToSelfDelay(this.ptr); GC.KeepAlive(this); return ret; } @@ -182,7 +182,7 @@ public short get_to_self_delay() { * broadcast a commitment transaction */ public void set_to_self_delay(short val) { - bindings.OpenChannelV2_set_to_self_delay(this.ptr, val); + Bindings.OpenChannelV2SetToSelfDelay(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -191,7 +191,7 @@ public void set_to_self_delay(short val) { * The maximum number of inbound HTLCs towards channel initiator */ public short get_max_accepted_htlcs() { - short ret = bindings.OpenChannelV2_get_max_accepted_htlcs(this.ptr); + short ret = Bindings.OpenChannelV2GetMaxAcceptedHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -200,7 +200,7 @@ public short get_max_accepted_htlcs() { * The maximum number of inbound HTLCs towards channel initiator */ public void set_max_accepted_htlcs(short val) { - bindings.OpenChannelV2_set_max_accepted_htlcs(this.ptr, val); + Bindings.OpenChannelV2SetMaxAcceptedHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -209,7 +209,7 @@ public void set_max_accepted_htlcs(short val) { * The locktime for the funding transaction */ public int get_locktime() { - int ret = bindings.OpenChannelV2_get_locktime(this.ptr); + int ret = Bindings.OpenChannelV2GetLocktime(this.ptr); GC.KeepAlive(this); return ret; } @@ -218,7 +218,7 @@ public int get_locktime() { * The locktime for the funding transaction */ public void set_locktime(int val) { - bindings.OpenChannelV2_set_locktime(this.ptr, val); + Bindings.OpenChannelV2SetLocktime(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -227,10 +227,10 @@ public void set_locktime(int val) { * The channel initiator's key controlling the funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.OpenChannelV2_get_funding_pubkey(this.ptr); + long ret = Bindings.OpenChannelV2GetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -238,7 +238,7 @@ public byte[] get_funding_pubkey() { * The channel initiator's key controlling the funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.OpenChannelV2_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -247,10 +247,10 @@ public void set_funding_pubkey(byte[] val) { * Used to derive a revocation key for transactions broadcast by counterparty */ public byte[] get_revocation_basepoint() { - long ret = bindings.OpenChannelV2_get_revocation_basepoint(this.ptr); + long ret = Bindings.OpenChannelV2GetRevocationBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -258,7 +258,7 @@ public byte[] get_revocation_basepoint() { * Used to derive a revocation key for transactions broadcast by counterparty */ public void set_revocation_basepoint(byte[] val) { - bindings.OpenChannelV2_set_revocation_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetRevocationBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -267,10 +267,10 @@ public void set_revocation_basepoint(byte[] val) { * A payment key to channel initiator for transactions broadcast by counterparty */ public byte[] get_payment_basepoint() { - long ret = bindings.OpenChannelV2_get_payment_basepoint(this.ptr); + long ret = Bindings.OpenChannelV2GetPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -278,7 +278,7 @@ public byte[] get_payment_basepoint() { * A payment key to channel initiator for transactions broadcast by counterparty */ public void set_payment_basepoint(byte[] val) { - bindings.OpenChannelV2_set_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -288,10 +288,10 @@ public void set_payment_basepoint(byte[] val) { * initiator */ public byte[] get_delayed_payment_basepoint() { - long ret = bindings.OpenChannelV2_get_delayed_payment_basepoint(this.ptr); + long ret = Bindings.OpenChannelV2GetDelayedPaymentBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -300,7 +300,7 @@ public byte[] get_delayed_payment_basepoint() { * initiator */ public void set_delayed_payment_basepoint(byte[] val) { - bindings.OpenChannelV2_set_delayed_payment_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetDelayedPaymentBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -309,10 +309,10 @@ public void set_delayed_payment_basepoint(byte[] val) { * Used to derive an HTLC payment key to channel initiator */ public byte[] get_htlc_basepoint() { - long ret = bindings.OpenChannelV2_get_htlc_basepoint(this.ptr); + long ret = Bindings.OpenChannelV2GetHtlcBasepoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -320,7 +320,7 @@ public byte[] get_htlc_basepoint() { * Used to derive an HTLC payment key to channel initiator */ public void set_htlc_basepoint(byte[] val) { - bindings.OpenChannelV2_set_htlc_basepoint(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetHtlcBasepoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -329,10 +329,10 @@ public void set_htlc_basepoint(byte[] val) { * The first to-be-broadcast-by-channel-initiator transaction's per commitment point */ public byte[] get_first_per_commitment_point() { - long ret = bindings.OpenChannelV2_get_first_per_commitment_point(this.ptr); + long ret = Bindings.OpenChannelV2GetFirstPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -340,7 +340,7 @@ public byte[] get_first_per_commitment_point() { * The first to-be-broadcast-by-channel-initiator transaction's per commitment point */ public void set_first_per_commitment_point(byte[] val) { - bindings.OpenChannelV2_set_first_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetFirstPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -349,10 +349,10 @@ public void set_first_per_commitment_point(byte[] val) { * The second to-be-broadcast-by-channel-initiator transaction's per commitment point */ public byte[] get_second_per_commitment_point() { - long ret = bindings.OpenChannelV2_get_second_per_commitment_point(this.ptr); + long ret = Bindings.OpenChannelV2GetSecondPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -360,7 +360,7 @@ public byte[] get_second_per_commitment_point() { * The second to-be-broadcast-by-channel-initiator transaction's per commitment point */ public void set_second_per_commitment_point(byte[] val) { - bindings.OpenChannelV2_set_second_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.OpenChannelV2SetSecondPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -369,7 +369,7 @@ public void set_second_per_commitment_point(byte[] val) { * Channel flags */ public byte get_channel_flags() { - byte ret = bindings.OpenChannelV2_get_channel_flags(this.ptr); + byte ret = Bindings.OpenChannelV2GetChannelFlags(this.ptr); GC.KeepAlive(this); return ret; } @@ -378,7 +378,7 @@ public byte get_channel_flags() { * Channel flags */ public void set_channel_flags(byte val) { - bindings.OpenChannelV2_set_channel_flags(this.ptr, val); + Bindings.OpenChannelV2SetChannelFlags(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -388,7 +388,7 @@ public void set_channel_flags(byte val) { * collaboratively close */ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { - long ret = bindings.OpenChannelV2_get_shutdown_scriptpubkey(this.ptr); + long ret = Bindings.OpenChannelV2GetShutdownScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -401,7 +401,7 @@ public Option_CVec_u8ZZ get_shutdown_scriptpubkey() { * collaboratively close */ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.OpenChannelV2_set_shutdown_scriptpubkey(this.ptr, val.ptr); + Bindings.OpenChannelV2SetShutdownScriptpubkey(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -415,7 +415,7 @@ public void set_shutdown_scriptpubkey(org.ldk.structs.Option_CVec_u8ZZ val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTypeFeatures get_channel_type() { - long ret = bindings.OpenChannelV2_get_channel_type(this.ptr); + long ret = Bindings.OpenChannelV2GetChannelType(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -431,7 +431,7 @@ public ChannelTypeFeatures get_channel_type() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { - bindings.OpenChannelV2_set_channel_type(this.ptr, val == null ? 0 : val.ptr); + Bindings.OpenChannelV2SetChannelType(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -441,7 +441,7 @@ public void set_channel_type(org.ldk.structs.ChannelTypeFeatures val) { * Optionally, a requirement that only confirmed inputs can be added */ public COption_NoneZ get_require_confirmed_inputs() { - COption_NoneZ ret = bindings.OpenChannelV2_get_require_confirmed_inputs(this.ptr); + COption_NoneZ ret = Bindings.OpenChannelV2GetRequireConfirmedInputs(this.ptr); GC.KeepAlive(this); return ret; } @@ -450,7 +450,7 @@ public COption_NoneZ get_require_confirmed_inputs() { * Optionally, a requirement that only confirmed inputs can be added */ public void set_require_confirmed_inputs(COption_NoneZ val) { - bindings.OpenChannelV2_set_require_confirmed_inputs(this.ptr, val); + Bindings.OpenChannelV2SetRequireConfirmedInputs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -461,7 +461,7 @@ public void set_require_confirmed_inputs(COption_NoneZ val) { * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static OpenChannelV2 of(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, int funding_feerate_sat_per_1000_weight_arg, int commitment_feerate_sat_per_1000_weight_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, int locktime_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, byte channel_flags_arg, org.ldk.structs.Option_CVec_u8ZZ shutdown_scriptpubkey_arg, org.ldk.structs.ChannelTypeFeatures channel_type_arg, COption_NoneZ require_confirmed_inputs_arg) { - long ret = bindings.OpenChannelV2_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(temporary_channel_id_arg, 32)), funding_feerate_sat_per_1000_weight_arg, commitment_feerate_sat_per_1000_weight_arg, funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, to_self_delay_arg, max_accepted_htlcs_arg, locktime_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(revocation_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(delayed_payment_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_basepoint_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(first_per_commitment_point_arg, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(second_per_commitment_point_arg, 33)), channel_flags_arg, shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, require_confirmed_inputs_arg); + long ret = Bindings.OpenChannelV2New(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(temporary_channel_id_arg, 32)), funding_feerate_sat_per_1000_weight_arg, commitment_feerate_sat_per_1000_weight_arg, funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, to_self_delay_arg, max_accepted_htlcs_arg, locktime_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(revocation_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(delayed_payment_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_basepoint_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(first_per_commitment_point_arg, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(second_per_commitment_point_arg, 33)), channel_flags_arg, shutdown_scriptpubkey_arg.ptr, channel_type_arg == null ? 0 : channel_type_arg.ptr, require_confirmed_inputs_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(temporary_channel_id_arg); GC.KeepAlive(funding_feerate_sat_per_1000_weight_arg); @@ -493,7 +493,7 @@ public static OpenChannelV2 of(byte[] chain_hash_arg, byte[] temporary_channel_i } internal long clone_ptr() { - long ret = bindings.OpenChannelV2_clone_ptr(this.ptr); + long ret = Bindings.OpenChannelV2ClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -502,7 +502,7 @@ internal long clone_ptr() { * Creates a copy of the OpenChannelV2 */ public OpenChannelV2 clone() { - long ret = bindings.OpenChannelV2_clone(this.ptr); + long ret = Bindings.OpenChannelV2Clone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OpenChannelV2 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OpenChannelV2(null, ret); } @@ -514,7 +514,7 @@ public OpenChannelV2 clone() { * Generates a non-cryptographic 64-bit hash of the OpenChannelV2. */ public long hash() { - long ret = bindings.OpenChannelV2_hash(this.ptr); + long ret = Bindings.OpenChannelV2Hash(this.ptr); GC.KeepAlive(this); return ret; } @@ -528,7 +528,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OpenChannelV2 b) { - bool ret = bindings.OpenChannelV2_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OpenChannelV2Eq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -543,10 +543,10 @@ public override bool Equals(object o) { * Serialize the OpenChannelV2 object into a byte array which can be read by OpenChannelV2_read */ public byte[] write() { - long ret = bindings.OpenChannelV2_write(this.ptr); + long ret = Bindings.OpenChannelV2Write(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -554,7 +554,7 @@ public byte[] write() { * Read a OpenChannelV2 from a byte array, created by OpenChannelV2_write */ public static Result_OpenChannelV2DecodeErrorZ read(byte[] ser) { - long ret = bindings.OpenChannelV2_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.OpenChannelV2Read(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelV2DecodeErrorZ ret_hu_conv = Result_OpenChannelV2DecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_APIErrorZ.cs b/c_sharp/src/org/ldk/structs/Option_APIErrorZ.cs index 79a86b955..8102a5191 100644 --- a/c_sharp/src/org/ldk/structs/Option_APIErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_APIErrorZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_APIErrorZ : CommonBase { protected Option_APIErrorZ(object _dummy, long ptr) : base(ptr) { } ~Option_APIErrorZ() { - if (ptr != 0) { bindings.COption_APIErrorZ_free(ptr); } + if (ptr != 0) { Bindings.COptionAPIErrorZFree(ptr); } } internal static Option_APIErrorZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_APIErrorZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionAPIErrorZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_APIErrorZ_Some(ptr); case 1: return new Option_APIErrorZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_APIErrorZ constr_from_ptr(long ptr) { public class Option_APIErrorZ_Some : Option_APIErrorZ { public APIError some; internal Option_APIErrorZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_APIErrorZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionAPIErrorZSomeGetSome(ptr); org.ldk.structs.APIError some_hu_conv = org.ldk.structs.APIError.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_APIErrorZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_APIErrorZ containing a crate::lightning::util::errors::APIError */ public static Option_APIErrorZ some(org.ldk.structs.APIError o) { - long ret = bindings.COption_APIErrorZ_some(o.ptr); + long ret = Bindings.COptionAPIErrorZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_APIErrorZ ret_hu_conv = org.ldk.structs.Option_APIErrorZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_APIErrorZ some(org.ldk.structs.APIError o) { * Constructs a new COption_APIErrorZ containing nothing */ public static Option_APIErrorZ none() { - long ret = bindings.COption_APIErrorZ_none(); + long ret = Bindings.COptionAPIErrorZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_APIErrorZ ret_hu_conv = org.ldk.structs.Option_APIErrorZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_APIErrorZ none() { } internal long clone_ptr() { - long ret = bindings.COption_APIErrorZ_clone_ptr(this.ptr); + long ret = Bindings.COptionAPIErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_APIErrorZ clone() { - long ret = bindings.COption_APIErrorZ_clone(this.ptr); + long ret = Bindings.COptionAPIErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_APIErrorZ ret_hu_conv = org.ldk.structs.Option_APIErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_BigEndianScalarZ.cs b/c_sharp/src/org/ldk/structs/Option_BigEndianScalarZ.cs index 1cc7869d9..21d1e35fb 100644 --- a/c_sharp/src/org/ldk/structs/Option_BigEndianScalarZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_BigEndianScalarZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_BigEndianScalarZ : CommonBase { protected Option_BigEndianScalarZ(object _dummy, long ptr) : base(ptr) { } ~Option_BigEndianScalarZ() { - if (ptr != 0) { bindings.COption_BigEndianScalarZ_free(ptr); } + if (ptr != 0) { Bindings.COptionBigEndianScalarZFree(ptr); } } internal static Option_BigEndianScalarZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_BigEndianScalarZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionBigEndianScalarZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_BigEndianScalarZ_Some(ptr); case 1: return new Option_BigEndianScalarZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_BigEndianScalarZ constr_from_ptr(long ptr) { public class Option_BigEndianScalarZ_Some : Option_BigEndianScalarZ { public BigEndianScalar some; internal Option_BigEndianScalarZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_BigEndianScalarZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionBigEndianScalarZSomeGetSome(ptr); BigEndianScalar some_conv = new BigEndianScalar(null, some); this.some = some_conv; } @@ -42,7 +42,7 @@ internal Option_BigEndianScalarZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_BigEndianScalarZ containing a crate::c_types::BigEndianScalar */ public static Option_BigEndianScalarZ some(byte[] o_big_endian_bytes) { - long ret = bindings.COption_BigEndianScalarZ_some(bindings.BigEndianScalar_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o_big_endian_bytes, 32)))); + long ret = Bindings.COptionBigEndianScalarZSome(Bindings.BigEndianScalarNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o_big_endian_bytes, 32)))); GC.KeepAlive(o_big_endian_bytes); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_BigEndianScalarZ ret_hu_conv = org.ldk.structs.Option_BigEndianScalarZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Option_BigEndianScalarZ some(byte[] o_big_endian_bytes) { * Constructs a new COption_BigEndianScalarZ containing nothing */ public static Option_BigEndianScalarZ none() { - long ret = bindings.COption_BigEndianScalarZ_none(); + long ret = Bindings.COptionBigEndianScalarZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_BigEndianScalarZ ret_hu_conv = org.ldk.structs.Option_BigEndianScalarZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -63,7 +63,7 @@ public static Option_BigEndianScalarZ none() { } internal long clone_ptr() { - long ret = bindings.COption_BigEndianScalarZ_clone_ptr(this.ptr); + long ret = Bindings.COptionBigEndianScalarZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_BigEndianScalarZ clone() { - long ret = bindings.COption_BigEndianScalarZ_clone(this.ptr); + long ret = Bindings.COptionBigEndianScalarZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_BigEndianScalarZ ret_hu_conv = org.ldk.structs.Option_BigEndianScalarZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.cs b/c_sharp/src/org/ldk/structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.cs index d293a8e5b..42b429209 100644 --- a/c_sharp/src/org/ldk/structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ : CommonBase { protected Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ(object _dummy, long ptr) : base(ptr) { } ~Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ() { - if (ptr != 0) { bindings.COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZFree(ptr); } } internal static Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionC2TupleThirtyTwoU16sThirtyTwoU16sZZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some(ptr); case 1: return new Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ constr_from_ptr(long public class Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some : Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ { public TwoTuple__u1632_u1632Z some; internal Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionC2TupleThirtyTwoU16sThirtyTwoU16sZZSomeGetSome(ptr); TwoTuple__u1632_u1632Z some_hu_conv = new TwoTuple__u1632_u1632Z(null, some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_None(long ptr) : base(null, * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing a crate::c_types::derived::C2Tuple__u1632_u1632Z */ public static Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ some(org.ldk.structs.TwoTuple__u1632_u1632Z o) { - long ret = bindings.COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(o != null ? o.ptr : 0); + long ret = Bindings.COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZSome(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ some(org.ldk.structs.T * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing nothing */ public static Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ none() { - long ret = bindings.COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(); + long ret = Bindings.COptionC2TupleThirtyTwoU16sThirtyTwoU16sZZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u16ZZ.cs b/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u16ZZ.cs index fcd352bc9..278458fb5 100644 --- a/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u16ZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u16ZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_C2Tuple_u64u16ZZ : CommonBase { protected Option_C2Tuple_u64u16ZZ(object _dummy, long ptr) : base(ptr) { } ~Option_C2Tuple_u64u16ZZ() { - if (ptr != 0) { bindings.COption_C2Tuple_u64u16ZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionC2TupleU64U16ZzFree(ptr); } } internal static Option_C2Tuple_u64u16ZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionC2TupleU64U16ZzTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_C2Tuple_u64u16ZZ_Some(ptr); case 1: return new Option_C2Tuple_u64u16ZZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_C2Tuple_u64u16ZZ constr_from_ptr(long ptr) { public class Option_C2Tuple_u64u16ZZ_Some : Option_C2Tuple_u64u16ZZ { public TwoTuple_u64u16Z some; internal Option_C2Tuple_u64u16ZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionC2TupleU64U16ZzSomeGetSome(ptr); TwoTuple_u64u16Z some_hu_conv = new TwoTuple_u64u16Z(null, some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_C2Tuple_u64u16ZZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_C2Tuple_u64u16ZZ containing a crate::c_types::derived::C2Tuple_u64u16Z */ public static Option_C2Tuple_u64u16ZZ some(org.ldk.structs.TwoTuple_u64u16Z o) { - long ret = bindings.COption_C2Tuple_u64u16ZZ_some(o != null ? o.ptr : 0); + long ret = Bindings.COptionC2TupleU64U16ZzSome(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u16ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u16ZZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Option_C2Tuple_u64u16ZZ some(org.ldk.structs.TwoTuple_u64u16Z o) { * Constructs a new COption_C2Tuple_u64u16ZZ containing nothing */ public static Option_C2Tuple_u64u16ZZ none() { - long ret = bindings.COption_C2Tuple_u64u16ZZ_none(); + long ret = Bindings.COptionC2TupleU64U16ZzNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u16ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u16ZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -63,7 +63,7 @@ public static Option_C2Tuple_u64u16ZZ none() { } internal long clone_ptr() { - long ret = bindings.COption_C2Tuple_u64u16ZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionC2TupleU64U16ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_C2Tuple_u64u16ZZ clone() { - long ret = bindings.COption_C2Tuple_u64u16ZZ_clone(this.ptr); + long ret = Bindings.COptionC2TupleU64U16ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u16ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u16ZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u64ZZ.cs b/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u64ZZ.cs index 26fda5238..683767e12 100644 --- a/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u64ZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_C2Tuple_u64u64ZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_C2Tuple_u64u64ZZ : CommonBase { protected Option_C2Tuple_u64u64ZZ(object _dummy, long ptr) : base(ptr) { } ~Option_C2Tuple_u64u64ZZ() { - if (ptr != 0) { bindings.COption_C2Tuple_u64u64ZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionC2TupleU64U64ZzFree(ptr); } } internal static Option_C2Tuple_u64u64ZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionC2TupleU64U64ZzTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_C2Tuple_u64u64ZZ_Some(ptr); case 1: return new Option_C2Tuple_u64u64ZZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_C2Tuple_u64u64ZZ constr_from_ptr(long ptr) { public class Option_C2Tuple_u64u64ZZ_Some : Option_C2Tuple_u64u64ZZ { public TwoTuple_u64u64Z some; internal Option_C2Tuple_u64u64ZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionC2TupleU64U64ZzSomeGetSome(ptr); TwoTuple_u64u64Z some_hu_conv = new TwoTuple_u64u64Z(null, some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_C2Tuple_u64u64ZZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_C2Tuple_u64u64ZZ containing a crate::c_types::derived::C2Tuple_u64u64Z */ public static Option_C2Tuple_u64u64ZZ some(org.ldk.structs.TwoTuple_u64u64Z o) { - long ret = bindings.COption_C2Tuple_u64u64ZZ_some(o != null ? o.ptr : 0); + long ret = Bindings.COptionC2TupleU64U64ZzSome(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Option_C2Tuple_u64u64ZZ some(org.ldk.structs.TwoTuple_u64u64Z o) { * Constructs a new COption_C2Tuple_u64u64ZZ containing nothing */ public static Option_C2Tuple_u64u64ZZ none() { - long ret = bindings.COption_C2Tuple_u64u64ZZ_none(); + long ret = Bindings.COptionC2TupleU64U64ZzNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -63,7 +63,7 @@ public static Option_C2Tuple_u64u64ZZ none() { } internal long clone_ptr() { - long ret = bindings.COption_C2Tuple_u64u64ZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionC2TupleU64U64ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_C2Tuple_u64u64ZZ clone() { - long ret = bindings.COption_C2Tuple_u64u64ZZ_clone(this.ptr); + long ret = Bindings.COptionC2TupleU64U64ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.cs b/c_sharp/src/org/ldk/structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.cs index eb5a9177a..e588f7a11 100644 --- a/c_sharp/src/org/ldk/structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ : CommonBase { protected Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ(object _dummy, long ptr) : base(ptr) { } ~Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() { - if (ptr != 0) { bindings.COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZFree(ptr); } } internal static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some(ptr); case 1: return new Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ c public class Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some : Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ { public ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ some; internal Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZSomeGetSome(ptr); ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ some_hu_conv = new ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ(null, some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_None(lon * Constructs a new COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ containing a crate::c_types::derived::C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ */ public static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ some(org.ldk.structs.ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o) { - long ret = bindings.COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(o != null ? o.ptr : 0); + long ret = Bindings.COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZSome(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ ret_hu_conv = org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ som * Constructs a new COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ containing nothing */ public static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ none() { - long ret = bindings.COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(); + long ret = Bindings.COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ ret_hu_conv = org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -63,7 +63,7 @@ public static Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ non } internal long clone_ptr() { - long ret = bindings.COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ clone() { - long ret = bindings.COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(this.ptr); + long ret = Bindings.COptionC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ ret_hu_conv = org.ldk.structs.Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_CVec_SocketAddressZZ.cs b/c_sharp/src/org/ldk/structs/Option_CVec_SocketAddressZZ.cs index 616239ee5..5d4e8d010 100644 --- a/c_sharp/src/org/ldk/structs/Option_CVec_SocketAddressZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_CVec_SocketAddressZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_CVec_SocketAddressZZ : CommonBase { protected Option_CVec_SocketAddressZZ(object _dummy, long ptr) : base(ptr) { } ~Option_CVec_SocketAddressZZ() { - if (ptr != 0) { bindings.COption_CVec_SocketAddressZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionCVecSocketAddressZZFree(ptr); } } internal static Option_CVec_SocketAddressZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_CVec_SocketAddressZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionCVecSocketAddressZZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_CVec_SocketAddressZZ_Some(ptr); case 1: return new Option_CVec_SocketAddressZZ_None(ptr); @@ -28,16 +28,16 @@ internal static Option_CVec_SocketAddressZZ constr_from_ptr(long ptr) { public class Option_CVec_SocketAddressZZ_Some : Option_CVec_SocketAddressZZ { public SocketAddress[] some; internal Option_CVec_SocketAddressZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_CVec_SocketAddressZZ_Some_get_some(ptr); - int some_conv_15_len = InternalUtils.getArrayLength(some); + long some = Bindings.LDKCOptionCVecSocketAddressZZSomeGetSome(ptr); + int some_conv_15_len = InternalUtils.GetArrayLength(some); SocketAddress[] some_conv_15_arr = new SocketAddress[some_conv_15_len]; for (int p = 0; p < some_conv_15_len; p++) { - long some_conv_15 = InternalUtils.getU64ArrayElem(some, p); + long some_conv_15 = InternalUtils.GetU64ArrayElem(some, p); org.ldk.structs.SocketAddress some_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(some_conv_15); if (some_conv_15_hu_conv != null) { some_conv_15_hu_conv.ptrs_to.AddLast(this); }; some_conv_15_arr[p] = some_conv_15_hu_conv; } - bindings.free_buffer(some); + Bindings.FreeBuffer(some); this.some = some_conv_15_arr; } } @@ -50,7 +50,7 @@ internal Option_CVec_SocketAddressZZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_CVec_SocketAddressZZ containing a crate::c_types::derived::CVec_SocketAddressZ */ public static Option_CVec_SocketAddressZZ some(SocketAddress[] o) { - long ret = bindings.COption_CVec_SocketAddressZZ_some(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_15 => o_conv_15.ptr))); + long ret = Bindings.COptionCVecSocketAddressZZSome(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_15 => o_conv_15.ptr))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret); @@ -63,7 +63,7 @@ public static Option_CVec_SocketAddressZZ some(SocketAddress[] o) { * Constructs a new COption_CVec_SocketAddressZZ containing nothing */ public static Option_CVec_SocketAddressZZ none() { - long ret = bindings.COption_CVec_SocketAddressZZ_none(); + long ret = Bindings.COptionCVecSocketAddressZZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -71,7 +71,7 @@ public static Option_CVec_SocketAddressZZ none() { } internal long clone_ptr() { - long ret = bindings.COption_CVec_SocketAddressZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionCVecSocketAddressZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_CVec_SocketAddressZZ clone() { - long ret = bindings.COption_CVec_SocketAddressZZ_clone(this.ptr); + long ret = Bindings.COptionCVecSocketAddressZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_CVec_ThirtyTwoBytesZZ.cs b/c_sharp/src/org/ldk/structs/Option_CVec_ThirtyTwoBytesZZ.cs index b078a6666..cd57842b7 100644 --- a/c_sharp/src/org/ldk/structs/Option_CVec_ThirtyTwoBytesZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_CVec_ThirtyTwoBytesZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_CVec_ThirtyTwoBytesZZ : CommonBase { protected Option_CVec_ThirtyTwoBytesZZ(object _dummy, long ptr) : base(ptr) { } ~Option_CVec_ThirtyTwoBytesZZ() { - if (ptr != 0) { bindings.COption_CVec_ThirtyTwoBytesZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionCVecThirtyTwoBytesZZFree(ptr); } } internal static Option_CVec_ThirtyTwoBytesZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_CVec_ThirtyTwoBytesZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionCVecThirtyTwoBytesZZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_CVec_ThirtyTwoBytesZZ_Some(ptr); case 1: return new Option_CVec_ThirtyTwoBytesZZ_None(ptr); @@ -28,15 +28,15 @@ internal static Option_CVec_ThirtyTwoBytesZZ constr_from_ptr(long ptr) { public class Option_CVec_ThirtyTwoBytesZZ_Some : Option_CVec_ThirtyTwoBytesZZ { public byte[][] some; internal Option_CVec_ThirtyTwoBytesZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some(ptr); - int some_conv_8_len = InternalUtils.getArrayLength(some); + long some = Bindings.LDKCOptionCVecThirtyTwoBytesZZSomeGetSome(ptr); + int some_conv_8_len = InternalUtils.GetArrayLength(some); byte[][] some_conv_8_arr = new byte[some_conv_8_len][]; for (int i = 0; i < some_conv_8_len; i++) { - long some_conv_8 = InternalUtils.getU64ArrayElem(some, i); - byte[] some_conv_8_conv = InternalUtils.decodeUint8Array(some_conv_8); + long some_conv_8 = InternalUtils.GetU64ArrayElem(some, i); + byte[] some_conv_8_conv = InternalUtils.DecodeUint8Array(some_conv_8); some_conv_8_arr[i] = some_conv_8_conv; } - bindings.free_buffer(some); + Bindings.FreeBuffer(some); this.some = some_conv_8_arr; } } @@ -49,7 +49,7 @@ internal Option_CVec_ThirtyTwoBytesZZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing a crate::c_types::derived::CVec_ThirtyTwoBytesZ */ public static Option_CVec_ThirtyTwoBytesZZ some(byte[][] o) { - long ret = bindings.COption_CVec_ThirtyTwoBytesZZ_some(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o_conv_8, 32))))); + long ret = Bindings.COptionCVecThirtyTwoBytesZZSome(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o_conv_8, 32))))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); @@ -61,7 +61,7 @@ public static Option_CVec_ThirtyTwoBytesZZ some(byte[][] o) { * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing nothing */ public static Option_CVec_ThirtyTwoBytesZZ none() { - long ret = bindings.COption_CVec_ThirtyTwoBytesZZ_none(); + long ret = Bindings.COptionCVecThirtyTwoBytesZZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -69,7 +69,7 @@ public static Option_CVec_ThirtyTwoBytesZZ none() { } internal long clone_ptr() { - long ret = bindings.COption_CVec_ThirtyTwoBytesZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionCVecThirtyTwoBytesZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -79,7 +79,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_CVec_ThirtyTwoBytesZZ clone() { - long ret = bindings.COption_CVec_ThirtyTwoBytesZZ_clone(this.ptr); + long ret = Bindings.COptionCVecThirtyTwoBytesZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_CVec_u8ZZ.cs b/c_sharp/src/org/ldk/structs/Option_CVec_u8ZZ.cs index 24d7b51ff..f816d2a00 100644 --- a/c_sharp/src/org/ldk/structs/Option_CVec_u8ZZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_CVec_u8ZZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_CVec_u8ZZ : CommonBase { protected Option_CVec_u8ZZ(object _dummy, long ptr) : base(ptr) { } ~Option_CVec_u8ZZ() { - if (ptr != 0) { bindings.COption_CVec_u8ZZ_free(ptr); } + if (ptr != 0) { Bindings.COptionCVecU8ZzFree(ptr); } } internal static Option_CVec_u8ZZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_CVec_u8ZZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionCVecU8ZzTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_CVec_u8ZZ_Some(ptr); case 1: return new Option_CVec_u8ZZ_None(ptr); @@ -28,8 +28,8 @@ internal static Option_CVec_u8ZZ constr_from_ptr(long ptr) { public class Option_CVec_u8ZZ_Some : Option_CVec_u8ZZ { public byte[] some; internal Option_CVec_u8ZZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_CVec_u8ZZ_Some_get_some(ptr); - byte[] some_conv = InternalUtils.decodeUint8Array(some); + long some = Bindings.LDKCOptionCVecU8ZzSomeGetSome(ptr); + byte[] some_conv = InternalUtils.DecodeUint8Array(some); this.some = some_conv; } } @@ -42,7 +42,7 @@ internal Option_CVec_u8ZZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_CVec_u8ZZ containing a crate::c_types::derived::CVec_u8Z */ public static Option_CVec_u8ZZ some(byte[] o) { - long ret = bindings.COption_CVec_u8ZZ_some(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.COptionCVecU8ZzSome(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_CVec_u8ZZ some(byte[] o) { * Constructs a new COption_CVec_u8ZZ containing nothing */ public static Option_CVec_u8ZZ none() { - long ret = bindings.COption_CVec_u8ZZ_none(); + long ret = Bindings.COptionCVecU8ZzNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_CVec_u8ZZ none() { } internal long clone_ptr() { - long ret = bindings.COption_CVec_u8ZZ_clone_ptr(this.ptr); + long ret = Bindings.COptionCVecU8ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_CVec_u8ZZ clone() { - long ret = bindings.COption_CVec_u8ZZ_clone(this.ptr); + long ret = Bindings.COptionCVecU8ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_ChannelShutdownStateZ.cs b/c_sharp/src/org/ldk/structs/Option_ChannelShutdownStateZ.cs index a6954e597..f5cf3b357 100644 --- a/c_sharp/src/org/ldk/structs/Option_ChannelShutdownStateZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_ChannelShutdownStateZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_ChannelShutdownStateZ : CommonBase { protected Option_ChannelShutdownStateZ(object _dummy, long ptr) : base(ptr) { } ~Option_ChannelShutdownStateZ() { - if (ptr != 0) { bindings.COption_ChannelShutdownStateZ_free(ptr); } + if (ptr != 0) { Bindings.COptionChannelShutdownStateZFree(ptr); } } internal static Option_ChannelShutdownStateZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_ChannelShutdownStateZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionChannelShutdownStateZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_ChannelShutdownStateZ_Some(ptr); case 1: return new Option_ChannelShutdownStateZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_ChannelShutdownStateZ constr_from_ptr(long ptr) { public class Option_ChannelShutdownStateZ_Some : Option_ChannelShutdownStateZ { public ChannelShutdownState some; internal Option_ChannelShutdownStateZ_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_ChannelShutdownStateZ_Some_get_some(ptr); + this.some = Bindings.LDKCOptionChannelShutdownStateZSomeGetSome(ptr); } } /** A Option_ChannelShutdownStateZ of type None */ @@ -40,7 +40,7 @@ internal Option_ChannelShutdownStateZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_ChannelShutdownStateZ containing a crate::lightning::ln::channelmanager::ChannelShutdownState */ public static Option_ChannelShutdownStateZ some(ChannelShutdownState o) { - long ret = bindings.COption_ChannelShutdownStateZ_some(o); + long ret = Bindings.COptionChannelShutdownStateZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ChannelShutdownStateZ ret_hu_conv = org.ldk.structs.Option_ChannelShutdownStateZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_ChannelShutdownStateZ some(ChannelShutdownState o) { * Constructs a new COption_ChannelShutdownStateZ containing nothing */ public static Option_ChannelShutdownStateZ none() { - long ret = bindings.COption_ChannelShutdownStateZ_none(); + long ret = Bindings.COptionChannelShutdownStateZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ChannelShutdownStateZ ret_hu_conv = org.ldk.structs.Option_ChannelShutdownStateZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_ChannelShutdownStateZ none() { } internal long clone_ptr() { - long ret = bindings.COption_ChannelShutdownStateZ_clone_ptr(this.ptr); + long ret = Bindings.COptionChannelShutdownStateZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_ChannelShutdownStateZ clone() { - long ret = bindings.COption_ChannelShutdownStateZ_clone(this.ptr); + long ret = Bindings.COptionChannelShutdownStateZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ChannelShutdownStateZ ret_hu_conv = org.ldk.structs.Option_ChannelShutdownStateZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_ClosureReasonZ.cs b/c_sharp/src/org/ldk/structs/Option_ClosureReasonZ.cs index b446b58f0..e2ede130d 100644 --- a/c_sharp/src/org/ldk/structs/Option_ClosureReasonZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_ClosureReasonZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_ClosureReasonZ : CommonBase { protected Option_ClosureReasonZ(object _dummy, long ptr) : base(ptr) { } ~Option_ClosureReasonZ() { - if (ptr != 0) { bindings.COption_ClosureReasonZ_free(ptr); } + if (ptr != 0) { Bindings.COptionClosureReasonZFree(ptr); } } internal static Option_ClosureReasonZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_ClosureReasonZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionClosureReasonZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_ClosureReasonZ_Some(ptr); case 1: return new Option_ClosureReasonZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_ClosureReasonZ constr_from_ptr(long ptr) { public class Option_ClosureReasonZ_Some : Option_ClosureReasonZ { public ClosureReason some; internal Option_ClosureReasonZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_ClosureReasonZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionClosureReasonZSomeGetSome(ptr); org.ldk.structs.ClosureReason some_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_ClosureReasonZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_ClosureReasonZ containing a crate::lightning::events::ClosureReason */ public static Option_ClosureReasonZ some(org.ldk.structs.ClosureReason o) { - long ret = bindings.COption_ClosureReasonZ_some(o.ptr); + long ret = Bindings.COptionClosureReasonZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ClosureReasonZ ret_hu_conv = org.ldk.structs.Option_ClosureReasonZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_ClosureReasonZ some(org.ldk.structs.ClosureReason o) { * Constructs a new COption_ClosureReasonZ containing nothing */ public static Option_ClosureReasonZ none() { - long ret = bindings.COption_ClosureReasonZ_none(); + long ret = Bindings.COptionClosureReasonZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ClosureReasonZ ret_hu_conv = org.ldk.structs.Option_ClosureReasonZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_ClosureReasonZ none() { } internal long clone_ptr() { - long ret = bindings.COption_ClosureReasonZ_clone_ptr(this.ptr); + long ret = Bindings.COptionClosureReasonZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_ClosureReasonZ clone() { - long ret = bindings.COption_ClosureReasonZ_clone(this.ptr); + long ret = Bindings.COptionClosureReasonZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ClosureReasonZ ret_hu_conv = org.ldk.structs.Option_ClosureReasonZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_EventZ.cs b/c_sharp/src/org/ldk/structs/Option_EventZ.cs index 7dbb57ae3..2bf6b44de 100644 --- a/c_sharp/src/org/ldk/structs/Option_EventZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_EventZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_EventZ : CommonBase { protected Option_EventZ(object _dummy, long ptr) : base(ptr) { } ~Option_EventZ() { - if (ptr != 0) { bindings.COption_EventZ_free(ptr); } + if (ptr != 0) { Bindings.COptionEventZFree(ptr); } } internal static Option_EventZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_EventZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionEventZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_EventZ_Some(ptr); case 1: return new Option_EventZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_EventZ constr_from_ptr(long ptr) { public class Option_EventZ_Some : Option_EventZ { public Event some; internal Option_EventZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_EventZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionEventZSomeGetSome(ptr); org.ldk.structs.Event some_hu_conv = org.ldk.structs.Event.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_EventZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_EventZ containing a crate::lightning::events::Event */ public static Option_EventZ some(org.ldk.structs.Event o) { - long ret = bindings.COption_EventZ_some(o.ptr); + long ret = Bindings.COptionEventZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_EventZ ret_hu_conv = org.ldk.structs.Option_EventZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_EventZ some(org.ldk.structs.Event o) { * Constructs a new COption_EventZ containing nothing */ public static Option_EventZ none() { - long ret = bindings.COption_EventZ_none(); + long ret = Bindings.COptionEventZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_EventZ ret_hu_conv = org.ldk.structs.Option_EventZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_EventZ none() { } internal long clone_ptr() { - long ret = bindings.COption_EventZ_clone_ptr(this.ptr); + long ret = Bindings.COptionEventZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_EventZ clone() { - long ret = bindings.COption_EventZ_clone(this.ptr); + long ret = Bindings.COptionEventZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_EventZ ret_hu_conv = org.ldk.structs.Option_EventZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_FilterZ.cs b/c_sharp/src/org/ldk/structs/Option_FilterZ.cs index 83b62ae57..c710a189b 100644 --- a/c_sharp/src/org/ldk/structs/Option_FilterZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_FilterZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_FilterZ : CommonBase { protected Option_FilterZ(object _dummy, long ptr) : base(ptr) { } ~Option_FilterZ() { - if (ptr != 0) { bindings.COption_FilterZ_free(ptr); } + if (ptr != 0) { Bindings.COptionFilterZFree(ptr); } } internal static Option_FilterZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_FilterZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionFilterZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_FilterZ_Some(ptr); case 1: return new Option_FilterZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_FilterZ constr_from_ptr(long ptr) { public class Option_FilterZ_Some : Option_FilterZ { public Filter some; internal Option_FilterZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_FilterZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionFilterZSomeGetSome(ptr); Filter ret_hu_conv = new Filter(null, some); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.some = ret_hu_conv; @@ -43,7 +43,7 @@ internal Option_FilterZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_FilterZ containing a crate::lightning::chain::Filter */ public static Option_FilterZ some(org.ldk.structs.Filter o) { - long ret = bindings.COption_FilterZ_some(o.ptr); + long ret = Bindings.COptionFilterZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_FilterZ ret_hu_conv = org.ldk.structs.Option_FilterZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_FilterZ some(org.ldk.structs.Filter o) { * Constructs a new COption_FilterZ containing nothing */ public static Option_FilterZ none() { - long ret = bindings.COption_FilterZ_none(); + long ret = Bindings.COptionFilterZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_FilterZ ret_hu_conv = org.ldk.structs.Option_FilterZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/Option_HTLCClaimZ.cs b/c_sharp/src/org/ldk/structs/Option_HTLCClaimZ.cs index c59a7eeeb..5ca970db1 100644 --- a/c_sharp/src/org/ldk/structs/Option_HTLCClaimZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_HTLCClaimZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_HTLCClaimZ : CommonBase { protected Option_HTLCClaimZ(object _dummy, long ptr) : base(ptr) { } ~Option_HTLCClaimZ() { - if (ptr != 0) { bindings.COption_HTLCClaimZ_free(ptr); } + if (ptr != 0) { Bindings.COptionHTLCClaimZFree(ptr); } } internal static Option_HTLCClaimZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_HTLCClaimZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionHTLCClaimZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_HTLCClaimZ_Some(ptr); case 1: return new Option_HTLCClaimZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_HTLCClaimZ constr_from_ptr(long ptr) { public class Option_HTLCClaimZ_Some : Option_HTLCClaimZ { public HTLCClaim some; internal Option_HTLCClaimZ_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_HTLCClaimZ_Some_get_some(ptr); + this.some = Bindings.LDKCOptionHTLCClaimZSomeGetSome(ptr); } } /** A Option_HTLCClaimZ of type None */ @@ -40,7 +40,7 @@ internal Option_HTLCClaimZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_HTLCClaimZ containing a crate::lightning::ln::chan_utils::HTLCClaim */ public static Option_HTLCClaimZ some(HTLCClaim o) { - long ret = bindings.COption_HTLCClaimZ_some(o); + long ret = Bindings.COptionHTLCClaimZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCClaimZ ret_hu_conv = org.ldk.structs.Option_HTLCClaimZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_HTLCClaimZ some(HTLCClaim o) { * Constructs a new COption_HTLCClaimZ containing nothing */ public static Option_HTLCClaimZ none() { - long ret = bindings.COption_HTLCClaimZ_none(); + long ret = Bindings.COptionHTLCClaimZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCClaimZ ret_hu_conv = org.ldk.structs.Option_HTLCClaimZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/Option_HTLCDestinationZ.cs b/c_sharp/src/org/ldk/structs/Option_HTLCDestinationZ.cs index b7ba1f9fa..9c2a54dbd 100644 --- a/c_sharp/src/org/ldk/structs/Option_HTLCDestinationZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_HTLCDestinationZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_HTLCDestinationZ : CommonBase { protected Option_HTLCDestinationZ(object _dummy, long ptr) : base(ptr) { } ~Option_HTLCDestinationZ() { - if (ptr != 0) { bindings.COption_HTLCDestinationZ_free(ptr); } + if (ptr != 0) { Bindings.COptionHTLCDestinationZFree(ptr); } } internal static Option_HTLCDestinationZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionHTLCDestinationZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_HTLCDestinationZ_Some(ptr); case 1: return new Option_HTLCDestinationZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_HTLCDestinationZ constr_from_ptr(long ptr) { public class Option_HTLCDestinationZ_Some : Option_HTLCDestinationZ { public HTLCDestination some; internal Option_HTLCDestinationZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_HTLCDestinationZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionHTLCDestinationZSomeGetSome(ptr); org.ldk.structs.HTLCDestination some_hu_conv = org.ldk.structs.HTLCDestination.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_HTLCDestinationZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_HTLCDestinationZ containing a crate::lightning::events::HTLCDestination */ public static Option_HTLCDestinationZ some(org.ldk.structs.HTLCDestination o) { - long ret = bindings.COption_HTLCDestinationZ_some(o.ptr); + long ret = Bindings.COptionHTLCDestinationZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCDestinationZ ret_hu_conv = org.ldk.structs.Option_HTLCDestinationZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_HTLCDestinationZ some(org.ldk.structs.HTLCDestination o) { * Constructs a new COption_HTLCDestinationZ containing nothing */ public static Option_HTLCDestinationZ none() { - long ret = bindings.COption_HTLCDestinationZ_none(); + long ret = Bindings.COptionHTLCDestinationZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCDestinationZ ret_hu_conv = org.ldk.structs.Option_HTLCDestinationZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_HTLCDestinationZ none() { } internal long clone_ptr() { - long ret = bindings.COption_HTLCDestinationZ_clone_ptr(this.ptr); + long ret = Bindings.COptionHTLCDestinationZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_HTLCDestinationZ clone() { - long ret = bindings.COption_HTLCDestinationZ_clone(this.ptr); + long ret = Bindings.COptionHTLCDestinationZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCDestinationZ ret_hu_conv = org.ldk.structs.Option_HTLCDestinationZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_MaxDustHTLCExposureZ.cs b/c_sharp/src/org/ldk/structs/Option_MaxDustHTLCExposureZ.cs index d18577903..4ab1ae904 100644 --- a/c_sharp/src/org/ldk/structs/Option_MaxDustHTLCExposureZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_MaxDustHTLCExposureZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_MaxDustHTLCExposureZ : CommonBase { protected Option_MaxDustHTLCExposureZ(object _dummy, long ptr) : base(ptr) { } ~Option_MaxDustHTLCExposureZ() { - if (ptr != 0) { bindings.COption_MaxDustHTLCExposureZ_free(ptr); } + if (ptr != 0) { Bindings.COptionMaxDustHTLCExposureZFree(ptr); } } internal static Option_MaxDustHTLCExposureZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_MaxDustHTLCExposureZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionMaxDustHTLCExposureZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_MaxDustHTLCExposureZ_Some(ptr); case 1: return new Option_MaxDustHTLCExposureZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_MaxDustHTLCExposureZ constr_from_ptr(long ptr) { public class Option_MaxDustHTLCExposureZ_Some : Option_MaxDustHTLCExposureZ { public MaxDustHTLCExposure some; internal Option_MaxDustHTLCExposureZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_MaxDustHTLCExposureZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionMaxDustHTLCExposureZSomeGetSome(ptr); org.ldk.structs.MaxDustHTLCExposure some_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_MaxDustHTLCExposureZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_MaxDustHTLCExposureZ containing a crate::lightning::util::config::MaxDustHTLCExposure */ public static Option_MaxDustHTLCExposureZ some(org.ldk.structs.MaxDustHTLCExposure o) { - long ret = bindings.COption_MaxDustHTLCExposureZ_some(o.ptr); + long ret = Bindings.COptionMaxDustHTLCExposureZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MaxDustHTLCExposureZ ret_hu_conv = org.ldk.structs.Option_MaxDustHTLCExposureZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_MaxDustHTLCExposureZ some(org.ldk.structs.MaxDustHTLCExposu * Constructs a new COption_MaxDustHTLCExposureZ containing nothing */ public static Option_MaxDustHTLCExposureZ none() { - long ret = bindings.COption_MaxDustHTLCExposureZ_none(); + long ret = Bindings.COptionMaxDustHTLCExposureZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MaxDustHTLCExposureZ ret_hu_conv = org.ldk.structs.Option_MaxDustHTLCExposureZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_MaxDustHTLCExposureZ none() { } internal long clone_ptr() { - long ret = bindings.COption_MaxDustHTLCExposureZ_clone_ptr(this.ptr); + long ret = Bindings.COptionMaxDustHTLCExposureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_MaxDustHTLCExposureZ clone() { - long ret = bindings.COption_MaxDustHTLCExposureZ_clone(this.ptr); + long ret = Bindings.COptionMaxDustHTLCExposureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MaxDustHTLCExposureZ ret_hu_conv = org.ldk.structs.Option_MaxDustHTLCExposureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_MonitorEventZ.cs b/c_sharp/src/org/ldk/structs/Option_MonitorEventZ.cs index 1032ce189..93987d153 100644 --- a/c_sharp/src/org/ldk/structs/Option_MonitorEventZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_MonitorEventZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_MonitorEventZ : CommonBase { protected Option_MonitorEventZ(object _dummy, long ptr) : base(ptr) { } ~Option_MonitorEventZ() { - if (ptr != 0) { bindings.COption_MonitorEventZ_free(ptr); } + if (ptr != 0) { Bindings.COptionMonitorEventZFree(ptr); } } internal static Option_MonitorEventZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_MonitorEventZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionMonitorEventZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_MonitorEventZ_Some(ptr); case 1: return new Option_MonitorEventZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_MonitorEventZ constr_from_ptr(long ptr) { public class Option_MonitorEventZ_Some : Option_MonitorEventZ { public MonitorEvent some; internal Option_MonitorEventZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_MonitorEventZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionMonitorEventZSomeGetSome(ptr); org.ldk.structs.MonitorEvent some_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_MonitorEventZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_MonitorEventZ containing a crate::lightning::chain::channelmonitor::MonitorEvent */ public static Option_MonitorEventZ some(org.ldk.structs.MonitorEvent o) { - long ret = bindings.COption_MonitorEventZ_some(o.ptr); + long ret = Bindings.COptionMonitorEventZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_MonitorEventZ some(org.ldk.structs.MonitorEvent o) { * Constructs a new COption_MonitorEventZ containing nothing */ public static Option_MonitorEventZ none() { - long ret = bindings.COption_MonitorEventZ_none(); + long ret = Bindings.COptionMonitorEventZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_MonitorEventZ none() { } internal long clone_ptr() { - long ret = bindings.COption_MonitorEventZ_clone_ptr(this.ptr); + long ret = Bindings.COptionMonitorEventZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_MonitorEventZ clone() { - long ret = bindings.COption_MonitorEventZ_clone(this.ptr); + long ret = Bindings.COptionMonitorEventZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_MonitorEventZ ret_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_NetworkUpdateZ.cs b/c_sharp/src/org/ldk/structs/Option_NetworkUpdateZ.cs index a5b3b4f17..2ec4f46b1 100644 --- a/c_sharp/src/org/ldk/structs/Option_NetworkUpdateZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_NetworkUpdateZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_NetworkUpdateZ : CommonBase { protected Option_NetworkUpdateZ(object _dummy, long ptr) : base(ptr) { } ~Option_NetworkUpdateZ() { - if (ptr != 0) { bindings.COption_NetworkUpdateZ_free(ptr); } + if (ptr != 0) { Bindings.COptionNetworkUpdateZFree(ptr); } } internal static Option_NetworkUpdateZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionNetworkUpdateZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_NetworkUpdateZ_Some(ptr); case 1: return new Option_NetworkUpdateZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_NetworkUpdateZ constr_from_ptr(long ptr) { public class Option_NetworkUpdateZ_Some : Option_NetworkUpdateZ { public NetworkUpdate some; internal Option_NetworkUpdateZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_NetworkUpdateZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionNetworkUpdateZSomeGetSome(ptr); org.ldk.structs.NetworkUpdate some_hu_conv = org.ldk.structs.NetworkUpdate.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_NetworkUpdateZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_NetworkUpdateZ containing a crate::lightning::routing::gossip::NetworkUpdate */ public static Option_NetworkUpdateZ some(org.ldk.structs.NetworkUpdate o) { - long ret = bindings.COption_NetworkUpdateZ_some(o.ptr); + long ret = Bindings.COptionNetworkUpdateZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_NetworkUpdateZ ret_hu_conv = org.ldk.structs.Option_NetworkUpdateZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_NetworkUpdateZ some(org.ldk.structs.NetworkUpdate o) { * Constructs a new COption_NetworkUpdateZ containing nothing */ public static Option_NetworkUpdateZ none() { - long ret = bindings.COption_NetworkUpdateZ_none(); + long ret = Bindings.COptionNetworkUpdateZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_NetworkUpdateZ ret_hu_conv = org.ldk.structs.Option_NetworkUpdateZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_NetworkUpdateZ none() { } internal long clone_ptr() { - long ret = bindings.COption_NetworkUpdateZ_clone_ptr(this.ptr); + long ret = Bindings.COptionNetworkUpdateZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_NetworkUpdateZ clone() { - long ret = bindings.COption_NetworkUpdateZ_clone(this.ptr); + long ret = Bindings.COptionNetworkUpdateZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_NetworkUpdateZ ret_hu_conv = org.ldk.structs.Option_NetworkUpdateZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_OffersMessageZ.cs b/c_sharp/src/org/ldk/structs/Option_OffersMessageZ.cs index 88a2c1fa5..50f5d2126 100644 --- a/c_sharp/src/org/ldk/structs/Option_OffersMessageZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_OffersMessageZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_OffersMessageZ : CommonBase { protected Option_OffersMessageZ(object _dummy, long ptr) : base(ptr) { } ~Option_OffersMessageZ() { - if (ptr != 0) { bindings.COption_OffersMessageZ_free(ptr); } + if (ptr != 0) { Bindings.COptionOffersMessageZFree(ptr); } } internal static Option_OffersMessageZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_OffersMessageZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionOffersMessageZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_OffersMessageZ_Some(ptr); case 1: return new Option_OffersMessageZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_OffersMessageZ constr_from_ptr(long ptr) { public class Option_OffersMessageZ_Some : Option_OffersMessageZ { public OffersMessage some; internal Option_OffersMessageZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_OffersMessageZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionOffersMessageZSomeGetSome(ptr); org.ldk.structs.OffersMessage some_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_OffersMessageZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_OffersMessageZ containing a crate::lightning::onion_message::offers::OffersMessage */ public static Option_OffersMessageZ some(org.ldk.structs.OffersMessage o) { - long ret = bindings.COption_OffersMessageZ_some(o.ptr); + long ret = Bindings.COptionOffersMessageZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OffersMessageZ ret_hu_conv = org.ldk.structs.Option_OffersMessageZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_OffersMessageZ some(org.ldk.structs.OffersMessage o) { * Constructs a new COption_OffersMessageZ containing nothing */ public static Option_OffersMessageZ none() { - long ret = bindings.COption_OffersMessageZ_none(); + long ret = Bindings.COptionOffersMessageZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OffersMessageZ ret_hu_conv = org.ldk.structs.Option_OffersMessageZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_OffersMessageZ none() { } internal long clone_ptr() { - long ret = bindings.COption_OffersMessageZ_clone_ptr(this.ptr); + long ret = Bindings.COptionOffersMessageZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_OffersMessageZ clone() { - long ret = bindings.COption_OffersMessageZ_clone(this.ptr); + long ret = Bindings.COptionOffersMessageZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OffersMessageZ ret_hu_conv = org.ldk.structs.Option_OffersMessageZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_OnionMessageContentsZ.cs b/c_sharp/src/org/ldk/structs/Option_OnionMessageContentsZ.cs index 8d6102c27..240301193 100644 --- a/c_sharp/src/org/ldk/structs/Option_OnionMessageContentsZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_OnionMessageContentsZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_OnionMessageContentsZ : CommonBase { protected Option_OnionMessageContentsZ(object _dummy, long ptr) : base(ptr) { } ~Option_OnionMessageContentsZ() { - if (ptr != 0) { bindings.COption_OnionMessageContentsZ_free(ptr); } + if (ptr != 0) { Bindings.COptionOnionMessageContentsZFree(ptr); } } internal static Option_OnionMessageContentsZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_OnionMessageContentsZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionOnionMessageContentsZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_OnionMessageContentsZ_Some(ptr); case 1: return new Option_OnionMessageContentsZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_OnionMessageContentsZ constr_from_ptr(long ptr) { public class Option_OnionMessageContentsZ_Some : Option_OnionMessageContentsZ { public OnionMessageContents some; internal Option_OnionMessageContentsZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_OnionMessageContentsZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionOnionMessageContentsZSomeGetSome(ptr); OnionMessageContents ret_hu_conv = new OnionMessageContents(null, some); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.some = ret_hu_conv; @@ -43,7 +43,7 @@ internal Option_OnionMessageContentsZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_OnionMessageContentsZ containing a crate::lightning::onion_message::packet::OnionMessageContents */ public static Option_OnionMessageContentsZ some(org.ldk.structs.OnionMessageContents o) { - long ret = bindings.COption_OnionMessageContentsZ_some(o.ptr); + long ret = Bindings.COptionOnionMessageContentsZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OnionMessageContentsZ ret_hu_conv = org.ldk.structs.Option_OnionMessageContentsZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_OnionMessageContentsZ some(org.ldk.structs.OnionMessageCont * Constructs a new COption_OnionMessageContentsZ containing nothing */ public static Option_OnionMessageContentsZ none() { - long ret = bindings.COption_OnionMessageContentsZ_none(); + long ret = Bindings.COptionOnionMessageContentsZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OnionMessageContentsZ ret_hu_conv = org.ldk.structs.Option_OnionMessageContentsZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_OnionMessageContentsZ none() { } internal long clone_ptr() { - long ret = bindings.COption_OnionMessageContentsZ_clone_ptr(this.ptr); + long ret = Bindings.COptionOnionMessageContentsZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_OnionMessageContentsZ clone() { - long ret = bindings.COption_OnionMessageContentsZ_clone(this.ptr); + long ret = Bindings.COptionOnionMessageContentsZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_OnionMessageContentsZ ret_hu_conv = org.ldk.structs.Option_OnionMessageContentsZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_PathFailureZ.cs b/c_sharp/src/org/ldk/structs/Option_PathFailureZ.cs index b16753b98..55d20aa6e 100644 --- a/c_sharp/src/org/ldk/structs/Option_PathFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_PathFailureZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_PathFailureZ : CommonBase { protected Option_PathFailureZ(object _dummy, long ptr) : base(ptr) { } ~Option_PathFailureZ() { - if (ptr != 0) { bindings.COption_PathFailureZ_free(ptr); } + if (ptr != 0) { Bindings.COptionPathFailureZFree(ptr); } } internal static Option_PathFailureZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_PathFailureZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionPathFailureZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_PathFailureZ_Some(ptr); case 1: return new Option_PathFailureZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_PathFailureZ constr_from_ptr(long ptr) { public class Option_PathFailureZ_Some : Option_PathFailureZ { public PathFailure some; internal Option_PathFailureZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_PathFailureZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionPathFailureZSomeGetSome(ptr); org.ldk.structs.PathFailure some_hu_conv = org.ldk.structs.PathFailure.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_PathFailureZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_PathFailureZ containing a crate::lightning::events::PathFailure */ public static Option_PathFailureZ some(org.ldk.structs.PathFailure o) { - long ret = bindings.COption_PathFailureZ_some(o.ptr); + long ret = Bindings.COptionPathFailureZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PathFailureZ ret_hu_conv = org.ldk.structs.Option_PathFailureZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_PathFailureZ some(org.ldk.structs.PathFailure o) { * Constructs a new COption_PathFailureZ containing nothing */ public static Option_PathFailureZ none() { - long ret = bindings.COption_PathFailureZ_none(); + long ret = Bindings.COptionPathFailureZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PathFailureZ ret_hu_conv = org.ldk.structs.Option_PathFailureZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_PathFailureZ none() { } internal long clone_ptr() { - long ret = bindings.COption_PathFailureZ_clone_ptr(this.ptr); + long ret = Bindings.COptionPathFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_PathFailureZ clone() { - long ret = bindings.COption_PathFailureZ_clone(this.ptr); + long ret = Bindings.COptionPathFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PathFailureZ ret_hu_conv = org.ldk.structs.Option_PathFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_PaymentFailureReasonZ.cs b/c_sharp/src/org/ldk/structs/Option_PaymentFailureReasonZ.cs index f264ec3cd..4b2582f58 100644 --- a/c_sharp/src/org/ldk/structs/Option_PaymentFailureReasonZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_PaymentFailureReasonZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_PaymentFailureReasonZ : CommonBase { protected Option_PaymentFailureReasonZ(object _dummy, long ptr) : base(ptr) { } ~Option_PaymentFailureReasonZ() { - if (ptr != 0) { bindings.COption_PaymentFailureReasonZ_free(ptr); } + if (ptr != 0) { Bindings.COptionPaymentFailureReasonZFree(ptr); } } internal static Option_PaymentFailureReasonZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_PaymentFailureReasonZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionPaymentFailureReasonZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_PaymentFailureReasonZ_Some(ptr); case 1: return new Option_PaymentFailureReasonZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_PaymentFailureReasonZ constr_from_ptr(long ptr) { public class Option_PaymentFailureReasonZ_Some : Option_PaymentFailureReasonZ { public PaymentFailureReason some; internal Option_PaymentFailureReasonZ_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_PaymentFailureReasonZ_Some_get_some(ptr); + this.some = Bindings.LDKCOptionPaymentFailureReasonZSomeGetSome(ptr); } } /** A Option_PaymentFailureReasonZ of type None */ @@ -40,7 +40,7 @@ internal Option_PaymentFailureReasonZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_PaymentFailureReasonZ containing a crate::lightning::events::PaymentFailureReason */ public static Option_PaymentFailureReasonZ some(PaymentFailureReason o) { - long ret = bindings.COption_PaymentFailureReasonZ_some(o); + long ret = Bindings.COptionPaymentFailureReasonZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PaymentFailureReasonZ ret_hu_conv = org.ldk.structs.Option_PaymentFailureReasonZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_PaymentFailureReasonZ some(PaymentFailureReason o) { * Constructs a new COption_PaymentFailureReasonZ containing nothing */ public static Option_PaymentFailureReasonZ none() { - long ret = bindings.COption_PaymentFailureReasonZ_none(); + long ret = Bindings.COptionPaymentFailureReasonZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PaymentFailureReasonZ ret_hu_conv = org.ldk.structs.Option_PaymentFailureReasonZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_PaymentFailureReasonZ none() { } internal long clone_ptr() { - long ret = bindings.COption_PaymentFailureReasonZ_clone_ptr(this.ptr); + long ret = Bindings.COptionPaymentFailureReasonZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_PaymentFailureReasonZ clone() { - long ret = bindings.COption_PaymentFailureReasonZ_clone(this.ptr); + long ret = Bindings.COptionPaymentFailureReasonZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_PaymentFailureReasonZ ret_hu_conv = org.ldk.structs.Option_PaymentFailureReasonZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_SecretKeyZ.cs b/c_sharp/src/org/ldk/structs/Option_SecretKeyZ.cs index b716b0ba6..0d1ad28fb 100644 --- a/c_sharp/src/org/ldk/structs/Option_SecretKeyZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_SecretKeyZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_SecretKeyZ : CommonBase { protected Option_SecretKeyZ(object _dummy, long ptr) : base(ptr) { } ~Option_SecretKeyZ() { - if (ptr != 0) { bindings.COption_SecretKeyZ_free(ptr); } + if (ptr != 0) { Bindings.COptionSecretKeyZFree(ptr); } } internal static Option_SecretKeyZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_SecretKeyZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionSecretKeyZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_SecretKeyZ_Some(ptr); case 1: return new Option_SecretKeyZ_None(ptr); @@ -28,8 +28,8 @@ internal static Option_SecretKeyZ constr_from_ptr(long ptr) { public class Option_SecretKeyZ_Some : Option_SecretKeyZ { public byte[] some; internal Option_SecretKeyZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_SecretKeyZ_Some_get_some(ptr); - byte[] some_conv = InternalUtils.decodeUint8Array(some); + long some = Bindings.LDKCOptionSecretKeyZSomeGetSome(ptr); + byte[] some_conv = InternalUtils.DecodeUint8Array(some); this.some = some_conv; } } @@ -42,7 +42,7 @@ internal Option_SecretKeyZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_SecretKeyZ containing a crate::c_types::SecretKey */ public static Option_SecretKeyZ some(byte[] o) { - long ret = bindings.COption_SecretKeyZ_some(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.COptionSecretKeyZSome(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SecretKeyZ ret_hu_conv = org.ldk.structs.Option_SecretKeyZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_SecretKeyZ some(byte[] o) { * Constructs a new COption_SecretKeyZ containing nothing */ public static Option_SecretKeyZ none() { - long ret = bindings.COption_SecretKeyZ_none(); + long ret = Bindings.COptionSecretKeyZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SecretKeyZ ret_hu_conv = org.ldk.structs.Option_SecretKeyZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_SecretKeyZ none() { } internal long clone_ptr() { - long ret = bindings.COption_SecretKeyZ_clone_ptr(this.ptr); + long ret = Bindings.COptionSecretKeyZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_SecretKeyZ clone() { - long ret = bindings.COption_SecretKeyZ_clone(this.ptr); + long ret = Bindings.COptionSecretKeyZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SecretKeyZ ret_hu_conv = org.ldk.structs.Option_SecretKeyZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_SocketAddressZ.cs b/c_sharp/src/org/ldk/structs/Option_SocketAddressZ.cs index fda7b85ec..38994733a 100644 --- a/c_sharp/src/org/ldk/structs/Option_SocketAddressZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_SocketAddressZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_SocketAddressZ : CommonBase { protected Option_SocketAddressZ(object _dummy, long ptr) : base(ptr) { } ~Option_SocketAddressZ() { - if (ptr != 0) { bindings.COption_SocketAddressZ_free(ptr); } + if (ptr != 0) { Bindings.COptionSocketAddressZFree(ptr); } } internal static Option_SocketAddressZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_SocketAddressZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionSocketAddressZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_SocketAddressZ_Some(ptr); case 1: return new Option_SocketAddressZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_SocketAddressZ constr_from_ptr(long ptr) { public class Option_SocketAddressZ_Some : Option_SocketAddressZ { public SocketAddress some; internal Option_SocketAddressZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_SocketAddressZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionSocketAddressZSomeGetSome(ptr); org.ldk.structs.SocketAddress some_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(some); if (some_hu_conv != null) { some_hu_conv.ptrs_to.AddLast(this); }; this.some = some_hu_conv; @@ -43,7 +43,7 @@ internal Option_SocketAddressZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_SocketAddressZ containing a crate::lightning::ln::msgs::SocketAddress */ public static Option_SocketAddressZ some(org.ldk.structs.SocketAddress o) { - long ret = bindings.COption_SocketAddressZ_some(o.ptr); + long ret = Bindings.COptionSocketAddressZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SocketAddressZ ret_hu_conv = org.ldk.structs.Option_SocketAddressZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_SocketAddressZ some(org.ldk.structs.SocketAddress o) { * Constructs a new COption_SocketAddressZ containing nothing */ public static Option_SocketAddressZ none() { - long ret = bindings.COption_SocketAddressZ_none(); + long ret = Bindings.COptionSocketAddressZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SocketAddressZ ret_hu_conv = org.ldk.structs.Option_SocketAddressZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_SocketAddressZ none() { } internal long clone_ptr() { - long ret = bindings.COption_SocketAddressZ_clone_ptr(this.ptr); + long ret = Bindings.COptionSocketAddressZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_SocketAddressZ clone() { - long ret = bindings.COption_SocketAddressZ_clone(this.ptr); + long ret = Bindings.COptionSocketAddressZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SocketAddressZ ret_hu_conv = org.ldk.structs.Option_SocketAddressZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_StrZ.cs b/c_sharp/src/org/ldk/structs/Option_StrZ.cs index cf48467f8..ebf41eba8 100644 --- a/c_sharp/src/org/ldk/structs/Option_StrZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_StrZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_StrZ : CommonBase { protected Option_StrZ(object _dummy, long ptr) : base(ptr) { } ~Option_StrZ() { - if (ptr != 0) { bindings.COption_StrZ_free(ptr); } + if (ptr != 0) { Bindings.COptionStrZFree(ptr); } } internal static Option_StrZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_StrZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionStrZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_StrZ_Some(ptr); case 1: return new Option_StrZ_None(ptr); @@ -28,8 +28,8 @@ internal static Option_StrZ constr_from_ptr(long ptr) { public class Option_StrZ_Some : Option_StrZ { public string some; internal Option_StrZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_StrZ_Some_get_some(ptr); - string some_conv = InternalUtils.decodeString(some); + long some = Bindings.LDKCOptionStrZSomeGetSome(ptr); + string some_conv = InternalUtils.DecodeString(some); this.some = some_conv; } } @@ -42,7 +42,7 @@ internal Option_StrZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_StrZ containing a crate::c_types::Str */ public static Option_StrZ some(string o) { - long ret = bindings.COption_StrZ_some(InternalUtils.encodeString(o)); + long ret = Bindings.COptionStrZSome(InternalUtils.EncodeString(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_StrZ ret_hu_conv = org.ldk.structs.Option_StrZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_StrZ some(string o) { * Constructs a new COption_StrZ containing nothing */ public static Option_StrZ none() { - long ret = bindings.COption_StrZ_none(); + long ret = Bindings.COptionStrZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_StrZ ret_hu_conv = org.ldk.structs.Option_StrZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_StrZ none() { } internal long clone_ptr() { - long ret = bindings.COption_StrZ_clone_ptr(this.ptr); + long ret = Bindings.COptionStrZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_StrZ clone() { - long ret = bindings.COption_StrZ_clone(this.ptr); + long ret = Bindings.COptionStrZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_StrZ ret_hu_conv = org.ldk.structs.Option_StrZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_ThirtyTwoBytesZ.cs b/c_sharp/src/org/ldk/structs/Option_ThirtyTwoBytesZ.cs index a8bd27c94..f646ff279 100644 --- a/c_sharp/src/org/ldk/structs/Option_ThirtyTwoBytesZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_ThirtyTwoBytesZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_ThirtyTwoBytesZ : CommonBase { protected Option_ThirtyTwoBytesZ(object _dummy, long ptr) : base(ptr) { } ~Option_ThirtyTwoBytesZ() { - if (ptr != 0) { bindings.COption_ThirtyTwoBytesZ_free(ptr); } + if (ptr != 0) { Bindings.COptionThirtyTwoBytesZFree(ptr); } } internal static Option_ThirtyTwoBytesZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_ThirtyTwoBytesZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionThirtyTwoBytesZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_ThirtyTwoBytesZ_Some(ptr); case 1: return new Option_ThirtyTwoBytesZ_None(ptr); @@ -28,8 +28,8 @@ internal static Option_ThirtyTwoBytesZ constr_from_ptr(long ptr) { public class Option_ThirtyTwoBytesZ_Some : Option_ThirtyTwoBytesZ { public byte[] some; internal Option_ThirtyTwoBytesZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_ThirtyTwoBytesZ_Some_get_some(ptr); - byte[] some_conv = InternalUtils.decodeUint8Array(some); + long some = Bindings.LDKCOptionThirtyTwoBytesZSomeGetSome(ptr); + byte[] some_conv = InternalUtils.DecodeUint8Array(some); this.some = some_conv; } } @@ -42,7 +42,7 @@ internal Option_ThirtyTwoBytesZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_ThirtyTwoBytesZ containing a crate::c_types::ThirtyTwoBytes */ public static Option_ThirtyTwoBytesZ some(byte[] o) { - long ret = bindings.COption_ThirtyTwoBytesZ_some(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.COptionThirtyTwoBytesZSome(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_ThirtyTwoBytesZ some(byte[] o) { * Constructs a new COption_ThirtyTwoBytesZ containing nothing */ public static Option_ThirtyTwoBytesZ none() { - long ret = bindings.COption_ThirtyTwoBytesZ_none(); + long ret = Bindings.COptionThirtyTwoBytesZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_ThirtyTwoBytesZ none() { } internal long clone_ptr() { - long ret = bindings.COption_ThirtyTwoBytesZ_clone_ptr(this.ptr); + long ret = Bindings.COptionThirtyTwoBytesZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_ThirtyTwoBytesZ clone() { - long ret = bindings.COption_ThirtyTwoBytesZ_clone(this.ptr); + long ret = Bindings.COptionThirtyTwoBytesZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_TxOutZ.cs b/c_sharp/src/org/ldk/structs/Option_TxOutZ.cs index 45b9a3bea..6730230c8 100644 --- a/c_sharp/src/org/ldk/structs/Option_TxOutZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_TxOutZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_TxOutZ : CommonBase { protected Option_TxOutZ(object _dummy, long ptr) : base(ptr) { } ~Option_TxOutZ() { - if (ptr != 0) { bindings.COption_TxOutZ_free(ptr); } + if (ptr != 0) { Bindings.COptionTxOutZFree(ptr); } } internal static Option_TxOutZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_TxOutZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionTxOutZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_TxOutZ_Some(ptr); case 1: return new Option_TxOutZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_TxOutZ constr_from_ptr(long ptr) { public class Option_TxOutZ_Some : Option_TxOutZ { public TxOut some; internal Option_TxOutZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_TxOutZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionTxOutZSomeGetSome(ptr); TxOut some_conv = new TxOut(null, some); this.some = some_conv; } @@ -42,7 +42,7 @@ internal Option_TxOutZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_TxOutZ containing a crate::c_types::TxOut */ public static Option_TxOutZ some(org.ldk.structs.TxOut o) { - long ret = bindings.COption_TxOutZ_some(o.ptr); + long ret = Bindings.COptionTxOutZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TxOutZ ret_hu_conv = org.ldk.structs.Option_TxOutZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_TxOutZ some(org.ldk.structs.TxOut o) { * Constructs a new COption_TxOutZ containing nothing */ public static Option_TxOutZ none() { - long ret = bindings.COption_TxOutZ_none(); + long ret = Bindings.COptionTxOutZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TxOutZ ret_hu_conv = org.ldk.structs.Option_TxOutZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_TxOutZ none() { } internal long clone_ptr() { - long ret = bindings.COption_TxOutZ_clone_ptr(this.ptr); + long ret = Bindings.COptionTxOutZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_TxOutZ clone() { - long ret = bindings.COption_TxOutZ_clone(this.ptr); + long ret = Bindings.COptionTxOutZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TxOutZ ret_hu_conv = org.ldk.structs.Option_TxOutZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_TypeZ.cs b/c_sharp/src/org/ldk/structs/Option_TypeZ.cs index 788a87bf8..97e7c4dd9 100644 --- a/c_sharp/src/org/ldk/structs/Option_TypeZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_TypeZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_TypeZ : CommonBase { protected Option_TypeZ(object _dummy, long ptr) : base(ptr) { } ~Option_TypeZ() { - if (ptr != 0) { bindings.COption_TypeZ_free(ptr); } + if (ptr != 0) { Bindings.COptionTypeZFree(ptr); } } internal static Option_TypeZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_TypeZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionTypeZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_TypeZ_Some(ptr); case 1: return new Option_TypeZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_TypeZ constr_from_ptr(long ptr) { public class Option_TypeZ_Some : Option_TypeZ { public Type some; internal Option_TypeZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_TypeZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionTypeZSomeGetSome(ptr); Type ret_hu_conv = new Type(null, some); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.some = ret_hu_conv; @@ -43,7 +43,7 @@ internal Option_TypeZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_TypeZ containing a crate::lightning::ln::wire::Type */ public static Option_TypeZ some(org.ldk.structs.Type o) { - long ret = bindings.COption_TypeZ_some(o.ptr); + long ret = Bindings.COptionTypeZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TypeZ ret_hu_conv = org.ldk.structs.Option_TypeZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_TypeZ some(org.ldk.structs.Type o) { * Constructs a new COption_TypeZ containing nothing */ public static Option_TypeZ none() { - long ret = bindings.COption_TypeZ_none(); + long ret = Bindings.COptionTypeZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TypeZ ret_hu_conv = org.ldk.structs.Option_TypeZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -64,7 +64,7 @@ public static Option_TypeZ none() { } internal long clone_ptr() { - long ret = bindings.COption_TypeZ_clone_ptr(this.ptr); + long ret = Bindings.COptionTypeZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_TypeZ clone() { - long ret = bindings.COption_TypeZ_clone(this.ptr); + long ret = Bindings.COptionTypeZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_TypeZ ret_hu_conv = org.ldk.structs.Option_TypeZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_U128Z.cs b/c_sharp/src/org/ldk/structs/Option_U128Z.cs index d34c8f19e..b8ff5c1f1 100644 --- a/c_sharp/src/org/ldk/structs/Option_U128Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_U128Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_U128Z : CommonBase { protected Option_U128Z(object _dummy, long ptr) : base(ptr) { } ~Option_U128Z() { - if (ptr != 0) { bindings.COption_U128Z_free(ptr); } + if (ptr != 0) { Bindings.COptionU128ZFree(ptr); } } internal static Option_U128Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_U128Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionU128ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_U128Z_Some(ptr); case 1: return new Option_U128Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_U128Z constr_from_ptr(long ptr) { public class Option_U128Z_Some : Option_U128Z { public UInt128 some; internal Option_U128Z_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_U128Z_Some_get_some(ptr); + long some = Bindings.LDKCOptionU128ZSomeGetSome(ptr); org.ldk.util.UInt128 some_conv = new org.ldk.util.UInt128(some); this.some = some_conv; } @@ -42,7 +42,7 @@ internal Option_U128Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_U128Z containing a crate::c_types::U128 */ public static Option_U128Z some(org.ldk.util.UInt128 o) { - long ret = bindings.COption_U128Z_some(InternalUtils.encodeUint8Array(o.getLEBytes())); + long ret = Bindings.COptionU128ZSome(InternalUtils.EncodeUint8Array(o.getLEBytes())); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_U128Z ret_hu_conv = org.ldk.structs.Option_U128Z.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Option_U128Z some(org.ldk.util.UInt128 o) { * Constructs a new COption_U128Z containing nothing */ public static Option_U128Z none() { - long ret = bindings.COption_U128Z_none(); + long ret = Bindings.COptionU128ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_U128Z ret_hu_conv = org.ldk.structs.Option_U128Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -62,7 +62,7 @@ public static Option_U128Z none() { } internal long clone_ptr() { - long ret = bindings.COption_U128Z_clone_ptr(this.ptr); + long ret = Bindings.COptionU128ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_U128Z clone() { - long ret = bindings.COption_U128Z_clone(this.ptr); + long ret = Bindings.COptionU128ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_U128Z ret_hu_conv = org.ldk.structs.Option_U128Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_UtxoLookupZ.cs b/c_sharp/src/org/ldk/structs/Option_UtxoLookupZ.cs index 2f61e23ce..1c9b276f5 100644 --- a/c_sharp/src/org/ldk/structs/Option_UtxoLookupZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_UtxoLookupZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_UtxoLookupZ : CommonBase { protected Option_UtxoLookupZ(object _dummy, long ptr) : base(ptr) { } ~Option_UtxoLookupZ() { - if (ptr != 0) { bindings.COption_UtxoLookupZ_free(ptr); } + if (ptr != 0) { Bindings.COptionUtxoLookupZFree(ptr); } } internal static Option_UtxoLookupZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_UtxoLookupZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionUtxoLookupZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_UtxoLookupZ_Some(ptr); case 1: return new Option_UtxoLookupZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_UtxoLookupZ constr_from_ptr(long ptr) { public class Option_UtxoLookupZ_Some : Option_UtxoLookupZ { public UtxoLookup some; internal Option_UtxoLookupZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_UtxoLookupZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionUtxoLookupZSomeGetSome(ptr); UtxoLookup ret_hu_conv = new UtxoLookup(null, some); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.some = ret_hu_conv; @@ -43,7 +43,7 @@ internal Option_UtxoLookupZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_UtxoLookupZ containing a crate::lightning::routing::utxo::UtxoLookup */ public static Option_UtxoLookupZ some(org.ldk.structs.UtxoLookup o) { - long ret = bindings.COption_UtxoLookupZ_some(o.ptr); + long ret = Bindings.COptionUtxoLookupZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_UtxoLookupZ ret_hu_conv = org.ldk.structs.Option_UtxoLookupZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_UtxoLookupZ some(org.ldk.structs.UtxoLookup o) { * Constructs a new COption_UtxoLookupZ containing nothing */ public static Option_UtxoLookupZ none() { - long ret = bindings.COption_UtxoLookupZ_none(); + long ret = Bindings.COptionUtxoLookupZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_UtxoLookupZ ret_hu_conv = org.ldk.structs.Option_UtxoLookupZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs b/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs index 24bdfeb86..c5f1d415c 100644 --- a/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_WriteableScoreZ : CommonBase { protected Option_WriteableScoreZ(object _dummy, long ptr) : base(ptr) { } ~Option_WriteableScoreZ() { - if (ptr != 0) { bindings.COption_WriteableScoreZ_free(ptr); } + if (ptr != 0) { Bindings.COptionWriteableScoreZFree(ptr); } } internal static Option_WriteableScoreZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_WriteableScoreZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionWriteableScoreZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_WriteableScoreZ_Some(ptr); case 1: return new Option_WriteableScoreZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_WriteableScoreZ constr_from_ptr(long ptr) { public class Option_WriteableScoreZ_Some : Option_WriteableScoreZ { public WriteableScore some; internal Option_WriteableScoreZ_Some(long ptr) : base(null, ptr) { - long some = bindings.LDKCOption_WriteableScoreZ_Some_get_some(ptr); + long some = Bindings.LDKCOptionWriteableScoreZSomeGetSome(ptr); WriteableScore ret_hu_conv = new WriteableScore(null, some); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.some = ret_hu_conv; @@ -43,7 +43,7 @@ internal Option_WriteableScoreZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_WriteableScoreZ containing a crate::lightning::routing::scoring::WriteableScore */ public static Option_WriteableScoreZ some(org.ldk.structs.WriteableScore o) { - long ret = bindings.COption_WriteableScoreZ_some(o.ptr); + long ret = Bindings.COptionWriteableScoreZSome(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_WriteableScoreZ ret_hu_conv = org.ldk.structs.Option_WriteableScoreZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Option_WriteableScoreZ some(org.ldk.structs.WriteableScore o) { * Constructs a new COption_WriteableScoreZ containing nothing */ public static Option_WriteableScoreZ none() { - long ret = bindings.COption_WriteableScoreZ_none(); + long ret = Bindings.COptionWriteableScoreZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_WriteableScoreZ ret_hu_conv = org.ldk.structs.Option_WriteableScoreZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/Option_boolZ.cs b/c_sharp/src/org/ldk/structs/Option_boolZ.cs index 2e06d56fe..5616d192b 100644 --- a/c_sharp/src/org/ldk/structs/Option_boolZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_boolZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_boolZ : CommonBase { protected Option_boolZ(object _dummy, long ptr) : base(ptr) { } ~Option_boolZ() { - if (ptr != 0) { bindings.COption_boolZ_free(ptr); } + if (ptr != 0) { Bindings.COptionBoolzFree(ptr); } } internal static Option_boolZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_boolZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionBoolzTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_boolZ_Some(ptr); case 1: return new Option_boolZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_boolZ constr_from_ptr(long ptr) { public class Option_boolZ_Some : Option_boolZ { public bool some; internal Option_boolZ_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_boolZ_Some_get_some(ptr); + this.some = Bindings.LDKCOptionBoolzSomeGetSome(ptr); } } /** A Option_boolZ of type None */ @@ -40,7 +40,7 @@ internal Option_boolZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_boolZ containing a bool */ public static Option_boolZ some(bool o) { - long ret = bindings.COption_boolZ_some(o); + long ret = Bindings.COptionBoolzSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_boolZ ret_hu_conv = org.ldk.structs.Option_boolZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_boolZ some(bool o) { * Constructs a new COption_boolZ containing nothing */ public static Option_boolZ none() { - long ret = bindings.COption_boolZ_none(); + long ret = Bindings.COptionBoolzNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_boolZ ret_hu_conv = org.ldk.structs.Option_boolZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_boolZ none() { } internal long clone_ptr() { - long ret = bindings.COption_boolZ_clone_ptr(this.ptr); + long ret = Bindings.COptionBoolzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_boolZ clone() { - long ret = bindings.COption_boolZ_clone(this.ptr); + long ret = Bindings.COptionBoolzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_boolZ ret_hu_conv = org.ldk.structs.Option_boolZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_f64Z.cs b/c_sharp/src/org/ldk/structs/Option_f64Z.cs index e5480594e..58c478407 100644 --- a/c_sharp/src/org/ldk/structs/Option_f64Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_f64Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_f64Z : CommonBase { protected Option_f64Z(object _dummy, long ptr) : base(ptr) { } ~Option_f64Z() { - if (ptr != 0) { bindings.COption_f64Z_free(ptr); } + if (ptr != 0) { Bindings.COptionF64ZFree(ptr); } } internal static Option_f64Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_f64Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionF64ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_f64Z_Some(ptr); case 1: return new Option_f64Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_f64Z constr_from_ptr(long ptr) { public class Option_f64Z_Some : Option_f64Z { public double some; internal Option_f64Z_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_f64Z_Some_get_some(ptr); + this.some = Bindings.LDKCOptionF64ZSomeGetSome(ptr); } } /** A Option_f64Z of type None */ @@ -40,7 +40,7 @@ internal Option_f64Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_f64Z containing a f64 */ public static Option_f64Z some(double o) { - long ret = bindings.COption_f64Z_some(o); + long ret = Bindings.COptionF64ZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_f64Z ret_hu_conv = org.ldk.structs.Option_f64Z.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_f64Z some(double o) { * Constructs a new COption_f64Z containing nothing */ public static Option_f64Z none() { - long ret = bindings.COption_f64Z_none(); + long ret = Bindings.COptionF64ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_f64Z ret_hu_conv = org.ldk.structs.Option_f64Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_f64Z none() { } internal long clone_ptr() { - long ret = bindings.COption_f64Z_clone_ptr(this.ptr); + long ret = Bindings.COptionF64ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_f64Z clone() { - long ret = bindings.COption_f64Z_clone(this.ptr); + long ret = Bindings.COptionF64ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_f64Z ret_hu_conv = org.ldk.structs.Option_f64Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_i64Z.cs b/c_sharp/src/org/ldk/structs/Option_i64Z.cs index b7b682ea9..fe997287e 100644 --- a/c_sharp/src/org/ldk/structs/Option_i64Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_i64Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_i64Z : CommonBase { protected Option_i64Z(object _dummy, long ptr) : base(ptr) { } ~Option_i64Z() { - if (ptr != 0) { bindings.COption_i64Z_free(ptr); } + if (ptr != 0) { Bindings.COptionI64ZFree(ptr); } } internal static Option_i64Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_i64Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionI64ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_i64Z_Some(ptr); case 1: return new Option_i64Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_i64Z constr_from_ptr(long ptr) { public class Option_i64Z_Some : Option_i64Z { public long some; internal Option_i64Z_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_i64Z_Some_get_some(ptr); + this.some = Bindings.LDKCOptionI64ZSomeGetSome(ptr); } } /** A Option_i64Z of type None */ @@ -40,7 +40,7 @@ internal Option_i64Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_i64Z containing a i64 */ public static Option_i64Z some(long o) { - long ret = bindings.COption_i64Z_some(o); + long ret = Bindings.COptionI64ZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_i64Z ret_hu_conv = org.ldk.structs.Option_i64Z.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_i64Z some(long o) { * Constructs a new COption_i64Z containing nothing */ public static Option_i64Z none() { - long ret = bindings.COption_i64Z_none(); + long ret = Bindings.COptionI64ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_i64Z ret_hu_conv = org.ldk.structs.Option_i64Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_i64Z none() { } internal long clone_ptr() { - long ret = bindings.COption_i64Z_clone_ptr(this.ptr); + long ret = Bindings.COptionI64ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_i64Z clone() { - long ret = bindings.COption_i64Z_clone(this.ptr); + long ret = Bindings.COptionI64ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_i64Z ret_hu_conv = org.ldk.structs.Option_i64Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_u16Z.cs b/c_sharp/src/org/ldk/structs/Option_u16Z.cs index b5ea67dbc..294583bf1 100644 --- a/c_sharp/src/org/ldk/structs/Option_u16Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_u16Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_u16Z : CommonBase { protected Option_u16Z(object _dummy, long ptr) : base(ptr) { } ~Option_u16Z() { - if (ptr != 0) { bindings.COption_u16Z_free(ptr); } + if (ptr != 0) { Bindings.COptionU16ZFree(ptr); } } internal static Option_u16Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_u16Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionU16ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_u16Z_Some(ptr); case 1: return new Option_u16Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_u16Z constr_from_ptr(long ptr) { public class Option_u16Z_Some : Option_u16Z { public short some; internal Option_u16Z_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_u16Z_Some_get_some(ptr); + this.some = Bindings.LDKCOptionU16ZSomeGetSome(ptr); } } /** A Option_u16Z of type None */ @@ -40,7 +40,7 @@ internal Option_u16Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_u16Z containing a u16 */ public static Option_u16Z some(short o) { - long ret = bindings.COption_u16Z_some(o); + long ret = Bindings.COptionU16ZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_u16Z some(short o) { * Constructs a new COption_u16Z containing nothing */ public static Option_u16Z none() { - long ret = bindings.COption_u16Z_none(); + long ret = Bindings.COptionU16ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_u16Z none() { } internal long clone_ptr() { - long ret = bindings.COption_u16Z_clone_ptr(this.ptr); + long ret = Bindings.COptionU16ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_u16Z clone() { - long ret = bindings.COption_u16Z_clone(this.ptr); + long ret = Bindings.COptionU16ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u16Z ret_hu_conv = org.ldk.structs.Option_u16Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_u32Z.cs b/c_sharp/src/org/ldk/structs/Option_u32Z.cs index 9d94b8a98..28e34550a 100644 --- a/c_sharp/src/org/ldk/structs/Option_u32Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_u32Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_u32Z : CommonBase { protected Option_u32Z(object _dummy, long ptr) : base(ptr) { } ~Option_u32Z() { - if (ptr != 0) { bindings.COption_u32Z_free(ptr); } + if (ptr != 0) { Bindings.COptionU32ZFree(ptr); } } internal static Option_u32Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_u32Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionU32ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_u32Z_Some(ptr); case 1: return new Option_u32Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_u32Z constr_from_ptr(long ptr) { public class Option_u32Z_Some : Option_u32Z { public int some; internal Option_u32Z_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_u32Z_Some_get_some(ptr); + this.some = Bindings.LDKCOptionU32ZSomeGetSome(ptr); } } /** A Option_u32Z of type None */ @@ -40,7 +40,7 @@ internal Option_u32Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_u32Z containing a u32 */ public static Option_u32Z some(int o) { - long ret = bindings.COption_u32Z_some(o); + long ret = Bindings.COptionU32ZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_u32Z some(int o) { * Constructs a new COption_u32Z containing nothing */ public static Option_u32Z none() { - long ret = bindings.COption_u32Z_none(); + long ret = Bindings.COptionU32ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_u32Z none() { } internal long clone_ptr() { - long ret = bindings.COption_u32Z_clone_ptr(this.ptr); + long ret = Bindings.COptionU32ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_u32Z clone() { - long ret = bindings.COption_u32Z_clone(this.ptr); + long ret = Bindings.COptionU32ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_u64Z.cs b/c_sharp/src/org/ldk/structs/Option_u64Z.cs index 409537daf..ab3724bed 100644 --- a/c_sharp/src/org/ldk/structs/Option_u64Z.cs +++ b/c_sharp/src/org/ldk/structs/Option_u64Z.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_u64Z : CommonBase { protected Option_u64Z(object _dummy, long ptr) : base(ptr) { } ~Option_u64Z() { - if (ptr != 0) { bindings.COption_u64Z_free(ptr); } + if (ptr != 0) { Bindings.COptionU64ZFree(ptr); } } internal static Option_u64Z constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_u64Z_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionU64ZTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_u64Z_Some(ptr); case 1: return new Option_u64Z_None(ptr); @@ -28,7 +28,7 @@ internal static Option_u64Z constr_from_ptr(long ptr) { public class Option_u64Z_Some : Option_u64Z { public long some; internal Option_u64Z_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_u64Z_Some_get_some(ptr); + this.some = Bindings.LDKCOptionU64ZSomeGetSome(ptr); } } /** A Option_u64Z of type None */ @@ -40,7 +40,7 @@ internal Option_u64Z_None(long ptr) : base(null, ptr) { * Constructs a new COption_u64Z containing a u64 */ public static Option_u64Z some(long o) { - long ret = bindings.COption_u64Z_some(o); + long ret = Bindings.COptionU64ZSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_u64Z some(long o) { * Constructs a new COption_u64Z containing nothing */ public static Option_u64Z none() { - long ret = bindings.COption_u64Z_none(); + long ret = Bindings.COptionU64ZNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_u64Z none() { } internal long clone_ptr() { - long ret = bindings.COption_u64Z_clone_ptr(this.ptr); + long ret = Bindings.COptionU64ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_u64Z clone() { - long ret = bindings.COption_u64Z_clone(this.ptr); + long ret = Bindings.COptionU64ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Option_usizeZ.cs b/c_sharp/src/org/ldk/structs/Option_usizeZ.cs index da79fdcaf..747de857c 100644 --- a/c_sharp/src/org/ldk/structs/Option_usizeZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_usizeZ.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Option_usizeZ : CommonBase { protected Option_usizeZ(object _dummy, long ptr) : base(ptr) { } ~Option_usizeZ() { - if (ptr != 0) { bindings.COption_usizeZ_free(ptr); } + if (ptr != 0) { Bindings.COptionUsizezFree(ptr); } } internal static Option_usizeZ constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKCOption_usizeZ_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKCOptionUsizezTyFromPtr(ptr); switch (raw_ty) { case 0: return new Option_usizeZ_Some(ptr); case 1: return new Option_usizeZ_None(ptr); @@ -28,7 +28,7 @@ internal static Option_usizeZ constr_from_ptr(long ptr) { public class Option_usizeZ_Some : Option_usizeZ { public long some; internal Option_usizeZ_Some(long ptr) : base(null, ptr) { - this.some = bindings.LDKCOption_usizeZ_Some_get_some(ptr); + this.some = Bindings.LDKCOptionUsizezSomeGetSome(ptr); } } /** A Option_usizeZ of type None */ @@ -40,7 +40,7 @@ internal Option_usizeZ_None(long ptr) : base(null, ptr) { * Constructs a new COption_usizeZ containing a usize */ public static Option_usizeZ some(long o) { - long ret = bindings.COption_usizeZ_some(o); + long ret = Bindings.COptionUsizezSome(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_usizeZ ret_hu_conv = org.ldk.structs.Option_usizeZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Option_usizeZ some(long o) { * Constructs a new COption_usizeZ containing nothing */ public static Option_usizeZ none() { - long ret = bindings.COption_usizeZ_none(); + long ret = Bindings.COptionUsizezNone(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_usizeZ ret_hu_conv = org.ldk.structs.Option_usizeZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static Option_usizeZ none() { } internal long clone_ptr() { - long ret = bindings.COption_usizeZ_clone_ptr(this.ptr); + long ret = Bindings.COptionUsizezClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Option_usizeZ clone() { - long ret = bindings.COption_usizeZ_clone(this.ptr); + long ret = Bindings.COptionUsizezClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_usizeZ ret_hu_conv = org.ldk.structs.Option_usizeZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/OutPoint.cs b/c_sharp/src/org/ldk/structs/OutPoint.cs index 2d01d0a24..f5064ee50 100644 --- a/c_sharp/src/org/ldk/structs/OutPoint.cs +++ b/c_sharp/src/org/ldk/structs/OutPoint.cs @@ -15,17 +15,17 @@ namespace org { namespace ldk { namespace structs { public class OutPoint : CommonBase { internal OutPoint(object _dummy, long ptr) : base(ptr) { } ~OutPoint() { - if (ptr != 0) { bindings.OutPoint_free(ptr); } + if (ptr != 0) { Bindings.OutPointFree(ptr); } } /** * The referenced transaction's txid. */ public byte[] get_txid() { - long ret = bindings.OutPoint_get_txid(this.ptr); + long ret = Bindings.OutPointGetTxid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -33,7 +33,7 @@ public byte[] get_txid() { * The referenced transaction's txid. */ public void set_txid(byte[] val) { - bindings.OutPoint_set_txid(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.OutPointSetTxid(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -42,7 +42,7 @@ public void set_txid(byte[] val) { * The index of the referenced output in its transaction's vout. */ public short get_index() { - short ret = bindings.OutPoint_get_index(this.ptr); + short ret = Bindings.OutPointGetIndex(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ public short get_index() { * The index of the referenced output in its transaction's vout. */ public void set_index(short val) { - bindings.OutPoint_set_index(this.ptr, val); + Bindings.OutPointSetIndex(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -60,7 +60,7 @@ public void set_index(short val) { * Constructs a new OutPoint given each field */ public static OutPoint of(byte[] txid_arg, short index_arg) { - long ret = bindings.OutPoint_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(txid_arg, 32)), index_arg); + long ret = Bindings.OutPointNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(txid_arg, 32)), index_arg); GC.KeepAlive(txid_arg); GC.KeepAlive(index_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -70,7 +70,7 @@ public static OutPoint of(byte[] txid_arg, short index_arg) { } internal long clone_ptr() { - long ret = bindings.OutPoint_clone_ptr(this.ptr); + long ret = Bindings.OutPointClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -79,7 +79,7 @@ internal long clone_ptr() { * Creates a copy of the OutPoint */ public OutPoint clone() { - long ret = bindings.OutPoint_clone(this.ptr); + long ret = Bindings.OutPointClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -93,7 +93,7 @@ public OutPoint clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.OutPoint b) { - bool ret = bindings.OutPoint_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.OutPointEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -108,7 +108,7 @@ public override bool Equals(object o) { * Generates a non-cryptographic 64-bit hash of the OutPoint. */ public long hash() { - long ret = bindings.OutPoint_hash(this.ptr); + long ret = Bindings.OutPointHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -120,10 +120,10 @@ public override int GetHashCode() { * Convert an `OutPoint` to a lightning channel id. */ public byte[] to_channel_id() { - long ret = bindings.OutPoint_to_channel_id(this.ptr); + long ret = Bindings.OutPointToChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -131,10 +131,10 @@ public byte[] to_channel_id() { * Serialize the OutPoint object into a byte array which can be read by OutPoint_read */ public byte[] write() { - long ret = bindings.OutPoint_write(this.ptr); + long ret = Bindings.OutPointWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -142,7 +142,7 @@ public byte[] write() { * Read a OutPoint from a byte array, created by OutPoint_write */ public static Result_OutPointDecodeErrorZ read(byte[] ser) { - long ret = bindings.OutPoint_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.OutPointRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/P2PGossipSync.cs b/c_sharp/src/org/ldk/structs/P2PGossipSync.cs index 8fc4eb5e1..04dc42235 100644 --- a/c_sharp/src/org/ldk/structs/P2PGossipSync.cs +++ b/c_sharp/src/org/ldk/structs/P2PGossipSync.cs @@ -16,7 +16,7 @@ namespace org { namespace ldk { namespace structs { public class P2PGossipSync : CommonBase { internal P2PGossipSync(object _dummy, long ptr) : base(ptr) { } ~P2PGossipSync() { - if (ptr != 0) { bindings.P2PGossipSync_free(ptr); } + if (ptr != 0) { Bindings.P2PGossipSyncFree(ptr); } } /** @@ -26,7 +26,7 @@ internal P2PGossipSync(object _dummy, long ptr) : base(ptr) { } * correct, and the announcement is signed with channel owners' keys. */ public static P2PGossipSync of(org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.Option_UtxoLookupZ utxo_lookup, org.ldk.structs.Logger logger) { - long ret = bindings.P2PGossipSync_new(network_graph == null ? 0 : network_graph.ptr, utxo_lookup.ptr, logger.ptr); + long ret = Bindings.P2PGossipSyncNew(network_graph == null ? 0 : network_graph.ptr, utxo_lookup.ptr, logger.ptr); GC.KeepAlive(network_graph); GC.KeepAlive(utxo_lookup); GC.KeepAlive(logger); @@ -45,7 +45,7 @@ public static P2PGossipSync of(org.ldk.structs.NetworkGraph network_graph, org.l * Add, update or remove the provider would replace the current one. */ public void add_utxo_lookup(org.ldk.structs.Option_UtxoLookupZ utxo_lookup) { - bindings.P2PGossipSync_add_utxo_lookup(this.ptr, utxo_lookup.ptr); + Bindings.P2PGossipSyncAddUtxoLookup(this.ptr, utxo_lookup.ptr); GC.KeepAlive(this); GC.KeepAlive(utxo_lookup); if (this != null) { this.ptrs_to.AddLast(utxo_lookup); }; @@ -56,7 +56,7 @@ public void add_utxo_lookup(org.ldk.structs.Option_UtxoLookupZ utxo_lookup) { * This copies the `inner` pointer in this_arg and thus the returned RoutingMessageHandler must be freed before this_arg is */ public RoutingMessageHandler as_RoutingMessageHandler() { - long ret = bindings.P2PGossipSync_as_RoutingMessageHandler(this.ptr); + long ret = Bindings.P2PGossipSyncAsRoutingMessageHandler(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } RoutingMessageHandler ret_hu_conv = new RoutingMessageHandler(null, ret); @@ -69,7 +69,7 @@ public RoutingMessageHandler as_RoutingMessageHandler() { * This copies the `inner` pointer in this_arg and thus the returned MessageSendEventsProvider must be freed before this_arg is */ public MessageSendEventsProvider as_MessageSendEventsProvider() { - long ret = bindings.P2PGossipSync_as_MessageSendEventsProvider(this.ptr); + long ret = Bindings.P2PGossipSyncAsMessageSendEventsProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } MessageSendEventsProvider ret_hu_conv = new MessageSendEventsProvider(null, ret); diff --git a/c_sharp/src/org/ldk/structs/Packet.cs b/c_sharp/src/org/ldk/structs/Packet.cs index ca6ec26f5..06b9290aa 100644 --- a/c_sharp/src/org/ldk/structs/Packet.cs +++ b/c_sharp/src/org/ldk/structs/Packet.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class Packet : CommonBase { internal Packet(object _dummy, long ptr) : base(ptr) { } ~Packet() { - if (ptr != 0) { bindings.Packet_free(ptr); } + if (ptr != 0) { Bindings.PacketFree(ptr); } } /** * Bolt 04 version number */ public byte get_version() { - byte ret = bindings.Packet_get_version(this.ptr); + byte ret = Bindings.PacketGetVersion(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public byte get_version() { * Bolt 04 version number */ public void set_version(byte val) { - bindings.Packet_set_version(this.ptr, val); + Bindings.PacketSetVersion(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -37,10 +37,10 @@ public void set_version(byte val) { * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data */ public byte[] get_public_key() { - long ret = bindings.Packet_get_public_key(this.ptr); + long ret = Bindings.PacketGetPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -48,7 +48,7 @@ public byte[] get_public_key() { * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data */ public void set_public_key(byte[] val) { - bindings.Packet_set_public_key(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.PacketSetPublicKey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,10 +59,10 @@ public void set_public_key(byte[] val) { * Returns a copy of the field. */ public byte[] get_hop_data() { - long ret = bindings.Packet_get_hop_data(this.ptr); + long ret = Bindings.PacketGetHopData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -70,7 +70,7 @@ public byte[] get_hop_data() { * Encrypted payload for the next hop */ public void set_hop_data(byte[] val) { - bindings.Packet_set_hop_data(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.PacketSetHopData(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,10 +79,10 @@ public void set_hop_data(byte[] val) { * HMAC to verify the integrity of hop_data */ public byte[] get_hmac() { - long ret = bindings.Packet_get_hmac(this.ptr); + long ret = Bindings.PacketGetHmac(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -90,7 +90,7 @@ public byte[] get_hmac() { * HMAC to verify the integrity of hop_data */ public void set_hmac(byte[] val) { - bindings.Packet_set_hmac(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.PacketSetHmac(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_hmac(byte[] val) { * Constructs a new Packet given each field */ public static Packet of(byte version_arg, byte[] public_key_arg, byte[] hop_data_arg, byte[] hmac_arg) { - long ret = bindings.Packet_new(version_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(public_key_arg, 33)), InternalUtils.encodeUint8Array(hop_data_arg), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(hmac_arg, 32))); + long ret = Bindings.PacketNew(version_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(public_key_arg, 33)), InternalUtils.EncodeUint8Array(hop_data_arg), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(hmac_arg, 32))); GC.KeepAlive(version_arg); GC.KeepAlive(public_key_arg); GC.KeepAlive(hop_data_arg); @@ -111,7 +111,7 @@ public static Packet of(byte version_arg, byte[] public_key_arg, byte[] hop_data } internal long clone_ptr() { - long ret = bindings.Packet_clone_ptr(this.ptr); + long ret = Bindings.PacketClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -120,7 +120,7 @@ internal long clone_ptr() { * Creates a copy of the Packet */ public Packet clone() { - long ret = bindings.Packet_clone(this.ptr); + long ret = Bindings.PacketClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Packet ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Packet(null, ret); } @@ -132,7 +132,7 @@ public Packet clone() { * Generates a non-cryptographic 64-bit hash of the Packet. */ public long hash() { - long ret = bindings.Packet_hash(this.ptr); + long ret = Bindings.PacketHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -146,7 +146,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Packet b) { - bool ret = bindings.Packet_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PacketEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -161,10 +161,10 @@ public override bool Equals(object o) { * Serialize the Packet object into a byte array which can be read by Packet_read */ public byte[] write() { - long ret = bindings.Packet_write(this.ptr); + long ret = Bindings.PacketWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs index d1f27fd37..843ced31d 100644 --- a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs +++ b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class ParseOrSemanticError : CommonBase { protected ParseOrSemanticError(object _dummy, long ptr) : base(ptr) { } ~ParseOrSemanticError() { - if (ptr != 0) { bindings.ParseOrSemanticError_free(ptr); } + if (ptr != 0) { Bindings.ParseOrSemanticErrorFree(ptr); } } internal static ParseOrSemanticError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKParseOrSemanticError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKParseOrSemanticErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new ParseOrSemanticError_ParseError(ptr); case 1: return new ParseOrSemanticError_SemanticError(ptr); @@ -30,7 +30,7 @@ internal static ParseOrSemanticError constr_from_ptr(long ptr) { public class ParseOrSemanticError_ParseError : ParseOrSemanticError { public Bolt11ParseError parse_error; internal ParseOrSemanticError_ParseError(long ptr) : base(null, ptr) { - long parse_error = bindings.LDKParseOrSemanticError_ParseError_get_parse_error(ptr); + long parse_error = Bindings.LDKParseOrSemanticErrorParseErrorGetParseError(ptr); org.ldk.structs.Bolt11ParseError parse_error_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(parse_error); if (parse_error_hu_conv != null) { parse_error_hu_conv.ptrs_to.AddLast(this); }; this.parse_error = parse_error_hu_conv; @@ -40,11 +40,11 @@ internal ParseOrSemanticError_ParseError(long ptr) : base(null, ptr) { public class ParseOrSemanticError_SemanticError : ParseOrSemanticError { public Bolt11SemanticError semantic_error; internal ParseOrSemanticError_SemanticError(long ptr) : base(null, ptr) { - this.semantic_error = bindings.LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr); + this.semantic_error = Bindings.LDKParseOrSemanticErrorSemanticErrorGetSemanticError(ptr); } } internal long clone_ptr() { - long ret = bindings.ParseOrSemanticError_clone_ptr(this.ptr); + long ret = Bindings.ParseOrSemanticErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -53,7 +53,7 @@ internal long clone_ptr() { * Creates a copy of the ParseOrSemanticError */ public ParseOrSemanticError clone() { - long ret = bindings.ParseOrSemanticError_clone(this.ptr); + long ret = Bindings.ParseOrSemanticErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParseOrSemanticError ret_hu_conv = org.ldk.structs.ParseOrSemanticError.constr_from_ptr(ret); @@ -65,7 +65,7 @@ public ParseOrSemanticError clone() { * Utility method to constructs a new ParseError-variant ParseOrSemanticError */ public static ParseOrSemanticError parse_error(org.ldk.structs.Bolt11ParseError a) { - long ret = bindings.ParseOrSemanticError_parse_error(a.ptr); + long ret = Bindings.ParseOrSemanticErrorParseError(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParseOrSemanticError ret_hu_conv = org.ldk.structs.ParseOrSemanticError.constr_from_ptr(ret); @@ -78,7 +78,7 @@ public static ParseOrSemanticError parse_error(org.ldk.structs.Bolt11ParseError * Utility method to constructs a new SemanticError-variant ParseOrSemanticError */ public static ParseOrSemanticError semantic_error(Bolt11SemanticError a) { - long ret = bindings.ParseOrSemanticError_semantic_error(a); + long ret = Bindings.ParseOrSemanticErrorSemanticError(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParseOrSemanticError ret_hu_conv = org.ldk.structs.ParseOrSemanticError.constr_from_ptr(ret); @@ -91,7 +91,7 @@ public static ParseOrSemanticError semantic_error(Bolt11SemanticError a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.ParseOrSemanticError b) { - bool ret = bindings.ParseOrSemanticError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ParseOrSemanticErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -105,10 +105,10 @@ public override bool Equals(object o) { * Get the string representation of a ParseOrSemanticError object */ public string to_str() { - long ret = bindings.ParseOrSemanticError_to_str(this.ptr); + long ret = Bindings.ParseOrSemanticErrorToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ParsedOnionMessageContents.cs b/c_sharp/src/org/ldk/structs/ParsedOnionMessageContents.cs index 9bf441fdf..e8cb7f747 100644 --- a/c_sharp/src/org/ldk/structs/ParsedOnionMessageContents.cs +++ b/c_sharp/src/org/ldk/structs/ParsedOnionMessageContents.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class ParsedOnionMessageContents : CommonBase { protected ParsedOnionMessageContents(object _dummy, long ptr) : base(ptr) { } ~ParsedOnionMessageContents() { - if (ptr != 0) { bindings.ParsedOnionMessageContents_free(ptr); } + if (ptr != 0) { Bindings.ParsedOnionMessageContentsFree(ptr); } } internal static ParsedOnionMessageContents constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKParsedOnionMessageContents_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKParsedOnionMessageContentsTyFromPtr(ptr); switch (raw_ty) { case 0: return new ParsedOnionMessageContents_Offers(ptr); case 1: return new ParsedOnionMessageContents_Custom(ptr); @@ -30,7 +30,7 @@ internal static ParsedOnionMessageContents constr_from_ptr(long ptr) { public class ParsedOnionMessageContents_Offers : ParsedOnionMessageContents { public OffersMessage offers; internal ParsedOnionMessageContents_Offers(long ptr) : base(null, ptr) { - long offers = bindings.LDKParsedOnionMessageContents_Offers_get_offers(ptr); + long offers = Bindings.LDKParsedOnionMessageContentsOffersGetOffers(ptr); org.ldk.structs.OffersMessage offers_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(offers); if (offers_hu_conv != null) { offers_hu_conv.ptrs_to.AddLast(this); }; this.offers = offers_hu_conv; @@ -40,14 +40,14 @@ internal ParsedOnionMessageContents_Offers(long ptr) : base(null, ptr) { public class ParsedOnionMessageContents_Custom : ParsedOnionMessageContents { public OnionMessageContents custom; internal ParsedOnionMessageContents_Custom(long ptr) : base(null, ptr) { - long custom = bindings.LDKParsedOnionMessageContents_Custom_get_custom(ptr); + long custom = Bindings.LDKParsedOnionMessageContentsCustomGetCustom(ptr); OnionMessageContents ret_hu_conv = new OnionMessageContents(null, custom); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.custom = ret_hu_conv; } } internal long clone_ptr() { - long ret = bindings.ParsedOnionMessageContents_clone_ptr(this.ptr); + long ret = Bindings.ParsedOnionMessageContentsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -56,7 +56,7 @@ internal long clone_ptr() { * Creates a copy of the ParsedOnionMessageContents */ public ParsedOnionMessageContents clone() { - long ret = bindings.ParsedOnionMessageContents_clone(this.ptr); + long ret = Bindings.ParsedOnionMessageContentsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParsedOnionMessageContents ret_hu_conv = org.ldk.structs.ParsedOnionMessageContents.constr_from_ptr(ret); @@ -68,7 +68,7 @@ public ParsedOnionMessageContents clone() { * Utility method to constructs a new Offers-variant ParsedOnionMessageContents */ public static ParsedOnionMessageContents offers(org.ldk.structs.OffersMessage a) { - long ret = bindings.ParsedOnionMessageContents_offers(a.ptr); + long ret = Bindings.ParsedOnionMessageContentsOffers(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParsedOnionMessageContents ret_hu_conv = org.ldk.structs.ParsedOnionMessageContents.constr_from_ptr(ret); @@ -81,7 +81,7 @@ public static ParsedOnionMessageContents offers(org.ldk.structs.OffersMessage a) * Utility method to constructs a new Custom-variant ParsedOnionMessageContents */ public static ParsedOnionMessageContents custom(org.ldk.structs.OnionMessageContents a) { - long ret = bindings.ParsedOnionMessageContents_custom(a.ptr); + long ret = Bindings.ParsedOnionMessageContentsCustom(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParsedOnionMessageContents ret_hu_conv = org.ldk.structs.ParsedOnionMessageContents.constr_from_ptr(ret); @@ -95,7 +95,7 @@ public static ParsedOnionMessageContents custom(org.ldk.structs.OnionMessageCont * This copies the `inner` pointer in this_arg and thus the returned OnionMessageContents must be freed before this_arg is */ public OnionMessageContents as_OnionMessageContents() { - long ret = bindings.ParsedOnionMessageContents_as_OnionMessageContents(this.ptr); + long ret = Bindings.ParsedOnionMessageContentsAsOnionMessageContents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageContents ret_hu_conv = new OnionMessageContents(null, ret); @@ -107,10 +107,10 @@ public OnionMessageContents as_OnionMessageContents() { * Serialize the ParsedOnionMessageContents object into a byte array which can be read by ParsedOnionMessageContents_read */ public byte[] write() { - long ret = bindings.ParsedOnionMessageContents_write(this.ptr); + long ret = Bindings.ParsedOnionMessageContentsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Path.cs b/c_sharp/src/org/ldk/structs/Path.cs index 05eadf00b..4bdfa77d0 100644 --- a/c_sharp/src/org/ldk/structs/Path.cs +++ b/c_sharp/src/org/ldk/structs/Path.cs @@ -13,25 +13,25 @@ namespace org { namespace ldk { namespace structs { public class Path : CommonBase { internal Path(object _dummy, long ptr) : base(ptr) { } ~Path() { - if (ptr != 0) { bindings.Path_free(ptr); } + if (ptr != 0) { Bindings.PathFree(ptr); } } /** * The list of unblinded hops in this [`Path`]. Must be at least length one. */ public RouteHop[] get_hops() { - long ret = bindings.Path_get_hops(this.ptr); + long ret = Bindings.PathGetHops(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_10_len = InternalUtils.getArrayLength(ret); + int ret_conv_10_len = InternalUtils.GetArrayLength(ret); RouteHop[] ret_conv_10_arr = new RouteHop[ret_conv_10_len]; for (int k = 0; k < ret_conv_10_len; k++) { - long ret_conv_10 = InternalUtils.getU64ArrayElem(ret, k); + long ret_conv_10 = InternalUtils.GetU64ArrayElem(ret, k); org.ldk.structs.RouteHop ret_conv_10_hu_conv = null; if (ret_conv_10 < 0 || ret_conv_10 > 4096) { ret_conv_10_hu_conv = new org.ldk.structs.RouteHop(null, ret_conv_10); } if (ret_conv_10_hu_conv != null) { ret_conv_10_hu_conv.ptrs_to.AddLast(this); }; ret_conv_10_arr[k] = ret_conv_10_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_10_arr; } @@ -39,7 +39,7 @@ public RouteHop[] get_hops() { * The list of unblinded hops in this [`Path`]. Must be at least length one. */ public void set_hops(RouteHop[] val) { - bindings.Path_set_hops(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_10 => val_conv_10 == null ? 0 : val_conv_10.ptr))); + Bindings.PathSetHops(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_10 => val_conv_10 == null ? 0 : val_conv_10.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (RouteHop val_conv_10 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_10); }; }; @@ -51,7 +51,7 @@ public void set_hops(RouteHop[] val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public BlindedTail get_blinded_tail() { - long ret = bindings.Path_get_blinded_tail(this.ptr); + long ret = Bindings.PathGetBlindedTail(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedTail ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedTail(null, ret); } @@ -65,7 +65,7 @@ public BlindedTail get_blinded_tail() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_blinded_tail(org.ldk.structs.BlindedTail val) { - bindings.Path_set_blinded_tail(this.ptr, val == null ? 0 : val.ptr); + Bindings.PathSetBlindedTail(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -77,7 +77,7 @@ public void set_blinded_tail(org.ldk.structs.BlindedTail val) { * Note that blinded_tail_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static Path of(RouteHop[] hops_arg, org.ldk.structs.BlindedTail blinded_tail_arg) { - long ret = bindings.Path_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(hops_arg, hops_arg_conv_10 => hops_arg_conv_10 == null ? 0 : hops_arg_conv_10.ptr)), blinded_tail_arg == null ? 0 : blinded_tail_arg.ptr); + long ret = Bindings.PathNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(hops_arg, hops_arg_conv_10 => hops_arg_conv_10 == null ? 0 : hops_arg_conv_10.ptr)), blinded_tail_arg == null ? 0 : blinded_tail_arg.ptr); GC.KeepAlive(hops_arg); GC.KeepAlive(blinded_tail_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -89,7 +89,7 @@ public static Path of(RouteHop[] hops_arg, org.ldk.structs.BlindedTail blinded_t } internal long clone_ptr() { - long ret = bindings.Path_clone_ptr(this.ptr); + long ret = Bindings.PathClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -98,7 +98,7 @@ internal long clone_ptr() { * Creates a copy of the Path */ public Path clone() { - long ret = bindings.Path_clone(this.ptr); + long ret = Bindings.PathClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Path ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Path(null, ret); } @@ -110,7 +110,7 @@ public Path clone() { * Generates a non-cryptographic 64-bit hash of the Path. */ public long hash() { - long ret = bindings.Path_hash(this.ptr); + long ret = Bindings.PathHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -124,7 +124,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Path b) { - bool ret = bindings.Path_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PathEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -139,7 +139,7 @@ public override bool Equals(object o) { * Gets the fees for a given path, excluding any excess paid to the recipient. */ public long fee_msat() { - long ret = bindings.Path_fee_msat(this.ptr); + long ret = Bindings.PathFeeMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -148,7 +148,7 @@ public long fee_msat() { * Gets the total amount paid on this [`Path`], excluding the fees. */ public long final_value_msat() { - long ret = bindings.Path_final_value_msat(this.ptr); + long ret = Bindings.PathFinalValueMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -157,7 +157,7 @@ public long final_value_msat() { * Gets the final hop's CLTV expiry delta. */ public Option_u32Z final_cltv_expiry_delta() { - long ret = bindings.Path_final_cltv_expiry_delta(this.ptr); + long ret = Bindings.PathFinalCltvExpiryDelta(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u32Z ret_hu_conv = org.ldk.structs.Option_u32Z.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PathFailure.cs b/c_sharp/src/org/ldk/structs/PathFailure.cs index 598915210..12093bc0e 100644 --- a/c_sharp/src/org/ldk/structs/PathFailure.cs +++ b/c_sharp/src/org/ldk/structs/PathFailure.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class PathFailure : CommonBase { protected PathFailure(object _dummy, long ptr) : base(ptr) { } ~PathFailure() { - if (ptr != 0) { bindings.PathFailure_free(ptr); } + if (ptr != 0) { Bindings.PathFailureFree(ptr); } } internal static PathFailure constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPathFailure_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPathFailureTyFromPtr(ptr); switch (raw_ty) { case 0: return new PathFailure_InitialSend(ptr); case 1: return new PathFailure_OnPath(ptr); @@ -35,7 +35,7 @@ public class PathFailure_InitialSend : PathFailure { */ public APIError err; internal PathFailure_InitialSend(long ptr) : base(null, ptr) { - long err = bindings.LDKPathFailure_InitialSend_get_err(ptr); + long err = Bindings.LDKPathFailureInitialSendGetErr(ptr); org.ldk.structs.APIError err_hu_conv = org.ldk.structs.APIError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -52,14 +52,14 @@ public class PathFailure_OnPath : PathFailure { */ public Option_NetworkUpdateZ network_update; internal PathFailure_OnPath(long ptr) : base(null, ptr) { - long network_update = bindings.LDKPathFailure_OnPath_get_network_update(ptr); + long network_update = Bindings.LDKPathFailureOnPathGetNetworkUpdate(ptr); org.ldk.structs.Option_NetworkUpdateZ network_update_hu_conv = org.ldk.structs.Option_NetworkUpdateZ.constr_from_ptr(network_update); if (network_update_hu_conv != null) { network_update_hu_conv.ptrs_to.AddLast(this); }; this.network_update = network_update_hu_conv; } } internal long clone_ptr() { - long ret = bindings.PathFailure_clone_ptr(this.ptr); + long ret = Bindings.PathFailureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ internal long clone_ptr() { * Creates a copy of the PathFailure */ public PathFailure clone() { - long ret = bindings.PathFailure_clone(this.ptr); + long ret = Bindings.PathFailureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PathFailure ret_hu_conv = org.ldk.structs.PathFailure.constr_from_ptr(ret); @@ -80,7 +80,7 @@ public PathFailure clone() { * Utility method to constructs a new InitialSend-variant PathFailure */ public static PathFailure initial_send(org.ldk.structs.APIError err) { - long ret = bindings.PathFailure_initial_send(err.ptr); + long ret = Bindings.PathFailureInitialSend(err.ptr); GC.KeepAlive(err); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PathFailure ret_hu_conv = org.ldk.structs.PathFailure.constr_from_ptr(ret); @@ -93,7 +93,7 @@ public static PathFailure initial_send(org.ldk.structs.APIError err) { * Utility method to constructs a new OnPath-variant PathFailure */ public static PathFailure on_path(org.ldk.structs.Option_NetworkUpdateZ network_update) { - long ret = bindings.PathFailure_on_path(network_update.ptr); + long ret = Bindings.PathFailureOnPath(network_update.ptr); GC.KeepAlive(network_update); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PathFailure ret_hu_conv = org.ldk.structs.PathFailure.constr_from_ptr(ret); @@ -107,7 +107,7 @@ public static PathFailure on_path(org.ldk.structs.Option_NetworkUpdateZ network_ * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.PathFailure b) { - bool ret = bindings.PathFailure_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PathFailureEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -121,10 +121,10 @@ public override bool Equals(object o) { * Serialize the PathFailure object into a byte array which can be read by PathFailure_read */ public byte[] write() { - long ret = bindings.PathFailure_write(this.ptr); + long ret = Bindings.PathFailureWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/Payee.cs b/c_sharp/src/org/ldk/structs/Payee.cs index 69b6a4a26..8780a25f1 100644 --- a/c_sharp/src/org/ldk/structs/Payee.cs +++ b/c_sharp/src/org/ldk/structs/Payee.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Payee : CommonBase { protected Payee(object _dummy, long ptr) : base(ptr) { } ~Payee() { - if (ptr != 0) { bindings.Payee_free(ptr); } + if (ptr != 0) { Bindings.PayeeFree(ptr); } } internal static Payee constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPayee_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPayeeTyFromPtr(ptr); switch (raw_ty) { case 0: return new Payee_Blinded(ptr); case 1: return new Payee_Clear(ptr); @@ -42,18 +42,18 @@ public class Payee_Blinded : Payee { */ public Bolt12InvoiceFeatures features; internal Payee_Blinded(long ptr) : base(null, ptr) { - long route_hints = bindings.LDKPayee_Blinded_get_route_hints(ptr); - int route_hints_conv_37_len = InternalUtils.getArrayLength(route_hints); + long route_hints = Bindings.LDKPayeeBlindedGetRouteHints(ptr); + int route_hints_conv_37_len = InternalUtils.GetArrayLength(route_hints); TwoTuple_BlindedPayInfoBlindedPathZ[] route_hints_conv_37_arr = new TwoTuple_BlindedPayInfoBlindedPathZ[route_hints_conv_37_len]; for (int l = 0; l < route_hints_conv_37_len; l++) { - long route_hints_conv_37 = InternalUtils.getU64ArrayElem(route_hints, l); + long route_hints_conv_37 = InternalUtils.GetU64ArrayElem(route_hints, l); TwoTuple_BlindedPayInfoBlindedPathZ route_hints_conv_37_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, route_hints_conv_37); if (route_hints_conv_37_hu_conv != null) { route_hints_conv_37_hu_conv.ptrs_to.AddLast(this); }; route_hints_conv_37_arr[l] = route_hints_conv_37_hu_conv; } - bindings.free_buffer(route_hints); + Bindings.FreeBuffer(route_hints); this.route_hints = route_hints_conv_37_arr; - long features = bindings.LDKPayee_Blinded_get_features(ptr); + long features = Bindings.LDKPayeeBlindedGetFeatures(ptr); org.ldk.structs.Bolt12InvoiceFeatures features_hu_conv = null; if (features < 0 || features > 4096) { features_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, features); } if (features_hu_conv != null) { features_hu_conv.ptrs_to.AddLast(this); }; this.features = features_hu_conv; @@ -85,29 +85,29 @@ public class Payee_Clear : Payee { */ public int final_cltv_expiry_delta; internal Payee_Clear(long ptr) : base(null, ptr) { - long node_id = bindings.LDKPayee_Clear_get_node_id(ptr); - byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id); + long node_id = Bindings.LDKPayeeClearGetNodeId(ptr); + byte[] node_id_conv = InternalUtils.DecodeUint8Array(node_id); this.node_id = node_id_conv; - long route_hints = bindings.LDKPayee_Clear_get_route_hints(ptr); - int route_hints_conv_11_len = InternalUtils.getArrayLength(route_hints); + long route_hints = Bindings.LDKPayeeClearGetRouteHints(ptr); + int route_hints_conv_11_len = InternalUtils.GetArrayLength(route_hints); RouteHint[] route_hints_conv_11_arr = new RouteHint[route_hints_conv_11_len]; for (int l = 0; l < route_hints_conv_11_len; l++) { - long route_hints_conv_11 = InternalUtils.getU64ArrayElem(route_hints, l); + long route_hints_conv_11 = InternalUtils.GetU64ArrayElem(route_hints, l); org.ldk.structs.RouteHint route_hints_conv_11_hu_conv = null; if (route_hints_conv_11 < 0 || route_hints_conv_11 > 4096) { route_hints_conv_11_hu_conv = new org.ldk.structs.RouteHint(null, route_hints_conv_11); } if (route_hints_conv_11_hu_conv != null) { route_hints_conv_11_hu_conv.ptrs_to.AddLast(this); }; route_hints_conv_11_arr[l] = route_hints_conv_11_hu_conv; } - bindings.free_buffer(route_hints); + Bindings.FreeBuffer(route_hints); this.route_hints = route_hints_conv_11_arr; - long features = bindings.LDKPayee_Clear_get_features(ptr); + long features = Bindings.LDKPayeeClearGetFeatures(ptr); org.ldk.structs.Bolt11InvoiceFeatures features_hu_conv = null; if (features < 0 || features > 4096) { features_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, features); } if (features_hu_conv != null) { features_hu_conv.ptrs_to.AddLast(this); }; this.features = features_hu_conv; - this.final_cltv_expiry_delta = bindings.LDKPayee_Clear_get_final_cltv_expiry_delta(ptr); + this.final_cltv_expiry_delta = Bindings.LDKPayeeClearGetFinalCltvExpiryDelta(ptr); } } internal long clone_ptr() { - long ret = bindings.Payee_clone_ptr(this.ptr); + long ret = Bindings.PayeeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -116,7 +116,7 @@ internal long clone_ptr() { * Creates a copy of the Payee */ public Payee clone() { - long ret = bindings.Payee_clone(this.ptr); + long ret = Bindings.PayeeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Payee ret_hu_conv = org.ldk.structs.Payee.constr_from_ptr(ret); @@ -128,7 +128,7 @@ public Payee clone() { * Utility method to constructs a new Blinded-variant Payee */ public static Payee blinded(TwoTuple_BlindedPayInfoBlindedPathZ[] route_hints, org.ldk.structs.Bolt12InvoiceFeatures features) { - long ret = bindings.Payee_blinded(InternalUtils.encodeUint64Array(InternalUtils.mapArray(route_hints, route_hints_conv_37 => route_hints_conv_37 != null ? route_hints_conv_37.ptr : 0)), features == null ? 0 : features.ptr); + long ret = Bindings.PayeeBlinded(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(route_hints, route_hints_conv_37 => route_hints_conv_37 != null ? route_hints_conv_37.ptr : 0)), features == null ? 0 : features.ptr); GC.KeepAlive(route_hints); GC.KeepAlive(features); if (ret >= 0 && ret <= 4096) { return null; } @@ -142,7 +142,7 @@ public static Payee blinded(TwoTuple_BlindedPayInfoBlindedPathZ[] route_hints, o * Utility method to constructs a new Clear-variant Payee */ public static Payee clear(byte[] node_id, RouteHint[] route_hints, org.ldk.structs.Bolt11InvoiceFeatures features, int final_cltv_expiry_delta) { - long ret = bindings.Payee_clear(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(route_hints, route_hints_conv_11 => route_hints_conv_11 == null ? 0 : route_hints_conv_11.ptr)), features == null ? 0 : features.ptr, final_cltv_expiry_delta); + long ret = Bindings.PayeeClear(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(route_hints, route_hints_conv_11 => route_hints_conv_11 == null ? 0 : route_hints_conv_11.ptr)), features == null ? 0 : features.ptr, final_cltv_expiry_delta); GC.KeepAlive(node_id); GC.KeepAlive(route_hints); GC.KeepAlive(features); @@ -159,7 +159,7 @@ public static Payee clear(byte[] node_id, RouteHint[] route_hints, org.ldk.struc * Generates a non-cryptographic 64-bit hash of the Payee. */ public long hash() { - long ret = bindings.Payee_hash(this.ptr); + long ret = Bindings.PayeeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -172,7 +172,7 @@ public override int GetHashCode() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Payee b) { - bool ret = bindings.Payee_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PayeeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/PayeePubKey.cs b/c_sharp/src/org/ldk/structs/PayeePubKey.cs index 46a18c1ea..181d724c5 100644 --- a/c_sharp/src/org/ldk/structs/PayeePubKey.cs +++ b/c_sharp/src/org/ldk/structs/PayeePubKey.cs @@ -12,19 +12,19 @@ namespace org { namespace ldk { namespace structs { public class PayeePubKey : CommonBase { internal PayeePubKey(object _dummy, long ptr) : base(ptr) { } ~PayeePubKey() { - if (ptr != 0) { bindings.PayeePubKey_free(ptr); } + if (ptr != 0) { Bindings.PayeePubKeyFree(ptr); } } public byte[] get_a() { - long ret = bindings.PayeePubKey_get_a(this.ptr); + long ret = Bindings.PayeePubKeyGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.PayeePubKey_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.PayeePubKeySetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -33,7 +33,7 @@ public void set_a(byte[] val) { * Constructs a new PayeePubKey given each field */ public static PayeePubKey of(byte[] a_arg) { - long ret = bindings.PayeePubKey_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.PayeePubKeyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PayeePubKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PayeePubKey(null, ret); } @@ -42,7 +42,7 @@ public static PayeePubKey of(byte[] a_arg) { } internal long clone_ptr() { - long ret = bindings.PayeePubKey_clone_ptr(this.ptr); + long ret = Bindings.PayeePubKeyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ internal long clone_ptr() { * Creates a copy of the PayeePubKey */ public PayeePubKey clone() { - long ret = bindings.PayeePubKey_clone(this.ptr); + long ret = Bindings.PayeePubKeyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PayeePubKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PayeePubKey(null, ret); } @@ -63,7 +63,7 @@ public PayeePubKey clone() { * Generates a non-cryptographic 64-bit hash of the PayeePubKey. */ public long hash() { - long ret = bindings.PayeePubKey_hash(this.ptr); + long ret = Bindings.PayeePubKeyHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -77,7 +77,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.PayeePubKey b) { - bool ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PayeePubKeyEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; diff --git a/c_sharp/src/org/ldk/structs/PaymentConstraints.cs b/c_sharp/src/org/ldk/structs/PaymentConstraints.cs index 543e935d0..3e144f872 100644 --- a/c_sharp/src/org/ldk/structs/PaymentConstraints.cs +++ b/c_sharp/src/org/ldk/structs/PaymentConstraints.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class PaymentConstraints : CommonBase { internal PaymentConstraints(object _dummy, long ptr) : base(ptr) { } ~PaymentConstraints() { - if (ptr != 0) { bindings.PaymentConstraints_free(ptr); } + if (ptr != 0) { Bindings.PaymentConstraintsFree(ptr); } } /** * The maximum total CLTV that is acceptable when relaying a payment over this [`BlindedHop`]. */ public int get_max_cltv_expiry() { - int ret = bindings.PaymentConstraints_get_max_cltv_expiry(this.ptr); + int ret = Bindings.PaymentConstraintsGetMaxCltvExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,7 +30,7 @@ public int get_max_cltv_expiry() { * The maximum total CLTV that is acceptable when relaying a payment over this [`BlindedHop`]. */ public void set_max_cltv_expiry(int val) { - bindings.PaymentConstraints_set_max_cltv_expiry(this.ptr, val); + Bindings.PaymentConstraintsSetMaxCltvExpiry(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_max_cltv_expiry(int val) { * [`BlindedHop`]. */ public long get_htlc_minimum_msat() { - long ret = bindings.PaymentConstraints_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.PaymentConstraintsGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_htlc_minimum_msat() { * [`BlindedHop`]. */ public void set_htlc_minimum_msat(long val) { - bindings.PaymentConstraints_set_htlc_minimum_msat(this.ptr, val); + Bindings.PaymentConstraintsSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_htlc_minimum_msat(long val) { * Constructs a new PaymentConstraints given each field */ public static PaymentConstraints of(int max_cltv_expiry_arg, long htlc_minimum_msat_arg) { - long ret = bindings.PaymentConstraints_new(max_cltv_expiry_arg, htlc_minimum_msat_arg); + long ret = Bindings.PaymentConstraintsNew(max_cltv_expiry_arg, htlc_minimum_msat_arg); GC.KeepAlive(max_cltv_expiry_arg); GC.KeepAlive(htlc_minimum_msat_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -69,7 +69,7 @@ public static PaymentConstraints of(int max_cltv_expiry_arg, long htlc_minimum_m } internal long clone_ptr() { - long ret = bindings.PaymentConstraints_clone_ptr(this.ptr); + long ret = Bindings.PaymentConstraintsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * Creates a copy of the PaymentConstraints */ public PaymentConstraints clone() { - long ret = bindings.PaymentConstraints_clone(this.ptr); + long ret = Bindings.PaymentConstraintsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentConstraints ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentConstraints(null, ret); } @@ -90,10 +90,10 @@ public PaymentConstraints clone() { * Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read */ public byte[] write() { - long ret = bindings.PaymentConstraints_write(this.ptr); + long ret = Bindings.PaymentConstraintsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -101,7 +101,7 @@ public byte[] write() { * Read a PaymentConstraints from a byte array, created by PaymentConstraints_write */ public static Result_PaymentConstraintsDecodeErrorZ read(byte[] ser) { - long ret = bindings.PaymentConstraints_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PaymentConstraintsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentConstraintsDecodeErrorZ ret_hu_conv = Result_PaymentConstraintsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PaymentParameters.cs b/c_sharp/src/org/ldk/structs/PaymentParameters.cs index 3f38ad62c..6c8761687 100644 --- a/c_sharp/src/org/ldk/structs/PaymentParameters.cs +++ b/c_sharp/src/org/ldk/structs/PaymentParameters.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class PaymentParameters : CommonBase { internal PaymentParameters(object _dummy, long ptr) : base(ptr) { } ~PaymentParameters() { - if (ptr != 0) { bindings.PaymentParameters_free(ptr); } + if (ptr != 0) { Bindings.PaymentParametersFree(ptr); } } /** * Information about the payee, such as their features and route hints for their channels. */ public Payee get_payee() { - long ret = bindings.PaymentParameters_get_payee(this.ptr); + long ret = Bindings.PaymentParametersGetPayee(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Payee ret_hu_conv = org.ldk.structs.Payee.constr_from_ptr(ret); @@ -31,7 +31,7 @@ public Payee get_payee() { * Information about the payee, such as their features and route hints for their channels. */ public void set_payee(org.ldk.structs.Payee val) { - bindings.PaymentParameters_set_payee(this.ptr, val.ptr); + Bindings.PaymentParametersSetPayee(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -41,7 +41,7 @@ public void set_payee(org.ldk.structs.Payee val) { * Expiration of a payment to the payee, in seconds relative to the UNIX epoch. */ public Option_u64Z get_expiry_time() { - long ret = bindings.PaymentParameters_get_expiry_time(this.ptr); + long ret = Bindings.PaymentParametersGetExpiryTime(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -53,7 +53,7 @@ public Option_u64Z get_expiry_time() { * Expiration of a payment to the payee, in seconds relative to the UNIX epoch. */ public void set_expiry_time(org.ldk.structs.Option_u64Z val) { - bindings.PaymentParameters_set_expiry_time(this.ptr, val.ptr); + Bindings.PaymentParametersSetExpiryTime(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -64,7 +64,7 @@ public void set_expiry_time(org.ldk.structs.Option_u64Z val) { * Defaults to [`DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA`]. */ public int get_max_total_cltv_expiry_delta() { - int ret = bindings.PaymentParameters_get_max_total_cltv_expiry_delta(this.ptr); + int ret = Bindings.PaymentParametersGetMaxTotalCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ public int get_max_total_cltv_expiry_delta() { * Defaults to [`DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA`]. */ public void set_max_total_cltv_expiry_delta(int val) { - bindings.PaymentParameters_set_max_total_cltv_expiry_delta(this.ptr, val); + Bindings.PaymentParametersSetMaxTotalCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -84,7 +84,7 @@ public void set_max_total_cltv_expiry_delta(int val) { * Defaults to [`DEFAULT_MAX_PATH_COUNT`]. */ public byte get_max_path_count() { - byte ret = bindings.PaymentParameters_get_max_path_count(this.ptr); + byte ret = Bindings.PaymentParametersGetMaxPathCount(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,7 +94,7 @@ public byte get_max_path_count() { * Defaults to [`DEFAULT_MAX_PATH_COUNT`]. */ public void set_max_path_count(byte val) { - bindings.PaymentParameters_set_max_path_count(this.ptr, val); + Bindings.PaymentParametersSetMaxPathCount(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,7 +115,7 @@ public void set_max_path_count(byte val) { * Default value: 2 */ public byte get_max_channel_saturation_power_of_half() { - byte ret = bindings.PaymentParameters_get_max_channel_saturation_power_of_half(this.ptr); + byte ret = Bindings.PaymentParametersGetMaxChannelSaturationPowerOfHalf(this.ptr); GC.KeepAlive(this); return ret; } @@ -136,7 +136,7 @@ public byte get_max_channel_saturation_power_of_half() { * Default value: 2 */ public void set_max_channel_saturation_power_of_half(byte val) { - bindings.PaymentParameters_set_max_channel_saturation_power_of_half(this.ptr, val); + Bindings.PaymentParametersSetMaxChannelSaturationPowerOfHalf(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -149,10 +149,10 @@ public void set_max_channel_saturation_power_of_half(byte val) { * Returns a copy of the field. */ public long[] get_previously_failed_channels() { - long ret = bindings.PaymentParameters_get_previously_failed_channels(this.ptr); + long ret = Bindings.PaymentParametersGetPreviouslyFailedChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -162,7 +162,7 @@ public long[] get_previously_failed_channels() { * these SCIDs. */ public void set_previously_failed_channels(long[] val) { - bindings.PaymentParameters_set_previously_failed_channels(this.ptr, InternalUtils.encodeUint64Array(val)); + Bindings.PaymentParametersSetPreviouslyFailedChannels(this.ptr, InternalUtils.EncodeUint64Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -175,10 +175,10 @@ public void set_previously_failed_channels(long[] val) { * Returns a copy of the field. */ public long[] get_previously_failed_blinded_path_idxs() { - long ret = bindings.PaymentParameters_get_previously_failed_blinded_path_idxs(this.ptr); + long ret = Bindings.PaymentParametersGetPreviouslyFailedBlindedPathIdxs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -188,7 +188,7 @@ public long[] get_previously_failed_blinded_path_idxs() { * for the same payment shouldn't be relayed through any of these blinded paths. */ public void set_previously_failed_blinded_path_idxs(long[] val) { - bindings.PaymentParameters_set_previously_failed_blinded_path_idxs(this.ptr, InternalUtils.encodeUint64Array(val)); + Bindings.PaymentParametersSetPreviouslyFailedBlindedPathIdxs(this.ptr, InternalUtils.EncodeUint64Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -197,7 +197,7 @@ public void set_previously_failed_blinded_path_idxs(long[] val) { * Constructs a new PaymentParameters given each field */ public static PaymentParameters of(org.ldk.structs.Payee payee_arg, org.ldk.structs.Option_u64Z expiry_time_arg, int max_total_cltv_expiry_delta_arg, byte max_path_count_arg, byte max_channel_saturation_power_of_half_arg, long[] previously_failed_channels_arg, long[] previously_failed_blinded_path_idxs_arg) { - long ret = bindings.PaymentParameters_new(payee_arg.ptr, expiry_time_arg.ptr, max_total_cltv_expiry_delta_arg, max_path_count_arg, max_channel_saturation_power_of_half_arg, InternalUtils.encodeUint64Array(previously_failed_channels_arg), InternalUtils.encodeUint64Array(previously_failed_blinded_path_idxs_arg)); + long ret = Bindings.PaymentParametersNew(payee_arg.ptr, expiry_time_arg.ptr, max_total_cltv_expiry_delta_arg, max_path_count_arg, max_channel_saturation_power_of_half_arg, InternalUtils.EncodeUint64Array(previously_failed_channels_arg), InternalUtils.EncodeUint64Array(previously_failed_blinded_path_idxs_arg)); GC.KeepAlive(payee_arg); GC.KeepAlive(expiry_time_arg); GC.KeepAlive(max_total_cltv_expiry_delta_arg); @@ -214,7 +214,7 @@ public static PaymentParameters of(org.ldk.structs.Payee payee_arg, org.ldk.stru } internal long clone_ptr() { - long ret = bindings.PaymentParameters_clone_ptr(this.ptr); + long ret = Bindings.PaymentParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -223,7 +223,7 @@ internal long clone_ptr() { * Creates a copy of the PaymentParameters */ public PaymentParameters clone() { - long ret = bindings.PaymentParameters_clone(this.ptr); + long ret = Bindings.PaymentParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentParameters(null, ret); } @@ -235,7 +235,7 @@ public PaymentParameters clone() { * Generates a non-cryptographic 64-bit hash of the PaymentParameters. */ public long hash() { - long ret = bindings.PaymentParameters_hash(this.ptr); + long ret = Bindings.PaymentParametersHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -249,7 +249,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.PaymentParameters b) { - bool ret = bindings.PaymentParameters_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PaymentParametersEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -264,10 +264,10 @@ public override bool Equals(object o) { * Serialize the PaymentParameters object into a byte array which can be read by PaymentParameters_read */ public byte[] write() { - long ret = bindings.PaymentParameters_write(this.ptr); + long ret = Bindings.PaymentParametersWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -275,7 +275,7 @@ public byte[] write() { * Read a PaymentParameters from a byte array, created by PaymentParameters_write */ public static Result_PaymentParametersDecodeErrorZ read(byte[] ser, int arg) { - long ret = bindings.PaymentParameters_read(InternalUtils.encodeUint8Array(ser), arg); + long ret = Bindings.PaymentParametersRead(InternalUtils.EncodeUint8Array(ser), arg); GC.KeepAlive(ser); GC.KeepAlive(arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -290,7 +290,7 @@ public static Result_PaymentParametersDecodeErrorZ read(byte[] ser, int arg) { * provided. */ public static PaymentParameters from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta) { - long ret = bindings.PaymentParameters_from_node_id(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payee_pubkey, 33)), final_cltv_expiry_delta); + long ret = Bindings.PaymentParametersFromNodeId(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payee_pubkey, 33)), final_cltv_expiry_delta); GC.KeepAlive(payee_pubkey); GC.KeepAlive(final_cltv_expiry_delta); if (ret >= 0 && ret <= 4096) { return null; } @@ -313,7 +313,7 @@ public static PaymentParameters from_node_id(byte[] payee_pubkey, int final_cltv * [`RecipientOnionFields::secret_only`]: crate::ln::channelmanager::RecipientOnionFields::secret_only */ public static PaymentParameters for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta, bool allow_mpp) { - long ret = bindings.PaymentParameters_for_keysend(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payee_pubkey, 33)), final_cltv_expiry_delta, allow_mpp); + long ret = Bindings.PaymentParametersForKeysend(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payee_pubkey, 33)), final_cltv_expiry_delta, allow_mpp); GC.KeepAlive(payee_pubkey); GC.KeepAlive(final_cltv_expiry_delta); GC.KeepAlive(allow_mpp); @@ -329,7 +329,7 @@ public static PaymentParameters for_keysend(byte[] payee_pubkey, int final_cltv_ * [`PaymentParameters::expiry_time`]. */ public static PaymentParameters from_bolt12_invoice(org.ldk.structs.Bolt12Invoice invoice) { - long ret = bindings.PaymentParameters_from_bolt12_invoice(invoice == null ? 0 : invoice.ptr); + long ret = Bindings.PaymentParametersFromBolt12Invoice(invoice == null ? 0 : invoice.ptr); GC.KeepAlive(invoice); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentParameters(null, ret); } @@ -342,7 +342,7 @@ public static PaymentParameters from_bolt12_invoice(org.ldk.structs.Bolt12Invoic * Creates parameters for paying to a blinded payee from the provided blinded route hints. */ public static PaymentParameters blinded(TwoTuple_BlindedPayInfoBlindedPathZ[] blinded_route_hints) { - long ret = bindings.PaymentParameters_blinded(InternalUtils.encodeUint64Array(InternalUtils.mapArray(blinded_route_hints, blinded_route_hints_conv_37 => blinded_route_hints_conv_37 != null ? blinded_route_hints_conv_37.ptr : 0))); + long ret = Bindings.PaymentParametersBlinded(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(blinded_route_hints, blinded_route_hints_conv_37 => blinded_route_hints_conv_37 != null ? blinded_route_hints_conv_37.ptr : 0))); GC.KeepAlive(blinded_route_hints); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentParameters(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/PaymentPurpose.cs b/c_sharp/src/org/ldk/structs/PaymentPurpose.cs index 242ead86c..3a37d148a 100644 --- a/c_sharp/src/org/ldk/structs/PaymentPurpose.cs +++ b/c_sharp/src/org/ldk/structs/PaymentPurpose.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class PaymentPurpose : CommonBase { protected PaymentPurpose(object _dummy, long ptr) : base(ptr) { } ~PaymentPurpose() { - if (ptr != 0) { bindings.PaymentPurpose_free(ptr); } + if (ptr != 0) { Bindings.PaymentPurposeFree(ptr); } } internal static PaymentPurpose constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPaymentPurpose_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPaymentPurposeTyFromPtr(ptr); switch (raw_ty) { case 0: return new PaymentPurpose_InvoicePayment(ptr); case 1: return new PaymentPurpose_SpontaneousPayment(ptr); @@ -50,12 +50,12 @@ public class PaymentPurpose_InvoicePayment : PaymentPurpose { */ public byte[] payment_secret; internal PaymentPurpose_InvoicePayment(long ptr) : base(null, ptr) { - long payment_preimage = bindings.LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr); + long payment_preimage = Bindings.LDKPaymentPurposeInvoicePaymentGetPaymentPreimage(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ payment_preimage_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(payment_preimage); if (payment_preimage_hu_conv != null) { payment_preimage_hu_conv.ptrs_to.AddLast(this); }; this.payment_preimage = payment_preimage_hu_conv; - long payment_secret = bindings.LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr); - byte[] payment_secret_conv = InternalUtils.decodeUint8Array(payment_secret); + long payment_secret = Bindings.LDKPaymentPurposeInvoicePaymentGetPaymentSecret(ptr); + byte[] payment_secret_conv = InternalUtils.DecodeUint8Array(payment_secret); this.payment_secret = payment_secret_conv; } } @@ -63,13 +63,13 @@ internal PaymentPurpose_InvoicePayment(long ptr) : base(null, ptr) { public class PaymentPurpose_SpontaneousPayment : PaymentPurpose { public byte[] spontaneous_payment; internal PaymentPurpose_SpontaneousPayment(long ptr) : base(null, ptr) { - long spontaneous_payment = bindings.LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr); - byte[] spontaneous_payment_conv = InternalUtils.decodeUint8Array(spontaneous_payment); + long spontaneous_payment = Bindings.LDKPaymentPurposeSpontaneousPaymentGetSpontaneousPayment(ptr); + byte[] spontaneous_payment_conv = InternalUtils.DecodeUint8Array(spontaneous_payment); this.spontaneous_payment = spontaneous_payment_conv; } } internal long clone_ptr() { - long ret = bindings.PaymentPurpose_clone_ptr(this.ptr); + long ret = Bindings.PaymentPurposeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * Creates a copy of the PaymentPurpose */ public PaymentPurpose clone() { - long ret = bindings.PaymentPurpose_clone(this.ptr); + long ret = Bindings.PaymentPurposeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentPurpose ret_hu_conv = org.ldk.structs.PaymentPurpose.constr_from_ptr(ret); @@ -90,7 +90,7 @@ public PaymentPurpose clone() { * Utility method to constructs a new InvoicePayment-variant PaymentPurpose */ public static PaymentPurpose invoice_payment(org.ldk.structs.Option_ThirtyTwoBytesZ payment_preimage, byte[] payment_secret) { - long ret = bindings.PaymentPurpose_invoice_payment(payment_preimage.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_secret, 32))); + long ret = Bindings.PaymentPurposeInvoicePayment(payment_preimage.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_secret, 32))); GC.KeepAlive(payment_preimage); GC.KeepAlive(payment_secret); if (ret >= 0 && ret <= 4096) { return null; } @@ -104,7 +104,7 @@ public static PaymentPurpose invoice_payment(org.ldk.structs.Option_ThirtyTwoByt * Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose */ public static PaymentPurpose spontaneous_payment(byte[] a) { - long ret = bindings.PaymentPurpose_spontaneous_payment(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32))); + long ret = Bindings.PaymentPurposeSpontaneousPayment(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentPurpose ret_hu_conv = org.ldk.structs.PaymentPurpose.constr_from_ptr(ret); @@ -117,7 +117,7 @@ public static PaymentPurpose spontaneous_payment(byte[] a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.PaymentPurpose b) { - bool ret = bindings.PaymentPurpose_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PaymentPurposeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -131,7 +131,7 @@ public override bool Equals(object o) { * Returns the preimage for this payment, if it is known. */ public Option_ThirtyTwoBytesZ preimage() { - long ret = bindings.PaymentPurpose_preimage(this.ptr); + long ret = Bindings.PaymentPurposePreimage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -143,10 +143,10 @@ public Option_ThirtyTwoBytesZ preimage() { * Serialize the PaymentPurpose object into a byte array which can be read by PaymentPurpose_read */ public byte[] write() { - long ret = bindings.PaymentPurpose_write(this.ptr); + long ret = Bindings.PaymentPurposeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -154,7 +154,7 @@ public byte[] write() { * Read a PaymentPurpose from a byte array, created by PaymentPurpose_write */ public static Result_PaymentPurposeDecodeErrorZ read(byte[] ser) { - long ret = bindings.PaymentPurpose_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PaymentPurposeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentPurposeDecodeErrorZ ret_hu_conv = Result_PaymentPurposeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PaymentRelay.cs b/c_sharp/src/org/ldk/structs/PaymentRelay.cs index 2ad21075b..49f884d6f 100644 --- a/c_sharp/src/org/ldk/structs/PaymentRelay.cs +++ b/c_sharp/src/org/ldk/structs/PaymentRelay.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class PaymentRelay : CommonBase { internal PaymentRelay(object _dummy, long ptr) : base(ptr) { } ~PaymentRelay() { - if (ptr != 0) { bindings.PaymentRelay_free(ptr); } + if (ptr != 0) { Bindings.PaymentRelayFree(ptr); } } /** * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. */ public short get_cltv_expiry_delta() { - short ret = bindings.PaymentRelay_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.PaymentRelayGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,7 +30,7 @@ public short get_cltv_expiry_delta() { * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. */ public void set_cltv_expiry_delta(short val) { - bindings.PaymentRelay_set_cltv_expiry_delta(this.ptr, val); + Bindings.PaymentRelaySetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_cltv_expiry_delta(short val) { * this [`BlindedHop`], (i.e., 10,000 is 1%). */ public int get_fee_proportional_millionths() { - int ret = bindings.PaymentRelay_get_fee_proportional_millionths(this.ptr); + int ret = Bindings.PaymentRelayGetFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public int get_fee_proportional_millionths() { * this [`BlindedHop`], (i.e., 10,000 is 1%). */ public void set_fee_proportional_millionths(int val) { - bindings.PaymentRelay_set_fee_proportional_millionths(this.ptr, val); + Bindings.PaymentRelaySetFeeProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_fee_proportional_millionths(int val) { * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. */ public int get_fee_base_msat() { - int ret = bindings.PaymentRelay_get_fee_base_msat(this.ptr); + int ret = Bindings.PaymentRelayGetFeeBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public int get_fee_base_msat() { * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. */ public void set_fee_base_msat(int val) { - bindings.PaymentRelay_set_fee_base_msat(this.ptr, val); + Bindings.PaymentRelaySetFeeBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,7 +77,7 @@ public void set_fee_base_msat(int val) { * Constructs a new PaymentRelay given each field */ public static PaymentRelay of(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg) { - long ret = bindings.PaymentRelay_new(cltv_expiry_delta_arg, fee_proportional_millionths_arg, fee_base_msat_arg); + long ret = Bindings.PaymentRelayNew(cltv_expiry_delta_arg, fee_proportional_millionths_arg, fee_base_msat_arg); GC.KeepAlive(cltv_expiry_delta_arg); GC.KeepAlive(fee_proportional_millionths_arg); GC.KeepAlive(fee_base_msat_arg); @@ -88,7 +88,7 @@ public static PaymentRelay of(short cltv_expiry_delta_arg, int fee_proportional_ } internal long clone_ptr() { - long ret = bindings.PaymentRelay_clone_ptr(this.ptr); + long ret = Bindings.PaymentRelayClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -97,7 +97,7 @@ internal long clone_ptr() { * Creates a copy of the PaymentRelay */ public PaymentRelay clone() { - long ret = bindings.PaymentRelay_clone(this.ptr); + long ret = Bindings.PaymentRelayClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentRelay ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentRelay(null, ret); } @@ -109,10 +109,10 @@ public PaymentRelay clone() { * Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read */ public byte[] write() { - long ret = bindings.PaymentRelay_write(this.ptr); + long ret = Bindings.PaymentRelayWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -120,7 +120,7 @@ public byte[] write() { * Read a PaymentRelay from a byte array, created by PaymentRelay_write */ public static Result_PaymentRelayDecodeErrorZ read(byte[] ser) { - long ret = bindings.PaymentRelay_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PaymentRelayRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentRelayDecodeErrorZ ret_hu_conv = Result_PaymentRelayDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PaymentSendFailure.cs b/c_sharp/src/org/ldk/structs/PaymentSendFailure.cs index cb3c70dd2..8acdd18b7 100644 --- a/c_sharp/src/org/ldk/structs/PaymentSendFailure.cs +++ b/c_sharp/src/org/ldk/structs/PaymentSendFailure.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class PaymentSendFailure : CommonBase { protected PaymentSendFailure(object _dummy, long ptr) : base(ptr) { } ~PaymentSendFailure() { - if (ptr != 0) { bindings.PaymentSendFailure_free(ptr); } + if (ptr != 0) { Bindings.PaymentSendFailureFree(ptr); } } internal static PaymentSendFailure constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPaymentSendFailure_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPaymentSendFailureTyFromPtr(ptr); switch (raw_ty) { case 0: return new PaymentSendFailure_ParameterError(ptr); case 1: return new PaymentSendFailure_PathParameterError(ptr); @@ -35,7 +35,7 @@ internal static PaymentSendFailure constr_from_ptr(long ptr) { public class PaymentSendFailure_ParameterError : PaymentSendFailure { public APIError parameter_error; internal PaymentSendFailure_ParameterError(long ptr) : base(null, ptr) { - long parameter_error = bindings.LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr); + long parameter_error = Bindings.LDKPaymentSendFailureParameterErrorGetParameterError(ptr); org.ldk.structs.APIError parameter_error_hu_conv = org.ldk.structs.APIError.constr_from_ptr(parameter_error); if (parameter_error_hu_conv != null) { parameter_error_hu_conv.ptrs_to.AddLast(this); }; this.parameter_error = parameter_error_hu_conv; @@ -45,15 +45,15 @@ internal PaymentSendFailure_ParameterError(long ptr) : base(null, ptr) { public class PaymentSendFailure_PathParameterError : PaymentSendFailure { public Result_NoneAPIErrorZ[] path_parameter_error; internal PaymentSendFailure_PathParameterError(long ptr) : base(null, ptr) { - long path_parameter_error = bindings.LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr); - int path_parameter_error_conv_22_len = InternalUtils.getArrayLength(path_parameter_error); + long path_parameter_error = Bindings.LDKPaymentSendFailurePathParameterErrorGetPathParameterError(ptr); + int path_parameter_error_conv_22_len = InternalUtils.GetArrayLength(path_parameter_error); Result_NoneAPIErrorZ[] path_parameter_error_conv_22_arr = new Result_NoneAPIErrorZ[path_parameter_error_conv_22_len]; for (int w = 0; w < path_parameter_error_conv_22_len; w++) { - long path_parameter_error_conv_22 = InternalUtils.getU64ArrayElem(path_parameter_error, w); + long path_parameter_error_conv_22 = InternalUtils.GetU64ArrayElem(path_parameter_error, w); Result_NoneAPIErrorZ path_parameter_error_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(path_parameter_error_conv_22); path_parameter_error_conv_22_arr[w] = path_parameter_error_conv_22_hu_conv; } - bindings.free_buffer(path_parameter_error); + Bindings.FreeBuffer(path_parameter_error); this.path_parameter_error = path_parameter_error_conv_22_arr; } } @@ -61,16 +61,16 @@ internal PaymentSendFailure_PathParameterError(long ptr) : base(null, ptr) { public class PaymentSendFailure_AllFailedResendSafe : PaymentSendFailure { public APIError[] all_failed_resend_safe; internal PaymentSendFailure_AllFailedResendSafe(long ptr) : base(null, ptr) { - long all_failed_resend_safe = bindings.LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe(ptr); - int all_failed_resend_safe_conv_10_len = InternalUtils.getArrayLength(all_failed_resend_safe); + long all_failed_resend_safe = Bindings.LDKPaymentSendFailureAllFailedResendSafeGetAllFailedResendSafe(ptr); + int all_failed_resend_safe_conv_10_len = InternalUtils.GetArrayLength(all_failed_resend_safe); APIError[] all_failed_resend_safe_conv_10_arr = new APIError[all_failed_resend_safe_conv_10_len]; for (int k = 0; k < all_failed_resend_safe_conv_10_len; k++) { - long all_failed_resend_safe_conv_10 = InternalUtils.getU64ArrayElem(all_failed_resend_safe, k); + long all_failed_resend_safe_conv_10 = InternalUtils.GetU64ArrayElem(all_failed_resend_safe, k); org.ldk.structs.APIError all_failed_resend_safe_conv_10_hu_conv = org.ldk.structs.APIError.constr_from_ptr(all_failed_resend_safe_conv_10); if (all_failed_resend_safe_conv_10_hu_conv != null) { all_failed_resend_safe_conv_10_hu_conv.ptrs_to.AddLast(this); }; all_failed_resend_safe_conv_10_arr[k] = all_failed_resend_safe_conv_10_hu_conv; } - bindings.free_buffer(all_failed_resend_safe); + Bindings.FreeBuffer(all_failed_resend_safe); this.all_failed_resend_safe = all_failed_resend_safe_conv_10_arr; } } @@ -97,27 +97,27 @@ public class PaymentSendFailure_PartialFailure : PaymentSendFailure { */ public byte[] payment_id; internal PaymentSendFailure_PartialFailure(long ptr) : base(null, ptr) { - long results = bindings.LDKPaymentSendFailure_PartialFailure_get_results(ptr); - int results_conv_22_len = InternalUtils.getArrayLength(results); + long results = Bindings.LDKPaymentSendFailurePartialFailureGetResults(ptr); + int results_conv_22_len = InternalUtils.GetArrayLength(results); Result_NoneAPIErrorZ[] results_conv_22_arr = new Result_NoneAPIErrorZ[results_conv_22_len]; for (int w = 0; w < results_conv_22_len; w++) { - long results_conv_22 = InternalUtils.getU64ArrayElem(results, w); + long results_conv_22 = InternalUtils.GetU64ArrayElem(results, w); Result_NoneAPIErrorZ results_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(results_conv_22); results_conv_22_arr[w] = results_conv_22_hu_conv; } - bindings.free_buffer(results); + Bindings.FreeBuffer(results); this.results = results_conv_22_arr; - long failed_paths_retry = bindings.LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr); + long failed_paths_retry = Bindings.LDKPaymentSendFailurePartialFailureGetFailedPathsRetry(ptr); org.ldk.structs.RouteParameters failed_paths_retry_hu_conv = null; if (failed_paths_retry < 0 || failed_paths_retry > 4096) { failed_paths_retry_hu_conv = new org.ldk.structs.RouteParameters(null, failed_paths_retry); } if (failed_paths_retry_hu_conv != null) { failed_paths_retry_hu_conv.ptrs_to.AddLast(this); }; this.failed_paths_retry = failed_paths_retry_hu_conv; - long payment_id = bindings.LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKPaymentSendFailurePartialFailureGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; } } internal long clone_ptr() { - long ret = bindings.PaymentSendFailure_clone_ptr(this.ptr); + long ret = Bindings.PaymentSendFailureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -126,7 +126,7 @@ internal long clone_ptr() { * Creates a copy of the PaymentSendFailure */ public PaymentSendFailure clone() { - long ret = bindings.PaymentSendFailure_clone(this.ptr); + long ret = Bindings.PaymentSendFailureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); @@ -138,7 +138,7 @@ public PaymentSendFailure clone() { * Utility method to constructs a new ParameterError-variant PaymentSendFailure */ public static PaymentSendFailure parameter_error(org.ldk.structs.APIError a) { - long ret = bindings.PaymentSendFailure_parameter_error(a.ptr); + long ret = Bindings.PaymentSendFailureParameterError(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); @@ -151,7 +151,7 @@ public static PaymentSendFailure parameter_error(org.ldk.structs.APIError a) { * Utility method to constructs a new PathParameterError-variant PaymentSendFailure */ public static PaymentSendFailure path_parameter_error(Result_NoneAPIErrorZ[] a) { - long ret = bindings.PaymentSendFailure_path_parameter_error(InternalUtils.encodeUint64Array(InternalUtils.mapArray(a, a_conv_22 => a_conv_22 != null ? a_conv_22.ptr : 0))); + long ret = Bindings.PaymentSendFailurePathParameterError(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(a, a_conv_22 => a_conv_22 != null ? a_conv_22.ptr : 0))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); @@ -163,7 +163,7 @@ public static PaymentSendFailure path_parameter_error(Result_NoneAPIErrorZ[] a) * Utility method to constructs a new AllFailedResendSafe-variant PaymentSendFailure */ public static PaymentSendFailure all_failed_resend_safe(APIError[] a) { - long ret = bindings.PaymentSendFailure_all_failed_resend_safe(InternalUtils.encodeUint64Array(InternalUtils.mapArray(a, a_conv_10 => a_conv_10.ptr))); + long ret = Bindings.PaymentSendFailureAllFailedResendSafe(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(a, a_conv_10 => a_conv_10.ptr))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); @@ -176,7 +176,7 @@ public static PaymentSendFailure all_failed_resend_safe(APIError[] a) { * Utility method to constructs a new DuplicatePayment-variant PaymentSendFailure */ public static PaymentSendFailure duplicate_payment() { - long ret = bindings.PaymentSendFailure_duplicate_payment(); + long ret = Bindings.PaymentSendFailureDuplicatePayment(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentSendFailure ret_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -187,7 +187,7 @@ public static PaymentSendFailure duplicate_payment() { * Utility method to constructs a new PartialFailure-variant PaymentSendFailure */ public static PaymentSendFailure partial_failure(Result_NoneAPIErrorZ[] results, org.ldk.structs.RouteParameters failed_paths_retry, byte[] payment_id) { - long ret = bindings.PaymentSendFailure_partial_failure(InternalUtils.encodeUint64Array(InternalUtils.mapArray(results, results_conv_22 => results_conv_22 != null ? results_conv_22.ptr : 0)), failed_paths_retry == null ? 0 : failed_paths_retry.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + long ret = Bindings.PaymentSendFailurePartialFailure(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(results, results_conv_22 => results_conv_22 != null ? results_conv_22.ptr : 0)), failed_paths_retry == null ? 0 : failed_paths_retry.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(results); GC.KeepAlive(failed_paths_retry); GC.KeepAlive(payment_id); @@ -203,7 +203,7 @@ public static PaymentSendFailure partial_failure(Result_NoneAPIErrorZ[] results, * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.PaymentSendFailure b) { - bool ret = bindings.PaymentSendFailure_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PaymentSendFailureEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/PeeledOnion.cs b/c_sharp/src/org/ldk/structs/PeeledOnion.cs index e3840e4e2..1a07cde29 100644 --- a/c_sharp/src/org/ldk/structs/PeeledOnion.cs +++ b/c_sharp/src/org/ldk/structs/PeeledOnion.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class PeeledOnion : CommonBase { protected PeeledOnion(object _dummy, long ptr) : base(ptr) { } ~PeeledOnion() { - if (ptr != 0) { bindings.PeeledOnion_free(ptr); } + if (ptr != 0) { Bindings.PeeledOnionFree(ptr); } } internal static PeeledOnion constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPeeledOnion_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPeeledOnionTyFromPtr(ptr); switch (raw_ty) { case 0: return new PeeledOnion_Forward(ptr); case 1: return new PeeledOnion_Receive(ptr); @@ -30,10 +30,10 @@ public class PeeledOnion_Forward : PeeledOnion { public byte[] _0; public OnionMessage _1; internal PeeledOnion_Forward(long ptr) : base(null, ptr) { - long _0 = bindings.LDKPeeledOnion_Forward_get__0(ptr); - byte[] _0_conv = InternalUtils.decodeUint8Array(_0); + long _0 = Bindings.LDKPeeledOnionForwardGet0(ptr); + byte[] _0_conv = InternalUtils.DecodeUint8Array(_0); this._0 = _0_conv; - long _1 = bindings.LDKPeeledOnion_Forward_get__1(ptr); + long _1 = Bindings.LDKPeeledOnionForwardGet1(ptr); org.ldk.structs.OnionMessage _1_hu_conv = null; if (_1 < 0 || _1 > 4096) { _1_hu_conv = new org.ldk.structs.OnionMessage(null, _1); } if (_1_hu_conv != null) { _1_hu_conv.ptrs_to.AddLast(this); }; this._1 = _1_hu_conv; @@ -51,21 +51,21 @@ public class PeeledOnion_Receive : PeeledOnion { */ public BlindedPath _2; internal PeeledOnion_Receive(long ptr) : base(null, ptr) { - long _0 = bindings.LDKPeeledOnion_Receive_get__0(ptr); + long _0 = Bindings.LDKPeeledOnionReceiveGet0(ptr); org.ldk.structs.ParsedOnionMessageContents _0_hu_conv = org.ldk.structs.ParsedOnionMessageContents.constr_from_ptr(_0); if (_0_hu_conv != null) { _0_hu_conv.ptrs_to.AddLast(this); }; this._0 = _0_hu_conv; - long _1 = bindings.LDKPeeledOnion_Receive_get__1(ptr); - byte[] _1_conv = InternalUtils.decodeUint8Array(_1); + long _1 = Bindings.LDKPeeledOnionReceiveGet1(ptr); + byte[] _1_conv = InternalUtils.DecodeUint8Array(_1); this._1 = _1_conv; - long _2 = bindings.LDKPeeledOnion_Receive_get__2(ptr); + long _2 = Bindings.LDKPeeledOnionReceiveGet2(ptr); org.ldk.structs.BlindedPath _2_hu_conv = null; if (_2 < 0 || _2 > 4096) { _2_hu_conv = new org.ldk.structs.BlindedPath(null, _2); } if (_2_hu_conv != null) { _2_hu_conv.ptrs_to.AddLast(this); }; this._2 = _2_hu_conv; } } internal long clone_ptr() { - long ret = bindings.PeeledOnion_clone_ptr(this.ptr); + long ret = Bindings.PeeledOnionClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * Creates a copy of the PeeledOnion */ public PeeledOnion clone() { - long ret = bindings.PeeledOnion_clone(this.ptr); + long ret = Bindings.PeeledOnionClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PeeledOnion ret_hu_conv = org.ldk.structs.PeeledOnion.constr_from_ptr(ret); @@ -86,7 +86,7 @@ public PeeledOnion clone() { * Utility method to constructs a new Forward-variant PeeledOnion */ public static PeeledOnion forward(byte[] a, org.ldk.structs.OnionMessage b) { - long ret = bindings.PeeledOnion_forward(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), b == null ? 0 : b.ptr); + long ret = Bindings.PeeledOnionForward(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33)), b == null ? 0 : b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } @@ -100,7 +100,7 @@ public static PeeledOnion forward(byte[] a, org.ldk.structs.OnionMessage b) { * Utility method to constructs a new Receive-variant PeeledOnion */ public static PeeledOnion receive(org.ldk.structs.ParsedOnionMessageContents a, byte[] b, org.ldk.structs.BlindedPath c) { - long ret = bindings.PeeledOnion_receive(a.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b, 32)), c == null ? 0 : c.ptr); + long ret = Bindings.PeeledOnionReceive(a.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(b, 32)), c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/PeerHandleError.cs b/c_sharp/src/org/ldk/structs/PeerHandleError.cs index 3085dee7c..b27cd7695 100644 --- a/c_sharp/src/org/ldk/structs/PeerHandleError.cs +++ b/c_sharp/src/org/ldk/structs/PeerHandleError.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class PeerHandleError : CommonBase { internal PeerHandleError(object _dummy, long ptr) : base(ptr) { } ~PeerHandleError() { - if (ptr != 0) { bindings.PeerHandleError_free(ptr); } + if (ptr != 0) { Bindings.PeerHandleErrorFree(ptr); } } /** * Constructs a new PeerHandleError given each field */ public static PeerHandleError of() { - long ret = bindings.PeerHandleError_new(); + long ret = Bindings.PeerHandleErrorNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PeerHandleError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PeerHandleError(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -29,7 +29,7 @@ public static PeerHandleError of() { } internal long clone_ptr() { - long ret = bindings.PeerHandleError_clone_ptr(this.ptr); + long ret = Bindings.PeerHandleErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -38,7 +38,7 @@ internal long clone_ptr() { * Creates a copy of the PeerHandleError */ public PeerHandleError clone() { - long ret = bindings.PeerHandleError_clone(this.ptr); + long ret = Bindings.PeerHandleErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PeerHandleError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PeerHandleError(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/PeerManager.cs b/c_sharp/src/org/ldk/structs/PeerManager.cs index 051f3bf28..5647dc4c3 100644 --- a/c_sharp/src/org/ldk/structs/PeerManager.cs +++ b/c_sharp/src/org/ldk/structs/PeerManager.cs @@ -30,7 +30,7 @@ namespace org { namespace ldk { namespace structs { public class PeerManager : CommonBase { internal PeerManager(object _dummy, long ptr) : base(ptr) { } ~PeerManager() { - if (ptr != 0) { bindings.PeerManager_free(ptr); } + if (ptr != 0) { Bindings.PeerManagerFree(ptr); } } /** @@ -45,7 +45,7 @@ internal PeerManager(object _dummy, long ptr) : base(ptr) { } * minute should suffice. */ public static PeerManager of(ChannelMessageHandler message_handler_chan_handler_arg, RoutingMessageHandler message_handler_route_handler_arg, OnionMessageHandler message_handler_onion_message_handler_arg, CustomMessageHandler message_handler_custom_message_handler_arg, int current_time, byte[] ephemeral_random_data, org.ldk.structs.Logger logger, org.ldk.structs.NodeSigner node_signer) { - long ret = bindings.PeerManager_new(bindings.MessageHandler_new(message_handler_chan_handler_arg.ptr, message_handler_route_handler_arg.ptr, message_handler_onion_message_handler_arg.ptr, message_handler_custom_message_handler_arg.ptr), current_time, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ephemeral_random_data, 32)), logger.ptr, node_signer.ptr); + long ret = Bindings.PeerManagerNew(Bindings.MessageHandlerNew(message_handler_chan_handler_arg.ptr, message_handler_route_handler_arg.ptr, message_handler_onion_message_handler_arg.ptr, message_handler_custom_message_handler_arg.ptr), current_time, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ephemeral_random_data, 32)), logger.ptr, node_signer.ptr); GC.KeepAlive(message_handler_chan_handler_arg); GC.KeepAlive(message_handler_route_handler_arg); GC.KeepAlive(message_handler_onion_message_handler_arg); @@ -79,18 +79,18 @@ public static PeerManager of(ChannelMessageHandler message_handler_chan_handler_ * [`Self::new_outbound_connection`] or [`Self::new_inbound_connection`]. */ public TwoTuple_PublicKeyCOption_SocketAddressZZ[] get_peer_node_ids() { - long ret = bindings.PeerManager_get_peer_node_ids(this.ptr); + long ret = Bindings.PeerManagerGetPeerNodeIds(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_43_len = InternalUtils.getArrayLength(ret); + int ret_conv_43_len = InternalUtils.GetArrayLength(ret); TwoTuple_PublicKeyCOption_SocketAddressZZ[] ret_conv_43_arr = new TwoTuple_PublicKeyCOption_SocketAddressZZ[ret_conv_43_len]; for (int r = 0; r < ret_conv_43_len; r++) { - long ret_conv_43 = InternalUtils.getU64ArrayElem(ret, r); + long ret_conv_43 = InternalUtils.GetU64ArrayElem(ret, r); TwoTuple_PublicKeyCOption_SocketAddressZZ ret_conv_43_hu_conv = new TwoTuple_PublicKeyCOption_SocketAddressZZ(null, ret_conv_43); if (ret_conv_43_hu_conv != null) { ret_conv_43_hu_conv.ptrs_to.AddLast(this); }; ret_conv_43_arr[r] = ret_conv_43_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_43_arr; } @@ -112,7 +112,7 @@ public TwoTuple_PublicKeyCOption_SocketAddressZZ[] get_peer_node_ids() { * [`socket_disconnected`]: PeerManager::socket_disconnected */ public Result_CVec_u8ZPeerHandleErrorZ new_outbound_connection(byte[] their_node_id, org.ldk.structs.SocketDescriptor descriptor, org.ldk.structs.Option_SocketAddressZ remote_network_address) { - long ret = bindings.PeerManager_new_outbound_connection(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), descriptor.ptr, remote_network_address.ptr); + long ret = Bindings.PeerManagerNewOutboundConnection(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), descriptor.ptr, remote_network_address.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(descriptor); @@ -142,7 +142,7 @@ public Result_CVec_u8ZPeerHandleErrorZ new_outbound_connection(byte[] their_node * [`socket_disconnected`]: PeerManager::socket_disconnected */ public Result_NonePeerHandleErrorZ new_inbound_connection(org.ldk.structs.SocketDescriptor descriptor, org.ldk.structs.Option_SocketAddressZ remote_network_address) { - long ret = bindings.PeerManager_new_inbound_connection(this.ptr, descriptor.ptr, remote_network_address.ptr); + long ret = Bindings.PeerManagerNewInboundConnection(this.ptr, descriptor.ptr, remote_network_address.ptr); GC.KeepAlive(this); GC.KeepAlive(descriptor); GC.KeepAlive(remote_network_address); @@ -168,7 +168,7 @@ public Result_NonePeerHandleErrorZ new_inbound_connection(org.ldk.structs.Socket * [`write_buffer_space_avail`]: PeerManager::write_buffer_space_avail */ public Result_NonePeerHandleErrorZ write_buffer_space_avail(org.ldk.structs.SocketDescriptor descriptor) { - long ret = bindings.PeerManager_write_buffer_space_avail(this.ptr, descriptor.ptr); + long ret = Bindings.PeerManagerWriteBufferSpaceAvail(this.ptr, descriptor.ptr); GC.KeepAlive(this); GC.KeepAlive(descriptor); if (ret >= 0 && ret <= 4096) { return null; } @@ -196,7 +196,7 @@ public Result_NonePeerHandleErrorZ write_buffer_space_avail(org.ldk.structs.Sock * [`process_events`]: PeerManager::process_events */ public Result_boolPeerHandleErrorZ read_event(org.ldk.structs.SocketDescriptor peer_descriptor, byte[] data) { - long ret = bindings.PeerManager_read_event(this.ptr, peer_descriptor.ptr, InternalUtils.encodeUint8Array(data)); + long ret = Bindings.PeerManagerReadEvent(this.ptr, peer_descriptor.ptr, InternalUtils.EncodeUint8Array(data)); GC.KeepAlive(this); GC.KeepAlive(peer_descriptor); GC.KeepAlive(data); @@ -225,7 +225,7 @@ public Result_boolPeerHandleErrorZ read_event(org.ldk.structs.SocketDescriptor p * [`send_data`]: SocketDescriptor::send_data */ public void process_events() { - bindings.PeerManager_process_events(this.ptr); + Bindings.PeerManagerProcessEvents(this.ptr); GC.KeepAlive(this); } @@ -233,7 +233,7 @@ public void process_events() { * Indicates that the given socket descriptor's connection is now closed. */ public void socket_disconnected(org.ldk.structs.SocketDescriptor descriptor) { - bindings.PeerManager_socket_disconnected(this.ptr, descriptor.ptr); + Bindings.PeerManagerSocketDisconnected(this.ptr, descriptor.ptr); GC.KeepAlive(this); GC.KeepAlive(descriptor); } @@ -247,7 +247,7 @@ public void socket_disconnected(org.ldk.structs.SocketDescriptor descriptor) { * [`disconnect_socket`]: SocketDescriptor::disconnect_socket */ public void disconnect_by_node_id(byte[] node_id) { - bindings.PeerManager_disconnect_by_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(node_id, 33))); + Bindings.PeerManagerDisconnectByNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(node_id); } @@ -258,7 +258,7 @@ public void disconnect_by_node_id(byte[] node_id) { * using regular ping/pongs. */ public void disconnect_all_peers() { - bindings.PeerManager_disconnect_all_peers(this.ptr); + Bindings.PeerManagerDisconnectAllPeers(this.ptr); GC.KeepAlive(this); } @@ -276,7 +276,7 @@ public void disconnect_all_peers() { * [`send_data`]: SocketDescriptor::send_data */ public void timer_tick_occurred() { - bindings.PeerManager_timer_tick_occurred(this.ptr); + Bindings.PeerManagerTimerTickOccurred(this.ptr); GC.KeepAlive(this); } @@ -298,7 +298,7 @@ public void timer_tick_occurred() { * [`get_and_clear_pending_msg_events`]: MessageSendEventsProvider::get_and_clear_pending_msg_events */ public void broadcast_node_announcement(byte[] rgb, byte[] alias, SocketAddress[] addresses) { - bindings.PeerManager_broadcast_node_announcement(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(rgb, 3)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(alias, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(addresses, addresses_conv_15 => addresses_conv_15.ptr))); + Bindings.PeerManagerBroadcastNodeAnnouncement(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(rgb, 3)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(alias, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(addresses, addresses_conv_15 => addresses_conv_15.ptr))); GC.KeepAlive(this); GC.KeepAlive(rgb); GC.KeepAlive(alias); diff --git a/c_sharp/src/org/ldk/structs/PendingHTLCInfo.cs b/c_sharp/src/org/ldk/structs/PendingHTLCInfo.cs index f65bc0d0f..c18feba87 100644 --- a/c_sharp/src/org/ldk/structs/PendingHTLCInfo.cs +++ b/c_sharp/src/org/ldk/structs/PendingHTLCInfo.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class PendingHTLCInfo : CommonBase { internal PendingHTLCInfo(object _dummy, long ptr) : base(ptr) { } ~PendingHTLCInfo() { - if (ptr != 0) { bindings.PendingHTLCInfo_free(ptr); } + if (ptr != 0) { Bindings.PendingHTLCInfoFree(ptr); } } /** * Further routing details based on whether the HTLC is being forwarded or received. */ public PendingHTLCRouting get_routing() { - long ret = bindings.PendingHTLCInfo_get_routing(this.ptr); + long ret = Bindings.PendingHTLCInfoGetRouting(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PendingHTLCRouting ret_hu_conv = org.ldk.structs.PendingHTLCRouting.constr_from_ptr(ret); @@ -32,7 +32,7 @@ public PendingHTLCRouting get_routing() { * Further routing details based on whether the HTLC is being forwarded or received. */ public void set_routing(org.ldk.structs.PendingHTLCRouting val) { - bindings.PendingHTLCInfo_set_routing(this.ptr, val.ptr); + Bindings.PendingHTLCInfoSetRouting(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -44,10 +44,10 @@ public void set_routing(org.ldk.structs.PendingHTLCRouting val) { * This is later used to encrypt failure packets in the event that the HTLC is failed. */ public byte[] get_incoming_shared_secret() { - long ret = bindings.PendingHTLCInfo_get_incoming_shared_secret(this.ptr); + long ret = Bindings.PendingHTLCInfoGetIncomingSharedSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -57,7 +57,7 @@ public byte[] get_incoming_shared_secret() { * This is later used to encrypt failure packets in the event that the HTLC is failed. */ public void set_incoming_shared_secret(byte[] val) { - bindings.PendingHTLCInfo_set_incoming_shared_secret(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.PendingHTLCInfoSetIncomingSharedSecret(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -66,10 +66,10 @@ public void set_incoming_shared_secret(byte[] val) { * Hash of the payment preimage, to lock the payment until the receiver releases the preimage. */ public byte[] get_payment_hash() { - long ret = bindings.PendingHTLCInfo_get_payment_hash(this.ptr); + long ret = Bindings.PendingHTLCInfoGetPaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -77,7 +77,7 @@ public byte[] get_payment_hash() { * Hash of the payment preimage, to lock the payment until the receiver releases the preimage. */ public void set_payment_hash(byte[] val) { - bindings.PendingHTLCInfo_set_payment_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.PendingHTLCInfoSetPaymentHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -89,7 +89,7 @@ public void set_payment_hash(byte[] val) { * versions. */ public Option_u64Z get_incoming_amt_msat() { - long ret = bindings.PendingHTLCInfo_get_incoming_amt_msat(this.ptr); + long ret = Bindings.PendingHTLCInfoGetIncomingAmtMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -104,7 +104,7 @@ public Option_u64Z get_incoming_amt_msat() { * versions. */ public void set_incoming_amt_msat(org.ldk.structs.Option_u64Z val) { - bindings.PendingHTLCInfo_set_incoming_amt_msat(this.ptr, val.ptr); + Bindings.PendingHTLCInfoSetIncomingAmtMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -124,7 +124,7 @@ public void set_incoming_amt_msat(org.ldk.structs.Option_u64Z val) { * [`Self::outgoing_amt_msat`]. */ public long get_outgoing_amt_msat() { - long ret = bindings.PendingHTLCInfo_get_outgoing_amt_msat(this.ptr); + long ret = Bindings.PendingHTLCInfoGetOutgoingAmtMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -143,7 +143,7 @@ public long get_outgoing_amt_msat() { * [`Self::outgoing_amt_msat`]. */ public void set_outgoing_amt_msat(long val) { - bindings.PendingHTLCInfo_set_outgoing_amt_msat(this.ptr, val); + Bindings.PendingHTLCInfoSetOutgoingAmtMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -153,7 +153,7 @@ public void set_outgoing_amt_msat(long val) { * should have been set on the received HTLC for received payments). */ public int get_outgoing_cltv_value() { - int ret = bindings.PendingHTLCInfo_get_outgoing_cltv_value(this.ptr); + int ret = Bindings.PendingHTLCInfoGetOutgoingCltvValue(this.ptr); GC.KeepAlive(this); return ret; } @@ -163,7 +163,7 @@ public int get_outgoing_cltv_value() { * should have been set on the received HTLC for received payments). */ public void set_outgoing_cltv_value(int val) { - bindings.PendingHTLCInfo_set_outgoing_cltv_value(this.ptr, val); + Bindings.PendingHTLCInfoSetOutgoingCltvValue(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -180,7 +180,7 @@ public void set_outgoing_cltv_value(int val) { * shoulder them. */ public Option_u64Z get_skimmed_fee_msat() { - long ret = bindings.PendingHTLCInfo_get_skimmed_fee_msat(this.ptr); + long ret = Bindings.PendingHTLCInfoGetSkimmedFeeMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -200,7 +200,7 @@ public Option_u64Z get_skimmed_fee_msat() { * shoulder them. */ public void set_skimmed_fee_msat(org.ldk.structs.Option_u64Z val) { - bindings.PendingHTLCInfo_set_skimmed_fee_msat(this.ptr, val.ptr); + Bindings.PendingHTLCInfoSetSkimmedFeeMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -210,7 +210,7 @@ public void set_skimmed_fee_msat(org.ldk.structs.Option_u64Z val) { * Constructs a new PendingHTLCInfo given each field */ public static PendingHTLCInfo of(org.ldk.structs.PendingHTLCRouting routing_arg, byte[] incoming_shared_secret_arg, byte[] payment_hash_arg, org.ldk.structs.Option_u64Z incoming_amt_msat_arg, long outgoing_amt_msat_arg, int outgoing_cltv_value_arg, org.ldk.structs.Option_u64Z skimmed_fee_msat_arg) { - long ret = bindings.PendingHTLCInfo_new(routing_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(incoming_shared_secret_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash_arg, 32)), incoming_amt_msat_arg.ptr, outgoing_amt_msat_arg, outgoing_cltv_value_arg, skimmed_fee_msat_arg.ptr); + long ret = Bindings.PendingHTLCInfoNew(routing_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(incoming_shared_secret_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash_arg, 32)), incoming_amt_msat_arg.ptr, outgoing_amt_msat_arg, outgoing_cltv_value_arg, skimmed_fee_msat_arg.ptr); GC.KeepAlive(routing_arg); GC.KeepAlive(incoming_shared_secret_arg); GC.KeepAlive(payment_hash_arg); @@ -228,7 +228,7 @@ public static PendingHTLCInfo of(org.ldk.structs.PendingHTLCRouting routing_arg, } internal long clone_ptr() { - long ret = bindings.PendingHTLCInfo_clone_ptr(this.ptr); + long ret = Bindings.PendingHTLCInfoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -237,7 +237,7 @@ internal long clone_ptr() { * Creates a copy of the PendingHTLCInfo */ public PendingHTLCInfo clone() { - long ret = bindings.PendingHTLCInfo_clone(this.ptr); + long ret = Bindings.PendingHTLCInfoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PendingHTLCInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PendingHTLCInfo(null, ret); } @@ -249,10 +249,10 @@ public PendingHTLCInfo clone() { * Serialize the PendingHTLCInfo object into a byte array which can be read by PendingHTLCInfo_read */ public byte[] write() { - long ret = bindings.PendingHTLCInfo_write(this.ptr); + long ret = Bindings.PendingHTLCInfoWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -260,7 +260,7 @@ public byte[] write() { * Read a PendingHTLCInfo from a byte array, created by PendingHTLCInfo_write */ public static Result_PendingHTLCInfoDecodeErrorZ read(byte[] ser) { - long ret = bindings.PendingHTLCInfo_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PendingHTLCInfoRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCInfoDecodeErrorZ ret_hu_conv = Result_PendingHTLCInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PendingHTLCRouting.cs b/c_sharp/src/org/ldk/structs/PendingHTLCRouting.cs index 3dbd49edc..c3c3362ff 100644 --- a/c_sharp/src/org/ldk/structs/PendingHTLCRouting.cs +++ b/c_sharp/src/org/ldk/structs/PendingHTLCRouting.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class PendingHTLCRouting : CommonBase { protected PendingHTLCRouting(object _dummy, long ptr) : base(ptr) { } ~PendingHTLCRouting() { - if (ptr != 0) { bindings.PendingHTLCRouting_free(ptr); } + if (ptr != 0) { Bindings.PendingHTLCRoutingFree(ptr); } } internal static PendingHTLCRouting constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKPendingHTLCRouting_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKPendingHTLCRoutingTyFromPtr(ptr); switch (raw_ty) { case 0: return new PendingHTLCRouting_Forward(ptr); case 1: return new PendingHTLCRouting_Receive(ptr); @@ -47,12 +47,12 @@ public class PendingHTLCRouting_Forward : PendingHTLCRouting { */ public BlindedForward blinded; internal PendingHTLCRouting_Forward(long ptr) : base(null, ptr) { - long onion_packet = bindings.LDKPendingHTLCRouting_Forward_get_onion_packet(ptr); + long onion_packet = Bindings.LDKPendingHTLCRoutingForwardGetOnionPacket(ptr); org.ldk.structs.OnionPacket onion_packet_hu_conv = null; if (onion_packet < 0 || onion_packet > 4096) { onion_packet_hu_conv = new org.ldk.structs.OnionPacket(null, onion_packet); } if (onion_packet_hu_conv != null) { onion_packet_hu_conv.ptrs_to.AddLast(this); }; this.onion_packet = onion_packet_hu_conv; - this.short_channel_id = bindings.LDKPendingHTLCRouting_Forward_get_short_channel_id(ptr); - long blinded = bindings.LDKPendingHTLCRouting_Forward_get_blinded(ptr); + this.short_channel_id = Bindings.LDKPendingHTLCRoutingForwardGetShortChannelId(ptr); + long blinded = Bindings.LDKPendingHTLCRoutingForwardGetBlinded(ptr); org.ldk.structs.BlindedForward blinded_hu_conv = null; if (blinded < 0 || blinded > 4096) { blinded_hu_conv = new org.ldk.structs.BlindedForward(null, blinded); } if (blinded_hu_conv != null) { blinded_hu_conv.ptrs_to.AddLast(this); }; this.blinded = blinded_hu_conv; @@ -101,30 +101,30 @@ public class PendingHTLCRouting_Receive : PendingHTLCRouting { */ public bool requires_blinded_error; internal PendingHTLCRouting_Receive(long ptr) : base(null, ptr) { - long payment_data = bindings.LDKPendingHTLCRouting_Receive_get_payment_data(ptr); + long payment_data = Bindings.LDKPendingHTLCRoutingReceiveGetPaymentData(ptr); org.ldk.structs.FinalOnionHopData payment_data_hu_conv = null; if (payment_data < 0 || payment_data > 4096) { payment_data_hu_conv = new org.ldk.structs.FinalOnionHopData(null, payment_data); } if (payment_data_hu_conv != null) { payment_data_hu_conv.ptrs_to.AddLast(this); }; this.payment_data = payment_data_hu_conv; - long payment_metadata = bindings.LDKPendingHTLCRouting_Receive_get_payment_metadata(ptr); + long payment_metadata = Bindings.LDKPendingHTLCRoutingReceiveGetPaymentMetadata(ptr); org.ldk.structs.Option_CVec_u8ZZ payment_metadata_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(payment_metadata); if (payment_metadata_hu_conv != null) { payment_metadata_hu_conv.ptrs_to.AddLast(this); }; this.payment_metadata = payment_metadata_hu_conv; - this.incoming_cltv_expiry = bindings.LDKPendingHTLCRouting_Receive_get_incoming_cltv_expiry(ptr); - long phantom_shared_secret = bindings.LDKPendingHTLCRouting_Receive_get_phantom_shared_secret(ptr); - byte[] phantom_shared_secret_conv = InternalUtils.decodeUint8Array(phantom_shared_secret); + this.incoming_cltv_expiry = Bindings.LDKPendingHTLCRoutingReceiveGetIncomingCltvExpiry(ptr); + long phantom_shared_secret = Bindings.LDKPendingHTLCRoutingReceiveGetPhantomSharedSecret(ptr); + byte[] phantom_shared_secret_conv = InternalUtils.DecodeUint8Array(phantom_shared_secret); this.phantom_shared_secret = phantom_shared_secret_conv; - long custom_tlvs = bindings.LDKPendingHTLCRouting_Receive_get_custom_tlvs(ptr); - int custom_tlvs_conv_23_len = InternalUtils.getArrayLength(custom_tlvs); + long custom_tlvs = Bindings.LDKPendingHTLCRoutingReceiveGetCustomTlvs(ptr); + int custom_tlvs_conv_23_len = InternalUtils.GetArrayLength(custom_tlvs); TwoTuple_u64CVec_u8ZZ[] custom_tlvs_conv_23_arr = new TwoTuple_u64CVec_u8ZZ[custom_tlvs_conv_23_len]; for (int x = 0; x < custom_tlvs_conv_23_len; x++) { - long custom_tlvs_conv_23 = InternalUtils.getU64ArrayElem(custom_tlvs, x); + long custom_tlvs_conv_23 = InternalUtils.GetU64ArrayElem(custom_tlvs, x); TwoTuple_u64CVec_u8ZZ custom_tlvs_conv_23_hu_conv = new TwoTuple_u64CVec_u8ZZ(null, custom_tlvs_conv_23); if (custom_tlvs_conv_23_hu_conv != null) { custom_tlvs_conv_23_hu_conv.ptrs_to.AddLast(this); }; custom_tlvs_conv_23_arr[x] = custom_tlvs_conv_23_hu_conv; } - bindings.free_buffer(custom_tlvs); + Bindings.FreeBuffer(custom_tlvs); this.custom_tlvs = custom_tlvs_conv_23_arr; - this.requires_blinded_error = bindings.LDKPendingHTLCRouting_Receive_get_requires_blinded_error(ptr); + this.requires_blinded_error = Bindings.LDKPendingHTLCRoutingReceiveGetRequiresBlindedError(ptr); } } /** A PendingHTLCRouting of type ReceiveKeysend */ @@ -165,33 +165,33 @@ public class PendingHTLCRouting_ReceiveKeysend : PendingHTLCRouting { */ public TwoTuple_u64CVec_u8ZZ[] custom_tlvs; internal PendingHTLCRouting_ReceiveKeysend(long ptr) : base(null, ptr) { - long payment_data = bindings.LDKPendingHTLCRouting_ReceiveKeysend_get_payment_data(ptr); + long payment_data = Bindings.LDKPendingHTLCRoutingReceiveKeysendGetPaymentData(ptr); org.ldk.structs.FinalOnionHopData payment_data_hu_conv = null; if (payment_data < 0 || payment_data > 4096) { payment_data_hu_conv = new org.ldk.structs.FinalOnionHopData(null, payment_data); } if (payment_data_hu_conv != null) { payment_data_hu_conv.ptrs_to.AddLast(this); }; this.payment_data = payment_data_hu_conv; - long payment_preimage = bindings.LDKPendingHTLCRouting_ReceiveKeysend_get_payment_preimage(ptr); - byte[] payment_preimage_conv = InternalUtils.decodeUint8Array(payment_preimage); + long payment_preimage = Bindings.LDKPendingHTLCRoutingReceiveKeysendGetPaymentPreimage(ptr); + byte[] payment_preimage_conv = InternalUtils.DecodeUint8Array(payment_preimage); this.payment_preimage = payment_preimage_conv; - long payment_metadata = bindings.LDKPendingHTLCRouting_ReceiveKeysend_get_payment_metadata(ptr); + long payment_metadata = Bindings.LDKPendingHTLCRoutingReceiveKeysendGetPaymentMetadata(ptr); org.ldk.structs.Option_CVec_u8ZZ payment_metadata_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(payment_metadata); if (payment_metadata_hu_conv != null) { payment_metadata_hu_conv.ptrs_to.AddLast(this); }; this.payment_metadata = payment_metadata_hu_conv; - this.incoming_cltv_expiry = bindings.LDKPendingHTLCRouting_ReceiveKeysend_get_incoming_cltv_expiry(ptr); - long custom_tlvs = bindings.LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs(ptr); - int custom_tlvs_conv_23_len = InternalUtils.getArrayLength(custom_tlvs); + this.incoming_cltv_expiry = Bindings.LDKPendingHTLCRoutingReceiveKeysendGetIncomingCltvExpiry(ptr); + long custom_tlvs = Bindings.LDKPendingHTLCRoutingReceiveKeysendGetCustomTlvs(ptr); + int custom_tlvs_conv_23_len = InternalUtils.GetArrayLength(custom_tlvs); TwoTuple_u64CVec_u8ZZ[] custom_tlvs_conv_23_arr = new TwoTuple_u64CVec_u8ZZ[custom_tlvs_conv_23_len]; for (int x = 0; x < custom_tlvs_conv_23_len; x++) { - long custom_tlvs_conv_23 = InternalUtils.getU64ArrayElem(custom_tlvs, x); + long custom_tlvs_conv_23 = InternalUtils.GetU64ArrayElem(custom_tlvs, x); TwoTuple_u64CVec_u8ZZ custom_tlvs_conv_23_hu_conv = new TwoTuple_u64CVec_u8ZZ(null, custom_tlvs_conv_23); if (custom_tlvs_conv_23_hu_conv != null) { custom_tlvs_conv_23_hu_conv.ptrs_to.AddLast(this); }; custom_tlvs_conv_23_arr[x] = custom_tlvs_conv_23_hu_conv; } - bindings.free_buffer(custom_tlvs); + Bindings.FreeBuffer(custom_tlvs); this.custom_tlvs = custom_tlvs_conv_23_arr; } } internal long clone_ptr() { - long ret = bindings.PendingHTLCRouting_clone_ptr(this.ptr); + long ret = Bindings.PendingHTLCRoutingClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -200,7 +200,7 @@ internal long clone_ptr() { * Creates a copy of the PendingHTLCRouting */ public PendingHTLCRouting clone() { - long ret = bindings.PendingHTLCRouting_clone(this.ptr); + long ret = Bindings.PendingHTLCRoutingClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PendingHTLCRouting ret_hu_conv = org.ldk.structs.PendingHTLCRouting.constr_from_ptr(ret); @@ -212,7 +212,7 @@ public PendingHTLCRouting clone() { * Utility method to constructs a new Forward-variant PendingHTLCRouting */ public static PendingHTLCRouting forward(org.ldk.structs.OnionPacket onion_packet, long short_channel_id, org.ldk.structs.BlindedForward blinded) { - long ret = bindings.PendingHTLCRouting_forward(onion_packet == null ? 0 : onion_packet.ptr, short_channel_id, blinded == null ? 0 : blinded.ptr); + long ret = Bindings.PendingHTLCRoutingForward(onion_packet == null ? 0 : onion_packet.ptr, short_channel_id, blinded == null ? 0 : blinded.ptr); GC.KeepAlive(onion_packet); GC.KeepAlive(short_channel_id); GC.KeepAlive(blinded); @@ -228,7 +228,7 @@ public static PendingHTLCRouting forward(org.ldk.structs.OnionPacket onion_packe * Utility method to constructs a new Receive-variant PendingHTLCRouting */ public static PendingHTLCRouting receive(org.ldk.structs.FinalOnionHopData payment_data, org.ldk.structs.Option_CVec_u8ZZ payment_metadata, int incoming_cltv_expiry, byte[] phantom_shared_secret, TwoTuple_u64CVec_u8ZZ[] custom_tlvs, bool requires_blinded_error) { - long ret = bindings.PendingHTLCRouting_receive(payment_data == null ? 0 : payment_data.ptr, payment_metadata.ptr, incoming_cltv_expiry, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(phantom_shared_secret, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0)), requires_blinded_error); + long ret = Bindings.PendingHTLCRoutingReceive(payment_data == null ? 0 : payment_data.ptr, payment_metadata.ptr, incoming_cltv_expiry, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(phantom_shared_secret, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0)), requires_blinded_error); GC.KeepAlive(payment_data); GC.KeepAlive(payment_metadata); GC.KeepAlive(incoming_cltv_expiry); @@ -247,7 +247,7 @@ public static PendingHTLCRouting receive(org.ldk.structs.FinalOnionHopData payme * Utility method to constructs a new ReceiveKeysend-variant PendingHTLCRouting */ public static PendingHTLCRouting receive_keysend(org.ldk.structs.FinalOnionHopData payment_data, byte[] payment_preimage, org.ldk.structs.Option_CVec_u8ZZ payment_metadata, int incoming_cltv_expiry, TwoTuple_u64CVec_u8ZZ[] custom_tlvs) { - long ret = bindings.PendingHTLCRouting_receive_keysend(payment_data == null ? 0 : payment_data.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage, 32)), payment_metadata.ptr, incoming_cltv_expiry, InternalUtils.encodeUint64Array(InternalUtils.mapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0))); + long ret = Bindings.PendingHTLCRoutingReceiveKeysend(payment_data == null ? 0 : payment_data.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage, 32)), payment_metadata.ptr, incoming_cltv_expiry, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0))); GC.KeepAlive(payment_data); GC.KeepAlive(payment_preimage); GC.KeepAlive(payment_metadata); @@ -265,10 +265,10 @@ public static PendingHTLCRouting receive_keysend(org.ldk.structs.FinalOnionHopDa * Serialize the PendingHTLCRouting object into a byte array which can be read by PendingHTLCRouting_read */ public byte[] write() { - long ret = bindings.PendingHTLCRouting_write(this.ptr); + long ret = Bindings.PendingHTLCRoutingWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -276,7 +276,7 @@ public byte[] write() { * Read a PendingHTLCRouting from a byte array, created by PendingHTLCRouting_write */ public static Result_PendingHTLCRoutingDecodeErrorZ read(byte[] ser) { - long ret = bindings.PendingHTLCRouting_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PendingHTLCRoutingRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCRoutingDecodeErrorZ ret_hu_conv = Result_PendingHTLCRoutingDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Persist.cs b/c_sharp/src/org/ldk/structs/Persist.cs index 6cbed960e..a532c8d9e 100644 --- a/c_sharp/src/org/ldk/structs/Persist.cs +++ b/c_sharp/src/org/ldk/structs/Persist.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Persist */ -public interface PersistInterface { +public interface IPersist { /**Persist a new channel's data in response to a [`chain::Watch::watch_channel`] call. This is * called by [`ChannelManager`] for new channels, or may be called directly, e.g. on startup. * @@ -124,20 +124,20 @@ public interface PersistInterface { * [`TrustedCommitmentTransaction::build_to_local_justice_tx`]: crate::ln::chan_utils::TrustedCommitmentTransaction::build_to_local_justice_tx */ public class Persist : CommonBase { - internal bindings.LDKPersist bindings_instance; + internal Bindings.LDKPersist bindings_instance; internal long instance_idx; internal Persist(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Persist() { - if (ptr != 0) { bindings.Persist_free(ptr); } + if (ptr != 0) { Bindings.PersistFree(ptr); } } private class LDKPersistHolder { internal Persist held; } - private class LDKPersistImpl : bindings.LDKPersist { - internal LDKPersistImpl(PersistInterface arg, LDKPersistHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private PersistInterface arg; + private class LDKPersistImpl : Bindings.LDKPersist { + internal LDKPersistImpl(IPersist arg, LDKPersistHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IPersist arg; private LDKPersistHolder impl_holder; - public ChannelMonitorUpdateStatus persist_new_channel(long _channel_id, long _data, long _update_id) { + public ChannelMonitorUpdateStatus PersistNewChannel(long _channel_id, long _data, long _update_id) { org.ldk.structs.OutPoint _channel_id_hu_conv = null; if (_channel_id < 0 || _channel_id > 4096) { _channel_id_hu_conv = new org.ldk.structs.OutPoint(null, _channel_id); } if (_channel_id_hu_conv != null) { _channel_id_hu_conv.ptrs_to.AddLast(this); }; org.ldk.structs.ChannelMonitor _data_hu_conv = null; if (_data < 0 || _data > 4096) { _data_hu_conv = new org.ldk.structs.ChannelMonitor(null, _data); } @@ -147,7 +147,7 @@ public ChannelMonitorUpdateStatus persist_new_channel(long _channel_id, long _da GC.KeepAlive(arg); return ret; } - public ChannelMonitorUpdateStatus update_persisted_channel(long _channel_id, long _update, long _data, long _update_id) { + public ChannelMonitorUpdateStatus UpdatePersistedChannel(long _channel_id, long _update, long _data, long _update_id) { org.ldk.structs.OutPoint _channel_id_hu_conv = null; if (_channel_id < 0 || _channel_id > 4096) { _channel_id_hu_conv = new org.ldk.structs.OutPoint(null, _channel_id); } if (_channel_id_hu_conv != null) { _channel_id_hu_conv.ptrs_to.AddLast(this); }; org.ldk.structs.ChannelMonitorUpdate _update_hu_conv = null; if (_update < 0 || _update > 4096) { _update_hu_conv = new org.ldk.structs.ChannelMonitorUpdate(null, _update); } @@ -162,10 +162,10 @@ public ChannelMonitorUpdateStatus update_persisted_channel(long _channel_id, lon } /** Creates a new instance of Persist from a given implementation */ - public static Persist new_impl(PersistInterface arg) { + public static Persist new_impl(IPersist arg) { LDKPersistHolder impl_holder = new LDKPersistHolder(); LDKPersistImpl impl = new LDKPersistImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKPersist_new(impl); + long[] ptr_idx = Bindings.LDKPersistNew(impl); impl_holder.held = new Persist(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -191,7 +191,7 @@ public static Persist new_impl(PersistInterface arg) { * [`Writeable::write`]: crate::util::ser::Writeable::write */ public ChannelMonitorUpdateStatus persist_new_channel(org.ldk.structs.OutPoint channel_id, org.ldk.structs.ChannelMonitor data, org.ldk.structs.MonitorUpdateId update_id) { - ChannelMonitorUpdateStatus ret = bindings.Persist_persist_new_channel(this.ptr, channel_id == null ? 0 : channel_id.ptr, data == null ? 0 : data.ptr, update_id == null ? 0 : update_id.ptr); + ChannelMonitorUpdateStatus ret = Bindings.PersistPersistNewChannel(this.ptr, channel_id == null ? 0 : channel_id.ptr, data == null ? 0 : data.ptr, update_id == null ? 0 : update_id.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(data); @@ -240,7 +240,7 @@ public ChannelMonitorUpdateStatus persist_new_channel(org.ldk.structs.OutPoint c * Note that update (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelMonitorUpdateStatus update_persisted_channel(org.ldk.structs.OutPoint channel_id, org.ldk.structs.ChannelMonitorUpdate update, org.ldk.structs.ChannelMonitor data, org.ldk.structs.MonitorUpdateId update_id) { - ChannelMonitorUpdateStatus ret = bindings.Persist_update_persisted_channel(this.ptr, channel_id == null ? 0 : channel_id.ptr, update == null ? 0 : update.ptr, data == null ? 0 : data.ptr, update_id == null ? 0 : update_id.ptr); + ChannelMonitorUpdateStatus ret = Bindings.PersistUpdatePersistedChannel(this.ptr, channel_id == null ? 0 : channel_id.ptr, update == null ? 0 : update.ptr, data == null ? 0 : data.ptr, update_id == null ? 0 : update_id.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_id); GC.KeepAlive(update); diff --git a/c_sharp/src/org/ldk/structs/Persister.cs b/c_sharp/src/org/ldk/structs/Persister.cs index 6f707579f..829ab188c 100644 --- a/c_sharp/src/org/ldk/structs/Persister.cs +++ b/c_sharp/src/org/ldk/structs/Persister.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Persister */ -public interface PersisterInterface { +public interface IPersister { /**Persist the given ['ChannelManager'] to disk, returning an error if persistence failed. */ Result_NoneIOErrorZ persist_manager(ChannelManager channel_manager); @@ -25,34 +25,34 @@ public interface PersisterInterface { * Trait that handles persisting a [`ChannelManager`], [`NetworkGraph`], and [`WriteableScore`] to disk. */ public class Persister : CommonBase { - internal bindings.LDKPersister bindings_instance; + internal Bindings.LDKPersister bindings_instance; internal long instance_idx; internal Persister(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Persister() { - if (ptr != 0) { bindings.Persister_free(ptr); } + if (ptr != 0) { Bindings.PersisterFree(ptr); } } private class LDKPersisterHolder { internal Persister held; } - private class LDKPersisterImpl : bindings.LDKPersister { - internal LDKPersisterImpl(PersisterInterface arg, LDKPersisterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private PersisterInterface arg; + private class LDKPersisterImpl : Bindings.LDKPersister { + internal LDKPersisterImpl(IPersister arg, LDKPersisterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IPersister arg; private LDKPersisterHolder impl_holder; - public long persist_manager(long _channel_manager) { + public long PersistManager(long _channel_manager) { org.ldk.structs.ChannelManager _channel_manager_hu_conv = null; if (_channel_manager < 0 || _channel_manager > 4096) { _channel_manager_hu_conv = new org.ldk.structs.ChannelManager(null, _channel_manager); } Result_NoneIOErrorZ ret = arg.persist_manager(_channel_manager_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long persist_graph(long _network_graph) { + public long PersistGraph(long _network_graph) { org.ldk.structs.NetworkGraph _network_graph_hu_conv = null; if (_network_graph < 0 || _network_graph > 4096) { _network_graph_hu_conv = new org.ldk.structs.NetworkGraph(null, _network_graph); } Result_NoneIOErrorZ ret = arg.persist_graph(_network_graph_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long persist_scorer(long _scorer) { + public long PersistScorer(long _scorer) { WriteableScore ret_hu_conv = new WriteableScore(null, _scorer); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; Result_NoneIOErrorZ ret = arg.persist_scorer(ret_hu_conv); @@ -63,10 +63,10 @@ public long persist_scorer(long _scorer) { } /** Creates a new instance of Persister from a given implementation */ - public static Persister new_impl(PersisterInterface arg) { + public static Persister new_impl(IPersister arg) { LDKPersisterHolder impl_holder = new LDKPersisterHolder(); LDKPersisterImpl impl = new LDKPersisterImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKPersister_new(impl); + long[] ptr_idx = Bindings.LDKPersisterNew(impl); impl_holder.held = new Persister(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -78,7 +78,7 @@ public static Persister new_impl(PersisterInterface arg) { * Persist the given ['ChannelManager'] to disk, returning an error if persistence failed. */ public Result_NoneIOErrorZ persist_manager(org.ldk.structs.ChannelManager channel_manager) { - long ret = bindings.Persister_persist_manager(this.ptr, channel_manager == null ? 0 : channel_manager.ptr); + long ret = Bindings.PersisterPersistManager(this.ptr, channel_manager == null ? 0 : channel_manager.ptr); GC.KeepAlive(this); GC.KeepAlive(channel_manager); if (ret >= 0 && ret <= 4096) { return null; } @@ -91,7 +91,7 @@ public Result_NoneIOErrorZ persist_manager(org.ldk.structs.ChannelManager channe * Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed. */ public Result_NoneIOErrorZ persist_graph(org.ldk.structs.NetworkGraph network_graph) { - long ret = bindings.Persister_persist_graph(this.ptr, network_graph == null ? 0 : network_graph.ptr); + long ret = Bindings.PersisterPersistGraph(this.ptr, network_graph == null ? 0 : network_graph.ptr); GC.KeepAlive(this); GC.KeepAlive(network_graph); if (ret >= 0 && ret <= 4096) { return null; } @@ -104,7 +104,7 @@ public Result_NoneIOErrorZ persist_graph(org.ldk.structs.NetworkGraph network_gr * Persist the given [`WriteableScore`] to disk, returning an error if persistence failed. */ public Result_NoneIOErrorZ persist_scorer(org.ldk.structs.WriteableScore scorer) { - long ret = bindings.Persister_persist_scorer(this.ptr, scorer.ptr); + long ret = Bindings.PersisterPersistScorer(this.ptr, scorer.ptr); GC.KeepAlive(this); GC.KeepAlive(scorer); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/PhantomKeysManager.cs b/c_sharp/src/org/ldk/structs/PhantomKeysManager.cs index 1453a8911..af4ec1efe 100644 --- a/c_sharp/src/org/ldk/structs/PhantomKeysManager.cs +++ b/c_sharp/src/org/ldk/structs/PhantomKeysManager.cs @@ -26,7 +26,7 @@ namespace org { namespace ldk { namespace structs { public class PhantomKeysManager : CommonBase { internal PhantomKeysManager(object _dummy, long ptr) : base(ptr) { } ~PhantomKeysManager() { - if (ptr != 0) { bindings.PhantomKeysManager_free(ptr); } + if (ptr != 0) { Bindings.PhantomKeysManagerFree(ptr); } } /** @@ -34,7 +34,7 @@ internal PhantomKeysManager(object _dummy, long ptr) : base(ptr) { } * This copies the `inner` pointer in this_arg and thus the returned EntropySource must be freed before this_arg is */ public EntropySource as_EntropySource() { - long ret = bindings.PhantomKeysManager_as_EntropySource(this.ptr); + long ret = Bindings.PhantomKeysManagerAsEntropySource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } EntropySource ret_hu_conv = new EntropySource(null, ret); @@ -47,7 +47,7 @@ public EntropySource as_EntropySource() { * This copies the `inner` pointer in this_arg and thus the returned NodeSigner must be freed before this_arg is */ public NodeSigner as_NodeSigner() { - long ret = bindings.PhantomKeysManager_as_NodeSigner(this.ptr); + long ret = Bindings.PhantomKeysManagerAsNodeSigner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } NodeSigner ret_hu_conv = new NodeSigner(null, ret); @@ -60,7 +60,7 @@ public NodeSigner as_NodeSigner() { * This copies the `inner` pointer in this_arg and thus the returned SignerProvider must be freed before this_arg is */ public SignerProvider as_SignerProvider() { - long ret = bindings.PhantomKeysManager_as_SignerProvider(this.ptr); + long ret = Bindings.PhantomKeysManagerAsSignerProvider(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } SignerProvider ret_hu_conv = new SignerProvider(null, ret); @@ -82,7 +82,7 @@ public SignerProvider as_SignerProvider() { * [phantom node payments]: PhantomKeysManager */ public static PhantomKeysManager of(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed) { - long ret = bindings.PhantomKeysManager_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(seed, 32)), starting_time_secs, starting_time_nanos, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(cross_node_seed, 32))); + long ret = Bindings.PhantomKeysManagerNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(seed, 32)), starting_time_secs, starting_time_nanos, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(cross_node_seed, 32))); GC.KeepAlive(seed); GC.KeepAlive(starting_time_secs); GC.KeepAlive(starting_time_nanos); @@ -97,7 +97,7 @@ public static PhantomKeysManager of(byte[] seed, long starting_time_secs, int st * See [`KeysManager::spend_spendable_outputs`] for documentation on this method. */ public Result_TransactionNoneZ spend_spendable_outputs(SpendableOutputDescriptor[] descriptors, TxOut[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, org.ldk.structs.Option_u32Z locktime) { - long ret = bindings.PhantomKeysManager_spend_spendable_outputs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.encodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); + long ret = Bindings.PhantomKeysManagerSpendSpendableOutputs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.EncodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); GC.KeepAlive(this); GC.KeepAlive(descriptors); GC.KeepAlive(outputs); @@ -115,7 +115,7 @@ public Result_TransactionNoneZ spend_spendable_outputs(SpendableOutputDescriptor * See [`KeysManager::derive_channel_keys`] for documentation on this method. */ public InMemorySigner derive_channel_keys(long channel_value_satoshis, byte[] _params) { - long ret = bindings.PhantomKeysManager_derive_channel_keys(this.ptr, channel_value_satoshis, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(_params, 32))); + long ret = Bindings.PhantomKeysManagerDeriveChannelKeys(this.ptr, channel_value_satoshis, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(_params, 32))); GC.KeepAlive(this); GC.KeepAlive(channel_value_satoshis); GC.KeepAlive(_params); @@ -129,10 +129,10 @@ public InMemorySigner derive_channel_keys(long channel_value_satoshis, byte[] _p * Gets the \"node_id\" secret key used to sign gossip announcements, decode onion data, etc. */ public byte[] get_node_secret_key() { - long ret = bindings.PhantomKeysManager_get_node_secret_key(this.ptr); + long ret = Bindings.PhantomKeysManagerGetNodeSecretKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -141,10 +141,10 @@ public byte[] get_node_secret_key() { * last-hop onion data, etc. */ public byte[] get_phantom_node_secret_key() { - long ret = bindings.PhantomKeysManager_get_phantom_node_secret_key(this.ptr); + long ret = Bindings.PhantomKeysManagerGetPhantomNodeSecretKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/PhantomRouteHints.cs b/c_sharp/src/org/ldk/structs/PhantomRouteHints.cs index e6587b8b4..c13a002a0 100644 --- a/c_sharp/src/org/ldk/structs/PhantomRouteHints.cs +++ b/c_sharp/src/org/ldk/structs/PhantomRouteHints.cs @@ -14,25 +14,25 @@ namespace org { namespace ldk { namespace structs { public class PhantomRouteHints : CommonBase { internal PhantomRouteHints(object _dummy, long ptr) : base(ptr) { } ~PhantomRouteHints() { - if (ptr != 0) { bindings.PhantomRouteHints_free(ptr); } + if (ptr != 0) { Bindings.PhantomRouteHintsFree(ptr); } } /** * The list of channels to be included in the invoice route hints. */ public ChannelDetails[] get_channels() { - long ret = bindings.PhantomRouteHints_get_channels(this.ptr); + long ret = Bindings.PhantomRouteHintsGetChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_16_len = InternalUtils.getArrayLength(ret); + int ret_conv_16_len = InternalUtils.GetArrayLength(ret); ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len]; for (int q = 0; q < ret_conv_16_len; q++) { - long ret_conv_16 = InternalUtils.getU64ArrayElem(ret, q); + long ret_conv_16 = InternalUtils.GetU64ArrayElem(ret, q); org.ldk.structs.ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, ret_conv_16); } if (ret_conv_16_hu_conv != null) { ret_conv_16_hu_conv.ptrs_to.AddLast(this); }; ret_conv_16_arr[q] = ret_conv_16_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_16_arr; } @@ -40,7 +40,7 @@ public ChannelDetails[] get_channels() { * The list of channels to be included in the invoice route hints. */ public void set_channels(ChannelDetails[] val) { - bindings.PhantomRouteHints_set_channels(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_16 => val_conv_16 == null ? 0 : val_conv_16.ptr))); + Bindings.PhantomRouteHintsSetChannels(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_16 => val_conv_16 == null ? 0 : val_conv_16.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (ChannelDetails val_conv_16 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_16); }; }; @@ -51,7 +51,7 @@ public void set_channels(ChannelDetails[] val) { * route hints. */ public long get_phantom_scid() { - long ret = bindings.PhantomRouteHints_get_phantom_scid(this.ptr); + long ret = Bindings.PhantomRouteHintsGetPhantomScid(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ public long get_phantom_scid() { * route hints. */ public void set_phantom_scid(long val) { - bindings.PhantomRouteHints_set_phantom_scid(this.ptr, val); + Bindings.PhantomRouteHintsSetPhantomScid(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -70,10 +70,10 @@ public void set_phantom_scid(long val) { * The pubkey of the real backing node that would ultimately receive the payment. */ public byte[] get_real_node_pubkey() { - long ret = bindings.PhantomRouteHints_get_real_node_pubkey(this.ptr); + long ret = Bindings.PhantomRouteHintsGetRealNodePubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -81,7 +81,7 @@ public byte[] get_real_node_pubkey() { * The pubkey of the real backing node that would ultimately receive the payment. */ public void set_real_node_pubkey(byte[] val) { - bindings.PhantomRouteHints_set_real_node_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.PhantomRouteHintsSetRealNodePubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -90,7 +90,7 @@ public void set_real_node_pubkey(byte[] val) { * Constructs a new PhantomRouteHints given each field */ public static PhantomRouteHints of(ChannelDetails[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg) { - long ret = bindings.PhantomRouteHints_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(channels_arg, channels_arg_conv_16 => channels_arg_conv_16 == null ? 0 : channels_arg_conv_16.ptr)), phantom_scid_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(real_node_pubkey_arg, 33))); + long ret = Bindings.PhantomRouteHintsNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(channels_arg, channels_arg_conv_16 => channels_arg_conv_16 == null ? 0 : channels_arg_conv_16.ptr)), phantom_scid_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(real_node_pubkey_arg, 33))); GC.KeepAlive(channels_arg); GC.KeepAlive(phantom_scid_arg); GC.KeepAlive(real_node_pubkey_arg); @@ -102,7 +102,7 @@ public static PhantomRouteHints of(ChannelDetails[] channels_arg, long phantom_s } internal long clone_ptr() { - long ret = bindings.PhantomRouteHints_clone_ptr(this.ptr); + long ret = Bindings.PhantomRouteHintsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -111,7 +111,7 @@ internal long clone_ptr() { * Creates a copy of the PhantomRouteHints */ public PhantomRouteHints clone() { - long ret = bindings.PhantomRouteHints_clone(this.ptr); + long ret = Bindings.PhantomRouteHintsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PhantomRouteHints ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PhantomRouteHints(null, ret); } @@ -123,10 +123,10 @@ public PhantomRouteHints clone() { * Serialize the PhantomRouteHints object into a byte array which can be read by PhantomRouteHints_read */ public byte[] write() { - long ret = bindings.PhantomRouteHints_write(this.ptr); + long ret = Bindings.PhantomRouteHintsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -134,7 +134,7 @@ public byte[] write() { * Read a PhantomRouteHints from a byte array, created by PhantomRouteHints_write */ public static Result_PhantomRouteHintsDecodeErrorZ read(byte[] ser) { - long ret = bindings.PhantomRouteHints_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PhantomRouteHintsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PhantomRouteHintsDecodeErrorZ ret_hu_conv = Result_PhantomRouteHintsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Ping.cs b/c_sharp/src/org/ldk/structs/Ping.cs index cf5d834d8..7e136b1b9 100644 --- a/c_sharp/src/org/ldk/structs/Ping.cs +++ b/c_sharp/src/org/ldk/structs/Ping.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class Ping : CommonBase { internal Ping(object _dummy, long ptr) : base(ptr) { } ~Ping() { - if (ptr != 0) { bindings.Ping_free(ptr); } + if (ptr != 0) { Bindings.PingFree(ptr); } } /** * The desired response length. */ public short get_ponglen() { - short ret = bindings.Ping_get_ponglen(this.ptr); + short ret = Bindings.PingGetPonglen(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,7 +30,7 @@ public short get_ponglen() { * The desired response length. */ public void set_ponglen(short val) { - bindings.Ping_set_ponglen(this.ptr, val); + Bindings.PingSetPonglen(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_ponglen(short val) { * This field is not sent on the wire. byteslen zeros are sent. */ public short get_byteslen() { - short ret = bindings.Ping_get_byteslen(this.ptr); + short ret = Bindings.PingGetByteslen(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public short get_byteslen() { * This field is not sent on the wire. byteslen zeros are sent. */ public void set_byteslen(short val) { - bindings.Ping_set_byteslen(this.ptr, val); + Bindings.PingSetByteslen(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_byteslen(short val) { * Constructs a new Ping given each field */ public static Ping of(short ponglen_arg, short byteslen_arg) { - long ret = bindings.Ping_new(ponglen_arg, byteslen_arg); + long ret = Bindings.PingNew(ponglen_arg, byteslen_arg); GC.KeepAlive(ponglen_arg); GC.KeepAlive(byteslen_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -71,7 +71,7 @@ public static Ping of(short ponglen_arg, short byteslen_arg) { } internal long clone_ptr() { - long ret = bindings.Ping_clone_ptr(this.ptr); + long ret = Bindings.PingClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * Creates a copy of the Ping */ public Ping clone() { - long ret = bindings.Ping_clone(this.ptr); + long ret = Bindings.PingClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Ping ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Ping(null, ret); } @@ -92,7 +92,7 @@ public Ping clone() { * Generates a non-cryptographic 64-bit hash of the Ping. */ public long hash() { - long ret = bindings.Ping_hash(this.ptr); + long ret = Bindings.PingHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Ping b) { - bool ret = bindings.Ping_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PingEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -121,10 +121,10 @@ public override bool Equals(object o) { * Serialize the Ping object into a byte array which can be read by Ping_read */ public byte[] write() { - long ret = bindings.Ping_write(this.ptr); + long ret = Bindings.PingWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -132,7 +132,7 @@ public byte[] write() { * Read a Ping from a byte array, created by Ping_write */ public static Result_PingDecodeErrorZ read(byte[] ser) { - long ret = bindings.Ping_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PingRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Pong.cs b/c_sharp/src/org/ldk/structs/Pong.cs index 7d31da140..9df42d06e 100644 --- a/c_sharp/src/org/ldk/structs/Pong.cs +++ b/c_sharp/src/org/ldk/structs/Pong.cs @@ -14,7 +14,7 @@ namespace org { namespace ldk { namespace structs { public class Pong : CommonBase { internal Pong(object _dummy, long ptr) : base(ptr) { } ~Pong() { - if (ptr != 0) { bindings.Pong_free(ptr); } + if (ptr != 0) { Bindings.PongFree(ptr); } } /** @@ -23,7 +23,7 @@ internal Pong(object _dummy, long ptr) : base(ptr) { } * This field is not sent on the wire. byteslen zeros are sent. */ public short get_byteslen() { - short ret = bindings.Pong_get_byteslen(this.ptr); + short ret = Bindings.PongGetByteslen(this.ptr); GC.KeepAlive(this); return ret; } @@ -34,7 +34,7 @@ public short get_byteslen() { * This field is not sent on the wire. byteslen zeros are sent. */ public void set_byteslen(short val) { - bindings.Pong_set_byteslen(this.ptr, val); + Bindings.PongSetByteslen(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_byteslen(short val) { * Constructs a new Pong given each field */ public static Pong of(short byteslen_arg) { - long ret = bindings.Pong_new(byteslen_arg); + long ret = Bindings.PongNew(byteslen_arg); GC.KeepAlive(byteslen_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Pong(null, ret); } @@ -52,7 +52,7 @@ public static Pong of(short byteslen_arg) { } internal long clone_ptr() { - long ret = bindings.Pong_clone_ptr(this.ptr); + long ret = Bindings.PongClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * Creates a copy of the Pong */ public Pong clone() { - long ret = bindings.Pong_clone(this.ptr); + long ret = Bindings.PongClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Pong(null, ret); } @@ -73,7 +73,7 @@ public Pong clone() { * Generates a non-cryptographic 64-bit hash of the Pong. */ public long hash() { - long ret = bindings.Pong_hash(this.ptr); + long ret = Bindings.PongHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -87,7 +87,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Pong b) { - bool ret = bindings.Pong_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PongEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -102,10 +102,10 @@ public override bool Equals(object o) { * Serialize the Pong object into a byte array which can be read by Pong_read */ public byte[] write() { - long ret = bindings.Pong_write(this.ptr); + long ret = Bindings.PongWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -113,7 +113,7 @@ public byte[] write() { * Read a Pong from a byte array, created by Pong_write */ public static Result_PongDecodeErrorZ read(byte[] ser) { - long ret = bindings.Pong_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PongRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/PositiveTimestamp.cs b/c_sharp/src/org/ldk/structs/PositiveTimestamp.cs index ad36693d2..237758b9a 100644 --- a/c_sharp/src/org/ldk/structs/PositiveTimestamp.cs +++ b/c_sharp/src/org/ldk/structs/PositiveTimestamp.cs @@ -17,7 +17,7 @@ namespace org { namespace ldk { namespace structs { public class PositiveTimestamp : CommonBase { internal PositiveTimestamp(object _dummy, long ptr) : base(ptr) { } ~PositiveTimestamp() { - if (ptr != 0) { bindings.PositiveTimestamp_free(ptr); } + if (ptr != 0) { Bindings.PositiveTimestampFree(ptr); } } /** @@ -26,7 +26,7 @@ internal PositiveTimestamp(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.PositiveTimestamp b) { - bool ret = bindings.PositiveTimestamp_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PositiveTimestampEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -38,7 +38,7 @@ public override bool Equals(object o) { return this.eq((PositiveTimestamp)o); } internal long clone_ptr() { - long ret = bindings.PositiveTimestamp_clone_ptr(this.ptr); + long ret = Bindings.PositiveTimestampClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -47,7 +47,7 @@ internal long clone_ptr() { * Creates a copy of the PositiveTimestamp */ public PositiveTimestamp clone() { - long ret = bindings.PositiveTimestamp_clone(this.ptr); + long ret = Bindings.PositiveTimestampClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PositiveTimestamp ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PositiveTimestamp(null, ret); } @@ -59,7 +59,7 @@ public PositiveTimestamp clone() { * Generates a non-cryptographic 64-bit hash of the PositiveTimestamp. */ public long hash() { - long ret = bindings.PositiveTimestamp_hash(this.ptr); + long ret = Bindings.PositiveTimestampHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ public override int GetHashCode() { * Otherwise, returns a [`CreationError::TimestampOutOfBounds`]. */ public static Result_PositiveTimestampCreationErrorZ from_unix_timestamp(long unix_seconds) { - long ret = bindings.PositiveTimestamp_from_unix_timestamp(unix_seconds); + long ret = Bindings.PositiveTimestampFromUnixTimestamp(unix_seconds); GC.KeepAlive(unix_seconds); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); @@ -89,7 +89,7 @@ public static Result_PositiveTimestampCreationErrorZ from_unix_timestamp(long un * Otherwise, returns a [`CreationError::TimestampOutOfBounds`]. */ public static Result_PositiveTimestampCreationErrorZ from_system_time(long time) { - long ret = bindings.PositiveTimestamp_from_system_time(time); + long ret = Bindings.PositiveTimestampFromSystemTime(time); GC.KeepAlive(time); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); @@ -105,7 +105,7 @@ public static Result_PositiveTimestampCreationErrorZ from_system_time(long time) * Otherwise, returns a [`CreationError::TimestampOutOfBounds`]. */ public static Result_PositiveTimestampCreationErrorZ from_duration_since_epoch(long duration) { - long ret = bindings.PositiveTimestamp_from_duration_since_epoch(duration); + long ret = Bindings.PositiveTimestampFromDurationSinceEpoch(duration); GC.KeepAlive(duration); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); @@ -116,7 +116,7 @@ public static Result_PositiveTimestampCreationErrorZ from_duration_since_epoch(l * Returns the Unix timestamp representing the stored time */ public long as_unix_timestamp() { - long ret = bindings.PositiveTimestamp_as_unix_timestamp(this.ptr); + long ret = Bindings.PositiveTimestampAsUnixTimestamp(this.ptr); GC.KeepAlive(this); return ret; } @@ -125,7 +125,7 @@ public long as_unix_timestamp() { * Returns the duration of the stored time since the Unix epoch */ public long as_duration_since_epoch() { - long ret = bindings.PositiveTimestamp_as_duration_since_epoch(this.ptr); + long ret = Bindings.PositiveTimestampAsDurationSinceEpoch(this.ptr); GC.KeepAlive(this); return ret; } @@ -134,7 +134,7 @@ public long as_duration_since_epoch() { * Returns the [`SystemTime`] representing the stored time */ public long as_time() { - long ret = bindings.PositiveTimestamp_as_time(this.ptr); + long ret = Bindings.PositiveTimestampAsTime(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/PrintableString.cs b/c_sharp/src/org/ldk/structs/PrintableString.cs index 075cad4f2..bcfec0d0a 100644 --- a/c_sharp/src/org/ldk/structs/PrintableString.cs +++ b/c_sharp/src/org/ldk/structs/PrintableString.cs @@ -13,19 +13,19 @@ namespace org { namespace ldk { namespace structs { public class PrintableString : CommonBase { internal PrintableString(object _dummy, long ptr) : base(ptr) { } ~PrintableString() { - if (ptr != 0) { bindings.PrintableString_free(ptr); } + if (ptr != 0) { Bindings.PrintableStringFree(ptr); } } public string get_a() { - long ret = bindings.PrintableString_get_a(this.ptr); + long ret = Bindings.PrintableStringGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } public void set_a(string val) { - bindings.PrintableString_set_a(this.ptr, InternalUtils.encodeString(val)); + Bindings.PrintableStringSetA(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -34,7 +34,7 @@ public void set_a(string val) { * Constructs a new PrintableString given each field */ public static PrintableString of(string a_arg) { - long ret = bindings.PrintableString_new(InternalUtils.encodeString(a_arg)); + long ret = Bindings.PrintableStringNew(InternalUtils.EncodeString(a_arg)); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/PrivateHopCandidate.cs b/c_sharp/src/org/ldk/structs/PrivateHopCandidate.cs index 12018e5a9..9d5c9d9b0 100644 --- a/c_sharp/src/org/ldk/structs/PrivateHopCandidate.cs +++ b/c_sharp/src/org/ldk/structs/PrivateHopCandidate.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class PrivateHopCandidate : CommonBase { internal PrivateHopCandidate(object _dummy, long ptr) : base(ptr) { } ~PrivateHopCandidate() { - if (ptr != 0) { bindings.PrivateHopCandidate_free(ptr); } + if (ptr != 0) { Bindings.PrivateHopCandidateFree(ptr); } } internal long clone_ptr() { - long ret = bindings.PrivateHopCandidate_clone_ptr(this.ptr); + long ret = Bindings.PrivateHopCandidateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the PrivateHopCandidate */ public PrivateHopCandidate clone() { - long ret = bindings.PrivateHopCandidate_clone(this.ptr); + long ret = Bindings.PrivateHopCandidateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrivateHopCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrivateHopCandidate(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/PrivateRoute.cs b/c_sharp/src/org/ldk/structs/PrivateRoute.cs index 96e696046..8b8a8f63c 100644 --- a/c_sharp/src/org/ldk/structs/PrivateRoute.cs +++ b/c_sharp/src/org/ldk/structs/PrivateRoute.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class PrivateRoute : CommonBase { internal PrivateRoute(object _dummy, long ptr) : base(ptr) { } ~PrivateRoute() { - if (ptr != 0) { bindings.PrivateRoute_free(ptr); } + if (ptr != 0) { Bindings.PrivateRouteFree(ptr); } } internal long clone_ptr() { - long ret = bindings.PrivateRoute_clone_ptr(this.ptr); + long ret = Bindings.PrivateRouteClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ internal long clone_ptr() { * Creates a copy of the PrivateRoute */ public PrivateRoute clone() { - long ret = bindings.PrivateRoute_clone(this.ptr); + long ret = Bindings.PrivateRouteClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrivateRoute ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrivateRoute(null, ret); } @@ -40,7 +40,7 @@ public PrivateRoute clone() { * Generates a non-cryptographic 64-bit hash of the PrivateRoute. */ public long hash() { - long ret = bindings.PrivateRoute_hash(this.ptr); + long ret = Bindings.PrivateRouteHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.PrivateRoute b) { - bool ret = bindings.PrivateRoute_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.PrivateRouteEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -69,7 +69,7 @@ public override bool Equals(object o) { * Creates a new (partial) route from a list of hops */ public static Result_PrivateRouteCreationErrorZ of(org.ldk.structs.RouteHint hops) { - long ret = bindings.PrivateRoute_new(hops == null ? 0 : hops.ptr); + long ret = Bindings.PrivateRouteNew(hops == null ? 0 : hops.ptr); GC.KeepAlive(hops); if (ret >= 0 && ret <= 4096) { return null; } Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret); @@ -81,7 +81,7 @@ public static Result_PrivateRouteCreationErrorZ of(org.ldk.structs.RouteHint hop * Returns the underlying list of hops */ public RouteHint into_inner() { - long ret = bindings.PrivateRoute_into_inner(this.ptr); + long ret = Bindings.PrivateRouteIntoInner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteHint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHint(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/ProbabilisticScorer.cs b/c_sharp/src/org/ldk/structs/ProbabilisticScorer.cs index 333e3ab44..05a3f59d8 100644 --- a/c_sharp/src/org/ldk/structs/ProbabilisticScorer.cs +++ b/c_sharp/src/org/ldk/structs/ProbabilisticScorer.cs @@ -42,7 +42,7 @@ namespace org { namespace ldk { namespace structs { public class ProbabilisticScorer : CommonBase { internal ProbabilisticScorer(object _dummy, long ptr) : base(ptr) { } ~ProbabilisticScorer() { - if (ptr != 0) { bindings.ProbabilisticScorer_free(ptr); } + if (ptr != 0) { Bindings.ProbabilisticScorerFree(ptr); } } /** @@ -50,7 +50,7 @@ internal ProbabilisticScorer(object _dummy, long ptr) : base(ptr) { } * through a network graph. */ public static ProbabilisticScorer of(org.ldk.structs.ProbabilisticScoringDecayParameters decay_params, org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.Logger logger) { - long ret = bindings.ProbabilisticScorer_new(decay_params == null ? 0 : decay_params.ptr, network_graph == null ? 0 : network_graph.ptr, logger.ptr); + long ret = Bindings.ProbabilisticScorerNew(decay_params == null ? 0 : decay_params.ptr, network_graph == null ? 0 : network_graph.ptr, logger.ptr); GC.KeepAlive(decay_params); GC.KeepAlive(network_graph); GC.KeepAlive(logger); @@ -70,7 +70,7 @@ public static ProbabilisticScorer of(org.ldk.structs.ProbabilisticScoringDecayPa * which may be a substantial amount of log output. */ public void debug_log_liquidity_stats() { - bindings.ProbabilisticScorer_debug_log_liquidity_stats(this.ptr); + Bindings.ProbabilisticScorerDebugLogLiquidityStats(this.ptr); GC.KeepAlive(this); } @@ -79,7 +79,7 @@ public void debug_log_liquidity_stats() { * channel with `scid` towards the given `target` node. */ public Option_C2Tuple_u64u64ZZ estimated_channel_liquidity_range(long scid, org.ldk.structs.NodeId target) { - long ret = bindings.ProbabilisticScorer_estimated_channel_liquidity_range(this.ptr, scid, target == null ? 0 : target.ptr); + long ret = Bindings.ProbabilisticScorerEstimatedChannelLiquidityRange(this.ptr, scid, target == null ? 0 : target.ptr); GC.KeepAlive(this); GC.KeepAlive(scid); GC.KeepAlive(target); @@ -119,7 +119,7 @@ public Option_C2Tuple_u64u64ZZ estimated_channel_liquidity_range(long scid, org. * the scoring model, see [`Self::historical_estimated_payment_success_probability`]. */ public Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ historical_estimated_channel_liquidity_probabilities(long scid, org.ldk.structs.NodeId target) { - long ret = bindings.ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(this.ptr, scid, target == null ? 0 : target.ptr); + long ret = Bindings.ProbabilisticScorerHistoricalEstimatedChannelLiquidityProbabilities(this.ptr, scid, target == null ? 0 : target.ptr); GC.KeepAlive(this); GC.KeepAlive(scid); GC.KeepAlive(target); @@ -140,7 +140,7 @@ public Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ historical_estimated_channel_ * [`Self::estimated_channel_liquidity_range`]). */ public Option_f64Z historical_estimated_payment_success_probability(long scid, org.ldk.structs.NodeId target, long amount_msat, org.ldk.structs.ProbabilisticScoringFeeParameters _params) { - long ret = bindings.ProbabilisticScorer_historical_estimated_payment_success_probability(this.ptr, scid, target == null ? 0 : target.ptr, amount_msat, _params == null ? 0 : _params.ptr); + long ret = Bindings.ProbabilisticScorerHistoricalEstimatedPaymentSuccessProbability(this.ptr, scid, target == null ? 0 : target.ptr, amount_msat, _params == null ? 0 : _params.ptr); GC.KeepAlive(this); GC.KeepAlive(scid); GC.KeepAlive(target); @@ -159,7 +159,7 @@ public Option_f64Z historical_estimated_payment_success_probability(long scid, o * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ public ScoreLookUp as_ScoreLookUp() { - long ret = bindings.ProbabilisticScorer_as_ScoreLookUp(this.ptr); + long ret = Bindings.ProbabilisticScorerAsScoreLookUp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); @@ -172,7 +172,7 @@ public ScoreLookUp as_ScoreLookUp() { * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is */ public ScoreUpdate as_ScoreUpdate() { - long ret = bindings.ProbabilisticScorer_as_ScoreUpdate(this.ptr); + long ret = Bindings.ProbabilisticScorerAsScoreUpdate(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreUpdate ret_hu_conv = new ScoreUpdate(null, ret); @@ -185,7 +185,7 @@ public ScoreUpdate as_ScoreUpdate() { * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is */ public Score as_Score() { - long ret = bindings.ProbabilisticScorer_as_Score(this.ptr); + long ret = Bindings.ProbabilisticScorerAsScore(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Score ret_hu_conv = new Score(null, ret); @@ -197,10 +197,10 @@ public Score as_Score() { * Serialize the ProbabilisticScorer object into a byte array which can be read by ProbabilisticScorer_read */ public byte[] write() { - long ret = bindings.ProbabilisticScorer_write(this.ptr); + long ret = Bindings.ProbabilisticScorerWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -208,7 +208,7 @@ public byte[] write() { * Read a ProbabilisticScorer from a byte array, created by ProbabilisticScorer_write */ public static Result_ProbabilisticScorerDecodeErrorZ read(byte[] ser, org.ldk.structs.ProbabilisticScoringDecayParameters arg_a, org.ldk.structs.NetworkGraph arg_b, org.ldk.structs.Logger arg_c) { - long ret = bindings.ProbabilisticScorer_read(InternalUtils.encodeUint8Array(ser), arg_a == null ? 0 : arg_a.ptr, arg_b == null ? 0 : arg_b.ptr, arg_c.ptr); + long ret = Bindings.ProbabilisticScorerRead(InternalUtils.EncodeUint8Array(ser), arg_a == null ? 0 : arg_a.ptr, arg_b == null ? 0 : arg_b.ptr, arg_c.ptr); GC.KeepAlive(ser); GC.KeepAlive(arg_a); GC.KeepAlive(arg_b); diff --git a/c_sharp/src/org/ldk/structs/ProbabilisticScoringDecayParameters.cs b/c_sharp/src/org/ldk/structs/ProbabilisticScoringDecayParameters.cs index 7f0cfd638..075bedb9d 100644 --- a/c_sharp/src/org/ldk/structs/ProbabilisticScoringDecayParameters.cs +++ b/c_sharp/src/org/ldk/structs/ProbabilisticScoringDecayParameters.cs @@ -16,7 +16,7 @@ namespace org { namespace ldk { namespace structs { public class ProbabilisticScoringDecayParameters : CommonBase { internal ProbabilisticScoringDecayParameters(object _dummy, long ptr) : base(ptr) { } ~ProbabilisticScoringDecayParameters() { - if (ptr != 0) { bindings.ProbabilisticScoringDecayParameters_free(ptr); } + if (ptr != 0) { Bindings.ProbabilisticScoringDecayParametersFree(ptr); } } /** @@ -33,7 +33,7 @@ internal ProbabilisticScoringDecayParameters(object _dummy, long ptr) : base(ptr * [`historical_estimated_channel_liquidity_probabilities`]: ProbabilisticScorer::historical_estimated_channel_liquidity_probabilities */ public long get_historical_no_updates_half_life() { - long ret = bindings.ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(this.ptr); + long ret = Bindings.ProbabilisticScoringDecayParametersGetHistoricalNoUpdatesHalfLife(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public long get_historical_no_updates_half_life() { * [`historical_estimated_channel_liquidity_probabilities`]: ProbabilisticScorer::historical_estimated_channel_liquidity_probabilities */ public void set_historical_no_updates_half_life(long val) { - bindings.ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(this.ptr, val); + Bindings.ProbabilisticScoringDecayParametersSetHistoricalNoUpdatesHalfLife(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_historical_no_updates_half_life(long val) { * liquidity knowledge will never decay except when the bounds cross. */ public long get_liquidity_offset_half_life() { - long ret = bindings.ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(this.ptr); + long ret = Bindings.ProbabilisticScoringDecayParametersGetLiquidityOffsetHalfLife(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public long get_liquidity_offset_half_life() { * liquidity knowledge will never decay except when the bounds cross. */ public void set_liquidity_offset_half_life(long val) { - bindings.ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(this.ptr, val); + Bindings.ProbabilisticScoringDecayParametersSetLiquidityOffsetHalfLife(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,7 +115,7 @@ public void set_liquidity_offset_half_life(long val) { * Constructs a new ProbabilisticScoringDecayParameters given each field */ public static ProbabilisticScoringDecayParameters of(long historical_no_updates_half_life_arg, long liquidity_offset_half_life_arg) { - long ret = bindings.ProbabilisticScoringDecayParameters_new(historical_no_updates_half_life_arg, liquidity_offset_half_life_arg); + long ret = Bindings.ProbabilisticScoringDecayParametersNew(historical_no_updates_half_life_arg, liquidity_offset_half_life_arg); GC.KeepAlive(historical_no_updates_half_life_arg); GC.KeepAlive(liquidity_offset_half_life_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -125,7 +125,7 @@ public static ProbabilisticScoringDecayParameters of(long historical_no_updates_ } internal long clone_ptr() { - long ret = bindings.ProbabilisticScoringDecayParameters_clone_ptr(this.ptr); + long ret = Bindings.ProbabilisticScoringDecayParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -134,7 +134,7 @@ internal long clone_ptr() { * Creates a copy of the ProbabilisticScoringDecayParameters */ public ProbabilisticScoringDecayParameters clone() { - long ret = bindings.ProbabilisticScoringDecayParameters_clone(this.ptr); + long ret = Bindings.ProbabilisticScoringDecayParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbabilisticScoringDecayParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringDecayParameters(null, ret); } @@ -146,7 +146,7 @@ public ProbabilisticScoringDecayParameters clone() { * Creates a "default" ProbabilisticScoringDecayParameters. See struct and individual field documentaiton for details on which values are used. */ public static ProbabilisticScoringDecayParameters with_default() { - long ret = bindings.ProbabilisticScoringDecayParameters_default(); + long ret = Bindings.ProbabilisticScoringDecayParametersDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbabilisticScoringDecayParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringDecayParameters(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/ProbabilisticScoringFeeParameters.cs b/c_sharp/src/org/ldk/structs/ProbabilisticScoringFeeParameters.cs index c901c71d6..5200a4650 100644 --- a/c_sharp/src/org/ldk/structs/ProbabilisticScoringFeeParameters.cs +++ b/c_sharp/src/org/ldk/structs/ProbabilisticScoringFeeParameters.cs @@ -18,7 +18,7 @@ namespace org { namespace ldk { namespace structs { public class ProbabilisticScoringFeeParameters : CommonBase { internal ProbabilisticScoringFeeParameters(object _dummy, long ptr) : base(ptr) { } ~ProbabilisticScoringFeeParameters() { - if (ptr != 0) { bindings.ProbabilisticScoringFeeParameters_free(ptr); } + if (ptr != 0) { Bindings.ProbabilisticScoringFeeParametersFree(ptr); } } /** @@ -27,7 +27,7 @@ internal ProbabilisticScoringFeeParameters(object _dummy, long ptr) : base(ptr) * Default value: 500 msat */ public long get_base_penalty_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_base_penalty_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetBasePenaltyMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -38,7 +38,7 @@ public long get_base_penalty_msat() { * Default value: 500 msat */ public void set_base_penalty_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_base_penalty_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetBasePenaltyMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_base_penalty_msat(long val) { * [`base_penalty_msat`]: Self::base_penalty_msat */ public long get_base_penalty_amount_multiplier_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetBasePenaltyAmountMultiplierMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ public long get_base_penalty_amount_multiplier_msat() { * [`base_penalty_msat`]: Self::base_penalty_msat */ public void set_base_penalty_amount_multiplier_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetBasePenaltyAmountMultiplierMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -104,7 +104,7 @@ public void set_base_penalty_amount_multiplier_msat(long val) { * [`liquidity_offset_half_life`]: ProbabilisticScoringDecayParameters::liquidity_offset_half_life */ public long get_liquidity_penalty_multiplier_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetLiquidityPenaltyMultiplierMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -128,7 +128,7 @@ public long get_liquidity_penalty_multiplier_msat() { * [`liquidity_offset_half_life`]: ProbabilisticScoringDecayParameters::liquidity_offset_half_life */ public void set_liquidity_penalty_multiplier_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetLiquidityPenaltyMultiplierMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -154,7 +154,7 @@ public void set_liquidity_penalty_multiplier_msat(long val) { * Default value: 192 msat */ public long get_liquidity_penalty_amount_multiplier_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetLiquidityPenaltyAmountMultiplierMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -180,7 +180,7 @@ public long get_liquidity_penalty_amount_multiplier_msat() { * Default value: 192 msat */ public void set_liquidity_penalty_amount_multiplier_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetLiquidityPenaltyAmountMultiplierMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -202,7 +202,7 @@ public void set_liquidity_penalty_amount_multiplier_msat(long val) { * [`liquidity_penalty_multiplier_msat`]: Self::liquidity_penalty_multiplier_msat */ public long get_historical_liquidity_penalty_multiplier_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetHistoricalLiquidityPenaltyMultiplierMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -224,7 +224,7 @@ public long get_historical_liquidity_penalty_multiplier_msat() { * [`liquidity_penalty_multiplier_msat`]: Self::liquidity_penalty_multiplier_msat */ public void set_historical_liquidity_penalty_multiplier_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetHistoricalLiquidityPenaltyMultiplierMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -252,7 +252,7 @@ public void set_historical_liquidity_penalty_multiplier_msat(long val) { * [`liquidity_penalty_amount_multiplier_msat`]: Self::liquidity_penalty_amount_multiplier_msat */ public long get_historical_liquidity_penalty_amount_multiplier_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetHistoricalLiquidityPenaltyAmountMultiplierMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -280,7 +280,7 @@ public long get_historical_liquidity_penalty_amount_multiplier_msat() { * [`liquidity_penalty_amount_multiplier_msat`]: Self::liquidity_penalty_amount_multiplier_msat */ public void set_historical_liquidity_penalty_amount_multiplier_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetHistoricalLiquidityPenaltyAmountMultiplierMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -295,7 +295,7 @@ public void set_historical_liquidity_penalty_amount_multiplier_msat(long val) { * Default value: 250 msat */ public long get_anti_probing_penalty_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetAntiProbingPenaltyMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -310,7 +310,7 @@ public long get_anti_probing_penalty_msat() { * Default value: 250 msat */ public void set_anti_probing_penalty_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetAntiProbingPenaltyMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -336,7 +336,7 @@ public void set_anti_probing_penalty_msat(long val) { * [`anti_probing_penalty_msat`]: Self::anti_probing_penalty_msat */ public long get_considered_impossible_penalty_msat() { - long ret = bindings.ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersGetConsideredImpossiblePenaltyMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -362,7 +362,7 @@ public long get_considered_impossible_penalty_msat() { * [`anti_probing_penalty_msat`]: Self::anti_probing_penalty_msat */ public void set_considered_impossible_penalty_msat(long val) { - bindings.ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetConsideredImpossiblePenaltyMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -390,7 +390,7 @@ public void set_considered_impossible_penalty_msat(long val) { * Default value: false */ public bool get_linear_success_probability() { - bool ret = bindings.ProbabilisticScoringFeeParameters_get_linear_success_probability(this.ptr); + bool ret = Bindings.ProbabilisticScoringFeeParametersGetLinearSuccessProbability(this.ptr); GC.KeepAlive(this); return ret; } @@ -418,13 +418,13 @@ public bool get_linear_success_probability() { * Default value: false */ public void set_linear_success_probability(bool val) { - bindings.ProbabilisticScoringFeeParameters_set_linear_success_probability(this.ptr, val); + Bindings.ProbabilisticScoringFeeParametersSetLinearSuccessProbability(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.ProbabilisticScoringFeeParameters_clone_ptr(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -433,7 +433,7 @@ internal long clone_ptr() { * Creates a copy of the ProbabilisticScoringFeeParameters */ public ProbabilisticScoringFeeParameters clone() { - long ret = bindings.ProbabilisticScoringFeeParameters_clone(this.ptr); + long ret = Bindings.ProbabilisticScoringFeeParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbabilisticScoringFeeParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringFeeParameters(null, ret); } @@ -445,7 +445,7 @@ public ProbabilisticScoringFeeParameters clone() { * Creates a "default" ProbabilisticScoringFeeParameters. See struct and individual field documentaiton for details on which values are used. */ public static ProbabilisticScoringFeeParameters with_default() { - long ret = bindings.ProbabilisticScoringFeeParameters_default(); + long ret = Bindings.ProbabilisticScoringFeeParametersDefault(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbabilisticScoringFeeParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringFeeParameters(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -457,7 +457,7 @@ public static ProbabilisticScoringFeeParameters with_default() { * i.e it will be avoided during path finding. */ public void add_banned(org.ldk.structs.NodeId node_id) { - bindings.ProbabilisticScoringFeeParameters_add_banned(this.ptr, node_id == null ? 0 : node_id.ptr); + Bindings.ProbabilisticScoringFeeParametersAddBanned(this.ptr, node_id == null ? 0 : node_id.ptr); GC.KeepAlive(this); GC.KeepAlive(node_id); if (this != null) { this.ptrs_to.AddLast(node_id); }; @@ -468,7 +468,7 @@ public void add_banned(org.ldk.structs.NodeId node_id) { * they will be avoided during path finding. */ public void add_banned_from_list(NodeId[] node_ids) { - bindings.ProbabilisticScoringFeeParameters_add_banned_from_list(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(node_ids, node_ids_conv_8 => node_ids_conv_8 == null ? 0 : node_ids_conv_8.ptr))); + Bindings.ProbabilisticScoringFeeParametersAddBannedFromList(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(node_ids, node_ids_conv_8 => node_ids_conv_8 == null ? 0 : node_ids_conv_8.ptr))); GC.KeepAlive(this); GC.KeepAlive(node_ids); foreach (NodeId node_ids_conv_8 in node_ids) { if (this != null) { this.ptrs_to.AddLast(node_ids_conv_8); }; }; @@ -478,7 +478,7 @@ public void add_banned_from_list(NodeId[] node_ids) { * Removes the node with the given `node_id` from the list of nodes to avoid. */ public void remove_banned(org.ldk.structs.NodeId node_id) { - bindings.ProbabilisticScoringFeeParameters_remove_banned(this.ptr, node_id == null ? 0 : node_id.ptr); + Bindings.ProbabilisticScoringFeeParametersRemoveBanned(this.ptr, node_id == null ? 0 : node_id.ptr); GC.KeepAlive(this); GC.KeepAlive(node_id); if (this != null) { this.ptrs_to.AddLast(node_id); }; @@ -488,7 +488,7 @@ public void remove_banned(org.ldk.structs.NodeId node_id) { * Sets a manual penalty for the given node. */ public void set_manual_penalty(org.ldk.structs.NodeId node_id, long penalty) { - bindings.ProbabilisticScoringFeeParameters_set_manual_penalty(this.ptr, node_id == null ? 0 : node_id.ptr, penalty); + Bindings.ProbabilisticScoringFeeParametersSetManualPenalty(this.ptr, node_id == null ? 0 : node_id.ptr, penalty); GC.KeepAlive(this); GC.KeepAlive(node_id); GC.KeepAlive(penalty); @@ -499,7 +499,7 @@ public void set_manual_penalty(org.ldk.structs.NodeId node_id, long penalty) { * Removes the node with the given `node_id` from the list of manual penalties. */ public void remove_manual_penalty(org.ldk.structs.NodeId node_id) { - bindings.ProbabilisticScoringFeeParameters_remove_manual_penalty(this.ptr, node_id == null ? 0 : node_id.ptr); + Bindings.ProbabilisticScoringFeeParametersRemoveManualPenalty(this.ptr, node_id == null ? 0 : node_id.ptr); GC.KeepAlive(this); GC.KeepAlive(node_id); if (this != null) { this.ptrs_to.AddLast(node_id); }; @@ -509,7 +509,7 @@ public void remove_manual_penalty(org.ldk.structs.NodeId node_id) { * Clears the list of manual penalties that are applied during path finding. */ public void clear_manual_penalties() { - bindings.ProbabilisticScoringFeeParameters_clear_manual_penalties(this.ptr); + Bindings.ProbabilisticScoringFeeParametersClearManualPenalties(this.ptr); GC.KeepAlive(this); } diff --git a/c_sharp/src/org/ldk/structs/ProbeSendFailure.cs b/c_sharp/src/org/ldk/structs/ProbeSendFailure.cs index 34ec6c6a8..0695f2304 100644 --- a/c_sharp/src/org/ldk/structs/ProbeSendFailure.cs +++ b/c_sharp/src/org/ldk/structs/ProbeSendFailure.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class ProbeSendFailure : CommonBase { protected ProbeSendFailure(object _dummy, long ptr) : base(ptr) { } ~ProbeSendFailure() { - if (ptr != 0) { bindings.ProbeSendFailure_free(ptr); } + if (ptr != 0) { Bindings.ProbeSendFailureFree(ptr); } } internal static ProbeSendFailure constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKProbeSendFailure_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKProbeSendFailureTyFromPtr(ptr); switch (raw_ty) { case 0: return new ProbeSendFailure_RouteNotFound(ptr); case 1: return new ProbeSendFailure_SendingFailed(ptr); @@ -36,14 +36,14 @@ internal ProbeSendFailure_RouteNotFound(long ptr) : base(null, ptr) { public class ProbeSendFailure_SendingFailed : ProbeSendFailure { public PaymentSendFailure sending_failed; internal ProbeSendFailure_SendingFailed(long ptr) : base(null, ptr) { - long sending_failed = bindings.LDKProbeSendFailure_SendingFailed_get_sending_failed(ptr); + long sending_failed = Bindings.LDKProbeSendFailureSendingFailedGetSendingFailed(ptr); org.ldk.structs.PaymentSendFailure sending_failed_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(sending_failed); if (sending_failed_hu_conv != null) { sending_failed_hu_conv.ptrs_to.AddLast(this); }; this.sending_failed = sending_failed_hu_conv; } } internal long clone_ptr() { - long ret = bindings.ProbeSendFailure_clone_ptr(this.ptr); + long ret = Bindings.ProbeSendFailureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ internal long clone_ptr() { * Creates a copy of the ProbeSendFailure */ public ProbeSendFailure clone() { - long ret = bindings.ProbeSendFailure_clone(this.ptr); + long ret = Bindings.ProbeSendFailureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbeSendFailure ret_hu_conv = org.ldk.structs.ProbeSendFailure.constr_from_ptr(ret); @@ -64,7 +64,7 @@ public ProbeSendFailure clone() { * Utility method to constructs a new RouteNotFound-variant ProbeSendFailure */ public static ProbeSendFailure route_not_found() { - long ret = bindings.ProbeSendFailure_route_not_found(); + long ret = Bindings.ProbeSendFailureRouteNotFound(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbeSendFailure ret_hu_conv = org.ldk.structs.ProbeSendFailure.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -75,7 +75,7 @@ public static ProbeSendFailure route_not_found() { * Utility method to constructs a new SendingFailed-variant ProbeSendFailure */ public static ProbeSendFailure sending_failed(org.ldk.structs.PaymentSendFailure a) { - long ret = bindings.ProbeSendFailure_sending_failed(a.ptr); + long ret = Bindings.ProbeSendFailureSendingFailed(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ProbeSendFailure ret_hu_conv = org.ldk.structs.ProbeSendFailure.constr_from_ptr(ret); @@ -89,7 +89,7 @@ public static ProbeSendFailure sending_failed(org.ldk.structs.PaymentSendFailure * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.ProbeSendFailure b) { - bool ret = bindings.ProbeSendFailure_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ProbeSendFailureEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/PublicHopCandidate.cs b/c_sharp/src/org/ldk/structs/PublicHopCandidate.cs index 0475b5159..2311aefe8 100644 --- a/c_sharp/src/org/ldk/structs/PublicHopCandidate.cs +++ b/c_sharp/src/org/ldk/structs/PublicHopCandidate.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class PublicHopCandidate : CommonBase { internal PublicHopCandidate(object _dummy, long ptr) : base(ptr) { } ~PublicHopCandidate() { - if (ptr != 0) { bindings.PublicHopCandidate_free(ptr); } + if (ptr != 0) { Bindings.PublicHopCandidateFree(ptr); } } /** @@ -20,7 +20,7 @@ internal PublicHopCandidate(object _dummy, long ptr) : base(ptr) { } * channel. */ public long get_short_channel_id() { - long ret = bindings.PublicHopCandidate_get_short_channel_id(this.ptr); + long ret = Bindings.PublicHopCandidateGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -30,13 +30,13 @@ public long get_short_channel_id() { * channel. */ public void set_short_channel_id(long val) { - bindings.PublicHopCandidate_set_short_channel_id(this.ptr, val); + Bindings.PublicHopCandidateSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.PublicHopCandidate_clone_ptr(this.ptr); + long ret = Bindings.PublicHopCandidateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -45,7 +45,7 @@ internal long clone_ptr() { * Creates a copy of the PublicHopCandidate */ public PublicHopCandidate clone() { - long ret = bindings.PublicHopCandidate_clone(this.ptr); + long ret = Bindings.PublicHopCandidateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PublicHopCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PublicHopCandidate(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/Quantity.cs b/c_sharp/src/org/ldk/structs/Quantity.cs index 4cda4d9b8..4bf1db0bf 100644 --- a/c_sharp/src/org/ldk/structs/Quantity.cs +++ b/c_sharp/src/org/ldk/structs/Quantity.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Quantity : CommonBase { internal Quantity(object _dummy, long ptr) : base(ptr) { } ~Quantity() { - if (ptr != 0) { bindings.Quantity_free(ptr); } + if (ptr != 0) { Bindings.QuantityFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Quantity_clone_ptr(this.ptr); + long ret = Bindings.QuantityClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the Quantity */ public Quantity clone() { - long ret = bindings.Quantity_clone(this.ptr); + long ret = Bindings.QuantityClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/QueryChannelRange.cs b/c_sharp/src/org/ldk/structs/QueryChannelRange.cs index 869c1ac55..b87c2b28f 100644 --- a/c_sharp/src/org/ldk/structs/QueryChannelRange.cs +++ b/c_sharp/src/org/ldk/structs/QueryChannelRange.cs @@ -17,17 +17,17 @@ namespace org { namespace ldk { namespace structs { public class QueryChannelRange : CommonBase { internal QueryChannelRange(object _dummy, long ptr) : base(ptr) { } ~QueryChannelRange() { - if (ptr != 0) { bindings.QueryChannelRange_free(ptr); } + if (ptr != 0) { Bindings.QueryChannelRangeFree(ptr); } } /** * The genesis hash of the blockchain being queried */ public byte[] get_chain_hash() { - long ret = bindings.QueryChannelRange_get_chain_hash(this.ptr); + long ret = Bindings.QueryChannelRangeGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -35,7 +35,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain being queried */ public void set_chain_hash(byte[] val) { - bindings.QueryChannelRange_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.QueryChannelRangeSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,7 +44,7 @@ public void set_chain_hash(byte[] val) { * The height of the first block for the channel UTXOs being queried */ public int get_first_blocknum() { - int ret = bindings.QueryChannelRange_get_first_blocknum(this.ptr); + int ret = Bindings.QueryChannelRangeGetFirstBlocknum(this.ptr); GC.KeepAlive(this); return ret; } @@ -53,7 +53,7 @@ public int get_first_blocknum() { * The height of the first block for the channel UTXOs being queried */ public void set_first_blocknum(int val) { - bindings.QueryChannelRange_set_first_blocknum(this.ptr, val); + Bindings.QueryChannelRangeSetFirstBlocknum(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -62,7 +62,7 @@ public void set_first_blocknum(int val) { * The number of blocks to include in the query results */ public int get_number_of_blocks() { - int ret = bindings.QueryChannelRange_get_number_of_blocks(this.ptr); + int ret = Bindings.QueryChannelRangeGetNumberOfBlocks(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ public int get_number_of_blocks() { * The number of blocks to include in the query results */ public void set_number_of_blocks(int val) { - bindings.QueryChannelRange_set_number_of_blocks(this.ptr, val); + Bindings.QueryChannelRangeSetNumberOfBlocks(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -80,7 +80,7 @@ public void set_number_of_blocks(int val) { * Constructs a new QueryChannelRange given each field */ public static QueryChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg) { - long ret = bindings.QueryChannelRange_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), first_blocknum_arg, number_of_blocks_arg); + long ret = Bindings.QueryChannelRangeNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), first_blocknum_arg, number_of_blocks_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(first_blocknum_arg); GC.KeepAlive(number_of_blocks_arg); @@ -91,7 +91,7 @@ public static QueryChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg } internal long clone_ptr() { - long ret = bindings.QueryChannelRange_clone_ptr(this.ptr); + long ret = Bindings.QueryChannelRangeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -100,7 +100,7 @@ internal long clone_ptr() { * Creates a copy of the QueryChannelRange */ public QueryChannelRange clone() { - long ret = bindings.QueryChannelRange_clone(this.ptr); + long ret = Bindings.QueryChannelRangeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.QueryChannelRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.QueryChannelRange(null, ret); } @@ -112,7 +112,7 @@ public QueryChannelRange clone() { * Generates a non-cryptographic 64-bit hash of the QueryChannelRange. */ public long hash() { - long ret = bindings.QueryChannelRange_hash(this.ptr); + long ret = Bindings.QueryChannelRangeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -126,7 +126,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.QueryChannelRange b) { - bool ret = bindings.QueryChannelRange_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.QueryChannelRangeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -143,7 +143,7 @@ public override bool Equals(object o) { * Overflow returns `0xffffffff`, otherwise returns `first_blocknum + number_of_blocks`. */ public int end_blocknum() { - int ret = bindings.QueryChannelRange_end_blocknum(this.ptr); + int ret = Bindings.QueryChannelRangeEndBlocknum(this.ptr); GC.KeepAlive(this); return ret; } @@ -152,10 +152,10 @@ public int end_blocknum() { * Serialize the QueryChannelRange object into a byte array which can be read by QueryChannelRange_read */ public byte[] write() { - long ret = bindings.QueryChannelRange_write(this.ptr); + long ret = Bindings.QueryChannelRangeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -163,7 +163,7 @@ public byte[] write() { * Read a QueryChannelRange from a byte array, created by QueryChannelRange_write */ public static Result_QueryChannelRangeDecodeErrorZ read(byte[] ser) { - long ret = bindings.QueryChannelRange_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.QueryChannelRangeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs b/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs index 318c3ac46..d09978ac9 100644 --- a/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs +++ b/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs @@ -22,17 +22,17 @@ namespace org { namespace ldk { namespace structs { public class QueryShortChannelIds : CommonBase { internal QueryShortChannelIds(object _dummy, long ptr) : base(ptr) { } ~QueryShortChannelIds() { - if (ptr != 0) { bindings.QueryShortChannelIds_free(ptr); } + if (ptr != 0) { Bindings.QueryShortChannelIdsFree(ptr); } } /** * The genesis hash of the blockchain being queried */ public byte[] get_chain_hash() { - long ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr); + long ret = Bindings.QueryShortChannelIdsGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -40,7 +40,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain being queried */ public void set_chain_hash(byte[] val) { - bindings.QueryShortChannelIds_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.QueryShortChannelIdsSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -51,10 +51,10 @@ public void set_chain_hash(byte[] val) { * Returns a copy of the field. */ public long[] get_short_channel_ids() { - long ret = bindings.QueryShortChannelIds_get_short_channel_ids(this.ptr); + long ret = Bindings.QueryShortChannelIdsGetShortChannelIds(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -62,7 +62,7 @@ public long[] get_short_channel_ids() { * The short_channel_ids that are being queried */ public void set_short_channel_ids(long[] val) { - bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, InternalUtils.encodeUint64Array(val)); + Bindings.QueryShortChannelIdsSetShortChannelIds(this.ptr, InternalUtils.EncodeUint64Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -71,7 +71,7 @@ public void set_short_channel_ids(long[] val) { * Constructs a new QueryShortChannelIds given each field */ public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channel_ids_arg) { - long ret = bindings.QueryShortChannelIds_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), InternalUtils.encodeUint64Array(short_channel_ids_arg)); + long ret = Bindings.QueryShortChannelIdsNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), InternalUtils.EncodeUint64Array(short_channel_ids_arg)); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(short_channel_ids_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -81,7 +81,7 @@ public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channe } internal long clone_ptr() { - long ret = bindings.QueryShortChannelIds_clone_ptr(this.ptr); + long ret = Bindings.QueryShortChannelIdsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -90,7 +90,7 @@ internal long clone_ptr() { * Creates a copy of the QueryShortChannelIds */ public QueryShortChannelIds clone() { - long ret = bindings.QueryShortChannelIds_clone(this.ptr); + long ret = Bindings.QueryShortChannelIdsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.QueryShortChannelIds ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.QueryShortChannelIds(null, ret); } @@ -102,7 +102,7 @@ public QueryShortChannelIds clone() { * Generates a non-cryptographic 64-bit hash of the QueryShortChannelIds. */ public long hash() { - long ret = bindings.QueryShortChannelIds_hash(this.ptr); + long ret = Bindings.QueryShortChannelIdsHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -116,7 +116,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.QueryShortChannelIds b) { - bool ret = bindings.QueryShortChannelIds_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.QueryShortChannelIdsEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -131,7 +131,7 @@ public override bool Equals(object o) { * Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_write */ public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser) { - long ret = bindings.QueryShortChannelIds_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.QueryShortChannelIdsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret); @@ -142,10 +142,10 @@ public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser) { * Serialize the QueryShortChannelIds object into a byte array which can be read by QueryShortChannelIds_read */ public byte[] write() { - long ret = bindings.QueryShortChannelIds_write(this.ptr); + long ret = Bindings.QueryShortChannelIdsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/RapidGossipSync.cs b/c_sharp/src/org/ldk/structs/RapidGossipSync.cs index 3937e289e..b02916578 100644 --- a/c_sharp/src/org/ldk/structs/RapidGossipSync.cs +++ b/c_sharp/src/org/ldk/structs/RapidGossipSync.cs @@ -16,14 +16,14 @@ namespace org { namespace ldk { namespace structs { public class RapidGossipSync : CommonBase { internal RapidGossipSync(object _dummy, long ptr) : base(ptr) { } ~RapidGossipSync() { - if (ptr != 0) { bindings.RapidGossipSync_free(ptr); } + if (ptr != 0) { Bindings.RapidGossipSyncFree(ptr); } } /** * Instantiate a new [`RapidGossipSync`] instance. */ public static RapidGossipSync of(org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.Logger logger) { - long ret = bindings.RapidGossipSync_new(network_graph == null ? 0 : network_graph.ptr, logger.ptr); + long ret = Bindings.RapidGossipSyncNew(network_graph == null ? 0 : network_graph.ptr, logger.ptr); GC.KeepAlive(network_graph); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } @@ -43,7 +43,7 @@ public static RapidGossipSync of(org.ldk.structs.NetworkGraph network_graph, org * `sync_path`: Path to the file where the gossip update data is located */ public Result_u32GraphSyncErrorZ sync_network_graph_with_file_path(string sync_path) { - long ret = bindings.RapidGossipSync_sync_network_graph_with_file_path(this.ptr, InternalUtils.encodeString(sync_path)); + long ret = Bindings.RapidGossipSyncSyncNetworkGraphWithFilePath(this.ptr, InternalUtils.EncodeString(sync_path)); GC.KeepAlive(this); GC.KeepAlive(sync_path); if (ret >= 0 && ret <= 4096) { return null; } @@ -58,7 +58,7 @@ public Result_u32GraphSyncErrorZ sync_network_graph_with_file_path(string sync_p * `update_data`: `&[u8]` binary stream that comprises the update data */ public Result_u32GraphSyncErrorZ update_network_graph(byte[] update_data) { - long ret = bindings.RapidGossipSync_update_network_graph(this.ptr, InternalUtils.encodeUint8Array(update_data)); + long ret = Bindings.RapidGossipSyncUpdateNetworkGraph(this.ptr, InternalUtils.EncodeUint8Array(update_data)); GC.KeepAlive(this); GC.KeepAlive(update_data); if (ret >= 0 && ret <= 4096) { return null; } @@ -74,7 +74,7 @@ public Result_u32GraphSyncErrorZ update_network_graph(byte[] update_data) { * `current_time_unix`: `Option` optional current timestamp to verify data age */ public Result_u32GraphSyncErrorZ update_network_graph_no_std(byte[] update_data, org.ldk.structs.Option_u64Z current_time_unix) { - long ret = bindings.RapidGossipSync_update_network_graph_no_std(this.ptr, InternalUtils.encodeUint8Array(update_data), current_time_unix.ptr); + long ret = Bindings.RapidGossipSyncUpdateNetworkGraphNoStd(this.ptr, InternalUtils.EncodeUint8Array(update_data), current_time_unix.ptr); GC.KeepAlive(this); GC.KeepAlive(update_data); GC.KeepAlive(current_time_unix); @@ -88,7 +88,7 @@ public Result_u32GraphSyncErrorZ update_network_graph_no_std(byte[] update_data, * Returns whether a rapid gossip sync has completed at least once. */ public bool is_initial_sync_complete() { - bool ret = bindings.RapidGossipSync_is_initial_sync_complete(this.ptr); + bool ret = Bindings.RapidGossipSyncIsInitialSyncComplete(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/RawBolt11Invoice.cs b/c_sharp/src/org/ldk/structs/RawBolt11Invoice.cs index 6eab6a882..f75900d75 100644 --- a/c_sharp/src/org/ldk/structs/RawBolt11Invoice.cs +++ b/c_sharp/src/org/ldk/structs/RawBolt11Invoice.cs @@ -16,14 +16,14 @@ namespace org { namespace ldk { namespace structs { public class RawBolt11Invoice : CommonBase { internal RawBolt11Invoice(object _dummy, long ptr) : base(ptr) { } ~RawBolt11Invoice() { - if (ptr != 0) { bindings.RawBolt11Invoice_free(ptr); } + if (ptr != 0) { Bindings.RawBolt11InvoiceFree(ptr); } } /** * data part */ public RawDataPart get_data() { - long ret = bindings.RawBolt11Invoice_get_data(this.ptr); + long ret = Bindings.RawBolt11InvoiceGetData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RawDataPart ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RawDataPart(null, ret); } @@ -35,7 +35,7 @@ public RawDataPart get_data() { * data part */ public void set_data(org.ldk.structs.RawDataPart val) { - bindings.RawBolt11Invoice_set_data(this.ptr, val == null ? 0 : val.ptr); + Bindings.RawBolt11InvoiceSetData(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -47,7 +47,7 @@ public void set_data(org.ldk.structs.RawDataPart val) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RawBolt11Invoice b) { - bool ret = bindings.RawBolt11Invoice_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RawBolt11InvoiceEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -59,7 +59,7 @@ public override bool Equals(object o) { return this.eq((RawBolt11Invoice)o); } internal long clone_ptr() { - long ret = bindings.RawBolt11Invoice_clone_ptr(this.ptr); + long ret = Bindings.RawBolt11InvoiceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ internal long clone_ptr() { * Creates a copy of the RawBolt11Invoice */ public RawBolt11Invoice clone() { - long ret = bindings.RawBolt11Invoice_clone(this.ptr); + long ret = Bindings.RawBolt11InvoiceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RawBolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RawBolt11Invoice(null, ret); } @@ -80,7 +80,7 @@ public RawBolt11Invoice clone() { * Generates a non-cryptographic 64-bit hash of the RawBolt11Invoice. */ public long hash() { - long ret = bindings.RawBolt11Invoice_hash(this.ptr); + long ret = Bindings.RawBolt11InvoiceHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,10 +92,10 @@ public override int GetHashCode() { * Calculate the hash of the encoded `RawBolt11Invoice` which should be signed. */ public byte[] signable_hash() { - long ret = bindings.RawBolt11Invoice_signable_hash(this.ptr); + long ret = Bindings.RawBolt11InvoiceSignableHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -103,7 +103,7 @@ public byte[] signable_hash() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Sha256 payment_hash() { - long ret = bindings.RawBolt11Invoice_payment_hash(this.ptr); + long ret = Bindings.RawBolt11InvoicePaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sha256 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sha256(null, ret); } @@ -115,7 +115,7 @@ public Sha256 payment_hash() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Description description() { - long ret = bindings.RawBolt11Invoice_description(this.ptr); + long ret = Bindings.RawBolt11InvoiceDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Description ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Description(null, ret); } @@ -127,7 +127,7 @@ public Description description() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PayeePubKey payee_pub_key() { - long ret = bindings.RawBolt11Invoice_payee_pub_key(this.ptr); + long ret = Bindings.RawBolt11InvoicePayeePubKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PayeePubKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PayeePubKey(null, ret); } @@ -139,7 +139,7 @@ public PayeePubKey payee_pub_key() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Sha256 description_hash() { - long ret = bindings.RawBolt11Invoice_description_hash(this.ptr); + long ret = Bindings.RawBolt11InvoiceDescriptionHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sha256 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sha256(null, ret); } @@ -151,7 +151,7 @@ public Sha256 description_hash() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ExpiryTime expiry_time() { - long ret = bindings.RawBolt11Invoice_expiry_time(this.ptr); + long ret = Bindings.RawBolt11InvoiceExpiryTime(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ExpiryTime ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpiryTime(null, ret); } @@ -163,7 +163,7 @@ public ExpiryTime expiry_time() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public MinFinalCltvExpiryDelta min_final_cltv_expiry_delta() { - long ret = bindings.RawBolt11Invoice_min_final_cltv_expiry_delta(this.ptr); + long ret = Bindings.RawBolt11InvoiceMinFinalCltvExpiryDelta(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.MinFinalCltvExpiryDelta ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MinFinalCltvExpiryDelta(null, ret); } @@ -172,7 +172,7 @@ public MinFinalCltvExpiryDelta min_final_cltv_expiry_delta() { } public Option_ThirtyTwoBytesZ payment_secret() { - long ret = bindings.RawBolt11Invoice_payment_secret(this.ptr); + long ret = Bindings.RawBolt11InvoicePaymentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -181,7 +181,7 @@ public Option_ThirtyTwoBytesZ payment_secret() { } public Option_CVec_u8ZZ payment_metadata() { - long ret = bindings.RawBolt11Invoice_payment_metadata(this.ptr); + long ret = Bindings.RawBolt11InvoicePaymentMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -193,7 +193,7 @@ public Option_CVec_u8ZZ payment_metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Bolt11InvoiceFeatures features() { - long ret = bindings.RawBolt11Invoice_features(this.ptr); + long ret = Bindings.RawBolt11InvoiceFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, ret); } @@ -202,23 +202,23 @@ public Bolt11InvoiceFeatures features() { } public PrivateRoute[] private_routes() { - long ret = bindings.RawBolt11Invoice_private_routes(this.ptr); + long ret = Bindings.RawBolt11InvoicePrivateRoutes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_14_len = InternalUtils.getArrayLength(ret); + int ret_conv_14_len = InternalUtils.GetArrayLength(ret); PrivateRoute[] ret_conv_14_arr = new PrivateRoute[ret_conv_14_len]; for (int o = 0; o < ret_conv_14_len; o++) { - long ret_conv_14 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_14 = InternalUtils.GetU64ArrayElem(ret, o); org.ldk.structs.PrivateRoute ret_conv_14_hu_conv = null; if (ret_conv_14 < 0 || ret_conv_14 > 4096) { ret_conv_14_hu_conv = new org.ldk.structs.PrivateRoute(null, ret_conv_14); } if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); }; ret_conv_14_arr[o] = ret_conv_14_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_14_arr; } public Option_u64Z amount_pico_btc() { - long ret = bindings.RawBolt11Invoice_amount_pico_btc(this.ptr); + long ret = Bindings.RawBolt11InvoiceAmountPicoBtc(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -227,7 +227,7 @@ public Option_u64Z amount_pico_btc() { } public Currency currency() { - Currency ret = bindings.RawBolt11Invoice_currency(this.ptr); + Currency ret = Bindings.RawBolt11InvoiceCurrency(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/RawDataPart.cs b/c_sharp/src/org/ldk/structs/RawDataPart.cs index 681dde88a..6629fbcf4 100644 --- a/c_sharp/src/org/ldk/structs/RawDataPart.cs +++ b/c_sharp/src/org/ldk/structs/RawDataPart.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class RawDataPart : CommonBase { internal RawDataPart(object _dummy, long ptr) : base(ptr) { } ~RawDataPart() { - if (ptr != 0) { bindings.RawDataPart_free(ptr); } + if (ptr != 0) { Bindings.RawDataPartFree(ptr); } } /** * generation time of the invoice */ public PositiveTimestamp get_timestamp() { - long ret = bindings.RawDataPart_get_timestamp(this.ptr); + long ret = Bindings.RawDataPartGetTimestamp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PositiveTimestamp ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PositiveTimestamp(null, ret); } @@ -31,7 +31,7 @@ public PositiveTimestamp get_timestamp() { * generation time of the invoice */ public void set_timestamp(org.ldk.structs.PositiveTimestamp val) { - bindings.RawDataPart_set_timestamp(this.ptr, val == null ? 0 : val.ptr); + Bindings.RawDataPartSetTimestamp(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public void set_timestamp(org.ldk.structs.PositiveTimestamp val) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RawDataPart b) { - bool ret = bindings.RawDataPart_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RawDataPartEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -55,7 +55,7 @@ public override bool Equals(object o) { return this.eq((RawDataPart)o); } internal long clone_ptr() { - long ret = bindings.RawDataPart_clone_ptr(this.ptr); + long ret = Bindings.RawDataPartClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -64,7 +64,7 @@ internal long clone_ptr() { * Creates a copy of the RawDataPart */ public RawDataPart clone() { - long ret = bindings.RawDataPart_clone(this.ptr); + long ret = Bindings.RawDataPartClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RawDataPart ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RawDataPart(null, ret); } @@ -76,7 +76,7 @@ public RawDataPart clone() { * Generates a non-cryptographic 64-bit hash of the RawDataPart. */ public long hash() { - long ret = bindings.RawDataPart_hash(this.ptr); + long ret = Bindings.RawDataPartHash(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/ReadOnlyNetworkGraph.cs b/c_sharp/src/org/ldk/structs/ReadOnlyNetworkGraph.cs index 0434b8903..3396d1c7c 100644 --- a/c_sharp/src/org/ldk/structs/ReadOnlyNetworkGraph.cs +++ b/c_sharp/src/org/ldk/structs/ReadOnlyNetworkGraph.cs @@ -12,7 +12,7 @@ namespace org { namespace ldk { namespace structs { public class ReadOnlyNetworkGraph : CommonBase, IDisposable { internal ReadOnlyNetworkGraph(object _dummy, long ptr) : base(ptr) { } public void Dispose() { - if (ptr != 0) { bindings.ReadOnlyNetworkGraph_free(ptr); } + if (ptr != 0) { Bindings.ReadOnlyNetworkGraphFree(ptr); } } /** @@ -21,7 +21,7 @@ public void Dispose() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelInfo channel(long short_channel_id) { - long ret = bindings.ReadOnlyNetworkGraph_channel(this.ptr, short_channel_id); + long ret = Bindings.ReadOnlyNetworkGraphChannel(this.ptr, short_channel_id); GC.KeepAlive(this); GC.KeepAlive(short_channel_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -34,10 +34,10 @@ public ChannelInfo channel(long short_channel_id) { * Returns the list of channels in the graph */ public long[] list_channels() { - long ret = bindings.ReadOnlyNetworkGraph_list_channels(this.ptr); + long ret = Bindings.ReadOnlyNetworkGraphListChannels(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -47,7 +47,7 @@ public long[] list_channels() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public NodeInfo node(org.ldk.structs.NodeId node_id) { - long ret = bindings.ReadOnlyNetworkGraph_node(this.ptr, node_id == null ? 0 : node_id.ptr); + long ret = Bindings.ReadOnlyNetworkGraphNode(this.ptr, node_id == null ? 0 : node_id.ptr); GC.KeepAlive(this); GC.KeepAlive(node_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -61,18 +61,18 @@ public NodeInfo node(org.ldk.structs.NodeId node_id) { * Returns the list of nodes in the graph */ public NodeId[] list_nodes() { - long ret = bindings.ReadOnlyNetworkGraph_list_nodes(this.ptr); + long ret = Bindings.ReadOnlyNetworkGraphListNodes(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); NodeId[] ret_conv_8_arr = new NodeId[ret_conv_8_len]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); org.ldk.structs.NodeId ret_conv_8_hu_conv = null; if (ret_conv_8 < 0 || ret_conv_8 > 4096) { ret_conv_8_hu_conv = new org.ldk.structs.NodeId(null, ret_conv_8); } if (ret_conv_8_hu_conv != null) { ret_conv_8_hu_conv.ptrs_to.AddLast(this); }; ret_conv_8_arr[i] = ret_conv_8_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -82,7 +82,7 @@ public NodeId[] list_nodes() { * or if node announcement for the node was never received. */ public Option_CVec_SocketAddressZZ get_addresses(byte[] pubkey) { - long ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pubkey, 33))); + long ret = Bindings.ReadOnlyNetworkGraphGetAddresses(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pubkey, 33))); GC.KeepAlive(this); GC.KeepAlive(pubkey); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/ReceiveTlvs.cs b/c_sharp/src/org/ldk/structs/ReceiveTlvs.cs index 63b088ee9..b6999ad15 100644 --- a/c_sharp/src/org/ldk/structs/ReceiveTlvs.cs +++ b/c_sharp/src/org/ldk/structs/ReceiveTlvs.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class ReceiveTlvs : CommonBase { internal ReceiveTlvs(object _dummy, long ptr) : base(ptr) { } ~ReceiveTlvs() { - if (ptr != 0) { bindings.ReceiveTlvs_free(ptr); } + if (ptr != 0) { Bindings.ReceiveTlvsFree(ptr); } } /** * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. */ public byte[] get_payment_secret() { - long ret = bindings.ReceiveTlvs_get_payment_secret(this.ptr); + long ret = Bindings.ReceiveTlvsGetPaymentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_payment_secret() { * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. */ public void set_payment_secret(byte[] val) { - bindings.ReceiveTlvs_set_payment_secret(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ReceiveTlvsSetPaymentSecret(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_payment_secret(byte[] val) { * Constraints for the receiver of this payment. */ public PaymentConstraints get_payment_constraints() { - long ret = bindings.ReceiveTlvs_get_payment_constraints(this.ptr); + long ret = Bindings.ReceiveTlvsGetPaymentConstraints(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentConstraints ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentConstraints(null, ret); } @@ -52,7 +52,7 @@ public PaymentConstraints get_payment_constraints() { * Constraints for the receiver of this payment. */ public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) { - bindings.ReceiveTlvs_set_payment_constraints(this.ptr, val == null ? 0 : val.ptr); + Bindings.ReceiveTlvsSetPaymentConstraints(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -62,7 +62,7 @@ public void set_payment_constraints(org.ldk.structs.PaymentConstraints val) { * Constructs a new ReceiveTlvs given each field */ public static ReceiveTlvs of(byte[] payment_secret_arg, org.ldk.structs.PaymentConstraints payment_constraints_arg) { - long ret = bindings.ReceiveTlvs_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_secret_arg, 32)), payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr); + long ret = Bindings.ReceiveTlvsNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_secret_arg, 32)), payment_constraints_arg == null ? 0 : payment_constraints_arg.ptr); GC.KeepAlive(payment_secret_arg); GC.KeepAlive(payment_constraints_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -73,7 +73,7 @@ public static ReceiveTlvs of(byte[] payment_secret_arg, org.ldk.structs.PaymentC } internal long clone_ptr() { - long ret = bindings.ReceiveTlvs_clone_ptr(this.ptr); + long ret = Bindings.ReceiveTlvsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * Creates a copy of the ReceiveTlvs */ public ReceiveTlvs clone() { - long ret = bindings.ReceiveTlvs_clone(this.ptr); + long ret = Bindings.ReceiveTlvsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ReceiveTlvs ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReceiveTlvs(null, ret); } @@ -94,10 +94,10 @@ public ReceiveTlvs clone() { * Serialize the ReceiveTlvs object into a byte array which can be read by ReceiveTlvs_read */ public byte[] write() { - long ret = bindings.ReceiveTlvs_write(this.ptr); + long ret = Bindings.ReceiveTlvsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/RecentPaymentDetails.cs b/c_sharp/src/org/ldk/structs/RecentPaymentDetails.cs index 0a258bae3..7b1585290 100644 --- a/c_sharp/src/org/ldk/structs/RecentPaymentDetails.cs +++ b/c_sharp/src/org/ldk/structs/RecentPaymentDetails.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class RecentPaymentDetails : CommonBase { protected RecentPaymentDetails(object _dummy, long ptr) : base(ptr) { } ~RecentPaymentDetails() { - if (ptr != 0) { bindings.RecentPaymentDetails_free(ptr); } + if (ptr != 0) { Bindings.RecentPaymentDetailsFree(ptr); } } internal static RecentPaymentDetails constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKRecentPaymentDetails_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKRecentPaymentDetailsTyFromPtr(ptr); switch (raw_ty) { case 0: return new RecentPaymentDetails_AwaitingInvoice(ptr); case 1: return new RecentPaymentDetails_Pending(ptr); @@ -35,8 +35,8 @@ public class RecentPaymentDetails_AwaitingInvoice : RecentPaymentDetails { */ public byte[] payment_id; internal RecentPaymentDetails_AwaitingInvoice(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKRecentPaymentDetails_AwaitingInvoice_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKRecentPaymentDetailsAwaitingInvoiceGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; } } @@ -58,13 +58,13 @@ public class RecentPaymentDetails_Pending : RecentPaymentDetails { */ public long total_msat; internal RecentPaymentDetails_Pending(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKRecentPaymentDetails_Pending_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKRecentPaymentDetailsPendingGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKRecentPaymentDetails_Pending_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKRecentPaymentDetailsPendingGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; - this.total_msat = bindings.LDKRecentPaymentDetails_Pending_get_total_msat(ptr); + this.total_msat = Bindings.LDKRecentPaymentDetailsPendingGetTotalMsat(ptr); } } /** A RecentPaymentDetails of type Fulfilled */ @@ -80,10 +80,10 @@ public class RecentPaymentDetails_Fulfilled : RecentPaymentDetails { */ public Option_ThirtyTwoBytesZ payment_hash; internal RecentPaymentDetails_Fulfilled(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKRecentPaymentDetails_Fulfilled_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKRecentPaymentDetailsFulfilledGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKRecentPaymentDetails_Fulfilled_get_payment_hash(ptr); + long payment_hash = Bindings.LDKRecentPaymentDetailsFulfilledGetPaymentHash(ptr); org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(payment_hash); if (payment_hash_hu_conv != null) { payment_hash_hu_conv.ptrs_to.AddLast(this); }; this.payment_hash = payment_hash_hu_conv; @@ -101,16 +101,16 @@ public class RecentPaymentDetails_Abandoned : RecentPaymentDetails { */ public byte[] payment_hash; internal RecentPaymentDetails_Abandoned(long ptr) : base(null, ptr) { - long payment_id = bindings.LDKRecentPaymentDetails_Abandoned_get_payment_id(ptr); - byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id); + long payment_id = Bindings.LDKRecentPaymentDetailsAbandonedGetPaymentId(ptr); + byte[] payment_id_conv = InternalUtils.DecodeUint8Array(payment_id); this.payment_id = payment_id_conv; - long payment_hash = bindings.LDKRecentPaymentDetails_Abandoned_get_payment_hash(ptr); - byte[] payment_hash_conv = InternalUtils.decodeUint8Array(payment_hash); + long payment_hash = Bindings.LDKRecentPaymentDetailsAbandonedGetPaymentHash(ptr); + byte[] payment_hash_conv = InternalUtils.DecodeUint8Array(payment_hash); this.payment_hash = payment_hash_conv; } } internal long clone_ptr() { - long ret = bindings.RecentPaymentDetails_clone_ptr(this.ptr); + long ret = Bindings.RecentPaymentDetailsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -119,7 +119,7 @@ internal long clone_ptr() { * Creates a copy of the RecentPaymentDetails */ public RecentPaymentDetails clone() { - long ret = bindings.RecentPaymentDetails_clone(this.ptr); + long ret = Bindings.RecentPaymentDetailsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecentPaymentDetails ret_hu_conv = org.ldk.structs.RecentPaymentDetails.constr_from_ptr(ret); @@ -131,7 +131,7 @@ public RecentPaymentDetails clone() { * Utility method to constructs a new AwaitingInvoice-variant RecentPaymentDetails */ public static RecentPaymentDetails awaiting_invoice(byte[] payment_id) { - long ret = bindings.RecentPaymentDetails_awaiting_invoice(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32))); + long ret = Bindings.RecentPaymentDetailsAwaitingInvoice(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32))); GC.KeepAlive(payment_id); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecentPaymentDetails ret_hu_conv = org.ldk.structs.RecentPaymentDetails.constr_from_ptr(ret); @@ -143,7 +143,7 @@ public static RecentPaymentDetails awaiting_invoice(byte[] payment_id) { * Utility method to constructs a new Pending-variant RecentPaymentDetails */ public static RecentPaymentDetails pending(byte[] payment_id, byte[] payment_hash, long total_msat) { - long ret = bindings.RecentPaymentDetails_pending(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), total_msat); + long ret = Bindings.RecentPaymentDetailsPending(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), total_msat); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); GC.KeepAlive(total_msat); @@ -157,7 +157,7 @@ public static RecentPaymentDetails pending(byte[] payment_id, byte[] payment_has * Utility method to constructs a new Fulfilled-variant RecentPaymentDetails */ public static RecentPaymentDetails fulfilled(byte[] payment_id, org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash) { - long ret = bindings.RecentPaymentDetails_fulfilled(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), payment_hash.ptr); + long ret = Bindings.RecentPaymentDetailsFulfilled(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), payment_hash.ptr); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); if (ret >= 0 && ret <= 4096) { return null; } @@ -171,7 +171,7 @@ public static RecentPaymentDetails fulfilled(byte[] payment_id, org.ldk.structs. * Utility method to constructs a new Abandoned-variant RecentPaymentDetails */ public static RecentPaymentDetails abandoned(byte[] payment_id, byte[] payment_hash) { - long ret = bindings.RecentPaymentDetails_abandoned(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_id, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32))); + long ret = Bindings.RecentPaymentDetailsAbandoned(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_id, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32))); GC.KeepAlive(payment_id); GC.KeepAlive(payment_hash); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/RecipientOnionFields.cs b/c_sharp/src/org/ldk/structs/RecipientOnionFields.cs index 219c29111..3264b96c6 100644 --- a/c_sharp/src/org/ldk/structs/RecipientOnionFields.cs +++ b/c_sharp/src/org/ldk/structs/RecipientOnionFields.cs @@ -15,7 +15,7 @@ namespace org { namespace ldk { namespace structs { public class RecipientOnionFields : CommonBase { internal RecipientOnionFields(object _dummy, long ptr) : base(ptr) { } ~RecipientOnionFields() { - if (ptr != 0) { bindings.RecipientOnionFields_free(ptr); } + if (ptr != 0) { Bindings.RecipientOnionFieldsFree(ptr); } } /** @@ -32,7 +32,7 @@ internal RecipientOnionFields(object _dummy, long ptr) : base(ptr) { } * recipient will not reject it. */ public Option_ThirtyTwoBytesZ get_payment_secret() { - long ret = bindings.RecipientOnionFields_get_payment_secret(this.ptr); + long ret = Bindings.RecipientOnionFieldsGetPaymentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public Option_ThirtyTwoBytesZ get_payment_secret() { * recipient will not reject it. */ public void set_payment_secret(org.ldk.structs.Option_ThirtyTwoBytesZ val) { - bindings.RecipientOnionFields_set_payment_secret(this.ptr, val.ptr); + Bindings.RecipientOnionFieldsSetPaymentSecret(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -77,7 +77,7 @@ public void set_payment_secret(org.ldk.structs.Option_ThirtyTwoBytesZ val) { * Returns a copy of the field. */ public Option_CVec_u8ZZ get_payment_metadata() { - long ret = bindings.RecipientOnionFields_get_payment_metadata(this.ptr); + long ret = Bindings.RecipientOnionFieldsGetPaymentMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -100,14 +100,14 @@ public Option_CVec_u8ZZ get_payment_metadata() { * may not be supported as universally. */ public void set_payment_metadata(org.ldk.structs.Option_CVec_u8ZZ val) { - bindings.RecipientOnionFields_set_payment_metadata(this.ptr, val.ptr); + Bindings.RecipientOnionFieldsSetPaymentMetadata(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } internal long clone_ptr() { - long ret = bindings.RecipientOnionFields_clone_ptr(this.ptr); + long ret = Bindings.RecipientOnionFieldsClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -116,7 +116,7 @@ internal long clone_ptr() { * Creates a copy of the RecipientOnionFields */ public RecipientOnionFields clone() { - long ret = bindings.RecipientOnionFields_clone(this.ptr); + long ret = Bindings.RecipientOnionFieldsClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecipientOnionFields ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RecipientOnionFields(null, ret); } @@ -130,7 +130,7 @@ public RecipientOnionFields clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RecipientOnionFields b) { - bool ret = bindings.RecipientOnionFields_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RecipientOnionFieldsEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -145,10 +145,10 @@ public override bool Equals(object o) { * Serialize the RecipientOnionFields object into a byte array which can be read by RecipientOnionFields_read */ public byte[] write() { - long ret = bindings.RecipientOnionFields_write(this.ptr); + long ret = Bindings.RecipientOnionFieldsWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -156,7 +156,7 @@ public byte[] write() { * Read a RecipientOnionFields from a byte array, created by RecipientOnionFields_write */ public static Result_RecipientOnionFieldsDecodeErrorZ read(byte[] ser) { - long ret = bindings.RecipientOnionFields_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RecipientOnionFieldsRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsDecodeErrorZ ret_hu_conv = Result_RecipientOnionFieldsDecodeErrorZ.constr_from_ptr(ret); @@ -169,7 +169,7 @@ public static Result_RecipientOnionFieldsDecodeErrorZ read(byte[] ser) { * but do not require or provide any further data. */ public static RecipientOnionFields secret_only(byte[] payment_secret) { - long ret = bindings.RecipientOnionFields_secret_only(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_secret, 32))); + long ret = Bindings.RecipientOnionFieldsSecretOnly(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_secret, 32))); GC.KeepAlive(payment_secret); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecipientOnionFields ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RecipientOnionFields(null, ret); } @@ -188,7 +188,7 @@ public static RecipientOnionFields secret_only(byte[] payment_secret) { * [`RecipientOnionFields::secret_only`]: RecipientOnionFields::secret_only */ public static RecipientOnionFields spontaneous_empty() { - long ret = bindings.RecipientOnionFields_spontaneous_empty(); + long ret = Bindings.RecipientOnionFieldsSpontaneousEmpty(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecipientOnionFields ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RecipientOnionFields(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -207,7 +207,7 @@ public static RecipientOnionFields spontaneous_empty() { * See [`Self::custom_tlvs`] for more info. */ public Result_RecipientOnionFieldsNoneZ with_custom_tlvs(TwoTuple_u64CVec_u8ZZ[] custom_tlvs) { - long ret = bindings.RecipientOnionFields_with_custom_tlvs(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0))); + long ret = Bindings.RecipientOnionFieldsWithCustomTlvs(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(custom_tlvs, custom_tlvs_conv_23 => custom_tlvs_conv_23 != null ? custom_tlvs_conv_23.ptr : 0))); GC.KeepAlive(this); GC.KeepAlive(custom_tlvs); if (ret >= 0 && ret <= 4096) { return null; } @@ -229,18 +229,18 @@ public Result_RecipientOnionFieldsNoneZ with_custom_tlvs(TwoTuple_u64CVec_u8ZZ[] * This is validated when setting this field using [`Self::with_custom_tlvs`]. */ public TwoTuple_u64CVec_u8ZZ[] custom_tlvs() { - long ret = bindings.RecipientOnionFields_custom_tlvs(this.ptr); + long ret = Bindings.RecipientOnionFieldsCustomTlvs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_23_len = InternalUtils.getArrayLength(ret); + int ret_conv_23_len = InternalUtils.GetArrayLength(ret); TwoTuple_u64CVec_u8ZZ[] ret_conv_23_arr = new TwoTuple_u64CVec_u8ZZ[ret_conv_23_len]; for (int x = 0; x < ret_conv_23_len; x++) { - long ret_conv_23 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_23 = InternalUtils.GetU64ArrayElem(ret, x); TwoTuple_u64CVec_u8ZZ ret_conv_23_hu_conv = new TwoTuple_u64CVec_u8ZZ(null, ret_conv_23); if (ret_conv_23_hu_conv != null) { ret_conv_23_hu_conv.ptrs_to.AddLast(this); }; ret_conv_23_arr[x] = ret_conv_23_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_23_arr; } diff --git a/c_sharp/src/org/ldk/structs/Record.cs b/c_sharp/src/org/ldk/structs/Record.cs index c1cff2fa9..e0a3e9d8a 100644 --- a/c_sharp/src/org/ldk/structs/Record.cs +++ b/c_sharp/src/org/ldk/structs/Record.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class Record : CommonBase { internal Record(object _dummy, long ptr) : base(ptr) { } ~Record() { - if (ptr != 0) { bindings.Record_free(ptr); } + if (ptr != 0) { Bindings.RecordFree(ptr); } } /** * The verbosity level of the message. */ public Level get_level() { - Level ret = bindings.Record_get_level(this.ptr); + Level ret = Bindings.RecordGetLevel(this.ptr); GC.KeepAlive(this); return ret; } @@ -29,7 +29,7 @@ public Level get_level() { * The verbosity level of the message. */ public void set_level(Level val) { - bindings.Record_set_level(this.ptr, val); + Bindings.RecordSetLevel(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -44,10 +44,10 @@ public void set_level(Level val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] get_peer_id() { - long ret = bindings.Record_get_peer_id(this.ptr); + long ret = Bindings.RecordGetPeerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -61,7 +61,7 @@ public byte[] get_peer_id() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_peer_id(byte[] val) { - bindings.Record_set_peer_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RecordSetPeerId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -71,7 +71,7 @@ public void set_peer_id(byte[] val) { * the channel has been funded. */ public Option_ThirtyTwoBytesZ get_channel_id() { - long ret = bindings.Record_get_channel_id(this.ptr); + long ret = Bindings.RecordGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -84,7 +84,7 @@ public Option_ThirtyTwoBytesZ get_channel_id() { * the channel has been funded. */ public void set_channel_id(org.ldk.structs.Option_ThirtyTwoBytesZ val) { - bindings.Record_set_channel_id(this.ptr, val.ptr); + Bindings.RecordSetChannelId(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -94,10 +94,10 @@ public void set_channel_id(org.ldk.structs.Option_ThirtyTwoBytesZ val) { * The message body. */ public string get_args() { - long ret = bindings.Record_get_args(this.ptr); + long ret = Bindings.RecordGetArgs(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -105,7 +105,7 @@ public string get_args() { * The message body. */ public void set_args(string val) { - bindings.Record_set_args(this.ptr, InternalUtils.encodeString(val)); + Bindings.RecordSetArgs(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -114,10 +114,10 @@ public void set_args(string val) { * The module path of the message. */ public string get_module_path() { - long ret = bindings.Record_get_module_path(this.ptr); + long ret = Bindings.RecordGetModulePath(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -125,7 +125,7 @@ public string get_module_path() { * The module path of the message. */ public void set_module_path(string val) { - bindings.Record_set_module_path(this.ptr, InternalUtils.encodeString(val)); + Bindings.RecordSetModulePath(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -134,10 +134,10 @@ public void set_module_path(string val) { * The source file containing the message. */ public string get_file() { - long ret = bindings.Record_get_file(this.ptr); + long ret = Bindings.RecordGetFile(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -145,7 +145,7 @@ public string get_file() { * The source file containing the message. */ public void set_file(string val) { - bindings.Record_set_file(this.ptr, InternalUtils.encodeString(val)); + Bindings.RecordSetFile(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -154,7 +154,7 @@ public void set_file(string val) { * The line containing the message. */ public int get_line() { - int ret = bindings.Record_get_line(this.ptr); + int ret = Bindings.RecordGetLine(this.ptr); GC.KeepAlive(this); return ret; } @@ -163,7 +163,7 @@ public int get_line() { * The line containing the message. */ public void set_line(int val) { - bindings.Record_set_line(this.ptr, val); + Bindings.RecordSetLine(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -174,7 +174,7 @@ public void set_line(int val) { * Note that peer_id_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static Record of(Level level_arg, byte[] peer_id_arg, org.ldk.structs.Option_ThirtyTwoBytesZ channel_id_arg, string args_arg, string module_path_arg, string file_arg, int line_arg) { - long ret = bindings.Record_new(level_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(peer_id_arg, 33)), channel_id_arg.ptr, InternalUtils.encodeString(args_arg), InternalUtils.encodeString(module_path_arg), InternalUtils.encodeString(file_arg), line_arg); + long ret = Bindings.RecordNew(level_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(peer_id_arg, 33)), channel_id_arg.ptr, InternalUtils.EncodeString(args_arg), InternalUtils.EncodeString(module_path_arg), InternalUtils.EncodeString(file_arg), line_arg); GC.KeepAlive(level_arg); GC.KeepAlive(peer_id_arg); GC.KeepAlive(channel_id_arg); @@ -190,7 +190,7 @@ public static Record of(Level level_arg, byte[] peer_id_arg, org.ldk.structs.Opt } internal long clone_ptr() { - long ret = bindings.Record_clone_ptr(this.ptr); + long ret = Bindings.RecordClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -199,7 +199,7 @@ internal long clone_ptr() { * Creates a copy of the Record */ public Record clone() { - long ret = bindings.Record_clone(this.ptr); + long ret = Bindings.RecordClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Record(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/Refund.cs b/c_sharp/src/org/ldk/structs/Refund.cs index d83b0c341..0360c6a4d 100644 --- a/c_sharp/src/org/ldk/structs/Refund.cs +++ b/c_sharp/src/org/ldk/structs/Refund.cs @@ -19,11 +19,11 @@ namespace org { namespace ldk { namespace structs { public class Refund : CommonBase { internal Refund(object _dummy, long ptr) : base(ptr) { } ~Refund() { - if (ptr != 0) { bindings.Refund_free(ptr); } + if (ptr != 0) { Bindings.RefundFree(ptr); } } internal long clone_ptr() { - long ret = bindings.Refund_clone_ptr(this.ptr); + long ret = Bindings.RefundClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -32,7 +32,7 @@ internal long clone_ptr() { * Creates a copy of the Refund */ public Refund clone() { - long ret = bindings.Refund_clone(this.ptr); + long ret = Bindings.RefundClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Refund ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Refund(null, ret); } @@ -45,7 +45,7 @@ public Refund clone() { * but with the caveat that it has not been verified in any way. */ public PrintableString description() { - long ret = bindings.Refund_description(this.ptr); + long ret = Bindings.RefundDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -59,7 +59,7 @@ public PrintableString description() { * If `None`, the refund does not expire. */ public Option_u64Z absolute_expiry() { - long ret = bindings.Refund_absolute_expiry(this.ptr); + long ret = Bindings.RefundAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -71,7 +71,7 @@ public Option_u64Z absolute_expiry() { * Whether the refund has expired. */ public bool is_expired() { - bool ret = bindings.Refund_is_expired(this.ptr); + bool ret = Bindings.RefundIsExpired(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ public bool is_expired() { * Whether the refund has expired given the duration since the Unix epoch. */ public bool is_expired_no_std(long duration_since_epoch) { - bool ret = bindings.Refund_is_expired_no_std(this.ptr, duration_since_epoch); + bool ret = Bindings.RefundIsExpiredNoStd(this.ptr, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(duration_since_epoch); return ret; @@ -93,7 +93,7 @@ public bool is_expired_no_std(long duration_since_epoch) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.Refund_issuer(this.ptr); + long ret = Bindings.RefundIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -106,18 +106,18 @@ public PrintableString issuer() { * privacy by obfuscating its node id. */ public BlindedPath[] paths() { - long ret = bindings.Refund_paths(this.ptr); + long ret = Bindings.RefundPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -128,10 +128,10 @@ public BlindedPath[] paths() { * [`payer_id`]: Self::payer_id */ public byte[] payer_metadata() { - long ret = bindings.Refund_payer_metadata(this.ptr); + long ret = Bindings.RefundPayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -139,10 +139,10 @@ public byte[] payer_metadata() { * A chain that the refund is valid for. */ public byte[] chain() { - long ret = bindings.Refund_chain(this.ptr); + long ret = Bindings.RefundChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -152,7 +152,7 @@ public byte[] chain() { * [`chain`]: Self::chain */ public long amount_msats() { - long ret = bindings.Refund_amount_msats(this.ptr); + long ret = Bindings.RefundAmountMsats(this.ptr); GC.KeepAlive(this); return ret; } @@ -161,7 +161,7 @@ public long amount_msats() { * Features pertaining to requesting an invoice. */ public InvoiceRequestFeatures features() { - long ret = bindings.Refund_features(this.ptr); + long ret = Bindings.RefundFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -173,7 +173,7 @@ public InvoiceRequestFeatures features() { * The quantity of an item that refund is for. */ public Option_u64Z quantity() { - long ret = bindings.Refund_quantity(this.ptr); + long ret = Bindings.RefundQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -188,10 +188,10 @@ public Option_u64Z quantity() { * [`paths`]: Self::paths */ public byte[] payer_id() { - long ret = bindings.Refund_payer_id(this.ptr); + long ret = Bindings.RefundPayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -201,7 +201,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.Refund_payer_note(this.ptr); + long ret = Bindings.RefundPayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -213,10 +213,10 @@ public PrintableString payer_note() { * Serialize the Refund object into a byte array which can be read by Refund_read */ public byte[] write() { - long ret = bindings.Refund_write(this.ptr); + long ret = Bindings.RefundWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -224,7 +224,7 @@ public byte[] write() { * Read a Refund object from a string */ public static Result_RefundBolt12ParseErrorZ from_str(string s) { - long ret = bindings.Refund_from_str(InternalUtils.encodeString(s)); + long ret = Bindings.RefundFromStr(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } Result_RefundBolt12ParseErrorZ ret_hu_conv = Result_RefundBolt12ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ReplyChannelRange.cs b/c_sharp/src/org/ldk/structs/ReplyChannelRange.cs index b1f8f09e6..6ea91ece1 100644 --- a/c_sharp/src/org/ldk/structs/ReplyChannelRange.cs +++ b/c_sharp/src/org/ldk/structs/ReplyChannelRange.cs @@ -22,17 +22,17 @@ namespace org { namespace ldk { namespace structs { public class ReplyChannelRange : CommonBase { internal ReplyChannelRange(object _dummy, long ptr) : base(ptr) { } ~ReplyChannelRange() { - if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); } + if (ptr != 0) { Bindings.ReplyChannelRangeFree(ptr); } } /** * The genesis hash of the blockchain being queried */ public byte[] get_chain_hash() { - long ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr); + long ret = Bindings.ReplyChannelRangeGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -40,7 +40,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain being queried */ public void set_chain_hash(byte[] val) { - bindings.ReplyChannelRange_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ReplyChannelRangeSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -49,7 +49,7 @@ public void set_chain_hash(byte[] val) { * The height of the first block in the range of the reply */ public int get_first_blocknum() { - int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr); + int ret = Bindings.ReplyChannelRangeGetFirstBlocknum(this.ptr); GC.KeepAlive(this); return ret; } @@ -58,7 +58,7 @@ public int get_first_blocknum() { * The height of the first block in the range of the reply */ public void set_first_blocknum(int val) { - bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val); + Bindings.ReplyChannelRangeSetFirstBlocknum(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -67,7 +67,7 @@ public void set_first_blocknum(int val) { * The number of blocks included in the range of the reply */ public int get_number_of_blocks() { - int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr); + int ret = Bindings.ReplyChannelRangeGetNumberOfBlocks(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ public int get_number_of_blocks() { * The number of blocks included in the range of the reply */ public void set_number_of_blocks(int val) { - bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val); + Bindings.ReplyChannelRangeSetNumberOfBlocks(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -85,7 +85,7 @@ public void set_number_of_blocks(int val) { * True when this is the final reply for a query */ public bool get_sync_complete() { - bool ret = bindings.ReplyChannelRange_get_sync_complete(this.ptr); + bool ret = Bindings.ReplyChannelRangeGetSyncComplete(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,7 +94,7 @@ public bool get_sync_complete() { * True when this is the final reply for a query */ public void set_sync_complete(bool val) { - bindings.ReplyChannelRange_set_sync_complete(this.ptr, val); + Bindings.ReplyChannelRangeSetSyncComplete(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -105,10 +105,10 @@ public void set_sync_complete(bool val) { * Returns a copy of the field. */ public long[] get_short_channel_ids() { - long ret = bindings.ReplyChannelRange_get_short_channel_ids(this.ptr); + long ret = Bindings.ReplyChannelRangeGetShortChannelIds(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - long[] ret_conv = InternalUtils.decodeUint64Array(ret); + long[] ret_conv = InternalUtils.DecodeUint64Array(ret); return ret_conv; } @@ -116,7 +116,7 @@ public long[] get_short_channel_ids() { * The `short_channel_id`s in the channel range */ public void set_short_channel_ids(long[] val) { - bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, InternalUtils.encodeUint64Array(val)); + Bindings.ReplyChannelRangeSetShortChannelIds(this.ptr, InternalUtils.EncodeUint64Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -125,7 +125,7 @@ public void set_short_channel_ids(long[] val) { * Constructs a new ReplyChannelRange given each field */ public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, bool sync_complete_arg, long[] short_channel_ids_arg) { - long ret = bindings.ReplyChannelRange_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, InternalUtils.encodeUint64Array(short_channel_ids_arg)); + long ret = Bindings.ReplyChannelRangeNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, InternalUtils.EncodeUint64Array(short_channel_ids_arg)); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(first_blocknum_arg); GC.KeepAlive(number_of_blocks_arg); @@ -138,7 +138,7 @@ public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg } internal long clone_ptr() { - long ret = bindings.ReplyChannelRange_clone_ptr(this.ptr); + long ret = Bindings.ReplyChannelRangeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -147,7 +147,7 @@ internal long clone_ptr() { * Creates a copy of the ReplyChannelRange */ public ReplyChannelRange clone() { - long ret = bindings.ReplyChannelRange_clone(this.ptr); + long ret = Bindings.ReplyChannelRangeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ReplyChannelRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyChannelRange(null, ret); } @@ -159,7 +159,7 @@ public ReplyChannelRange clone() { * Generates a non-cryptographic 64-bit hash of the ReplyChannelRange. */ public long hash() { - long ret = bindings.ReplyChannelRange_hash(this.ptr); + long ret = Bindings.ReplyChannelRangeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -173,7 +173,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ReplyChannelRange b) { - bool ret = bindings.ReplyChannelRange_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ReplyChannelRangeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -188,7 +188,7 @@ public override bool Equals(object o) { * Read a ReplyChannelRange from a byte array, created by ReplyChannelRange_write */ public static Result_ReplyChannelRangeDecodeErrorZ read(byte[] ser) { - long ret = bindings.ReplyChannelRange_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ReplyChannelRangeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret); @@ -199,10 +199,10 @@ public static Result_ReplyChannelRangeDecodeErrorZ read(byte[] ser) { * Serialize the ReplyChannelRange object into a byte array which can be read by ReplyChannelRange_read */ public byte[] write() { - long ret = bindings.ReplyChannelRange_write(this.ptr); + long ret = Bindings.ReplyChannelRangeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ReplyShortChannelIdsEnd.cs b/c_sharp/src/org/ldk/structs/ReplyShortChannelIdsEnd.cs index 88dd390bd..51d0fef35 100644 --- a/c_sharp/src/org/ldk/structs/ReplyShortChannelIdsEnd.cs +++ b/c_sharp/src/org/ldk/structs/ReplyShortChannelIdsEnd.cs @@ -17,17 +17,17 @@ namespace org { namespace ldk { namespace structs { public class ReplyShortChannelIdsEnd : CommonBase { internal ReplyShortChannelIdsEnd(object _dummy, long ptr) : base(ptr) { } ~ReplyShortChannelIdsEnd() { - if (ptr != 0) { bindings.ReplyShortChannelIdsEnd_free(ptr); } + if (ptr != 0) { Bindings.ReplyShortChannelIdsEndFree(ptr); } } /** * The genesis hash of the blockchain that was queried */ public byte[] get_chain_hash() { - long ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr); + long ret = Bindings.ReplyShortChannelIdsEndGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -35,7 +35,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain that was queried */ public void set_chain_hash(byte[] val) { - bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ReplyShortChannelIdsEndSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -45,7 +45,7 @@ public void set_chain_hash(byte[] val) { * information for the `chain_hash` */ public bool get_full_information() { - bool ret = bindings.ReplyShortChannelIdsEnd_get_full_information(this.ptr); + bool ret = Bindings.ReplyShortChannelIdsEndGetFullInformation(this.ptr); GC.KeepAlive(this); return ret; } @@ -55,7 +55,7 @@ public bool get_full_information() { * information for the `chain_hash` */ public void set_full_information(bool val) { - bindings.ReplyShortChannelIdsEnd_set_full_information(this.ptr, val); + Bindings.ReplyShortChannelIdsEndSetFullInformation(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,7 +64,7 @@ public void set_full_information(bool val) { * Constructs a new ReplyShortChannelIdsEnd given each field */ public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, bool full_information_arg) { - long ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), full_information_arg); + long ret = Bindings.ReplyShortChannelIdsEndNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), full_information_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(full_information_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -74,7 +74,7 @@ public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, bool full_inform } internal long clone_ptr() { - long ret = bindings.ReplyShortChannelIdsEnd_clone_ptr(this.ptr); + long ret = Bindings.ReplyShortChannelIdsEndClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * Creates a copy of the ReplyShortChannelIdsEnd */ public ReplyShortChannelIdsEnd clone() { - long ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr); + long ret = Bindings.ReplyShortChannelIdsEndClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(null, ret); } @@ -95,7 +95,7 @@ public ReplyShortChannelIdsEnd clone() { * Generates a non-cryptographic 64-bit hash of the ReplyShortChannelIdsEnd. */ public long hash() { - long ret = bindings.ReplyShortChannelIdsEnd_hash(this.ptr); + long ret = Bindings.ReplyShortChannelIdsEndHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -109,7 +109,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ReplyShortChannelIdsEnd b) { - bool ret = bindings.ReplyShortChannelIdsEnd_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ReplyShortChannelIdsEndEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -124,10 +124,10 @@ public override bool Equals(object o) { * Serialize the ReplyShortChannelIdsEnd object into a byte array which can be read by ReplyShortChannelIdsEnd_read */ public byte[] write() { - long ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr); + long ret = Bindings.ReplyShortChannelIdsEndWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -135,7 +135,7 @@ public byte[] write() { * Read a ReplyShortChannelIdsEnd from a byte array, created by ReplyShortChannelIdsEnd_write */ public static Result_ReplyShortChannelIdsEndDecodeErrorZ read(byte[] ser) { - long ret = bindings.ReplyShortChannelIdsEnd_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ReplyShortChannelIdsEndRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_AcceptChannelDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_AcceptChannelDecodeErrorZ.cs index bc5f7f1c5..62eb27a23 100644 --- a/c_sharp/src/org/ldk/structs/Result_AcceptChannelDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_AcceptChannelDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_AcceptChannelDecodeErrorZ : CommonBase { Result_AcceptChannelDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_AcceptChannelDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_AcceptChannelDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultAcceptChannelDecodeErrorZFree(ptr); } } internal static Result_AcceptChannelDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_AcceptChannelDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultAcceptChannelDecodeErrorZIsOk(ptr)) { return new Result_AcceptChannelDecodeErrorZ_OK(null, ptr); } else { return new Result_AcceptChannelDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_AcceptChannelDecodeErrorZ constr_from_ptr(long ptr) { public class Result_AcceptChannelDecodeErrorZ_OK : Result_AcceptChannelDecodeErrorZ { public readonly AcceptChannel res; internal Result_AcceptChannelDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_AcceptChannelDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultAcceptChannelDecodeErrorZGetOk(ptr); org.ldk.structs.AcceptChannel res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.AcceptChannel(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_AcceptChannelDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_AcceptChannelDecodeErrorZ_Err : Result_AcceptChannelDecodeErrorZ { public readonly DecodeError err; internal Result_AcceptChannelDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_AcceptChannelDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultAcceptChannelDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_AcceptChannelDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_AcceptChannelDecodeErrorZ in the success state. */ public static Result_AcceptChannelDecodeErrorZ ok(org.ldk.structs.AcceptChannel o) { - long ret = bindings.CResult_AcceptChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultAcceptChannelDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_AcceptChannelDecodeErrorZ ok(org.ldk.structs.AcceptChannel * Creates a new CResult_AcceptChannelDecodeErrorZ in the error state. */ public static Result_AcceptChannelDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_AcceptChannelDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultAcceptChannelDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_AcceptChannelDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_AcceptChannelDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultAcceptChannelDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_AcceptChannelDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultAcceptChannelDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_AcceptChannelDecodeErrorZ clone() { - long ret = bindings.CResult_AcceptChannelDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultAcceptChannelDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_AcceptChannelV2DecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_AcceptChannelV2DecodeErrorZ.cs index eed4788ca..625376870 100644 --- a/c_sharp/src/org/ldk/structs/Result_AcceptChannelV2DecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_AcceptChannelV2DecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_AcceptChannelV2DecodeErrorZ : CommonBase { Result_AcceptChannelV2DecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_AcceptChannelV2DecodeErrorZ() { - if (ptr != 0) { bindings.CResult_AcceptChannelV2DecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultAcceptChannelV2DecodeErrorZFree(ptr); } } internal static Result_AcceptChannelV2DecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_AcceptChannelV2DecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultAcceptChannelV2DecodeErrorZIsOk(ptr)) { return new Result_AcceptChannelV2DecodeErrorZ_OK(null, ptr); } else { return new Result_AcceptChannelV2DecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_AcceptChannelV2DecodeErrorZ constr_from_ptr(long ptr) { public class Result_AcceptChannelV2DecodeErrorZ_OK : Result_AcceptChannelV2DecodeErrorZ { public readonly AcceptChannelV2 res; internal Result_AcceptChannelV2DecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_AcceptChannelV2DecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultAcceptChannelV2DecodeErrorZGetOk(ptr); org.ldk.structs.AcceptChannelV2 res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.AcceptChannelV2(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_AcceptChannelV2DecodeErrorZ_OK(object _dummy, long ptr) : base(_ public class Result_AcceptChannelV2DecodeErrorZ_Err : Result_AcceptChannelV2DecodeErrorZ { public readonly DecodeError err; internal Result_AcceptChannelV2DecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_AcceptChannelV2DecodeErrorZ_get_err(ptr); + long err = Bindings.CResultAcceptChannelV2DecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_AcceptChannelV2DecodeErrorZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_AcceptChannelV2DecodeErrorZ in the success state. */ public static Result_AcceptChannelV2DecodeErrorZ ok(org.ldk.structs.AcceptChannelV2 o) { - long ret = bindings.CResult_AcceptChannelV2DecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultAcceptChannelV2DecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelV2DecodeErrorZ ret_hu_conv = Result_AcceptChannelV2DecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_AcceptChannelV2DecodeErrorZ ok(org.ldk.structs.AcceptChanne * Creates a new CResult_AcceptChannelV2DecodeErrorZ in the error state. */ public static Result_AcceptChannelV2DecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_AcceptChannelV2DecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultAcceptChannelV2DecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelV2DecodeErrorZ ret_hu_conv = Result_AcceptChannelV2DecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_AcceptChannelV2DecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_AcceptChannelV2DecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultAcceptChannelV2DecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultAcceptChannelV2DecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_AcceptChannelV2DecodeErrorZ clone() { - long ret = bindings.CResult_AcceptChannelV2DecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultAcceptChannelV2DecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_AcceptChannelV2DecodeErrorZ ret_hu_conv = Result_AcceptChannelV2DecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_AnnouncementSignaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_AnnouncementSignaturesDecodeErrorZ.cs index 0f4f932fd..4032f9692 100644 --- a/c_sharp/src/org/ldk/structs/Result_AnnouncementSignaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_AnnouncementSignaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_AnnouncementSignaturesDecodeErrorZ : CommonBase { Result_AnnouncementSignaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_AnnouncementSignaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_AnnouncementSignaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultAnnouncementSignaturesDecodeErrorZFree(ptr); } } internal static Result_AnnouncementSignaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultAnnouncementSignaturesDecodeErrorZIsOk(ptr)) { return new Result_AnnouncementSignaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_AnnouncementSignaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_AnnouncementSignaturesDecodeErrorZ constr_from_ptr(long p public class Result_AnnouncementSignaturesDecodeErrorZ_OK : Result_AnnouncementSignaturesDecodeErrorZ { public readonly AnnouncementSignatures res; internal Result_AnnouncementSignaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultAnnouncementSignaturesDecodeErrorZGetOk(ptr); org.ldk.structs.AnnouncementSignatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.AnnouncementSignatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_AnnouncementSignaturesDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_AnnouncementSignaturesDecodeErrorZ_Err : Result_AnnouncementSignaturesDecodeErrorZ { public readonly DecodeError err; internal Result_AnnouncementSignaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultAnnouncementSignaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_AnnouncementSignaturesDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_AnnouncementSignaturesDecodeErrorZ in the success state. */ public static Result_AnnouncementSignaturesDecodeErrorZ ok(org.ldk.structs.AnnouncementSignatures o) { - long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultAnnouncementSignaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_AnnouncementSignaturesDecodeErrorZ ok(org.ldk.structs.Annou * Creates a new CResult_AnnouncementSignaturesDecodeErrorZ in the error state. */ public static Result_AnnouncementSignaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultAnnouncementSignaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_AnnouncementSignaturesDecodeErrorZ err(org.ldk.structs.Deco * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultAnnouncementSignaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultAnnouncementSignaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_AnnouncementSignaturesDecodeErrorZ clone() { - long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultAnnouncementSignaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BigSizeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BigSizeDecodeErrorZ.cs index 1955fdae1..e0f6fa339 100644 --- a/c_sharp/src/org/ldk/structs/Result_BigSizeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BigSizeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BigSizeDecodeErrorZ : CommonBase { Result_BigSizeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BigSizeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BigSizeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBigSizeDecodeErrorZFree(ptr); } } internal static Result_BigSizeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BigSizeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBigSizeDecodeErrorZIsOk(ptr)) { return new Result_BigSizeDecodeErrorZ_OK(null, ptr); } else { return new Result_BigSizeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BigSizeDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BigSizeDecodeErrorZ_OK : Result_BigSizeDecodeErrorZ { public readonly BigSize res; internal Result_BigSizeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BigSizeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBigSizeDecodeErrorZGetOk(ptr); org.ldk.structs.BigSize res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BigSize(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BigSizeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, p public class Result_BigSizeDecodeErrorZ_Err : Result_BigSizeDecodeErrorZ { public readonly DecodeError err; internal Result_BigSizeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BigSizeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBigSizeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BigSizeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_BigSizeDecodeErrorZ in the success state. */ public static Result_BigSizeDecodeErrorZ ok(org.ldk.structs.BigSize o) { - long ret = bindings.CResult_BigSizeDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBigSizeDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BigSizeDecodeErrorZ ret_hu_conv = Result_BigSizeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BigSizeDecodeErrorZ ok(org.ldk.structs.BigSize o) { * Creates a new CResult_BigSizeDecodeErrorZ in the error state. */ public static Result_BigSizeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BigSizeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBigSizeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BigSizeDecodeErrorZ ret_hu_conv = Result_BigSizeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BigSizeDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BigSizeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBigSizeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BigSizeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBigSizeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BigSizeDecodeErrorZ clone() { - long ret = bindings.CResult_BigSizeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBigSizeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BigSizeDecodeErrorZ ret_hu_conv = Result_BigSizeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedFailureDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedFailureDecodeErrorZ.cs index 635087786..5c40d7f7f 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedFailureDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedFailureDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedFailureDecodeErrorZ : CommonBase { Result_BlindedFailureDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedFailureDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedFailureDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedFailureDecodeErrorZFree(ptr); } } internal static Result_BlindedFailureDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedFailureDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedFailureDecodeErrorZIsOk(ptr)) { return new Result_BlindedFailureDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedFailureDecodeErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_BlindedFailureDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedFailureDecodeErrorZ_OK : Result_BlindedFailureDecodeErrorZ { public readonly BlindedFailure res; internal Result_BlindedFailureDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_BlindedFailureDecodeErrorZ_get_ok(ptr); + this.res = Bindings.CResultBlindedFailureDecodeErrorZGetOk(ptr); } } public class Result_BlindedFailureDecodeErrorZ_Err : Result_BlindedFailureDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedFailureDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedFailureDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedFailureDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_BlindedFailureDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_BlindedFailureDecodeErrorZ in the success state. */ public static Result_BlindedFailureDecodeErrorZ ok(BlindedFailure o) { - long ret = bindings.CResult_BlindedFailureDecodeErrorZ_ok(o); + long ret = Bindings.CResultBlindedFailureDecodeErrorZOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedFailureDecodeErrorZ ret_hu_conv = Result_BlindedFailureDecodeErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_BlindedFailureDecodeErrorZ ok(BlindedFailure o) { * Creates a new CResult_BlindedFailureDecodeErrorZ in the error state. */ public static Result_BlindedFailureDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedFailureDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedFailureDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedFailureDecodeErrorZ ret_hu_conv = Result_BlindedFailureDecodeErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_BlindedFailureDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedFailureDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedFailureDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedFailureDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedFailureDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedFailureDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedFailureDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedFailureDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedFailureDecodeErrorZ ret_hu_conv = Result_BlindedFailureDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedForwardDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedForwardDecodeErrorZ.cs index b02ccefcb..5290e809e 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedForwardDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedForwardDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedForwardDecodeErrorZ : CommonBase { Result_BlindedForwardDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedForwardDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedForwardDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedForwardDecodeErrorZFree(ptr); } } internal static Result_BlindedForwardDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedForwardDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedForwardDecodeErrorZIsOk(ptr)) { return new Result_BlindedForwardDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedForwardDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedForwardDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedForwardDecodeErrorZ_OK : Result_BlindedForwardDecodeErrorZ { public readonly BlindedForward res; internal Result_BlindedForwardDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedForwardDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedForwardDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedForward res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedForward(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedForwardDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_BlindedForwardDecodeErrorZ_Err : Result_BlindedForwardDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedForwardDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedForwardDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedForwardDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedForwardDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_BlindedForwardDecodeErrorZ in the success state. */ public static Result_BlindedForwardDecodeErrorZ ok(org.ldk.structs.BlindedForward o) { - long ret = bindings.CResult_BlindedForwardDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedForwardDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedForwardDecodeErrorZ ret_hu_conv = Result_BlindedForwardDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedForwardDecodeErrorZ ok(org.ldk.structs.BlindedForwar * Creates a new CResult_BlindedForwardDecodeErrorZ in the error state. */ public static Result_BlindedForwardDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedForwardDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedForwardDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedForwardDecodeErrorZ ret_hu_conv = Result_BlindedForwardDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedForwardDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedForwardDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedForwardDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedForwardDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedForwardDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedForwardDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedForwardDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedForwardDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedForwardDecodeErrorZ ret_hu_conv = Result_BlindedForwardDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedHopDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedHopDecodeErrorZ.cs index ca6011dc8..9bb340781 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedHopDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedHopDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedHopDecodeErrorZ : CommonBase { Result_BlindedHopDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedHopDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedHopDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedHopDecodeErrorZFree(ptr); } } internal static Result_BlindedHopDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedHopDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedHopDecodeErrorZIsOk(ptr)) { return new Result_BlindedHopDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedHopDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedHopDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedHopDecodeErrorZ_OK : Result_BlindedHopDecodeErrorZ { public readonly BlindedHop res; internal Result_BlindedHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedHopDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedHopDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedHop res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedHop(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy public class Result_BlindedHopDecodeErrorZ_Err : Result_BlindedHopDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedHopDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedHopDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_BlindedHopDecodeErrorZ in the success state. */ public static Result_BlindedHopDecodeErrorZ ok(org.ldk.structs.BlindedHop o) { - long ret = bindings.CResult_BlindedHopDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedHopDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopDecodeErrorZ ret_hu_conv = Result_BlindedHopDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedHopDecodeErrorZ ok(org.ldk.structs.BlindedHop o) { * Creates a new CResult_BlindedHopDecodeErrorZ in the error state. */ public static Result_BlindedHopDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedHopDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedHopDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopDecodeErrorZ ret_hu_conv = Result_BlindedHopDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedHopDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedHopDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedHopDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedHopDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedHopDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedHopDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedHopDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedHopDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopDecodeErrorZ ret_hu_conv = Result_BlindedHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedHopFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedHopFeaturesDecodeErrorZ.cs index e64b1bd87..7483f2b84 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedHopFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedHopFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedHopFeaturesDecodeErrorZ : CommonBase { Result_BlindedHopFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedHopFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedHopFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedHopFeaturesDecodeErrorZFree(ptr); } } internal static Result_BlindedHopFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedHopFeaturesDecodeErrorZIsOk(ptr)) { return new Result_BlindedHopFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedHopFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedHopFeaturesDecodeErrorZ constr_from_ptr(long ptr) public class Result_BlindedHopFeaturesDecodeErrorZ_OK : Result_BlindedHopFeaturesDecodeErrorZ { public readonly BlindedHopFeatures res; internal Result_BlindedHopFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedHopFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedHopFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedHopFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedHopFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : bas public class Result_BlindedHopFeaturesDecodeErrorZ_Err : Result_BlindedHopFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedHopFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedHopFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedHopFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_BlindedHopFeaturesDecodeErrorZ in the success state. */ public static Result_BlindedHopFeaturesDecodeErrorZ ok(org.ldk.structs.BlindedHopFeatures o) { - long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedHopFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopFeaturesDecodeErrorZ ret_hu_conv = Result_BlindedHopFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedHopFeaturesDecodeErrorZ ok(org.ldk.structs.BlindedHo * Creates a new CResult_BlindedHopFeaturesDecodeErrorZ in the error state. */ public static Result_BlindedHopFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedHopFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopFeaturesDecodeErrorZ ret_hu_conv = Result_BlindedHopFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedHopFeaturesDecodeErrorZ err(org.ldk.structs.DecodeEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedHopFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedHopFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedHopFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedHopFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedHopFeaturesDecodeErrorZ ret_hu_conv = Result_BlindedHopFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedPathDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedPathDecodeErrorZ.cs index 2c7e344d9..6b7bb5fda 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedPathDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedPathDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedPathDecodeErrorZ : CommonBase { Result_BlindedPathDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedPathDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedPathDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedPathDecodeErrorZFree(ptr); } } internal static Result_BlindedPathDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedPathDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedPathDecodeErrorZIsOk(ptr)) { return new Result_BlindedPathDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedPathDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedPathDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedPathDecodeErrorZ_OK : Result_BlindedPathDecodeErrorZ { public readonly BlindedPath res; internal Result_BlindedPathDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedPathDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedPathDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedPath res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedPath(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedPathDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_BlindedPathDecodeErrorZ_Err : Result_BlindedPathDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedPathDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedPathDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedPathDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedPathDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_BlindedPathDecodeErrorZ in the success state. */ public static Result_BlindedPathDecodeErrorZ ok(org.ldk.structs.BlindedPath o) { - long ret = bindings.CResult_BlindedPathDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedPathDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathDecodeErrorZ ret_hu_conv = Result_BlindedPathDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedPathDecodeErrorZ ok(org.ldk.structs.BlindedPath o) { * Creates a new CResult_BlindedPathDecodeErrorZ in the error state. */ public static Result_BlindedPathDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedPathDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedPathDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathDecodeErrorZ ret_hu_conv = Result_BlindedPathDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedPathDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedPathDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedPathDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedPathDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedPathDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedPathDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedPathDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedPathDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathDecodeErrorZ ret_hu_conv = Result_BlindedPathDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedPathNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedPathNoneZ.cs index cee1a2cfb..f21360681 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedPathNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedPathNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedPathNoneZ : CommonBase { Result_BlindedPathNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedPathNoneZ() { - if (ptr != 0) { bindings.CResult_BlindedPathNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedPathNoneZFree(ptr); } } internal static Result_BlindedPathNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedPathNoneZ_is_ok(ptr)) { + if (Bindings.CResultBlindedPathNoneZIsOk(ptr)) { return new Result_BlindedPathNoneZ_OK(null, ptr); } else { return new Result_BlindedPathNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedPathNoneZ constr_from_ptr(long ptr) { public class Result_BlindedPathNoneZ_OK : Result_BlindedPathNoneZ { public readonly BlindedPath res; internal Result_BlindedPathNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedPathNoneZ_get_ok(ptr); + long res = Bindings.CResultBlindedPathNoneZGetOk(ptr); org.ldk.structs.BlindedPath res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedPath(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_BlindedPathNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_BlindedPathNoneZ in the success state. */ public static Result_BlindedPathNoneZ ok(org.ldk.structs.BlindedPath o) { - long ret = bindings.CResult_BlindedPathNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedPathNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathNoneZ ret_hu_conv = Result_BlindedPathNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_BlindedPathNoneZ ok(org.ldk.structs.BlindedPath o) { * Creates a new CResult_BlindedPathNoneZ in the error state. */ public static Result_BlindedPathNoneZ err() { - long ret = bindings.CResult_BlindedPathNoneZ_err(); + long ret = Bindings.CResultBlindedPathNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathNoneZ ret_hu_conv = Result_BlindedPathNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_BlindedPathNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedPathNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedPathNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedPathNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedPathNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedPathNoneZ clone() { - long ret = bindings.CResult_BlindedPathNoneZ_clone(this.ptr); + long ret = Bindings.CResultBlindedPathNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPathNoneZ ret_hu_conv = Result_BlindedPathNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedPayInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedPayInfoDecodeErrorZ.cs index c0f05658b..39374fd7e 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedPayInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedPayInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedPayInfoDecodeErrorZ : CommonBase { Result_BlindedPayInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedPayInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedPayInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedPayInfoDecodeErrorZFree(ptr); } } internal static Result_BlindedPayInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedPayInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedPayInfoDecodeErrorZIsOk(ptr)) { return new Result_BlindedPayInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedPayInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedPayInfoDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedPayInfoDecodeErrorZ_OK : Result_BlindedPayInfoDecodeErrorZ { public readonly BlindedPayInfo res; internal Result_BlindedPayInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedPayInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedPayInfoDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedPayInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedPayInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedPayInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_BlindedPayInfoDecodeErrorZ_Err : Result_BlindedPayInfoDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedPayInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedPayInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedPayInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedPayInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_BlindedPayInfoDecodeErrorZ in the success state. */ public static Result_BlindedPayInfoDecodeErrorZ ok(org.ldk.structs.BlindedPayInfo o) { - long ret = bindings.CResult_BlindedPayInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedPayInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPayInfoDecodeErrorZ ret_hu_conv = Result_BlindedPayInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedPayInfoDecodeErrorZ ok(org.ldk.structs.BlindedPayInf * Creates a new CResult_BlindedPayInfoDecodeErrorZ in the error state. */ public static Result_BlindedPayInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedPayInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedPayInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPayInfoDecodeErrorZ ret_hu_conv = Result_BlindedPayInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedPayInfoDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedPayInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedPayInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedPayInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedPayInfoDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedPayInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedPayInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedPayInfoDecodeErrorZ ret_hu_conv = Result_BlindedPayInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BlindedTailDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BlindedTailDecodeErrorZ.cs index 9fbe083c7..d1e538eb4 100644 --- a/c_sharp/src/org/ldk/structs/Result_BlindedTailDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BlindedTailDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BlindedTailDecodeErrorZ : CommonBase { Result_BlindedTailDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BlindedTailDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BlindedTailDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBlindedTailDecodeErrorZFree(ptr); } } internal static Result_BlindedTailDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BlindedTailDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBlindedTailDecodeErrorZIsOk(ptr)) { return new Result_BlindedTailDecodeErrorZ_OK(null, ptr); } else { return new Result_BlindedTailDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BlindedTailDecodeErrorZ constr_from_ptr(long ptr) { public class Result_BlindedTailDecodeErrorZ_OK : Result_BlindedTailDecodeErrorZ { public readonly BlindedTail res; internal Result_BlindedTailDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BlindedTailDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBlindedTailDecodeErrorZGetOk(ptr); org.ldk.structs.BlindedTail res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BlindedTail(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BlindedTailDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_BlindedTailDecodeErrorZ_Err : Result_BlindedTailDecodeErrorZ { public readonly DecodeError err; internal Result_BlindedTailDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BlindedTailDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBlindedTailDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BlindedTailDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_BlindedTailDecodeErrorZ in the success state. */ public static Result_BlindedTailDecodeErrorZ ok(org.ldk.structs.BlindedTail o) { - long ret = bindings.CResult_BlindedTailDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBlindedTailDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedTailDecodeErrorZ ret_hu_conv = Result_BlindedTailDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BlindedTailDecodeErrorZ ok(org.ldk.structs.BlindedTail o) { * Creates a new CResult_BlindedTailDecodeErrorZ in the error state. */ public static Result_BlindedTailDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BlindedTailDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBlindedTailDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedTailDecodeErrorZ ret_hu_conv = Result_BlindedTailDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BlindedTailDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BlindedTailDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBlindedTailDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BlindedTailDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBlindedTailDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BlindedTailDecodeErrorZ clone() { - long ret = bindings.CResult_BlindedTailDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBlindedTailDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BlindedTailDecodeErrorZ ret_hu_conv = Result_BlindedTailDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.cs index 8f5176ffa..2f436a788 100644 --- a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_Bolt11InvoiceBolt11SemanticErrorZ : CommonBase { Result_Bolt11InvoiceBolt11SemanticErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_Bolt11InvoiceBolt11SemanticErrorZ() { - if (ptr != 0) { bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBolt11InvoiceBolt11SemanticErrorZFree(ptr); } } internal static Result_Bolt11InvoiceBolt11SemanticErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(ptr)) { + if (Bindings.CResultBolt11InvoiceBolt11SemanticErrorZIsOk(ptr)) { return new Result_Bolt11InvoiceBolt11SemanticErrorZ_OK(null, ptr); } else { return new Result_Bolt11InvoiceBolt11SemanticErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_Bolt11InvoiceBolt11SemanticErrorZ constr_from_ptr(long pt public class Result_Bolt11InvoiceBolt11SemanticErrorZ_OK : Result_Bolt11InvoiceBolt11SemanticErrorZ { public readonly Bolt11Invoice res; internal Result_Bolt11InvoiceBolt11SemanticErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(ptr); + long res = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZGetOk(ptr); org.ldk.structs.Bolt11Invoice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Bolt11Invoice(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_Bolt11InvoiceBolt11SemanticErrorZ_OK(object _dummy, long ptr) : public class Result_Bolt11InvoiceBolt11SemanticErrorZ_Err : Result_Bolt11InvoiceBolt11SemanticErrorZ { public readonly Bolt11SemanticError err; internal Result_Bolt11InvoiceBolt11SemanticErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(ptr); + this.err = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_Bolt11InvoiceBolt11SemanticErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_Bolt11InvoiceBolt11SemanticErrorZ in the success state. */ public static Result_Bolt11InvoiceBolt11SemanticErrorZ ok(org.ldk.structs.Bolt11Invoice o) { - long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_Bolt11InvoiceBolt11SemanticErrorZ ok(org.ldk.structs.Bolt11 * Creates a new CResult_Bolt11InvoiceBolt11SemanticErrorZ in the error state. */ public static Result_Bolt11InvoiceBolt11SemanticErrorZ err(Bolt11SemanticError e) { - long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(e); + long ret = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_Bolt11InvoiceBolt11SemanticErrorZ err(Bolt11SemanticError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_Bolt11InvoiceBolt11SemanticErrorZ clone() { - long ret = bindings.CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(this.ptr); + long ret = Bindings.CResultBolt11InvoiceBolt11SemanticErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.cs index 2a126e379..7d22157e1 100644 --- a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : CommonBase { Result_Bolt11InvoiceFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_Bolt11InvoiceFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZFree(ptr); } } internal static Result_Bolt11InvoiceFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZIsOk(ptr)) { return new Result_Bolt11InvoiceFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_Bolt11InvoiceFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_Bolt11InvoiceFeaturesDecodeErrorZ constr_from_ptr(long pt public class Result_Bolt11InvoiceFeaturesDecodeErrorZ_OK : Result_Bolt11InvoiceFeaturesDecodeErrorZ { public readonly Bolt11InvoiceFeatures res; internal Result_Bolt11InvoiceFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.Bolt11InvoiceFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Bolt11InvoiceFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_Bolt11InvoiceFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_Bolt11InvoiceFeaturesDecodeErrorZ_Err : Result_Bolt11InvoiceFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_Bolt11InvoiceFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_Bolt11InvoiceFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_Bolt11InvoiceFeaturesDecodeErrorZ in the success state. */ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ ok(org.ldk.structs.Bolt11InvoiceFeatures o) { - long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt11InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ ok(org.ldk.structs.Bolt11 * Creates a new CResult_Bolt11InvoiceFeaturesDecodeErrorZ in the error state. */ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt11InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_Bolt11InvoiceFeaturesDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_Bolt11InvoiceFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBolt11InvoiceFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt11InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.cs index b365f857c..423856982 100644 --- a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_Bolt11InvoiceParseOrSemanticErrorZ : CommonBase { Result_Bolt11InvoiceParseOrSemanticErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_Bolt11InvoiceParseOrSemanticErrorZ() { - if (ptr != 0) { bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBolt11InvoiceParseOrSemanticErrorZFree(ptr); } } internal static Result_Bolt11InvoiceParseOrSemanticErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(ptr)) { + if (Bindings.CResultBolt11InvoiceParseOrSemanticErrorZIsOk(ptr)) { return new Result_Bolt11InvoiceParseOrSemanticErrorZ_OK(null, ptr); } else { return new Result_Bolt11InvoiceParseOrSemanticErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_Bolt11InvoiceParseOrSemanticErrorZ constr_from_ptr(long p public class Result_Bolt11InvoiceParseOrSemanticErrorZ_OK : Result_Bolt11InvoiceParseOrSemanticErrorZ { public readonly Bolt11Invoice res; internal Result_Bolt11InvoiceParseOrSemanticErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(ptr); + long res = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZGetOk(ptr); org.ldk.structs.Bolt11Invoice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Bolt11Invoice(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_Bolt11InvoiceParseOrSemanticErrorZ_OK(object _dummy, long ptr) : public class Result_Bolt11InvoiceParseOrSemanticErrorZ_Err : Result_Bolt11InvoiceParseOrSemanticErrorZ { public readonly ParseOrSemanticError err; internal Result_Bolt11InvoiceParseOrSemanticErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(ptr); + long err = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZGetErr(ptr); org.ldk.structs.ParseOrSemanticError err_hu_conv = org.ldk.structs.ParseOrSemanticError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_Bolt11InvoiceParseOrSemanticErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_Bolt11InvoiceParseOrSemanticErrorZ in the success state. */ public static Result_Bolt11InvoiceParseOrSemanticErrorZ ok(org.ldk.structs.Bolt11Invoice o) { - long ret = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceParseOrSemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceParseOrSemanticErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_Bolt11InvoiceParseOrSemanticErrorZ ok(org.ldk.structs.Bolt1 * Creates a new CResult_Bolt11InvoiceParseOrSemanticErrorZ in the error state. */ public static Result_Bolt11InvoiceParseOrSemanticErrorZ err(org.ldk.structs.ParseOrSemanticError e) { - long ret = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(e.ptr); + long ret = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceParseOrSemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceParseOrSemanticErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_Bolt11InvoiceParseOrSemanticErrorZ err(org.ldk.structs.Pars * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_Bolt11InvoiceParseOrSemanticErrorZ clone() { - long ret = bindings.CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(this.ptr); + long ret = Bindings.CResultBolt11InvoiceParseOrSemanticErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceParseOrSemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceParseOrSemanticErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceSignOrCreationErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceSignOrCreationErrorZ.cs index 23615193d..f569374c9 100644 --- a/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceSignOrCreationErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_Bolt11InvoiceSignOrCreationErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_Bolt11InvoiceSignOrCreationErrorZ : CommonBase { Result_Bolt11InvoiceSignOrCreationErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_Bolt11InvoiceSignOrCreationErrorZ() { - if (ptr != 0) { bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBolt11InvoiceSignOrCreationErrorZFree(ptr); } } internal static Result_Bolt11InvoiceSignOrCreationErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(ptr)) { + if (Bindings.CResultBolt11InvoiceSignOrCreationErrorZIsOk(ptr)) { return new Result_Bolt11InvoiceSignOrCreationErrorZ_OK(null, ptr); } else { return new Result_Bolt11InvoiceSignOrCreationErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_Bolt11InvoiceSignOrCreationErrorZ constr_from_ptr(long pt public class Result_Bolt11InvoiceSignOrCreationErrorZ_OK : Result_Bolt11InvoiceSignOrCreationErrorZ { public readonly Bolt11Invoice res; internal Result_Bolt11InvoiceSignOrCreationErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(ptr); + long res = Bindings.CResultBolt11InvoiceSignOrCreationErrorZGetOk(ptr); org.ldk.structs.Bolt11Invoice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Bolt11Invoice(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_Bolt11InvoiceSignOrCreationErrorZ_OK(object _dummy, long ptr) : public class Result_Bolt11InvoiceSignOrCreationErrorZ_Err : Result_Bolt11InvoiceSignOrCreationErrorZ { public readonly SignOrCreationError err; internal Result_Bolt11InvoiceSignOrCreationErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(ptr); + long err = Bindings.CResultBolt11InvoiceSignOrCreationErrorZGetErr(ptr); org.ldk.structs.SignOrCreationError err_hu_conv = org.ldk.structs.SignOrCreationError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_Bolt11InvoiceSignOrCreationErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_Bolt11InvoiceSignOrCreationErrorZ in the success state. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ ok(org.ldk.structs.Bolt11Invoice o) { - long ret = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBolt11InvoiceSignOrCreationErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceSignOrCreationErrorZ ret_hu_conv = Result_Bolt11InvoiceSignOrCreationErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ ok(org.ldk.structs.Bolt11 * Creates a new CResult_Bolt11InvoiceSignOrCreationErrorZ in the error state. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ err(org.ldk.structs.SignOrCreationError e) { - long ret = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_err(e.ptr); + long ret = Bindings.CResultBolt11InvoiceSignOrCreationErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceSignOrCreationErrorZ ret_hu_conv = Result_Bolt11InvoiceSignOrCreationErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ err(org.ldk.structs.SignO * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBolt11InvoiceSignOrCreationErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBolt11InvoiceSignOrCreationErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_Bolt11InvoiceSignOrCreationErrorZ clone() { - long ret = bindings.CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(this.ptr); + long ret = Bindings.CResultBolt11InvoiceSignOrCreationErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt11InvoiceSignOrCreationErrorZ ret_hu_conv = Result_Bolt11InvoiceSignOrCreationErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.cs index a0fdddd84..c8ea62f1f 100644 --- a/c_sharp/src/org/ldk/structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : CommonBase { Result_Bolt12InvoiceFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_Bolt12InvoiceFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZFree(ptr); } } internal static Result_Bolt12InvoiceFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZIsOk(ptr)) { return new Result_Bolt12InvoiceFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_Bolt12InvoiceFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_Bolt12InvoiceFeaturesDecodeErrorZ constr_from_ptr(long pt public class Result_Bolt12InvoiceFeaturesDecodeErrorZ_OK : Result_Bolt12InvoiceFeaturesDecodeErrorZ { public readonly Bolt12InvoiceFeatures res; internal Result_Bolt12InvoiceFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.Bolt12InvoiceFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_Bolt12InvoiceFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_Bolt12InvoiceFeaturesDecodeErrorZ_Err : Result_Bolt12InvoiceFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_Bolt12InvoiceFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_Bolt12InvoiceFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_Bolt12InvoiceFeaturesDecodeErrorZ in the success state. */ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ ok(org.ldk.structs.Bolt12InvoiceFeatures o) { - long ret = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt12InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt12InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ ok(org.ldk.structs.Bolt12 * Creates a new CResult_Bolt12InvoiceFeaturesDecodeErrorZ in the error state. */ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt12InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt12InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_Bolt12InvoiceFeaturesDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_Bolt12InvoiceFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBolt12InvoiceFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_Bolt12InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_Bolt12InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_BuiltCommitmentTransactionDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_BuiltCommitmentTransactionDecodeErrorZ.cs index e56827501..f91e98374 100644 --- a/c_sharp/src/org/ldk/structs/Result_BuiltCommitmentTransactionDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_BuiltCommitmentTransactionDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_BuiltCommitmentTransactionDecodeErrorZ : CommonBase { Result_BuiltCommitmentTransactionDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_BuiltCommitmentTransactionDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBuiltCommitmentTransactionDecodeErrorZFree(ptr); } } internal static Result_BuiltCommitmentTransactionDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultBuiltCommitmentTransactionDecodeErrorZIsOk(ptr)) { return new Result_BuiltCommitmentTransactionDecodeErrorZ_OK(null, ptr); } else { return new Result_BuiltCommitmentTransactionDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_BuiltCommitmentTransactionDecodeErrorZ constr_from_ptr(lo public class Result_BuiltCommitmentTransactionDecodeErrorZ_OK : Result_BuiltCommitmentTransactionDecodeErrorZ { public readonly BuiltCommitmentTransaction res; internal Result_BuiltCommitmentTransactionDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZGetOk(ptr); org.ldk.structs.BuiltCommitmentTransaction res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.BuiltCommitmentTransaction(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_BuiltCommitmentTransactionDecodeErrorZ_OK(object _dummy, long pt public class Result_BuiltCommitmentTransactionDecodeErrorZ_Err : Result_BuiltCommitmentTransactionDecodeErrorZ { public readonly DecodeError err; internal Result_BuiltCommitmentTransactionDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_BuiltCommitmentTransactionDecodeErrorZ_Err(object _dummy, long p * Creates a new CResult_BuiltCommitmentTransactionDecodeErrorZ in the success state. */ public static Result_BuiltCommitmentTransactionDecodeErrorZ ok(org.ldk.structs.BuiltCommitmentTransaction o) { - long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_BuiltCommitmentTransactionDecodeErrorZ ok(org.ldk.structs.B * Creates a new CResult_BuiltCommitmentTransactionDecodeErrorZ in the error state. */ public static Result_BuiltCommitmentTransactionDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_BuiltCommitmentTransactionDecodeErrorZ err(org.ldk.structs. * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_BuiltCommitmentTransactionDecodeErrorZ clone() { - long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultBuiltCommitmentTransactionDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.cs index 059634259..ea0251627 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : CommonBase { Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZFree(ptr); } } internal static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZIsOk(ptr)) { return new Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_OK(null, ptr); } else { return new Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ constr_from_ptr(l public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_OK : Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ { public readonly TwoTuple_BlindedPayInfoBlindedPathZ res; internal Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(ptr); + long res = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZGetOk(ptr); TwoTuple_BlindedPayInfoBlindedPathZ res_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_Err(object _dummy, long * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the success state. */ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ ok(org.ldk.structs.TwoTuple_BlindedPayInfoBlindedPathZ o) { - long ret = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ ret_hu_conv = Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ ok(org.ldk.structs. * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the error state. */ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ err() { - long ret = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(); + long ret = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ ret_hu_conv = Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -58,13 +58,13 @@ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ clone() { - long ret = bindings.CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleBlindedPayInfoBlindedPathZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ ret_hu_conv = Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.cs index 10f80183a..faab806ad 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_CVec_u8Zu64ZNoneZ : CommonBase { Result_C2Tuple_CVec_u8Zu64ZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_CVec_u8Zu64ZNoneZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleCVecU8Zu64ZnonezFree(ptr); } } internal static Result_C2Tuple_CVec_u8Zu64ZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleCVecU8Zu64ZnonezIsOk(ptr)) { return new Result_C2Tuple_CVec_u8Zu64ZNoneZ_OK(null, ptr); } else { return new Result_C2Tuple_CVec_u8Zu64ZNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_CVec_u8Zu64ZNoneZ constr_from_ptr(long ptr) { public class Result_C2Tuple_CVec_u8Zu64ZNoneZ_OK : Result_C2Tuple_CVec_u8Zu64ZNoneZ { public readonly TwoTuple_CVec_u8Zu64Z res; internal Result_C2Tuple_CVec_u8Zu64ZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(ptr); + long res = Bindings.CResultC2TupleCVecU8Zu64ZnonezGetOk(ptr); TwoTuple_CVec_u8Zu64Z res_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_C2Tuple_CVec_u8Zu64ZNoneZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_C2Tuple_CVec_u8Zu64ZNoneZ in the success state. */ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ ok(org.ldk.structs.TwoTuple_CVec_u8Zu64Z o) { - long ret = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleCVecU8Zu64ZnonezOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_CVec_u8Zu64ZNoneZ ret_hu_conv = Result_C2Tuple_CVec_u8Zu64ZNoneZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ ok(org.ldk.structs.TwoTuple_CVec_ * Creates a new CResult_C2Tuple_CVec_u8Zu64ZNoneZ in the error state. */ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ err() { - long ret = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err(); + long ret = Bindings.CResultC2TupleCVecU8Zu64ZnonezErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_CVec_u8Zu64ZNoneZ ret_hu_conv = Result_C2Tuple_CVec_u8Zu64ZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -58,13 +58,13 @@ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleCVecU8Zu64ZnonezIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleCVecU8Zu64ZnonezClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_CVec_u8Zu64ZNoneZ clone() { - long ret = bindings.CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleCVecU8Zu64ZnonezClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_CVec_u8Zu64ZNoneZ ret_hu_conv = Result_C2Tuple_CVec_u8Zu64ZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.cs index 495b5fb63..8d4fbbdc1 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : CommonBase { Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZFree(ptr); } } internal static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZIsOk(ptr)) { return new Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_OK(null, ptr); } else { return new Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ constr_f public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_OK : Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ { public readonly TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ res; internal Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(ptr); + long res = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZGetOk(ptr); TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ res_hu_conv = new TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_Err(object _dum * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the success state. */ public static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ok(org.ldk.structs.TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ o) { - long ret = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ret_hu_conv = Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ok(org.ldk * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the error state. */ public static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ err() { - long ret = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(); + long ret = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ret_hu_conv = Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -58,13 +58,13 @@ public static Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ clone() { - long ret = bindings.CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleECDSASignatureCVecECDSASignatureZZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ ret_hu_conv = Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.cs index 02c6859d2..390484fda 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : CommonBase { Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZFree(ptr); } } internal static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZIsOk(ptr)) { return new Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_OK(null, ptr); } else { return new Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ constr_ public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_OK : Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ { public readonly TwoTuple_ThirtyTwoBytesChannelManagerZ res; internal Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZGetOk(ptr); TwoTuple_ThirtyTwoBytesChannelManagerZ res_hu_conv = new TwoTuple_ThirtyTwoBytesChannelManagerZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_OK(object _dum public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_Err : Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ { public readonly DecodeError err; internal Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_Err(object _du * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the success state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ ok(org.ldk.structs.TwoTuple_ThirtyTwoBytesChannelManagerZ o) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.constr_from_ptr(ret); @@ -53,7 +53,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ ok(org.ld * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the error state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.constr_from_ptr(ret); @@ -65,7 +65,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ err(org.l * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleThirtyTwoBytesChannelManagerZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.cs index 618c7ebb0..954c5428e 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : CommonBase { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZFree(ptr); } } internal static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZIsOk(ptr)) { return new Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_OK(null, ptr); } else { return new Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ constr_ public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_OK : Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ { public readonly TwoTuple_ThirtyTwoBytesChannelMonitorZ res; internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZGetOk(ptr); TwoTuple_ThirtyTwoBytesChannelMonitorZ res_hu_conv = new TwoTuple_ThirtyTwoBytesChannelMonitorZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_OK(object _dum public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_Err : Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ { public readonly DecodeError err; internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_Err(object _du * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the success state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ ok(org.ldk.structs.TwoTuple_ThirtyTwoBytesChannelMonitorZ o) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.constr_from_ptr(ret); @@ -53,7 +53,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ ok(org.ld * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the error state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.constr_from_ptr(ret); @@ -65,13 +65,13 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ err(org.l * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ clone() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.cs index ebf7da47c..102c90d75 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : CommonBase { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZFree(ptr); } } internal static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZIsOk(ptr)) { return new Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_OK(null, ptr); } else { return new Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ constr_from public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_OK : Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ { public readonly TwoTuple_ThirtyTwoBytesChannelMonitorZ res; internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(ptr); + long res = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZGetOk(ptr); TwoTuple_ThirtyTwoBytesChannelMonitorZ res_hu_conv = new TwoTuple_ThirtyTwoBytesChannelMonitorZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_OK(object _dummy, public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_Err : Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ { public readonly IOError err; internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(ptr); + this.err = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_Err(object _dummy, * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the success state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ ok(org.ldk.structs.TwoTuple_ThirtyTwoBytesChannelMonitorZ o) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ ok(org.ldk.st * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the error state. */ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ err(IOError e) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(e); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.constr_from_ptr(ret); @@ -61,13 +61,13 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ err(IOError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -77,7 +77,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ clone() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesChannelMonitorZIOErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.cs index 4d16bf456..6137f8775 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : CommonBase { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZFree(ptr); } } internal static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZIsOk(ptr)) { return new Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_OK(null, ptr); } else { return new Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ constr_from_pt public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_OK : Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ { public readonly TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ res; internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(ptr); + long res = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZGetOk(ptr); TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ res_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_Err(object _dummy, lo * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the success state. */ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ok(org.ldk.structs.TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ o) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ok(org.ldk.struc * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the error state. */ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ err() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -58,13 +58,13 @@ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ clone() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.cs index d929e30ad..0072041b2 100644 --- a/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : CommonBase { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ() { - if (ptr != 0) { bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZFree(ptr); } } internal static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZIsOk(ptr)) { return new Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_OK(null, ptr); } else { return new Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_OK : Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ { public readonly TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ res; internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(ptr); + long res = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZGetOk(ptr); TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ res_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_OK(obje public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_Err : Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ { public readonly PaymentSendFailure err; internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(ptr); + long err = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZGetErr(ptr); org.ldk.structs.PaymentSendFailure err_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_Err(obj * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the success state. */ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ok(org.ldk.structs.TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ o) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.constr_from_ptr(ret); @@ -53,7 +53,7 @@ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ok * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the error state. */ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ err(org.ldk.structs.PaymentSendFailure e) { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(e.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.constr_from_ptr(ret); @@ -65,13 +65,13 @@ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ er * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ clone() { - long ret = bindings.CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultC2TupleThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ret_hu_conv = Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.cs index 5cc240dc9..8bc3c4908 100644 --- a/c_sharp/src/org/ldk/structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ : CommonBase { Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ() { - if (ptr != 0) { bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZFree(ptr); } } internal static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(ptr)) { + if (Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZIsOk(ptr)) { return new Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_OK(null, ptr); } else { return new Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZ public class Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_OK : Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ { public readonly ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ res; internal Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(ptr); + long res = Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZGetOk(ptr); ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ res_hu_conv = new ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendEr public class Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_Err : Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ { public readonly SendError err; internal Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(ptr); + long err = Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZGetErr(ptr); org.ldk.structs.SendError err_hu_conv = org.ldk.structs.SendError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendEr * Creates a new CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ in the success state. */ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ ok(org.ldk.structs.ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o) { - long ret = bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ ret_hu_conv = Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.constr_from_ptr(ret); @@ -53,7 +53,7 @@ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZS * Creates a new CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ in the error state. */ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ err(org.ldk.structs.SendError e) { - long ret = bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(e.ptr); + long ret = Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ ret_hu_conv = Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.constr_from_ptr(ret); @@ -65,7 +65,7 @@ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZS * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultC3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZSendErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.cs index 9fdb1a2f0..989f54d26 100644 --- a/c_sharp/src/org/ldk/structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ : CommonBase { Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ() { - if (ptr != 0) { bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZFree(ptr); } } internal static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(ptr)) { + if (Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZIsOk(ptr)) { return new Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_OK(null, ptr); } else { return new Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParameters public class Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_OK : Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ { public readonly ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ res; internal Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(ptr); + long res = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZGetOk(ptr); ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ res_hu_conv = new ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ(null, res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ * Creates a new CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ in the success state. */ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ ok(org.ldk.structs.ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o) { - long ret = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(o != null ? o.ptr : 0); + long ret = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZOk(o != null ? o.ptr : 0); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ ret_hu_conv = Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZN * Creates a new CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ in the error state. */ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ err() { - long ret = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(); + long ret = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ ret_hu_conv = Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -58,13 +58,13 @@ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZN * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -74,7 +74,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ clone() { - long ret = bindings.CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(this.ptr); + long ret = Bindings.CResultC3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ ret_hu_conv = Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_APIErrorZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_APIErrorZDecodeErrorZ.cs index c3ef60378..644a22d4a 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_APIErrorZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_APIErrorZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_APIErrorZDecodeErrorZ : CommonBase { Result_COption_APIErrorZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_APIErrorZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_APIErrorZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionAPIErrorZDecodeErrorZFree(ptr); } } internal static Result_COption_APIErrorZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_APIErrorZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionAPIErrorZDecodeErrorZIsOk(ptr)) { return new Result_COption_APIErrorZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_APIErrorZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_APIErrorZDecodeErrorZ constr_from_ptr(long ptr) { public class Result_COption_APIErrorZDecodeErrorZ_OK : Result_COption_APIErrorZDecodeErrorZ { public readonly Option_APIErrorZ res; internal Result_COption_APIErrorZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_APIErrorZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionAPIErrorZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_APIErrorZ res_hu_conv = org.ldk.structs.Option_APIErrorZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_APIErrorZDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_COption_APIErrorZDecodeErrorZ_Err : Result_COption_APIErrorZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_APIErrorZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_APIErrorZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionAPIErrorZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_APIErrorZDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_COption_APIErrorZDecodeErrorZ in the success state. */ public static Result_COption_APIErrorZDecodeErrorZ ok(org.ldk.structs.Option_APIErrorZ o) { - long ret = bindings.CResult_COption_APIErrorZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionAPIErrorZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_APIErrorZDecodeErrorZ ret_hu_conv = Result_COption_APIErrorZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_APIErrorZDecodeErrorZ ok(org.ldk.structs.Option_API * Creates a new CResult_COption_APIErrorZDecodeErrorZ in the error state. */ public static Result_COption_APIErrorZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_APIErrorZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionAPIErrorZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_APIErrorZDecodeErrorZ ret_hu_conv = Result_COption_APIErrorZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_APIErrorZDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_APIErrorZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionAPIErrorZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionAPIErrorZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_APIErrorZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_APIErrorZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionAPIErrorZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_APIErrorZDecodeErrorZ ret_hu_conv = Result_COption_APIErrorZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_ClosureReasonZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_ClosureReasonZDecodeErrorZ.cs index 258edbe78..6bc543507 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_ClosureReasonZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_ClosureReasonZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_ClosureReasonZDecodeErrorZ : CommonBase { Result_COption_ClosureReasonZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_ClosureReasonZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_ClosureReasonZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionClosureReasonZDecodeErrorZFree(ptr); } } internal static Result_COption_ClosureReasonZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionClosureReasonZDecodeErrorZIsOk(ptr)) { return new Result_COption_ClosureReasonZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_ClosureReasonZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_ClosureReasonZDecodeErrorZ constr_from_ptr(long p public class Result_COption_ClosureReasonZDecodeErrorZ_OK : Result_COption_ClosureReasonZDecodeErrorZ { public readonly Option_ClosureReasonZ res; internal Result_COption_ClosureReasonZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionClosureReasonZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_ClosureReasonZ res_hu_conv = org.ldk.structs.Option_ClosureReasonZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_ClosureReasonZDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_COption_ClosureReasonZDecodeErrorZ_Err : Result_COption_ClosureReasonZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_ClosureReasonZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionClosureReasonZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_ClosureReasonZDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_COption_ClosureReasonZDecodeErrorZ in the success state. */ public static Result_COption_ClosureReasonZDecodeErrorZ ok(org.ldk.structs.Option_ClosureReasonZ o) { - long ret = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionClosureReasonZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_ClosureReasonZDecodeErrorZ ret_hu_conv = Result_COption_ClosureReasonZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_ClosureReasonZDecodeErrorZ ok(org.ldk.structs.Optio * Creates a new CResult_COption_ClosureReasonZDecodeErrorZ in the error state. */ public static Result_COption_ClosureReasonZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionClosureReasonZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_ClosureReasonZDecodeErrorZ ret_hu_conv = Result_COption_ClosureReasonZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_ClosureReasonZDecodeErrorZ err(org.ldk.structs.Deco * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionClosureReasonZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionClosureReasonZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_ClosureReasonZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_ClosureReasonZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionClosureReasonZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_ClosureReasonZDecodeErrorZ ret_hu_conv = Result_COption_ClosureReasonZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_EventZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_EventZDecodeErrorZ.cs index 02d7c7f9e..38686dc97 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_EventZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_EventZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_EventZDecodeErrorZ : CommonBase { Result_COption_EventZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_EventZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_EventZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionEventZDecodeErrorZFree(ptr); } } internal static Result_COption_EventZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_EventZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionEventZDecodeErrorZIsOk(ptr)) { return new Result_COption_EventZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_EventZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_EventZDecodeErrorZ constr_from_ptr(long ptr) { public class Result_COption_EventZDecodeErrorZ_OK : Result_COption_EventZDecodeErrorZ { public readonly Option_EventZ res; internal Result_COption_EventZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_EventZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionEventZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_EventZ res_hu_conv = org.ldk.structs.Option_EventZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_EventZDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_COption_EventZDecodeErrorZ_Err : Result_COption_EventZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_EventZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_EventZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionEventZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_EventZDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_COption_EventZDecodeErrorZ in the success state. */ public static Result_COption_EventZDecodeErrorZ ok(org.ldk.structs.Option_EventZ o) { - long ret = bindings.CResult_COption_EventZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionEventZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_EventZDecodeErrorZ ok(org.ldk.structs.Option_EventZ * Creates a new CResult_COption_EventZDecodeErrorZ in the error state. */ public static Result_COption_EventZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_EventZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionEventZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_EventZDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_EventZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionEventZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_EventZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionEventZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_EventZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_EventZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionEventZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_HTLCDestinationZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_HTLCDestinationZDecodeErrorZ.cs index 7d92a7f17..cc8f6e442 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_HTLCDestinationZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_HTLCDestinationZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_HTLCDestinationZDecodeErrorZ : CommonBase { Result_COption_HTLCDestinationZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_HTLCDestinationZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionHTLCDestinationZDecodeErrorZFree(ptr); } } internal static Result_COption_HTLCDestinationZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionHTLCDestinationZDecodeErrorZIsOk(ptr)) { return new Result_COption_HTLCDestinationZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_HTLCDestinationZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_HTLCDestinationZDecodeErrorZ constr_from_ptr(long public class Result_COption_HTLCDestinationZDecodeErrorZ_OK : Result_COption_HTLCDestinationZDecodeErrorZ { public readonly Option_HTLCDestinationZ res; internal Result_COption_HTLCDestinationZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_HTLCDestinationZ res_hu_conv = org.ldk.structs.Option_HTLCDestinationZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_HTLCDestinationZDecodeErrorZ_OK(object _dummy, long ptr) public class Result_COption_HTLCDestinationZDecodeErrorZ_Err : Result_COption_HTLCDestinationZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_HTLCDestinationZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_HTLCDestinationZDecodeErrorZ_Err(object _dummy, long ptr * Creates a new CResult_COption_HTLCDestinationZDecodeErrorZ in the success state. */ public static Result_COption_HTLCDestinationZDecodeErrorZ ok(org.ldk.structs.Option_HTLCDestinationZ o) { - long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_HTLCDestinationZDecodeErrorZ ok(org.ldk.structs.Opt * Creates a new CResult_COption_HTLCDestinationZDecodeErrorZ in the error state. */ public static Result_COption_HTLCDestinationZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_HTLCDestinationZDecodeErrorZ err(org.ldk.structs.De * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_HTLCDestinationZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_HTLCDestinationZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionHTLCDestinationZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.cs index 02395f8d6..51a064b8d 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_MonitorEventZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_MonitorEventZDecodeErrorZ : CommonBase { Result_COption_MonitorEventZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_MonitorEventZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_MonitorEventZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionMonitorEventZDecodeErrorZFree(ptr); } } internal static Result_COption_MonitorEventZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_MonitorEventZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionMonitorEventZDecodeErrorZIsOk(ptr)) { return new Result_COption_MonitorEventZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_MonitorEventZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_MonitorEventZDecodeErrorZ constr_from_ptr(long pt public class Result_COption_MonitorEventZDecodeErrorZ_OK : Result_COption_MonitorEventZDecodeErrorZ { public readonly Option_MonitorEventZ res; internal Result_COption_MonitorEventZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_MonitorEventZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionMonitorEventZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_MonitorEventZ res_hu_conv = org.ldk.structs.Option_MonitorEventZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_MonitorEventZDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_COption_MonitorEventZDecodeErrorZ_Err : Result_COption_MonitorEventZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_MonitorEventZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_MonitorEventZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionMonitorEventZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_MonitorEventZDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_COption_MonitorEventZDecodeErrorZ in the success state. */ public static Result_COption_MonitorEventZDecodeErrorZ ok(org.ldk.structs.Option_MonitorEventZ o) { - long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionMonitorEventZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_MonitorEventZDecodeErrorZ ok(org.ldk.structs.Option * Creates a new CResult_COption_MonitorEventZDecodeErrorZ in the error state. */ public static Result_COption_MonitorEventZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionMonitorEventZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_MonitorEventZDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionMonitorEventZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionMonitorEventZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_MonitorEventZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_MonitorEventZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionMonitorEventZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_NetworkUpdateZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_NetworkUpdateZDecodeErrorZ.cs index 2dad04a95..8a01d163a 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_NetworkUpdateZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_NetworkUpdateZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_NetworkUpdateZDecodeErrorZ : CommonBase { Result_COption_NetworkUpdateZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_NetworkUpdateZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionNetworkUpdateZDecodeErrorZFree(ptr); } } internal static Result_COption_NetworkUpdateZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionNetworkUpdateZDecodeErrorZIsOk(ptr)) { return new Result_COption_NetworkUpdateZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_NetworkUpdateZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_NetworkUpdateZDecodeErrorZ constr_from_ptr(long p public class Result_COption_NetworkUpdateZDecodeErrorZ_OK : Result_COption_NetworkUpdateZDecodeErrorZ { public readonly Option_NetworkUpdateZ res; internal Result_COption_NetworkUpdateZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_NetworkUpdateZ res_hu_conv = org.ldk.structs.Option_NetworkUpdateZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_NetworkUpdateZDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_COption_NetworkUpdateZDecodeErrorZ_Err : Result_COption_NetworkUpdateZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_NetworkUpdateZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_NetworkUpdateZDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_COption_NetworkUpdateZDecodeErrorZ in the success state. */ public static Result_COption_NetworkUpdateZDecodeErrorZ ok(org.ldk.structs.Option_NetworkUpdateZ o) { - long ret = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_NetworkUpdateZDecodeErrorZ ret_hu_conv = Result_COption_NetworkUpdateZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_NetworkUpdateZDecodeErrorZ ok(org.ldk.structs.Optio * Creates a new CResult_COption_NetworkUpdateZDecodeErrorZ in the error state. */ public static Result_COption_NetworkUpdateZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_NetworkUpdateZDecodeErrorZ ret_hu_conv = Result_COption_NetworkUpdateZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_NetworkUpdateZDecodeErrorZ err(org.ldk.structs.Deco * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_NetworkUpdateZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_NetworkUpdateZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionNetworkUpdateZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_NetworkUpdateZDecodeErrorZ ret_hu_conv = Result_COption_NetworkUpdateZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_OnionMessageContentsZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_OnionMessageContentsZDecodeErrorZ.cs index a71c821da..7ff9172f4 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_OnionMessageContentsZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_OnionMessageContentsZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_OnionMessageContentsZDecodeErrorZ : CommonBase { Result_COption_OnionMessageContentsZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_OnionMessageContentsZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZFree(ptr); } } internal static Result_COption_OnionMessageContentsZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZIsOk(ptr)) { return new Result_COption_OnionMessageContentsZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_OnionMessageContentsZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_OnionMessageContentsZDecodeErrorZ constr_from_ptr public class Result_COption_OnionMessageContentsZDecodeErrorZ_OK : Result_COption_OnionMessageContentsZDecodeErrorZ { public readonly Option_OnionMessageContentsZ res; internal Result_COption_OnionMessageContentsZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_OnionMessageContentsZ res_hu_conv = org.ldk.structs.Option_OnionMessageContentsZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_OnionMessageContentsZDecodeErrorZ_OK(object _dummy, long public class Result_COption_OnionMessageContentsZDecodeErrorZ_Err : Result_COption_OnionMessageContentsZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_OnionMessageContentsZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_OnionMessageContentsZDecodeErrorZ_Err(object _dummy, lon * Creates a new CResult_COption_OnionMessageContentsZDecodeErrorZ in the success state. */ public static Result_COption_OnionMessageContentsZDecodeErrorZ ok(org.ldk.structs.Option_OnionMessageContentsZ o) { - long ret = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_OnionMessageContentsZDecodeErrorZ ret_hu_conv = Result_COption_OnionMessageContentsZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_OnionMessageContentsZDecodeErrorZ ok(org.ldk.struct * Creates a new CResult_COption_OnionMessageContentsZDecodeErrorZ in the error state. */ public static Result_COption_OnionMessageContentsZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_OnionMessageContentsZDecodeErrorZ ret_hu_conv = Result_COption_OnionMessageContentsZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_OnionMessageContentsZDecodeErrorZ err(org.ldk.struc * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_OnionMessageContentsZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionOnionMessageContentsZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_OnionMessageContentsZDecodeErrorZ ret_hu_conv = Result_COption_OnionMessageContentsZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_PathFailureZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_PathFailureZDecodeErrorZ.cs index 52b191687..d2fb9dc64 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_PathFailureZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_PathFailureZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_PathFailureZDecodeErrorZ : CommonBase { Result_COption_PathFailureZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_PathFailureZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_PathFailureZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionPathFailureZDecodeErrorZFree(ptr); } } internal static Result_COption_PathFailureZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_PathFailureZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionPathFailureZDecodeErrorZIsOk(ptr)) { return new Result_COption_PathFailureZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_PathFailureZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_PathFailureZDecodeErrorZ constr_from_ptr(long ptr public class Result_COption_PathFailureZDecodeErrorZ_OK : Result_COption_PathFailureZDecodeErrorZ { public readonly Option_PathFailureZ res; internal Result_COption_PathFailureZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_PathFailureZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionPathFailureZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_PathFailureZ res_hu_conv = org.ldk.structs.Option_PathFailureZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_PathFailureZDecodeErrorZ_OK(object _dummy, long ptr) : b public class Result_COption_PathFailureZDecodeErrorZ_Err : Result_COption_PathFailureZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_PathFailureZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_PathFailureZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionPathFailureZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_PathFailureZDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_COption_PathFailureZDecodeErrorZ in the success state. */ public static Result_COption_PathFailureZDecodeErrorZ ok(org.ldk.structs.Option_PathFailureZ o) { - long ret = bindings.CResult_COption_PathFailureZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionPathFailureZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_PathFailureZDecodeErrorZ ret_hu_conv = Result_COption_PathFailureZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_PathFailureZDecodeErrorZ ok(org.ldk.structs.Option_ * Creates a new CResult_COption_PathFailureZDecodeErrorZ in the error state. */ public static Result_COption_PathFailureZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_PathFailureZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionPathFailureZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_PathFailureZDecodeErrorZ ret_hu_conv = Result_COption_PathFailureZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_PathFailureZDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_PathFailureZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionPathFailureZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionPathFailureZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_PathFailureZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_PathFailureZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionPathFailureZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_PathFailureZDecodeErrorZ ret_hu_conv = Result_COption_PathFailureZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_COption_TypeZDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_COption_TypeZDecodeErrorZ.cs index 483e59d4e..af7b78eec 100644 --- a/c_sharp/src/org/ldk/structs/Result_COption_TypeZDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_COption_TypeZDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_COption_TypeZDecodeErrorZ : CommonBase { Result_COption_TypeZDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_COption_TypeZDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_COption_TypeZDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCOptionTypeZDecodeErrorZFree(ptr); } } internal static Result_COption_TypeZDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_COption_TypeZDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCOptionTypeZDecodeErrorZIsOk(ptr)) { return new Result_COption_TypeZDecodeErrorZ_OK(null, ptr); } else { return new Result_COption_TypeZDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_COption_TypeZDecodeErrorZ constr_from_ptr(long ptr) { public class Result_COption_TypeZDecodeErrorZ_OK : Result_COption_TypeZDecodeErrorZ { public readonly Option_TypeZ res; internal Result_COption_TypeZDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_COption_TypeZDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCOptionTypeZDecodeErrorZGetOk(ptr); org.ldk.structs.Option_TypeZ res_hu_conv = org.ldk.structs.Option_TypeZ.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_COption_TypeZDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_COption_TypeZDecodeErrorZ_Err : Result_COption_TypeZDecodeErrorZ { public readonly DecodeError err; internal Result_COption_TypeZDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_COption_TypeZDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCOptionTypeZDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_COption_TypeZDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_COption_TypeZDecodeErrorZ in the success state. */ public static Result_COption_TypeZDecodeErrorZ ok(org.ldk.structs.Option_TypeZ o) { - long ret = bindings.CResult_COption_TypeZDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultCOptionTypeZDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_COption_TypeZDecodeErrorZ ok(org.ldk.structs.Option_TypeZ o * Creates a new CResult_COption_TypeZDecodeErrorZ in the error state. */ public static Result_COption_TypeZDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_COption_TypeZDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCOptionTypeZDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_COption_TypeZDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_COption_TypeZDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCOptionTypeZDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_COption_TypeZDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCOptionTypeZDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_COption_TypeZDecodeErrorZ clone() { - long ret = bindings.CResult_COption_TypeZDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCOptionTypeZDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_BlindedPathZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_BlindedPathZNoneZ.cs index 9adab4231..4a7c323f7 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_BlindedPathZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_BlindedPathZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_BlindedPathZNoneZ : CommonBase { Result_CVec_BlindedPathZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_BlindedPathZNoneZ() { - if (ptr != 0) { bindings.CResult_CVec_BlindedPathZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecBlindedPathZNoneZFree(ptr); } } internal static Result_CVec_BlindedPathZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_BlindedPathZNoneZ_is_ok(ptr)) { + if (Bindings.CResultCVecBlindedPathZNoneZIsOk(ptr)) { return new Result_CVec_BlindedPathZNoneZ_OK(null, ptr); } else { return new Result_CVec_BlindedPathZNoneZ_Err(null, ptr); @@ -21,16 +21,16 @@ internal static Result_CVec_BlindedPathZNoneZ constr_from_ptr(long ptr) { public class Result_CVec_BlindedPathZNoneZ_OK : Result_CVec_BlindedPathZNoneZ { public readonly BlindedPath[] res; internal Result_CVec_BlindedPathZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_BlindedPathZNoneZ_get_ok(ptr); - int res_conv_13_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecBlindedPathZNoneZGetOk(ptr); + int res_conv_13_len = InternalUtils.GetArrayLength(res); BlindedPath[] res_conv_13_arr = new BlindedPath[res_conv_13_len]; for (int n = 0; n < res_conv_13_len; n++) { - long res_conv_13 = InternalUtils.getU64ArrayElem(res, n); + long res_conv_13 = InternalUtils.GetU64ArrayElem(res, n); org.ldk.structs.BlindedPath res_conv_13_hu_conv = null; if (res_conv_13 < 0 || res_conv_13 > 4096) { res_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, res_conv_13); } if (res_conv_13_hu_conv != null) { res_conv_13_hu_conv.ptrs_to.AddLast(this); }; res_conv_13_arr[n] = res_conv_13_hu_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_13_arr; } } @@ -44,7 +44,7 @@ internal Result_CVec_BlindedPathZNoneZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_CVec_BlindedPathZNoneZ in the success state. */ public static Result_CVec_BlindedPathZNoneZ ok(BlindedPath[] o) { - long ret = bindings.CResult_CVec_BlindedPathZNoneZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_13 => o_conv_13 == null ? 0 : o_conv_13.ptr))); + long ret = Bindings.CResultCVecBlindedPathZNoneZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_13 => o_conv_13 == null ? 0 : o_conv_13.ptr))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_BlindedPathZNoneZ ret_hu_conv = Result_CVec_BlindedPathZNoneZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Result_CVec_BlindedPathZNoneZ ok(BlindedPath[] o) { * Creates a new CResult_CVec_BlindedPathZNoneZ in the error state. */ public static Result_CVec_BlindedPathZNoneZ err() { - long ret = bindings.CResult_CVec_BlindedPathZNoneZ_err(); + long ret = Bindings.CResultCVecBlindedPathZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_BlindedPathZNoneZ ret_hu_conv = Result_CVec_BlindedPathZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -66,13 +66,13 @@ public static Result_CVec_BlindedPathZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_BlindedPathZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecBlindedPathZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_BlindedPathZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecBlindedPathZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_BlindedPathZNoneZ clone() { - long ret = bindings.CResult_CVec_BlindedPathZNoneZ_clone(this.ptr); + long ret = Bindings.CResultCVecBlindedPathZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_BlindedPathZNoneZ ret_hu_conv = Result_CVec_BlindedPathZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.cs index 9c4c16efb..775b68fb6 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ : CommonBase { Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ() { - if (ptr != 0) { bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZFree(ptr); } } internal static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(ptr)) { + if (Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZIsOk(ptr)) { return new Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_OK(null, ptr); } else { return new Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_Err(null, ptr); @@ -21,16 +21,16 @@ internal static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ constr_from public class Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_OK : Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ { public readonly TwoTuple_BlindedPayInfoBlindedPathZ[] res; internal Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(ptr); - int res_conv_37_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZGetOk(ptr); + int res_conv_37_len = InternalUtils.GetArrayLength(res); TwoTuple_BlindedPayInfoBlindedPathZ[] res_conv_37_arr = new TwoTuple_BlindedPayInfoBlindedPathZ[res_conv_37_len]; for (int l = 0; l < res_conv_37_len; l++) { - long res_conv_37 = InternalUtils.getU64ArrayElem(res, l); + long res_conv_37 = InternalUtils.GetU64ArrayElem(res, l); TwoTuple_BlindedPayInfoBlindedPathZ res_conv_37_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, res_conv_37); if (res_conv_37_hu_conv != null) { res_conv_37_hu_conv.ptrs_to.AddLast(this); }; res_conv_37_arr[l] = res_conv_37_hu_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_37_arr; } } @@ -44,7 +44,7 @@ internal Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_Err(object _dummy, * Creates a new CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ in the success state. */ public static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ok(TwoTuple_BlindedPayInfoBlindedPathZ[] o) { - long ret = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_37 => o_conv_37 != null ? o_conv_37.ptr : 0))); + long ret = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_37 => o_conv_37 != null ? o_conv_37.ptr : 0))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ret_hu_conv = Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.constr_from_ptr(ret); @@ -55,7 +55,7 @@ public static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ok(TwoTuple_B * Creates a new CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ in the error state. */ public static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ err() { - long ret = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err(); + long ret = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ret_hu_conv = Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -65,13 +65,13 @@ public static Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -81,7 +81,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ clone() { - long ret = bindings.CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(this.ptr); + long ret = Bindings.CResultCVecC2TupleBlindedPayInfoBlindedPathZZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ret_hu_conv = Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.cs index c7f7aa215..4aded7e8e 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : CommonBase { Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ() { - if (ptr != 0) { bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZFree(ptr); } } internal static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(ptr)) { + if (Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZIsOk(ptr)) { return new Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_OK(null, ptr); } else { return new Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_Err(null, ptr); @@ -21,16 +21,16 @@ internal static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ const public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_OK : Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ { public readonly TwoTuple_ThirtyTwoBytesChannelMonitorZ[] res; internal Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(ptr); - int res_conv_40_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZGetOk(ptr); + int res_conv_40_len = InternalUtils.GetArrayLength(res); TwoTuple_ThirtyTwoBytesChannelMonitorZ[] res_conv_40_arr = new TwoTuple_ThirtyTwoBytesChannelMonitorZ[res_conv_40_len]; for (int o = 0; o < res_conv_40_len; o++) { - long res_conv_40 = InternalUtils.getU64ArrayElem(res, o); + long res_conv_40 = InternalUtils.GetU64ArrayElem(res, o); TwoTuple_ThirtyTwoBytesChannelMonitorZ res_conv_40_hu_conv = new TwoTuple_ThirtyTwoBytesChannelMonitorZ(null, res_conv_40); if (res_conv_40_hu_conv != null) { res_conv_40_hu_conv.ptrs_to.AddLast(this); }; res_conv_40_arr[o] = res_conv_40_hu_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_40_arr; } } @@ -38,7 +38,7 @@ internal Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_OK(object _d public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_Err : Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ { public readonly IOError err; internal Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(ptr); + this.err = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZGetErr(ptr); } } @@ -46,7 +46,7 @@ internal Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_Err(object _ * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the success state. */ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ ok(TwoTuple_ThirtyTwoBytesChannelMonitorZ[] o) { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_40 => o_conv_40 != null ? o_conv_40.ptr : 0))); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_40 => o_conv_40 != null ? o_conv_40.ptr : 0))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.constr_from_ptr(ret); @@ -57,7 +57,7 @@ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ ok(TwoT * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the error state. */ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ err(IOError e) { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(e); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.constr_from_ptr(ret); @@ -68,13 +68,13 @@ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ err(IOE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ clone() { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(this.ptr); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesChannelMonitorZZIOErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.cs index 666af7e8d..d4beb8db3 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : CommonBase { Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ() { - if (ptr != 0) { bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZFree(ptr); } } internal static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZIsOk(ptr)) { return new Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_OK(null, ptr); } else { return new Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_Err(null, ptr); @@ -21,16 +21,16 @@ internal static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailu public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_OK : Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ { public readonly TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ[] res; internal Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(ptr); - int res_conv_40_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZGetOk(ptr); + int res_conv_40_len = InternalUtils.GetArrayLength(res); TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ[] res_conv_40_arr = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ[res_conv_40_len]; for (int o = 0; o < res_conv_40_len; o++) { - long res_conv_40 = InternalUtils.getU64ArrayElem(res, o); + long res_conv_40 = InternalUtils.GetU64ArrayElem(res, o); TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ res_conv_40_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, res_conv_40); if (res_conv_40_hu_conv != null) { res_conv_40_hu_conv.ptrs_to.AddLast(this); }; res_conv_40_arr[o] = res_conv_40_hu_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_40_arr; } } @@ -38,7 +38,7 @@ internal Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_OK( public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_Err : Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ { public readonly ProbeSendFailure err; internal Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(ptr); + long err = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZGetErr(ptr); org.ldk.structs.ProbeSendFailure err_hu_conv = org.ldk.structs.ProbeSendFailure.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -49,7 +49,7 @@ internal Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_Err * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the success state. */ public static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ok(TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ[] o) { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_40 => o_conv_40 != null ? o_conv_40.ptr : 0))); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_40 => o_conv_40 != null ? o_conv_40.ptr : 0))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.constr_from_ptr(ret); @@ -60,7 +60,7 @@ public static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailure * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the error state. */ public static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ err(org.ldk.structs.ProbeSendFailure e) { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(e.ptr); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.constr_from_ptr(ret); @@ -72,13 +72,13 @@ public static Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailure * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -88,7 +88,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ clone() { - long ret = bindings.CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultCVecC2TupleThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ret_hu_conv = Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_ECDSASignatureZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_ECDSASignatureZNoneZ.cs index a93fa39c9..5aef3bdbc 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_ECDSASignatureZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_ECDSASignatureZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_ECDSASignatureZNoneZ : CommonBase { Result_CVec_ECDSASignatureZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_ECDSASignatureZNoneZ() { - if (ptr != 0) { bindings.CResult_CVec_ECDSASignatureZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecECDSASignatureZNoneZFree(ptr); } } internal static Result_CVec_ECDSASignatureZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_ECDSASignatureZNoneZ_is_ok(ptr)) { + if (Bindings.CResultCVecECDSASignatureZNoneZIsOk(ptr)) { return new Result_CVec_ECDSASignatureZNoneZ_OK(null, ptr); } else { return new Result_CVec_ECDSASignatureZNoneZ_Err(null, ptr); @@ -21,15 +21,15 @@ internal static Result_CVec_ECDSASignatureZNoneZ constr_from_ptr(long ptr) { public class Result_CVec_ECDSASignatureZNoneZ_OK : Result_CVec_ECDSASignatureZNoneZ { public readonly byte[][] res; internal Result_CVec_ECDSASignatureZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_ECDSASignatureZNoneZ_get_ok(ptr); - int res_conv_8_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecECDSASignatureZNoneZGetOk(ptr); + int res_conv_8_len = InternalUtils.GetArrayLength(res); byte[][] res_conv_8_arr = new byte[res_conv_8_len][]; for (int i = 0; i < res_conv_8_len; i++) { - long res_conv_8 = InternalUtils.getU64ArrayElem(res, i); - byte[] res_conv_8_conv = InternalUtils.decodeUint8Array(res_conv_8); + long res_conv_8 = InternalUtils.GetU64ArrayElem(res, i); + byte[] res_conv_8_conv = InternalUtils.DecodeUint8Array(res_conv_8); res_conv_8_arr[i] = res_conv_8_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_8_arr; } } @@ -43,7 +43,7 @@ internal Result_CVec_ECDSASignatureZNoneZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the success state. */ public static Result_CVec_ECDSASignatureZNoneZ ok(byte[][] o) { - long ret = bindings.CResult_CVec_ECDSASignatureZNoneZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o_conv_8, 64))))); + long ret = Bindings.CResultCVecECDSASignatureZNoneZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o_conv_8, 64))))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_ECDSASignatureZNoneZ ret_hu_conv = Result_CVec_ECDSASignatureZNoneZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CVec_ECDSASignatureZNoneZ ok(byte[][] o) { * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the error state. */ public static Result_CVec_ECDSASignatureZNoneZ err() { - long ret = bindings.CResult_CVec_ECDSASignatureZNoneZ_err(); + long ret = Bindings.CResultCVecECDSASignatureZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_ECDSASignatureZNoneZ ret_hu_conv = Result_CVec_ECDSASignatureZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -64,13 +64,13 @@ public static Result_CVec_ECDSASignatureZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_ECDSASignatureZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecECDSASignatureZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecECDSASignatureZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_ECDSASignatureZNoneZ clone() { - long ret = bindings.CResult_CVec_ECDSASignatureZNoneZ_clone(this.ptr); + long ret = Bindings.CResultCVecECDSASignatureZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_ECDSASignatureZNoneZ ret_hu_conv = Result_CVec_ECDSASignatureZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_StrZIOErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_StrZIOErrorZ.cs index 7da2be506..0abf6a29a 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_StrZIOErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_StrZIOErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_StrZIOErrorZ : CommonBase { Result_CVec_StrZIOErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_StrZIOErrorZ() { - if (ptr != 0) { bindings.CResult_CVec_StrZIOErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecStrZIOErrorZFree(ptr); } } internal static Result_CVec_StrZIOErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_StrZIOErrorZ_is_ok(ptr)) { + if (Bindings.CResultCVecStrZIOErrorZIsOk(ptr)) { return new Result_CVec_StrZIOErrorZ_OK(null, ptr); } else { return new Result_CVec_StrZIOErrorZ_Err(null, ptr); @@ -21,15 +21,15 @@ internal static Result_CVec_StrZIOErrorZ constr_from_ptr(long ptr) { public class Result_CVec_StrZIOErrorZ_OK : Result_CVec_StrZIOErrorZ { public readonly string[] res; internal Result_CVec_StrZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_StrZIOErrorZ_get_ok(ptr); - int res_conv_8_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecStrZIOErrorZGetOk(ptr); + int res_conv_8_len = InternalUtils.GetArrayLength(res); string[] res_conv_8_arr = new string[res_conv_8_len]; for (int i = 0; i < res_conv_8_len; i++) { - long res_conv_8 = InternalUtils.getU64ArrayElem(res, i); - string res_conv_8_conv = InternalUtils.decodeString(res_conv_8); + long res_conv_8 = InternalUtils.GetU64ArrayElem(res, i); + string res_conv_8_conv = InternalUtils.DecodeString(res_conv_8); res_conv_8_arr[i] = res_conv_8_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_8_arr; } } @@ -37,7 +37,7 @@ internal Result_CVec_StrZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr public class Result_CVec_StrZIOErrorZ_Err : Result_CVec_StrZIOErrorZ { public readonly IOError err; internal Result_CVec_StrZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_CVec_StrZIOErrorZ_get_err(ptr); + this.err = Bindings.CResultCVecStrZIOErrorZGetErr(ptr); } } @@ -45,7 +45,7 @@ internal Result_CVec_StrZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, pt * Creates a new CResult_CVec_StrZIOErrorZ in the success state. */ public static Result_CVec_StrZIOErrorZ ok(string[] o) { - long ret = bindings.CResult_CVec_StrZIOErrorZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_8 => InternalUtils.encodeString(o_conv_8)))); + long ret = Bindings.CResultCVecStrZIOErrorZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_8 => InternalUtils.EncodeString(o_conv_8)))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_StrZIOErrorZ ret_hu_conv = Result_CVec_StrZIOErrorZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Result_CVec_StrZIOErrorZ ok(string[] o) { * Creates a new CResult_CVec_StrZIOErrorZ in the error state. */ public static Result_CVec_StrZIOErrorZ err(IOError e) { - long ret = bindings.CResult_CVec_StrZIOErrorZ_err(e); + long ret = Bindings.CResultCVecStrZIOErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_StrZIOErrorZ ret_hu_conv = Result_CVec_StrZIOErrorZ.constr_from_ptr(ret); @@ -67,13 +67,13 @@ public static Result_CVec_StrZIOErrorZ err(IOError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_StrZIOErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecStrZIOErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_StrZIOErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecStrZIOErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_StrZIOErrorZ clone() { - long ret = bindings.CResult_CVec_StrZIOErrorZ_clone(this.ptr); + long ret = Bindings.CResultCVecStrZIOErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_StrZIOErrorZ ret_hu_conv = Result_CVec_StrZIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_UtxoZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_UtxoZNoneZ.cs index 636895d8a..35d807d4e 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_UtxoZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_UtxoZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_UtxoZNoneZ : CommonBase { Result_CVec_UtxoZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_UtxoZNoneZ() { - if (ptr != 0) { bindings.CResult_CVec_UtxoZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecUtxoZNoneZFree(ptr); } } internal static Result_CVec_UtxoZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_UtxoZNoneZ_is_ok(ptr)) { + if (Bindings.CResultCVecUtxoZNoneZIsOk(ptr)) { return new Result_CVec_UtxoZNoneZ_OK(null, ptr); } else { return new Result_CVec_UtxoZNoneZ_Err(null, ptr); @@ -21,16 +21,16 @@ internal static Result_CVec_UtxoZNoneZ constr_from_ptr(long ptr) { public class Result_CVec_UtxoZNoneZ_OK : Result_CVec_UtxoZNoneZ { public readonly Utxo[] res; internal Result_CVec_UtxoZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_UtxoZNoneZ_get_ok(ptr); - int res_conv_6_len = InternalUtils.getArrayLength(res); + long res = Bindings.CResultCVecUtxoZNoneZGetOk(ptr); + int res_conv_6_len = InternalUtils.GetArrayLength(res); Utxo[] res_conv_6_arr = new Utxo[res_conv_6_len]; for (int g = 0; g < res_conv_6_len; g++) { - long res_conv_6 = InternalUtils.getU64ArrayElem(res, g); + long res_conv_6 = InternalUtils.GetU64ArrayElem(res, g); org.ldk.structs.Utxo res_conv_6_hu_conv = null; if (res_conv_6 < 0 || res_conv_6 > 4096) { res_conv_6_hu_conv = new org.ldk.structs.Utxo(null, res_conv_6); } if (res_conv_6_hu_conv != null) { res_conv_6_hu_conv.ptrs_to.AddLast(this); }; res_conv_6_arr[g] = res_conv_6_hu_conv; } - bindings.free_buffer(res); + Bindings.FreeBuffer(res); this.res = res_conv_6_arr; } } @@ -44,7 +44,7 @@ internal Result_CVec_UtxoZNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr) * Creates a new CResult_CVec_UtxoZNoneZ in the success state. */ public static Result_CVec_UtxoZNoneZ ok(Utxo[] o) { - long ret = bindings.CResult_CVec_UtxoZNoneZ_ok(InternalUtils.encodeUint64Array(InternalUtils.mapArray(o, o_conv_6 => o_conv_6 == null ? 0 : o_conv_6.ptr))); + long ret = Bindings.CResultCVecUtxoZNoneZOk(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(o, o_conv_6 => o_conv_6 == null ? 0 : o_conv_6.ptr))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_UtxoZNoneZ ret_hu_conv = Result_CVec_UtxoZNoneZ.constr_from_ptr(ret); @@ -56,7 +56,7 @@ public static Result_CVec_UtxoZNoneZ ok(Utxo[] o) { * Creates a new CResult_CVec_UtxoZNoneZ in the error state. */ public static Result_CVec_UtxoZNoneZ err() { - long ret = bindings.CResult_CVec_UtxoZNoneZ_err(); + long ret = Bindings.CResultCVecUtxoZNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_UtxoZNoneZ ret_hu_conv = Result_CVec_UtxoZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -66,13 +66,13 @@ public static Result_CVec_UtxoZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_UtxoZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecUtxoZNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_UtxoZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecUtxoZNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_UtxoZNoneZ clone() { - long ret = bindings.CResult_CVec_UtxoZNoneZ_clone(this.ptr); + long ret = Bindings.CResultCVecUtxoZNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_UtxoZNoneZ ret_hu_conv = Result_CVec_UtxoZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZIOErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZIOErrorZ.cs index a780977d7..6c6339e73 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZIOErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZIOErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_u8ZIOErrorZ : CommonBase { Result_CVec_u8ZIOErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_u8ZIOErrorZ() { - if (ptr != 0) { bindings.CResult_CVec_u8ZIOErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecU8ZioerrorzFree(ptr); } } internal static Result_CVec_u8ZIOErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_u8ZIOErrorZ_is_ok(ptr)) { + if (Bindings.CResultCVecU8ZioerrorzIsOk(ptr)) { return new Result_CVec_u8ZIOErrorZ_OK(null, ptr); } else { return new Result_CVec_u8ZIOErrorZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_CVec_u8ZIOErrorZ constr_from_ptr(long ptr) { public class Result_CVec_u8ZIOErrorZ_OK : Result_CVec_u8ZIOErrorZ { public readonly byte[] res; internal Result_CVec_u8ZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_u8ZIOErrorZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultCVecU8ZioerrorzGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_CVec_u8ZIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) public class Result_CVec_u8ZIOErrorZ_Err : Result_CVec_u8ZIOErrorZ { public readonly IOError err; internal Result_CVec_u8ZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_CVec_u8ZIOErrorZ_get_err(ptr); + this.err = Bindings.CResultCVecU8ZioerrorzGetErr(ptr); } } @@ -38,7 +38,7 @@ internal Result_CVec_u8ZIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_CVec_u8ZIOErrorZ in the success state. */ public static Result_CVec_u8ZIOErrorZ ok(byte[] o) { - long ret = bindings.CResult_CVec_u8ZIOErrorZ_ok(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.CResultCVecU8ZioerrorzOk(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZIOErrorZ ret_hu_conv = Result_CVec_u8ZIOErrorZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_CVec_u8ZIOErrorZ ok(byte[] o) { * Creates a new CResult_CVec_u8ZIOErrorZ in the error state. */ public static Result_CVec_u8ZIOErrorZ err(IOError e) { - long ret = bindings.CResult_CVec_u8ZIOErrorZ_err(e); + long ret = Bindings.CResultCVecU8ZioerrorzErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZIOErrorZ ret_hu_conv = Result_CVec_u8ZIOErrorZ.constr_from_ptr(ret); @@ -60,13 +60,13 @@ public static Result_CVec_u8ZIOErrorZ err(IOError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_u8ZIOErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecU8ZioerrorzIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_u8ZIOErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecU8ZioerrorzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_u8ZIOErrorZ clone() { - long ret = bindings.CResult_CVec_u8ZIOErrorZ_clone(this.ptr); + long ret = Bindings.CResultCVecU8ZioerrorzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZIOErrorZ ret_hu_conv = Result_CVec_u8ZIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZNoneZ.cs index 68af83bd0..526353b42 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_u8ZNoneZ : CommonBase { Result_CVec_u8ZNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_u8ZNoneZ() { - if (ptr != 0) { bindings.CResult_CVec_u8ZNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecU8ZnonezFree(ptr); } } internal static Result_CVec_u8ZNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_u8ZNoneZ_is_ok(ptr)) { + if (Bindings.CResultCVecU8ZnonezIsOk(ptr)) { return new Result_CVec_u8ZNoneZ_OK(null, ptr); } else { return new Result_CVec_u8ZNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_CVec_u8ZNoneZ constr_from_ptr(long ptr) { public class Result_CVec_u8ZNoneZ_OK : Result_CVec_u8ZNoneZ { public readonly byte[] res; internal Result_CVec_u8ZNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_u8ZNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultCVecU8ZnonezGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_CVec_u8ZNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { * Creates a new CResult_CVec_u8ZNoneZ in the success state. */ public static Result_CVec_u8ZNoneZ ok(byte[] o) { - long ret = bindings.CResult_CVec_u8ZNoneZ_ok(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.CResultCVecU8ZnonezOk(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZNoneZ ret_hu_conv = Result_CVec_u8ZNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_CVec_u8ZNoneZ ok(byte[] o) { * Creates a new CResult_CVec_u8ZNoneZ in the error state. */ public static Result_CVec_u8ZNoneZ err() { - long ret = bindings.CResult_CVec_u8ZNoneZ_err(); + long ret = Bindings.CResultCVecU8ZnonezErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZNoneZ ret_hu_conv = Result_CVec_u8ZNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_CVec_u8ZNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_u8ZNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecU8ZnonezIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_u8ZNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecU8ZnonezClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_u8ZNoneZ clone() { - long ret = bindings.CResult_CVec_u8ZNoneZ_clone(this.ptr); + long ret = Bindings.CResultCVecU8ZnonezClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZNoneZ ret_hu_conv = Result_CVec_u8ZNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZPeerHandleErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZPeerHandleErrorZ.cs index 26a9bc8f1..c48e68dbe 100644 --- a/c_sharp/src/org/ldk/structs/Result_CVec_u8ZPeerHandleErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CVec_u8ZPeerHandleErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CVec_u8ZPeerHandleErrorZ : CommonBase { Result_CVec_u8ZPeerHandleErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CVec_u8ZPeerHandleErrorZ() { - if (ptr != 0) { bindings.CResult_CVec_u8ZPeerHandleErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCVecU8ZpeerhandleerrorzFree(ptr); } } internal static Result_CVec_u8ZPeerHandleErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CVec_u8ZPeerHandleErrorZ_is_ok(ptr)) { + if (Bindings.CResultCVecU8ZpeerhandleerrorzIsOk(ptr)) { return new Result_CVec_u8ZPeerHandleErrorZ_OK(null, ptr); } else { return new Result_CVec_u8ZPeerHandleErrorZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_CVec_u8ZPeerHandleErrorZ constr_from_ptr(long ptr) { public class Result_CVec_u8ZPeerHandleErrorZ_OK : Result_CVec_u8ZPeerHandleErrorZ { public readonly byte[] res; internal Result_CVec_u8ZPeerHandleErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CVec_u8ZPeerHandleErrorZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultCVecU8ZpeerhandleerrorzGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_CVec_u8ZPeerHandleErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_CVec_u8ZPeerHandleErrorZ_Err : Result_CVec_u8ZPeerHandleErrorZ { public readonly PeerHandleError err; internal Result_CVec_u8ZPeerHandleErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CVec_u8ZPeerHandleErrorZ_get_err(ptr); + long err = Bindings.CResultCVecU8ZpeerhandleerrorzGetErr(ptr); org.ldk.structs.PeerHandleError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.PeerHandleError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -41,7 +41,7 @@ internal Result_CVec_u8ZPeerHandleErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_CVec_u8ZPeerHandleErrorZ in the success state. */ public static Result_CVec_u8ZPeerHandleErrorZ ok(byte[] o) { - long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_ok(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.CResultCVecU8ZpeerhandleerrorzOk(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Result_CVec_u8ZPeerHandleErrorZ ok(byte[] o) { * Creates a new CResult_CVec_u8ZPeerHandleErrorZ in the error state. */ public static Result_CVec_u8ZPeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) { - long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultCVecU8ZpeerhandleerrorzErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); @@ -64,13 +64,13 @@ public static Result_CVec_u8ZPeerHandleErrorZ err(org.ldk.structs.PeerHandleErro * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCVecU8ZpeerhandleerrorzIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCVecU8ZpeerhandleerrorzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CVec_u8ZPeerHandleErrorZ clone() { - long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_clone(this.ptr); + long ret = Bindings.CResultCVecU8ZpeerhandleerrorzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelAnnouncementDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelAnnouncementDecodeErrorZ.cs index 56a10918d..45e7cb441 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelAnnouncementDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelAnnouncementDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelAnnouncementDecodeErrorZ : CommonBase { Result_ChannelAnnouncementDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelAnnouncementDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelAnnouncementDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelAnnouncementDecodeErrorZFree(ptr); } } internal static Result_ChannelAnnouncementDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelAnnouncementDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelAnnouncementDecodeErrorZIsOk(ptr)) { return new Result_ChannelAnnouncementDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelAnnouncementDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelAnnouncementDecodeErrorZ constr_from_ptr(long ptr) public class Result_ChannelAnnouncementDecodeErrorZ_OK : Result_ChannelAnnouncementDecodeErrorZ { public readonly ChannelAnnouncement res; internal Result_ChannelAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelAnnouncementDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelAnnouncementDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelAnnouncement res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_ChannelAnnouncementDecodeErrorZ_Err : Result_ChannelAnnouncementDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelAnnouncementDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelAnnouncementDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_ChannelAnnouncementDecodeErrorZ in the success state. */ public static Result_ChannelAnnouncementDecodeErrorZ ok(org.ldk.structs.ChannelAnnouncement o) { - long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelAnnouncementDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelAnnouncementDecodeErrorZ ok(org.ldk.structs.ChannelA * Creates a new CResult_ChannelAnnouncementDecodeErrorZ in the error state. */ public static Result_ChannelAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelAnnouncementDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelAnnouncementDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelAnnouncementDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelAnnouncementDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelAnnouncementDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelConfigDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelConfigDecodeErrorZ.cs index 7db5fcb0c..7c9aae2ef 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelConfigDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelConfigDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelConfigDecodeErrorZ : CommonBase { Result_ChannelConfigDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelConfigDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelConfigDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelConfigDecodeErrorZFree(ptr); } } internal static Result_ChannelConfigDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelConfigDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelConfigDecodeErrorZIsOk(ptr)) { return new Result_ChannelConfigDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelConfigDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelConfigDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelConfigDecodeErrorZ_OK : Result_ChannelConfigDecodeErrorZ { public readonly ChannelConfig res; internal Result_ChannelConfigDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelConfigDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelConfigDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelConfig res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelConfig(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelConfigDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_ChannelConfigDecodeErrorZ_Err : Result_ChannelConfigDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelConfigDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelConfigDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelConfigDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelConfigDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_ChannelConfigDecodeErrorZ in the success state. */ public static Result_ChannelConfigDecodeErrorZ ok(org.ldk.structs.ChannelConfig o) { - long ret = bindings.CResult_ChannelConfigDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelConfigDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelConfigDecodeErrorZ ok(org.ldk.structs.ChannelConfig * Creates a new CResult_ChannelConfigDecodeErrorZ in the error state. */ public static Result_ChannelConfigDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelConfigDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelConfigDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelConfigDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelConfigDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelConfigDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelConfigDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelConfigDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelConfigDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelConfigDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelConfigDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelCounterpartyDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelCounterpartyDecodeErrorZ.cs index c9ef9b721..648a4ea35 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelCounterpartyDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelCounterpartyDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelCounterpartyDecodeErrorZ : CommonBase { Result_ChannelCounterpartyDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelCounterpartyDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelCounterpartyDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelCounterpartyDecodeErrorZFree(ptr); } } internal static Result_ChannelCounterpartyDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelCounterpartyDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelCounterpartyDecodeErrorZIsOk(ptr)) { return new Result_ChannelCounterpartyDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelCounterpartyDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelCounterpartyDecodeErrorZ constr_from_ptr(long ptr) public class Result_ChannelCounterpartyDecodeErrorZ_OK : Result_ChannelCounterpartyDecodeErrorZ { public readonly ChannelCounterparty res; internal Result_ChannelCounterpartyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelCounterpartyDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelCounterpartyDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelCounterparty res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelCounterparty(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelCounterpartyDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_ChannelCounterpartyDecodeErrorZ_Err : Result_ChannelCounterpartyDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelCounterpartyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelCounterpartyDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelCounterpartyDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelCounterpartyDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_ChannelCounterpartyDecodeErrorZ in the success state. */ public static Result_ChannelCounterpartyDecodeErrorZ ok(org.ldk.structs.ChannelCounterparty o) { - long ret = bindings.CResult_ChannelCounterpartyDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelCounterpartyDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelCounterpartyDecodeErrorZ ret_hu_conv = Result_ChannelCounterpartyDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelCounterpartyDecodeErrorZ ok(org.ldk.structs.ChannelC * Creates a new CResult_ChannelCounterpartyDecodeErrorZ in the error state. */ public static Result_ChannelCounterpartyDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelCounterpartyDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelCounterpartyDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelCounterpartyDecodeErrorZ ret_hu_conv = Result_ChannelCounterpartyDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelCounterpartyDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelCounterpartyDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelCounterpartyDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelCounterpartyDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelCounterpartyDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelCounterpartyDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelCounterpartyDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelCounterpartyDecodeErrorZ ret_hu_conv = Result_ChannelCounterpartyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelDerivationParametersDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelDerivationParametersDecodeErrorZ.cs index 63e2dcda3..f144b55f9 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelDerivationParametersDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelDerivationParametersDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelDerivationParametersDecodeErrorZ : CommonBase { Result_ChannelDerivationParametersDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelDerivationParametersDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelDerivationParametersDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelDerivationParametersDecodeErrorZFree(ptr); } } internal static Result_ChannelDerivationParametersDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelDerivationParametersDecodeErrorZIsOk(ptr)) { return new Result_ChannelDerivationParametersDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelDerivationParametersDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelDerivationParametersDecodeErrorZ constr_from_ptr(l public class Result_ChannelDerivationParametersDecodeErrorZ_OK : Result_ChannelDerivationParametersDecodeErrorZ { public readonly ChannelDerivationParameters res; internal Result_ChannelDerivationParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelDerivationParametersDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelDerivationParameters res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelDerivationParameters(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelDerivationParametersDecodeErrorZ_OK(object _dummy, long p public class Result_ChannelDerivationParametersDecodeErrorZ_Err : Result_ChannelDerivationParametersDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelDerivationParametersDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelDerivationParametersDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelDerivationParametersDecodeErrorZ_Err(object _dummy, long * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the success state. */ public static Result_ChannelDerivationParametersDecodeErrorZ ok(org.ldk.structs.ChannelDerivationParameters o) { - long ret = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelDerivationParametersDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDerivationParametersDecodeErrorZ ret_hu_conv = Result_ChannelDerivationParametersDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelDerivationParametersDecodeErrorZ ok(org.ldk.structs. * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the error state. */ public static Result_ChannelDerivationParametersDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelDerivationParametersDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDerivationParametersDecodeErrorZ ret_hu_conv = Result_ChannelDerivationParametersDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelDerivationParametersDecodeErrorZ err(org.ldk.structs * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelDerivationParametersDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelDerivationParametersDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelDerivationParametersDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelDerivationParametersDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelDerivationParametersDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDerivationParametersDecodeErrorZ ret_hu_conv = Result_ChannelDerivationParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelDetailsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelDetailsDecodeErrorZ.cs index 0ef338329..da135a652 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelDetailsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelDetailsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelDetailsDecodeErrorZ : CommonBase { Result_ChannelDetailsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelDetailsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelDetailsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelDetailsDecodeErrorZFree(ptr); } } internal static Result_ChannelDetailsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelDetailsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelDetailsDecodeErrorZIsOk(ptr)) { return new Result_ChannelDetailsDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelDetailsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelDetailsDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelDetailsDecodeErrorZ_OK : Result_ChannelDetailsDecodeErrorZ { public readonly ChannelDetails res; internal Result_ChannelDetailsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelDetailsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelDetailsDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelDetails res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelDetails(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelDetailsDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_ChannelDetailsDecodeErrorZ_Err : Result_ChannelDetailsDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelDetailsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelDetailsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelDetailsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelDetailsDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_ChannelDetailsDecodeErrorZ in the success state. */ public static Result_ChannelDetailsDecodeErrorZ ok(org.ldk.structs.ChannelDetails o) { - long ret = bindings.CResult_ChannelDetailsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelDetailsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDetailsDecodeErrorZ ret_hu_conv = Result_ChannelDetailsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelDetailsDecodeErrorZ ok(org.ldk.structs.ChannelDetail * Creates a new CResult_ChannelDetailsDecodeErrorZ in the error state. */ public static Result_ChannelDetailsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelDetailsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelDetailsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDetailsDecodeErrorZ ret_hu_conv = Result_ChannelDetailsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelDetailsDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelDetailsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelDetailsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelDetailsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelDetailsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelDetailsDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelDetailsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelDetailsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelDetailsDecodeErrorZ ret_hu_conv = Result_ChannelDetailsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.cs index 38d560787..5fbaa5c24 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelFeaturesDecodeErrorZ : CommonBase { Result_ChannelFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelFeaturesDecodeErrorZFree(ptr); } } internal static Result_ChannelFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelFeaturesDecodeErrorZIsOk(ptr)) { return new Result_ChannelFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelFeaturesDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelFeaturesDecodeErrorZ_OK : Result_ChannelFeaturesDecodeErrorZ { public readonly ChannelFeatures res; internal Result_ChannelFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_ public class Result_ChannelFeaturesDecodeErrorZ_Err : Result_ChannelFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_ChannelFeaturesDecodeErrorZ in the success state. */ public static Result_ChannelFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelFeatures o) { - long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelFeatu * Creates a new CResult_ChannelFeaturesDecodeErrorZ in the error state. */ public static Result_ChannelFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelInfoDecodeErrorZ.cs index ae5a6f5ac..d4ae29773 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelInfoDecodeErrorZ : CommonBase { Result_ChannelInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelInfoDecodeErrorZFree(ptr); } } internal static Result_ChannelInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelInfoDecodeErrorZIsOk(ptr)) { return new Result_ChannelInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelInfoDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelInfoDecodeErrorZ_OK : Result_ChannelInfoDecodeErrorZ { public readonly ChannelInfo res; internal Result_ChannelInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelInfoDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_ChannelInfoDecodeErrorZ_Err : Result_ChannelInfoDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_ChannelInfoDecodeErrorZ in the success state. */ public static Result_ChannelInfoDecodeErrorZ ok(org.ldk.structs.ChannelInfo o) { - long ret = bindings.CResult_ChannelInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelInfoDecodeErrorZ ok(org.ldk.structs.ChannelInfo o) { * Creates a new CResult_ChannelInfoDecodeErrorZ in the error state. */ public static Result_ChannelInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelInfoDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateDecodeErrorZ.cs index 5aa6567e9..8febf169a 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelMonitorUpdateDecodeErrorZ : CommonBase { Result_ChannelMonitorUpdateDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelMonitorUpdateDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelMonitorUpdateDecodeErrorZFree(ptr); } } internal static Result_ChannelMonitorUpdateDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelMonitorUpdateDecodeErrorZIsOk(ptr)) { return new Result_ChannelMonitorUpdateDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelMonitorUpdateDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelMonitorUpdateDecodeErrorZ constr_from_ptr(long ptr public class Result_ChannelMonitorUpdateDecodeErrorZ_OK : Result_ChannelMonitorUpdateDecodeErrorZ { public readonly ChannelMonitorUpdate res; internal Result_ChannelMonitorUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelMonitorUpdateDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelMonitorUpdate res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelMonitorUpdate(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelMonitorUpdateDecodeErrorZ_OK(object _dummy, long ptr) : b public class Result_ChannelMonitorUpdateDecodeErrorZ_Err : Result_ChannelMonitorUpdateDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelMonitorUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelMonitorUpdateDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelMonitorUpdateDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_ChannelMonitorUpdateDecodeErrorZ in the success state. */ public static Result_ChannelMonitorUpdateDecodeErrorZ ok(org.ldk.structs.ChannelMonitorUpdate o) { - long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelMonitorUpdateDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelMonitorUpdateDecodeErrorZ ok(org.ldk.structs.Channel * Creates a new CResult_ChannelMonitorUpdateDecodeErrorZ in the error state. */ public static Result_ChannelMonitorUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelMonitorUpdateDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelMonitorUpdateDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelMonitorUpdateDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelMonitorUpdateDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelMonitorUpdateDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelMonitorUpdateDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateStatusNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateStatusNoneZ.cs index 6180f6f54..323f66a40 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateStatusNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelMonitorUpdateStatusNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelMonitorUpdateStatusNoneZ : CommonBase { Result_ChannelMonitorUpdateStatusNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelMonitorUpdateStatusNoneZ() { - if (ptr != 0) { bindings.CResult_ChannelMonitorUpdateStatusNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelMonitorUpdateStatusNoneZFree(ptr); } } internal static Result_ChannelMonitorUpdateStatusNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(ptr)) { + if (Bindings.CResultChannelMonitorUpdateStatusNoneZIsOk(ptr)) { return new Result_ChannelMonitorUpdateStatusNoneZ_OK(null, ptr); } else { return new Result_ChannelMonitorUpdateStatusNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelMonitorUpdateStatusNoneZ constr_from_ptr(long ptr) public class Result_ChannelMonitorUpdateStatusNoneZ_OK : Result_ChannelMonitorUpdateStatusNoneZ { public readonly ChannelMonitorUpdateStatus res; internal Result_ChannelMonitorUpdateStatusNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(ptr); + this.res = Bindings.CResultChannelMonitorUpdateStatusNoneZGetOk(ptr); } } @@ -34,7 +34,7 @@ internal Result_ChannelMonitorUpdateStatusNoneZ_Err(object _dummy, long ptr) : b * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the success state. */ public static Result_ChannelMonitorUpdateStatusNoneZ ok(ChannelMonitorUpdateStatus o) { - long ret = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_ok(o); + long ret = Bindings.CResultChannelMonitorUpdateStatusNoneZOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateStatusNoneZ ret_hu_conv = Result_ChannelMonitorUpdateStatusNoneZ.constr_from_ptr(ret); @@ -45,7 +45,7 @@ public static Result_ChannelMonitorUpdateStatusNoneZ ok(ChannelMonitorUpdateStat * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the error state. */ public static Result_ChannelMonitorUpdateStatusNoneZ err() { - long ret = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_err(); + long ret = Bindings.CResultChannelMonitorUpdateStatusNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateStatusNoneZ ret_hu_conv = Result_ChannelMonitorUpdateStatusNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -55,13 +55,13 @@ public static Result_ChannelMonitorUpdateStatusNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelMonitorUpdateStatusNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelMonitorUpdateStatusNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelMonitorUpdateStatusNoneZ clone() { - long ret = bindings.CResult_ChannelMonitorUpdateStatusNoneZ_clone(this.ptr); + long ret = Bindings.CResultChannelMonitorUpdateStatusNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelMonitorUpdateStatusNoneZ ret_hu_conv = Result_ChannelMonitorUpdateStatusNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelPublicKeysDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelPublicKeysDecodeErrorZ.cs index fca2aeaa6..e21b60dd5 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelPublicKeysDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelPublicKeysDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelPublicKeysDecodeErrorZ : CommonBase { Result_ChannelPublicKeysDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelPublicKeysDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelPublicKeysDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelPublicKeysDecodeErrorZFree(ptr); } } internal static Result_ChannelPublicKeysDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelPublicKeysDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelPublicKeysDecodeErrorZIsOk(ptr)) { return new Result_ChannelPublicKeysDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelPublicKeysDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelPublicKeysDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelPublicKeysDecodeErrorZ_OK : Result_ChannelPublicKeysDecodeErrorZ { public readonly ChannelPublicKeys res; internal Result_ChannelPublicKeysDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelPublicKeysDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelPublicKeysDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelPublicKeys res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelPublicKeys(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelPublicKeysDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_ChannelPublicKeysDecodeErrorZ_Err : Result_ChannelPublicKeysDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelPublicKeysDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelPublicKeysDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelPublicKeysDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelPublicKeysDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_ChannelPublicKeysDecodeErrorZ in the success state. */ public static Result_ChannelPublicKeysDecodeErrorZ ok(org.ldk.structs.ChannelPublicKeys o) { - long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelPublicKeysDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelPublicKeysDecodeErrorZ ok(org.ldk.structs.ChannelPub * Creates a new CResult_ChannelPublicKeysDecodeErrorZ in the error state. */ public static Result_ChannelPublicKeysDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelPublicKeysDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelPublicKeysDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelPublicKeysDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelPublicKeysDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelPublicKeysDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelPublicKeysDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelReadyDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelReadyDecodeErrorZ.cs index 7161b609c..8b8194697 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelReadyDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelReadyDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelReadyDecodeErrorZ : CommonBase { Result_ChannelReadyDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelReadyDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelReadyDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelReadyDecodeErrorZFree(ptr); } } internal static Result_ChannelReadyDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelReadyDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelReadyDecodeErrorZIsOk(ptr)) { return new Result_ChannelReadyDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelReadyDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelReadyDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelReadyDecodeErrorZ_OK : Result_ChannelReadyDecodeErrorZ { public readonly ChannelReady res; internal Result_ChannelReadyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelReadyDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelReadyDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelReady res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelReady(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelReadyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_ChannelReadyDecodeErrorZ_Err : Result_ChannelReadyDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelReadyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelReadyDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelReadyDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelReadyDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_ChannelReadyDecodeErrorZ in the success state. */ public static Result_ChannelReadyDecodeErrorZ ok(org.ldk.structs.ChannelReady o) { - long ret = bindings.CResult_ChannelReadyDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelReadyDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelReadyDecodeErrorZ ok(org.ldk.structs.ChannelReady o) * Creates a new CResult_ChannelReadyDecodeErrorZ in the error state. */ public static Result_ChannelReadyDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelReadyDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelReadyDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelReadyDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelReadyDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelReadyDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelReadyDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelReadyDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelReadyDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelReadyDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelReadyDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReadyDecodeErrorZ ret_hu_conv = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelReestablishDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelReestablishDecodeErrorZ.cs index 8483f19a3..028514bae 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelReestablishDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelReestablishDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelReestablishDecodeErrorZ : CommonBase { Result_ChannelReestablishDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelReestablishDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelReestablishDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelReestablishDecodeErrorZFree(ptr); } } internal static Result_ChannelReestablishDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelReestablishDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelReestablishDecodeErrorZIsOk(ptr)) { return new Result_ChannelReestablishDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelReestablishDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelReestablishDecodeErrorZ constr_from_ptr(long ptr) public class Result_ChannelReestablishDecodeErrorZ_OK : Result_ChannelReestablishDecodeErrorZ { public readonly ChannelReestablish res; internal Result_ChannelReestablishDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelReestablishDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelReestablishDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelReestablish res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelReestablish(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelReestablishDecodeErrorZ_OK(object _dummy, long ptr) : bas public class Result_ChannelReestablishDecodeErrorZ_Err : Result_ChannelReestablishDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelReestablishDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelReestablishDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelReestablishDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelReestablishDecodeErrorZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_ChannelReestablishDecodeErrorZ in the success state. */ public static Result_ChannelReestablishDecodeErrorZ ok(org.ldk.structs.ChannelReestablish o) { - long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelReestablishDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelReestablishDecodeErrorZ ok(org.ldk.structs.ChannelRe * Creates a new CResult_ChannelReestablishDecodeErrorZ in the error state. */ public static Result_ChannelReestablishDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelReestablishDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelReestablishDecodeErrorZ err(org.ldk.structs.DecodeEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelReestablishDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelReestablishDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelReestablishDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelReestablishDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelReestablishDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelShutdownStateDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelShutdownStateDecodeErrorZ.cs index eaf104c5c..fe35d2e35 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelShutdownStateDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelShutdownStateDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelShutdownStateDecodeErrorZ : CommonBase { Result_ChannelShutdownStateDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelShutdownStateDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelShutdownStateDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelShutdownStateDecodeErrorZFree(ptr); } } internal static Result_ChannelShutdownStateDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelShutdownStateDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelShutdownStateDecodeErrorZIsOk(ptr)) { return new Result_ChannelShutdownStateDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelShutdownStateDecodeErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_ChannelShutdownStateDecodeErrorZ constr_from_ptr(long ptr public class Result_ChannelShutdownStateDecodeErrorZ_OK : Result_ChannelShutdownStateDecodeErrorZ { public readonly ChannelShutdownState res; internal Result_ChannelShutdownStateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_ChannelShutdownStateDecodeErrorZ_get_ok(ptr); + this.res = Bindings.CResultChannelShutdownStateDecodeErrorZGetOk(ptr); } } public class Result_ChannelShutdownStateDecodeErrorZ_Err : Result_ChannelShutdownStateDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelShutdownStateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelShutdownStateDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelShutdownStateDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_ChannelShutdownStateDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_ChannelShutdownStateDecodeErrorZ in the success state. */ public static Result_ChannelShutdownStateDecodeErrorZ ok(ChannelShutdownState o) { - long ret = bindings.CResult_ChannelShutdownStateDecodeErrorZ_ok(o); + long ret = Bindings.CResultChannelShutdownStateDecodeErrorZOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelShutdownStateDecodeErrorZ ret_hu_conv = Result_ChannelShutdownStateDecodeErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_ChannelShutdownStateDecodeErrorZ ok(ChannelShutdownState o) * Creates a new CResult_ChannelShutdownStateDecodeErrorZ in the error state. */ public static Result_ChannelShutdownStateDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelShutdownStateDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelShutdownStateDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelShutdownStateDecodeErrorZ ret_hu_conv = Result_ChannelShutdownStateDecodeErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_ChannelShutdownStateDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelShutdownStateDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelShutdownStateDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelShutdownStateDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelShutdownStateDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelShutdownStateDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelShutdownStateDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelShutdownStateDecodeErrorZ ret_hu_conv = Result_ChannelShutdownStateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelTransactionParametersDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelTransactionParametersDecodeErrorZ.cs index 742f08053..edf4f98f0 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelTransactionParametersDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelTransactionParametersDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelTransactionParametersDecodeErrorZ : CommonBase { Result_ChannelTransactionParametersDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelTransactionParametersDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelTransactionParametersDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelTransactionParametersDecodeErrorZFree(ptr); } } internal static Result_ChannelTransactionParametersDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelTransactionParametersDecodeErrorZIsOk(ptr)) { return new Result_ChannelTransactionParametersDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelTransactionParametersDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelTransactionParametersDecodeErrorZ constr_from_ptr( public class Result_ChannelTransactionParametersDecodeErrorZ_OK : Result_ChannelTransactionParametersDecodeErrorZ { public readonly ChannelTransactionParameters res; internal Result_ChannelTransactionParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelTransactionParametersDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelTransactionParameters res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelTransactionParametersDecodeErrorZ_OK(object _dummy, long public class Result_ChannelTransactionParametersDecodeErrorZ_Err : Result_ChannelTransactionParametersDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelTransactionParametersDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelTransactionParametersDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelTransactionParametersDecodeErrorZ_Err(object _dummy, long * Creates a new CResult_ChannelTransactionParametersDecodeErrorZ in the success state. */ public static Result_ChannelTransactionParametersDecodeErrorZ ok(org.ldk.structs.ChannelTransactionParameters o) { - long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelTransactionParametersDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelTransactionParametersDecodeErrorZ ok(org.ldk.structs * Creates a new CResult_ChannelTransactionParametersDecodeErrorZ in the error state. */ public static Result_ChannelTransactionParametersDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelTransactionParametersDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelTransactionParametersDecodeErrorZ err(org.ldk.struct * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelTransactionParametersDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelTransactionParametersDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelTransactionParametersDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelTransactionParametersDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelTypeFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelTypeFeaturesDecodeErrorZ.cs index ee3b53fa0..15c97b621 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelTypeFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelTypeFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelTypeFeaturesDecodeErrorZ : CommonBase { Result_ChannelTypeFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelTypeFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelTypeFeaturesDecodeErrorZFree(ptr); } } internal static Result_ChannelTypeFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelTypeFeaturesDecodeErrorZIsOk(ptr)) { return new Result_ChannelTypeFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelTypeFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelTypeFeaturesDecodeErrorZ constr_from_ptr(long ptr) public class Result_ChannelTypeFeaturesDecodeErrorZ_OK : Result_ChannelTypeFeaturesDecodeErrorZ { public readonly ChannelTypeFeatures res; internal Result_ChannelTypeFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelTypeFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelTypeFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelTypeFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_ChannelTypeFeaturesDecodeErrorZ_Err : Result_ChannelTypeFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelTypeFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelTypeFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelTypeFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_ChannelTypeFeaturesDecodeErrorZ in the success state. */ public static Result_ChannelTypeFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelTypeFeatures o) { - long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelTypeFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelTypeFeaturesDecodeErrorZ ok(org.ldk.structs.ChannelT * Creates a new CResult_ChannelTypeFeaturesDecodeErrorZ in the error state. */ public static Result_ChannelTypeFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelTypeFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelTypeFeaturesDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelTypeFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelTypeFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelTypeFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelTypeFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelTypeFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelTypeFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.cs index 61c6400cc..6db14fbea 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelUpdateDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelUpdateDecodeErrorZ : CommonBase { Result_ChannelUpdateDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelUpdateDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelUpdateDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelUpdateDecodeErrorZFree(ptr); } } internal static Result_ChannelUpdateDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelUpdateDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelUpdateDecodeErrorZIsOk(ptr)) { return new Result_ChannelUpdateDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelUpdateDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelUpdateDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelUpdateDecodeErrorZ_OK : Result_ChannelUpdateDecodeErrorZ { public readonly ChannelUpdate res; internal Result_ChannelUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelUpdateDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelUpdateDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelUpdate res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelUpdate(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_ChannelUpdateDecodeErrorZ_Err : Result_ChannelUpdateDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelUpdateDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelUpdateDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_ChannelUpdateDecodeErrorZ in the success state. */ public static Result_ChannelUpdateDecodeErrorZ ok(org.ldk.structs.ChannelUpdate o) { - long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelUpdateDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelUpdateDecodeErrorZ ok(org.ldk.structs.ChannelUpdate * Creates a new CResult_ChannelUpdateDecodeErrorZ in the error state. */ public static Result_ChannelUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelUpdateDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelUpdateDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelUpdateDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelUpdateDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelUpdateDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelUpdateDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ChannelUpdateInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ChannelUpdateInfoDecodeErrorZ.cs index e7af0a523..f9c980832 100644 --- a/c_sharp/src/org/ldk/structs/Result_ChannelUpdateInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ChannelUpdateInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ChannelUpdateInfoDecodeErrorZ : CommonBase { Result_ChannelUpdateInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ChannelUpdateInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ChannelUpdateInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultChannelUpdateInfoDecodeErrorZFree(ptr); } } internal static Result_ChannelUpdateInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultChannelUpdateInfoDecodeErrorZIsOk(ptr)) { return new Result_ChannelUpdateInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_ChannelUpdateInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ChannelUpdateInfoDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ChannelUpdateInfoDecodeErrorZ_OK : Result_ChannelUpdateInfoDecodeErrorZ { public readonly ChannelUpdateInfo res; internal Result_ChannelUpdateInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultChannelUpdateInfoDecodeErrorZGetOk(ptr); org.ldk.structs.ChannelUpdateInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ChannelUpdateInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ChannelUpdateInfoDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_ChannelUpdateInfoDecodeErrorZ_Err : Result_ChannelUpdateInfoDecodeErrorZ { public readonly DecodeError err; internal Result_ChannelUpdateInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultChannelUpdateInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ChannelUpdateInfoDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_ChannelUpdateInfoDecodeErrorZ in the success state. */ public static Result_ChannelUpdateInfoDecodeErrorZ ok(org.ldk.structs.ChannelUpdateInfo o) { - long ret = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultChannelUpdateInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateInfoDecodeErrorZ ret_hu_conv = Result_ChannelUpdateInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ChannelUpdateInfoDecodeErrorZ ok(org.ldk.structs.ChannelUpd * Creates a new CResult_ChannelUpdateInfoDecodeErrorZ in the error state. */ public static Result_ChannelUpdateInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultChannelUpdateInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateInfoDecodeErrorZ ret_hu_conv = Result_ChannelUpdateInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ChannelUpdateInfoDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultChannelUpdateInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultChannelUpdateInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ChannelUpdateInfoDecodeErrorZ clone() { - long ret = bindings.CResult_ChannelUpdateInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultChannelUpdateInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ChannelUpdateInfoDecodeErrorZ ret_hu_conv = Result_ChannelUpdateInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ClaimedHTLCDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ClaimedHTLCDecodeErrorZ.cs index 4e3cf9af0..d308578e3 100644 --- a/c_sharp/src/org/ldk/structs/Result_ClaimedHTLCDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ClaimedHTLCDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ClaimedHTLCDecodeErrorZ : CommonBase { Result_ClaimedHTLCDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ClaimedHTLCDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ClaimedHTLCDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultClaimedHTLCDecodeErrorZFree(ptr); } } internal static Result_ClaimedHTLCDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ClaimedHTLCDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultClaimedHTLCDecodeErrorZIsOk(ptr)) { return new Result_ClaimedHTLCDecodeErrorZ_OK(null, ptr); } else { return new Result_ClaimedHTLCDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ClaimedHTLCDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ClaimedHTLCDecodeErrorZ_OK : Result_ClaimedHTLCDecodeErrorZ { public readonly ClaimedHTLC res; internal Result_ClaimedHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ClaimedHTLCDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultClaimedHTLCDecodeErrorZGetOk(ptr); org.ldk.structs.ClaimedHTLC res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ClaimedHTLC(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ClaimedHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_ClaimedHTLCDecodeErrorZ_Err : Result_ClaimedHTLCDecodeErrorZ { public readonly DecodeError err; internal Result_ClaimedHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ClaimedHTLCDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultClaimedHTLCDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ClaimedHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the success state. */ public static Result_ClaimedHTLCDecodeErrorZ ok(org.ldk.structs.ClaimedHTLC o) { - long ret = bindings.CResult_ClaimedHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultClaimedHTLCDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ClaimedHTLCDecodeErrorZ ret_hu_conv = Result_ClaimedHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ClaimedHTLCDecodeErrorZ ok(org.ldk.structs.ClaimedHTLC o) { * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the error state. */ public static Result_ClaimedHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ClaimedHTLCDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultClaimedHTLCDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ClaimedHTLCDecodeErrorZ ret_hu_conv = Result_ClaimedHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ClaimedHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ClaimedHTLCDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultClaimedHTLCDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultClaimedHTLCDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ClaimedHTLCDecodeErrorZ clone() { - long ret = bindings.CResult_ClaimedHTLCDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultClaimedHTLCDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ClaimedHTLCDecodeErrorZ ret_hu_conv = Result_ClaimedHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ClosingSignedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ClosingSignedDecodeErrorZ.cs index 79c19a57f..24755752e 100644 --- a/c_sharp/src/org/ldk/structs/Result_ClosingSignedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ClosingSignedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ClosingSignedDecodeErrorZ : CommonBase { Result_ClosingSignedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ClosingSignedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ClosingSignedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultClosingSignedDecodeErrorZFree(ptr); } } internal static Result_ClosingSignedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ClosingSignedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultClosingSignedDecodeErrorZIsOk(ptr)) { return new Result_ClosingSignedDecodeErrorZ_OK(null, ptr); } else { return new Result_ClosingSignedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ClosingSignedDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ClosingSignedDecodeErrorZ_OK : Result_ClosingSignedDecodeErrorZ { public readonly ClosingSigned res; internal Result_ClosingSignedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ClosingSignedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultClosingSignedDecodeErrorZGetOk(ptr); org.ldk.structs.ClosingSigned res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ClosingSigned(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ClosingSignedDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_ClosingSignedDecodeErrorZ_Err : Result_ClosingSignedDecodeErrorZ { public readonly DecodeError err; internal Result_ClosingSignedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ClosingSignedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultClosingSignedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ClosingSignedDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_ClosingSignedDecodeErrorZ in the success state. */ public static Result_ClosingSignedDecodeErrorZ ok(org.ldk.structs.ClosingSigned o) { - long ret = bindings.CResult_ClosingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultClosingSignedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ClosingSignedDecodeErrorZ ok(org.ldk.structs.ClosingSigned * Creates a new CResult_ClosingSignedDecodeErrorZ in the error state. */ public static Result_ClosingSignedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ClosingSignedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultClosingSignedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ClosingSignedDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ClosingSignedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultClosingSignedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ClosingSignedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultClosingSignedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ClosingSignedDecodeErrorZ clone() { - long ret = bindings.CResult_ClosingSignedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultClosingSignedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ClosingSignedFeeRangeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ClosingSignedFeeRangeDecodeErrorZ.cs index 5c7d6b5f9..f3ef15a21 100644 --- a/c_sharp/src/org/ldk/structs/Result_ClosingSignedFeeRangeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ClosingSignedFeeRangeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ClosingSignedFeeRangeDecodeErrorZ : CommonBase { Result_ClosingSignedFeeRangeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ClosingSignedFeeRangeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultClosingSignedFeeRangeDecodeErrorZFree(ptr); } } internal static Result_ClosingSignedFeeRangeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultClosingSignedFeeRangeDecodeErrorZIsOk(ptr)) { return new Result_ClosingSignedFeeRangeDecodeErrorZ_OK(null, ptr); } else { return new Result_ClosingSignedFeeRangeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ClosingSignedFeeRangeDecodeErrorZ constr_from_ptr(long pt public class Result_ClosingSignedFeeRangeDecodeErrorZ_OK : Result_ClosingSignedFeeRangeDecodeErrorZ { public readonly ClosingSignedFeeRange res; internal Result_ClosingSignedFeeRangeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultClosingSignedFeeRangeDecodeErrorZGetOk(ptr); org.ldk.structs.ClosingSignedFeeRange res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ClosingSignedFeeRange(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ClosingSignedFeeRangeDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_ClosingSignedFeeRangeDecodeErrorZ_Err : Result_ClosingSignedFeeRangeDecodeErrorZ { public readonly DecodeError err; internal Result_ClosingSignedFeeRangeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultClosingSignedFeeRangeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ClosingSignedFeeRangeDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_ClosingSignedFeeRangeDecodeErrorZ in the success state. */ public static Result_ClosingSignedFeeRangeDecodeErrorZ ok(org.ldk.structs.ClosingSignedFeeRange o) { - long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultClosingSignedFeeRangeDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ClosingSignedFeeRangeDecodeErrorZ ok(org.ldk.structs.Closin * Creates a new CResult_ClosingSignedFeeRangeDecodeErrorZ in the error state. */ public static Result_ClosingSignedFeeRangeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultClosingSignedFeeRangeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ClosingSignedFeeRangeDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultClosingSignedFeeRangeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultClosingSignedFeeRangeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ClosingSignedFeeRangeDecodeErrorZ clone() { - long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultClosingSignedFeeRangeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CoinSelectionNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_CoinSelectionNoneZ.cs index 63b813a1c..ad8ce378e 100644 --- a/c_sharp/src/org/ldk/structs/Result_CoinSelectionNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CoinSelectionNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CoinSelectionNoneZ : CommonBase { Result_CoinSelectionNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_CoinSelectionNoneZ() { - if (ptr != 0) { bindings.CResult_CoinSelectionNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCoinSelectionNoneZFree(ptr); } } internal static Result_CoinSelectionNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_CoinSelectionNoneZ_is_ok(ptr)) { + if (Bindings.CResultCoinSelectionNoneZIsOk(ptr)) { return new Result_CoinSelectionNoneZ_OK(null, ptr); } else { return new Result_CoinSelectionNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CoinSelectionNoneZ constr_from_ptr(long ptr) { public class Result_CoinSelectionNoneZ_OK : Result_CoinSelectionNoneZ { public readonly CoinSelection res; internal Result_CoinSelectionNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CoinSelectionNoneZ_get_ok(ptr); + long res = Bindings.CResultCoinSelectionNoneZGetOk(ptr); org.ldk.structs.CoinSelection res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CoinSelection(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_CoinSelectionNoneZ_Err(object _dummy, long ptr) : base(_dummy, p * Creates a new CResult_CoinSelectionNoneZ in the success state. */ public static Result_CoinSelectionNoneZ ok(org.ldk.structs.CoinSelection o) { - long ret = bindings.CResult_CoinSelectionNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCoinSelectionNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CoinSelectionNoneZ ret_hu_conv = Result_CoinSelectionNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_CoinSelectionNoneZ ok(org.ldk.structs.CoinSelection o) { * Creates a new CResult_CoinSelectionNoneZ in the error state. */ public static Result_CoinSelectionNoneZ err() { - long ret = bindings.CResult_CoinSelectionNoneZ_err(); + long ret = Bindings.CResultCoinSelectionNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_CoinSelectionNoneZ ret_hu_conv = Result_CoinSelectionNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_CoinSelectionNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CoinSelectionNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultCoinSelectionNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CoinSelectionNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCoinSelectionNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CoinSelectionNoneZ clone() { - long ret = bindings.CResult_CoinSelectionNoneZ_clone(this.ptr); + long ret = Bindings.CResultCoinSelectionNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CoinSelectionNoneZ ret_hu_conv = Result_CoinSelectionNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CommitmentSignedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CommitmentSignedDecodeErrorZ.cs index 2f8920ae6..728dd08c1 100644 --- a/c_sharp/src/org/ldk/structs/Result_CommitmentSignedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CommitmentSignedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CommitmentSignedDecodeErrorZ : CommonBase { Result_CommitmentSignedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CommitmentSignedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_CommitmentSignedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCommitmentSignedDecodeErrorZFree(ptr); } } internal static Result_CommitmentSignedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CommitmentSignedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCommitmentSignedDecodeErrorZIsOk(ptr)) { return new Result_CommitmentSignedDecodeErrorZ_OK(null, ptr); } else { return new Result_CommitmentSignedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CommitmentSignedDecodeErrorZ constr_from_ptr(long ptr) { public class Result_CommitmentSignedDecodeErrorZ_OK : Result_CommitmentSignedDecodeErrorZ { public readonly CommitmentSigned res; internal Result_CommitmentSignedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CommitmentSignedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCommitmentSignedDecodeErrorZGetOk(ptr); org.ldk.structs.CommitmentSigned res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CommitmentSigned(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_CommitmentSignedDecodeErrorZ_OK(object _dummy, long ptr) : base( public class Result_CommitmentSignedDecodeErrorZ_Err : Result_CommitmentSignedDecodeErrorZ { public readonly DecodeError err; internal Result_CommitmentSignedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CommitmentSignedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCommitmentSignedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_CommitmentSignedDecodeErrorZ_Err(object _dummy, long ptr) : base * Creates a new CResult_CommitmentSignedDecodeErrorZ in the success state. */ public static Result_CommitmentSignedDecodeErrorZ ok(org.ldk.structs.CommitmentSigned o) { - long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCommitmentSignedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CommitmentSignedDecodeErrorZ ok(org.ldk.structs.CommitmentS * Creates a new CResult_CommitmentSignedDecodeErrorZ in the error state. */ public static Result_CommitmentSignedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCommitmentSignedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_CommitmentSignedDecodeErrorZ err(org.ldk.structs.DecodeErro * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CommitmentSignedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCommitmentSignedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCommitmentSignedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CommitmentSignedDecodeErrorZ clone() { - long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCommitmentSignedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CommitmentTransactionDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CommitmentTransactionDecodeErrorZ.cs index fa414c480..26e9c2236 100644 --- a/c_sharp/src/org/ldk/structs/Result_CommitmentTransactionDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CommitmentTransactionDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CommitmentTransactionDecodeErrorZ : CommonBase { Result_CommitmentTransactionDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CommitmentTransactionDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_CommitmentTransactionDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCommitmentTransactionDecodeErrorZFree(ptr); } } internal static Result_CommitmentTransactionDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CommitmentTransactionDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCommitmentTransactionDecodeErrorZIsOk(ptr)) { return new Result_CommitmentTransactionDecodeErrorZ_OK(null, ptr); } else { return new Result_CommitmentTransactionDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CommitmentTransactionDecodeErrorZ constr_from_ptr(long pt public class Result_CommitmentTransactionDecodeErrorZ_OK : Result_CommitmentTransactionDecodeErrorZ { public readonly CommitmentTransaction res; internal Result_CommitmentTransactionDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CommitmentTransactionDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCommitmentTransactionDecodeErrorZGetOk(ptr); org.ldk.structs.CommitmentTransaction res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CommitmentTransaction(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_CommitmentTransactionDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_CommitmentTransactionDecodeErrorZ_Err : Result_CommitmentTransactionDecodeErrorZ { public readonly DecodeError err; internal Result_CommitmentTransactionDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CommitmentTransactionDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCommitmentTransactionDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_CommitmentTransactionDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_CommitmentTransactionDecodeErrorZ in the success state. */ public static Result_CommitmentTransactionDecodeErrorZ ok(org.ldk.structs.CommitmentTransaction o) { - long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCommitmentTransactionDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CommitmentTransactionDecodeErrorZ ok(org.ldk.structs.Commit * Creates a new CResult_CommitmentTransactionDecodeErrorZ in the error state. */ public static Result_CommitmentTransactionDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCommitmentTransactionDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_CommitmentTransactionDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCommitmentTransactionDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCommitmentTransactionDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CommitmentTransactionDecodeErrorZ clone() { - long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCommitmentTransactionDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.cs index 9116a4d44..e269575df 100644 --- a/c_sharp/src/org/ldk/structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : CommonBase { Result_CounterpartyChannelTransactionParametersDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CounterpartyChannelTransactionParametersDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZFree(ptr); } } internal static Result_CounterpartyChannelTransactionParametersDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZIsOk(ptr)) { return new Result_CounterpartyChannelTransactionParametersDecodeErrorZ_OK(null, ptr); } else { return new Result_CounterpartyChannelTransactionParametersDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CounterpartyChannelTransactionParametersDecodeErrorZ cons public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ_OK : Result_CounterpartyChannelTransactionParametersDecodeErrorZ { public readonly CounterpartyChannelTransactionParameters res; internal Result_CounterpartyChannelTransactionParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZGetOk(ptr); org.ldk.structs.CounterpartyChannelTransactionParameters res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CounterpartyChannelTransactionParameters(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_CounterpartyChannelTransactionParametersDecodeErrorZ_OK(object _ public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ_Err : Result_CounterpartyChannelTransactionParametersDecodeErrorZ { public readonly DecodeError err; internal Result_CounterpartyChannelTransactionParametersDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_CounterpartyChannelTransactionParametersDecodeErrorZ_Err(object * Creates a new CResult_CounterpartyChannelTransactionParametersDecodeErrorZ in the success state. */ public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ ok(org.ldk.structs.CounterpartyChannelTransactionParameters o) { - long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ ok(org * Creates a new CResult_CounterpartyChannelTransactionParametersDecodeErrorZ in the error state. */ public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ err(or * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CounterpartyChannelTransactionParametersDecodeErrorZ clone() { - long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCounterpartyChannelTransactionParametersDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.cs index 117c31ee9..1e0275438 100644 --- a/c_sharp/src/org/ldk/structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : CommonBase { Result_CounterpartyCommitmentSecretsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CounterpartyCommitmentSecretsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZFree(ptr); } } internal static Result_CounterpartyCommitmentSecretsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZIsOk(ptr)) { return new Result_CounterpartyCommitmentSecretsDecodeErrorZ_OK(null, ptr); } else { return new Result_CounterpartyCommitmentSecretsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CounterpartyCommitmentSecretsDecodeErrorZ constr_from_ptr public class Result_CounterpartyCommitmentSecretsDecodeErrorZ_OK : Result_CounterpartyCommitmentSecretsDecodeErrorZ { public readonly CounterpartyCommitmentSecrets res; internal Result_CounterpartyCommitmentSecretsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZGetOk(ptr); org.ldk.structs.CounterpartyCommitmentSecrets res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CounterpartyCommitmentSecrets(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_CounterpartyCommitmentSecretsDecodeErrorZ_OK(object _dummy, long public class Result_CounterpartyCommitmentSecretsDecodeErrorZ_Err : Result_CounterpartyCommitmentSecretsDecodeErrorZ { public readonly DecodeError err; internal Result_CounterpartyCommitmentSecretsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_CounterpartyCommitmentSecretsDecodeErrorZ_Err(object _dummy, lon * Creates a new CResult_CounterpartyCommitmentSecretsDecodeErrorZ in the success state. */ public static Result_CounterpartyCommitmentSecretsDecodeErrorZ ok(org.ldk.structs.CounterpartyCommitmentSecrets o) { - long ret = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyCommitmentSecretsDecodeErrorZ ret_hu_conv = Result_CounterpartyCommitmentSecretsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CounterpartyCommitmentSecretsDecodeErrorZ ok(org.ldk.struct * Creates a new CResult_CounterpartyCommitmentSecretsDecodeErrorZ in the error state. */ public static Result_CounterpartyCommitmentSecretsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyCommitmentSecretsDecodeErrorZ ret_hu_conv = Result_CounterpartyCommitmentSecretsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_CounterpartyCommitmentSecretsDecodeErrorZ err(org.ldk.struc * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CounterpartyCommitmentSecretsDecodeErrorZ clone() { - long ret = bindings.CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCounterpartyCommitmentSecretsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyCommitmentSecretsDecodeErrorZ ret_hu_conv = Result_CounterpartyCommitmentSecretsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_CounterpartyForwardingInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_CounterpartyForwardingInfoDecodeErrorZ.cs index b3c3b7239..44e5b080b 100644 --- a/c_sharp/src/org/ldk/structs/Result_CounterpartyForwardingInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_CounterpartyForwardingInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_CounterpartyForwardingInfoDecodeErrorZ : CommonBase { Result_CounterpartyForwardingInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_CounterpartyForwardingInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultCounterpartyForwardingInfoDecodeErrorZFree(ptr); } } internal static Result_CounterpartyForwardingInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultCounterpartyForwardingInfoDecodeErrorZIsOk(ptr)) { return new Result_CounterpartyForwardingInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_CounterpartyForwardingInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_CounterpartyForwardingInfoDecodeErrorZ constr_from_ptr(lo public class Result_CounterpartyForwardingInfoDecodeErrorZ_OK : Result_CounterpartyForwardingInfoDecodeErrorZ { public readonly CounterpartyForwardingInfo res; internal Result_CounterpartyForwardingInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZGetOk(ptr); org.ldk.structs.CounterpartyForwardingInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.CounterpartyForwardingInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_CounterpartyForwardingInfoDecodeErrorZ_OK(object _dummy, long pt public class Result_CounterpartyForwardingInfoDecodeErrorZ_Err : Result_CounterpartyForwardingInfoDecodeErrorZ { public readonly DecodeError err; internal Result_CounterpartyForwardingInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_CounterpartyForwardingInfoDecodeErrorZ_Err(object _dummy, long p * Creates a new CResult_CounterpartyForwardingInfoDecodeErrorZ in the success state. */ public static Result_CounterpartyForwardingInfoDecodeErrorZ ok(org.ldk.structs.CounterpartyForwardingInfo o) { - long ret = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyForwardingInfoDecodeErrorZ ret_hu_conv = Result_CounterpartyForwardingInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_CounterpartyForwardingInfoDecodeErrorZ ok(org.ldk.structs.C * Creates a new CResult_CounterpartyForwardingInfoDecodeErrorZ in the error state. */ public static Result_CounterpartyForwardingInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyForwardingInfoDecodeErrorZ ret_hu_conv = Result_CounterpartyForwardingInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_CounterpartyForwardingInfoDecodeErrorZ err(org.ldk.structs. * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_CounterpartyForwardingInfoDecodeErrorZ clone() { - long ret = bindings.CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultCounterpartyForwardingInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CounterpartyForwardingInfoDecodeErrorZ ret_hu_conv = Result_CounterpartyForwardingInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentBasepointDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentBasepointDecodeErrorZ.cs index 1ff0bea06..1e9e587ee 100644 --- a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentBasepointDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentBasepointDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_DelayedPaymentBasepointDecodeErrorZ : CommonBase { Result_DelayedPaymentBasepointDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_DelayedPaymentBasepointDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultDelayedPaymentBasepointDecodeErrorZFree(ptr); } } internal static Result_DelayedPaymentBasepointDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultDelayedPaymentBasepointDecodeErrorZIsOk(ptr)) { return new Result_DelayedPaymentBasepointDecodeErrorZ_OK(null, ptr); } else { return new Result_DelayedPaymentBasepointDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_DelayedPaymentBasepointDecodeErrorZ constr_from_ptr(long public class Result_DelayedPaymentBasepointDecodeErrorZ_OK : Result_DelayedPaymentBasepointDecodeErrorZ { public readonly DelayedPaymentBasepoint res; internal Result_DelayedPaymentBasepointDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultDelayedPaymentBasepointDecodeErrorZGetOk(ptr); org.ldk.structs.DelayedPaymentBasepoint res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.DelayedPaymentBasepoint(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_DelayedPaymentBasepointDecodeErrorZ_OK(object _dummy, long ptr) public class Result_DelayedPaymentBasepointDecodeErrorZ_Err : Result_DelayedPaymentBasepointDecodeErrorZ { public readonly DecodeError err; internal Result_DelayedPaymentBasepointDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultDelayedPaymentBasepointDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_DelayedPaymentBasepointDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_DelayedPaymentBasepointDecodeErrorZ in the success state. */ public static Result_DelayedPaymentBasepointDecodeErrorZ ok(org.ldk.structs.DelayedPaymentBasepoint o) { - long ret = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultDelayedPaymentBasepointDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentBasepointDecodeErrorZ ret_hu_conv = Result_DelayedPaymentBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_DelayedPaymentBasepointDecodeErrorZ ok(org.ldk.structs.Dela * Creates a new CResult_DelayedPaymentBasepointDecodeErrorZ in the error state. */ public static Result_DelayedPaymentBasepointDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultDelayedPaymentBasepointDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentBasepointDecodeErrorZ ret_hu_conv = Result_DelayedPaymentBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_DelayedPaymentBasepointDecodeErrorZ err(org.ldk.structs.Dec * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultDelayedPaymentBasepointDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultDelayedPaymentBasepointDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_DelayedPaymentBasepointDecodeErrorZ clone() { - long ret = bindings.CResult_DelayedPaymentBasepointDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultDelayedPaymentBasepointDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentBasepointDecodeErrorZ ret_hu_conv = Result_DelayedPaymentBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentKeyDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentKeyDecodeErrorZ.cs index 4fbf372bf..015eaf5d9 100644 --- a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentKeyDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentKeyDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_DelayedPaymentKeyDecodeErrorZ : CommonBase { Result_DelayedPaymentKeyDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_DelayedPaymentKeyDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_DelayedPaymentKeyDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultDelayedPaymentKeyDecodeErrorZFree(ptr); } } internal static Result_DelayedPaymentKeyDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultDelayedPaymentKeyDecodeErrorZIsOk(ptr)) { return new Result_DelayedPaymentKeyDecodeErrorZ_OK(null, ptr); } else { return new Result_DelayedPaymentKeyDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_DelayedPaymentKeyDecodeErrorZ constr_from_ptr(long ptr) { public class Result_DelayedPaymentKeyDecodeErrorZ_OK : Result_DelayedPaymentKeyDecodeErrorZ { public readonly DelayedPaymentKey res; internal Result_DelayedPaymentKeyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultDelayedPaymentKeyDecodeErrorZGetOk(ptr); org.ldk.structs.DelayedPaymentKey res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.DelayedPaymentKey(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_DelayedPaymentKeyDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_DelayedPaymentKeyDecodeErrorZ_Err : Result_DelayedPaymentKeyDecodeErrorZ { public readonly DecodeError err; internal Result_DelayedPaymentKeyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultDelayedPaymentKeyDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_DelayedPaymentKeyDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_DelayedPaymentKeyDecodeErrorZ in the success state. */ public static Result_DelayedPaymentKeyDecodeErrorZ ok(org.ldk.structs.DelayedPaymentKey o) { - long ret = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultDelayedPaymentKeyDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentKeyDecodeErrorZ ret_hu_conv = Result_DelayedPaymentKeyDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_DelayedPaymentKeyDecodeErrorZ ok(org.ldk.structs.DelayedPay * Creates a new CResult_DelayedPaymentKeyDecodeErrorZ in the error state. */ public static Result_DelayedPaymentKeyDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultDelayedPaymentKeyDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentKeyDecodeErrorZ ret_hu_conv = Result_DelayedPaymentKeyDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_DelayedPaymentKeyDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultDelayedPaymentKeyDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultDelayedPaymentKeyDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_DelayedPaymentKeyDecodeErrorZ clone() { - long ret = bindings.CResult_DelayedPaymentKeyDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultDelayedPaymentKeyDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentKeyDecodeErrorZ ret_hu_conv = Result_DelayedPaymentKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.cs index 005af440d..ffcb2a7f9 100644 --- a/c_sharp/src/org/ldk/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : CommonBase { Result_DelayedPaymentOutputDescriptorDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_DelayedPaymentOutputDescriptorDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZFree(ptr); } } internal static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZIsOk(ptr)) { return new Result_DelayedPaymentOutputDescriptorDecodeErrorZ_OK(null, ptr); } else { return new Result_DelayedPaymentOutputDescriptorDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constr_from_pt public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ_OK : Result_DelayedPaymentOutputDescriptorDecodeErrorZ { public readonly DelayedPaymentOutputDescriptor res; internal Result_DelayedPaymentOutputDescriptorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZGetOk(ptr); org.ldk.structs.DelayedPaymentOutputDescriptor res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.DelayedPaymentOutputDescriptor(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_DelayedPaymentOutputDescriptorDecodeErrorZ_OK(object _dummy, lon public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ_Err : Result_DelayedPaymentOutputDescriptorDecodeErrorZ { public readonly DecodeError err; internal Result_DelayedPaymentOutputDescriptorDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_DelayedPaymentOutputDescriptorDecodeErrorZ_Err(object _dummy, lo * Creates a new CResult_DelayedPaymentOutputDescriptorDecodeErrorZ in the success state. */ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ ok(org.ldk.structs.DelayedPaymentOutputDescriptor o) { - long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ ok(org.ldk.struc * Creates a new CResult_DelayedPaymentOutputDescriptorDecodeErrorZ in the error state. */ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ err(org.ldk.stru * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_DelayedPaymentOutputDescriptorDecodeErrorZ clone() { - long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultDelayedPaymentOutputDescriptorDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_DescriptionCreationErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_DescriptionCreationErrorZ.cs index e3604b574..9df433867 100644 --- a/c_sharp/src/org/ldk/structs/Result_DescriptionCreationErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_DescriptionCreationErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_DescriptionCreationErrorZ : CommonBase { Result_DescriptionCreationErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_DescriptionCreationErrorZ() { - if (ptr != 0) { bindings.CResult_DescriptionCreationErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultDescriptionCreationErrorZFree(ptr); } } internal static Result_DescriptionCreationErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_DescriptionCreationErrorZ_is_ok(ptr)) { + if (Bindings.CResultDescriptionCreationErrorZIsOk(ptr)) { return new Result_DescriptionCreationErrorZ_OK(null, ptr); } else { return new Result_DescriptionCreationErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_DescriptionCreationErrorZ constr_from_ptr(long ptr) { public class Result_DescriptionCreationErrorZ_OK : Result_DescriptionCreationErrorZ { public readonly Description res; internal Result_DescriptionCreationErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_DescriptionCreationErrorZ_get_ok(ptr); + long res = Bindings.CResultDescriptionCreationErrorZGetOk(ptr); org.ldk.structs.Description res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Description(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_DescriptionCreationErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_DescriptionCreationErrorZ_Err : Result_DescriptionCreationErrorZ { public readonly CreationError err; internal Result_DescriptionCreationErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_DescriptionCreationErrorZ_get_err(ptr); + this.err = Bindings.CResultDescriptionCreationErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_DescriptionCreationErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_DescriptionCreationErrorZ in the success state. */ public static Result_DescriptionCreationErrorZ ok(org.ldk.structs.Description o) { - long ret = bindings.CResult_DescriptionCreationErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultDescriptionCreationErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_DescriptionCreationErrorZ ok(org.ldk.structs.Description o) * Creates a new CResult_DescriptionCreationErrorZ in the error state. */ public static Result_DescriptionCreationErrorZ err(CreationError e) { - long ret = bindings.CResult_DescriptionCreationErrorZ_err(e); + long ret = Bindings.CResultDescriptionCreationErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_DescriptionCreationErrorZ err(CreationError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_DescriptionCreationErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultDescriptionCreationErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_DescriptionCreationErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultDescriptionCreationErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_DescriptionCreationErrorZ clone() { - long ret = bindings.CResult_DescriptionCreationErrorZ_clone(this.ptr); + long ret = Bindings.CResultDescriptionCreationErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ECDSASignatureNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_ECDSASignatureNoneZ.cs index 168829dea..ca48be490 100644 --- a/c_sharp/src/org/ldk/structs/Result_ECDSASignatureNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ECDSASignatureNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ECDSASignatureNoneZ : CommonBase { Result_ECDSASignatureNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_ECDSASignatureNoneZ() { - if (ptr != 0) { bindings.CResult_ECDSASignatureNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultECDSASignatureNoneZFree(ptr); } } internal static Result_ECDSASignatureNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_ECDSASignatureNoneZ_is_ok(ptr)) { + if (Bindings.CResultECDSASignatureNoneZIsOk(ptr)) { return new Result_ECDSASignatureNoneZ_OK(null, ptr); } else { return new Result_ECDSASignatureNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_ECDSASignatureNoneZ constr_from_ptr(long ptr) { public class Result_ECDSASignatureNoneZ_OK : Result_ECDSASignatureNoneZ { public readonly byte[] res; internal Result_ECDSASignatureNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ECDSASignatureNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultECDSASignatureNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_ECDSASignatureNoneZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_ECDSASignatureNoneZ in the success state. */ public static Result_ECDSASignatureNoneZ ok(byte[] o) { - long ret = bindings.CResult_ECDSASignatureNoneZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 64))); + long ret = Bindings.CResultECDSASignatureNoneZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 64))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ECDSASignatureNoneZ ret_hu_conv = Result_ECDSASignatureNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_ECDSASignatureNoneZ ok(byte[] o) { * Creates a new CResult_ECDSASignatureNoneZ in the error state. */ public static Result_ECDSASignatureNoneZ err() { - long ret = bindings.CResult_ECDSASignatureNoneZ_err(); + long ret = Bindings.CResultECDSASignatureNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_ECDSASignatureNoneZ ret_hu_conv = Result_ECDSASignatureNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_ECDSASignatureNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ECDSASignatureNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultECDSASignatureNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ECDSASignatureNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultECDSASignatureNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ECDSASignatureNoneZ clone() { - long ret = bindings.CResult_ECDSASignatureNoneZ_clone(this.ptr); + long ret = Bindings.CResultECDSASignatureNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ECDSASignatureNoneZ ret_hu_conv = Result_ECDSASignatureNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ErrorMessageDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ErrorMessageDecodeErrorZ.cs index 51bbe9282..8041806d1 100644 --- a/c_sharp/src/org/ldk/structs/Result_ErrorMessageDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ErrorMessageDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ErrorMessageDecodeErrorZ : CommonBase { Result_ErrorMessageDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ErrorMessageDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ErrorMessageDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultErrorMessageDecodeErrorZFree(ptr); } } internal static Result_ErrorMessageDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ErrorMessageDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultErrorMessageDecodeErrorZIsOk(ptr)) { return new Result_ErrorMessageDecodeErrorZ_OK(null, ptr); } else { return new Result_ErrorMessageDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ErrorMessageDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ErrorMessageDecodeErrorZ_OK : Result_ErrorMessageDecodeErrorZ { public readonly ErrorMessage res; internal Result_ErrorMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ErrorMessageDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultErrorMessageDecodeErrorZGetOk(ptr); org.ldk.structs.ErrorMessage res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ErrorMessage(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ErrorMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_ErrorMessageDecodeErrorZ_Err : Result_ErrorMessageDecodeErrorZ { public readonly DecodeError err; internal Result_ErrorMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ErrorMessageDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultErrorMessageDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ErrorMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_ErrorMessageDecodeErrorZ in the success state. */ public static Result_ErrorMessageDecodeErrorZ ok(org.ldk.structs.ErrorMessage o) { - long ret = bindings.CResult_ErrorMessageDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultErrorMessageDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ErrorMessageDecodeErrorZ ok(org.ldk.structs.ErrorMessage o) * Creates a new CResult_ErrorMessageDecodeErrorZ in the error state. */ public static Result_ErrorMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ErrorMessageDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultErrorMessageDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ErrorMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ErrorMessageDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultErrorMessageDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ErrorMessageDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultErrorMessageDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ErrorMessageDecodeErrorZ clone() { - long ret = bindings.CResult_ErrorMessageDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultErrorMessageDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_FinalOnionHopDataDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_FinalOnionHopDataDecodeErrorZ.cs index 1a89d679b..a33080d41 100644 --- a/c_sharp/src/org/ldk/structs/Result_FinalOnionHopDataDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_FinalOnionHopDataDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_FinalOnionHopDataDecodeErrorZ : CommonBase { Result_FinalOnionHopDataDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_FinalOnionHopDataDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_FinalOnionHopDataDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultFinalOnionHopDataDecodeErrorZFree(ptr); } } internal static Result_FinalOnionHopDataDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_FinalOnionHopDataDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultFinalOnionHopDataDecodeErrorZIsOk(ptr)) { return new Result_FinalOnionHopDataDecodeErrorZ_OK(null, ptr); } else { return new Result_FinalOnionHopDataDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_FinalOnionHopDataDecodeErrorZ constr_from_ptr(long ptr) { public class Result_FinalOnionHopDataDecodeErrorZ_OK : Result_FinalOnionHopDataDecodeErrorZ { public readonly FinalOnionHopData res; internal Result_FinalOnionHopDataDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_FinalOnionHopDataDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultFinalOnionHopDataDecodeErrorZGetOk(ptr); org.ldk.structs.FinalOnionHopData res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.FinalOnionHopData(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_FinalOnionHopDataDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_FinalOnionHopDataDecodeErrorZ_Err : Result_FinalOnionHopDataDecodeErrorZ { public readonly DecodeError err; internal Result_FinalOnionHopDataDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_FinalOnionHopDataDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultFinalOnionHopDataDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_FinalOnionHopDataDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_FinalOnionHopDataDecodeErrorZ in the success state. */ public static Result_FinalOnionHopDataDecodeErrorZ ok(org.ldk.structs.FinalOnionHopData o) { - long ret = bindings.CResult_FinalOnionHopDataDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultFinalOnionHopDataDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_FinalOnionHopDataDecodeErrorZ ret_hu_conv = Result_FinalOnionHopDataDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_FinalOnionHopDataDecodeErrorZ ok(org.ldk.structs.FinalOnion * Creates a new CResult_FinalOnionHopDataDecodeErrorZ in the error state. */ public static Result_FinalOnionHopDataDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_FinalOnionHopDataDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultFinalOnionHopDataDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_FinalOnionHopDataDecodeErrorZ ret_hu_conv = Result_FinalOnionHopDataDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_FinalOnionHopDataDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_FinalOnionHopDataDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultFinalOnionHopDataDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultFinalOnionHopDataDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_FinalOnionHopDataDecodeErrorZ clone() { - long ret = bindings.CResult_FinalOnionHopDataDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultFinalOnionHopDataDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_FinalOnionHopDataDecodeErrorZ ret_hu_conv = Result_FinalOnionHopDataDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_FixedPenaltyScorerDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_FixedPenaltyScorerDecodeErrorZ.cs index 6cd6b40fb..0cce50ba8 100644 --- a/c_sharp/src/org/ldk/structs/Result_FixedPenaltyScorerDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_FixedPenaltyScorerDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_FixedPenaltyScorerDecodeErrorZ : CommonBase { Result_FixedPenaltyScorerDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_FixedPenaltyScorerDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_FixedPenaltyScorerDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultFixedPenaltyScorerDecodeErrorZFree(ptr); } } internal static Result_FixedPenaltyScorerDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultFixedPenaltyScorerDecodeErrorZIsOk(ptr)) { return new Result_FixedPenaltyScorerDecodeErrorZ_OK(null, ptr); } else { return new Result_FixedPenaltyScorerDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_FixedPenaltyScorerDecodeErrorZ constr_from_ptr(long ptr) public class Result_FixedPenaltyScorerDecodeErrorZ_OK : Result_FixedPenaltyScorerDecodeErrorZ { public readonly FixedPenaltyScorer res; internal Result_FixedPenaltyScorerDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultFixedPenaltyScorerDecodeErrorZGetOk(ptr); org.ldk.structs.FixedPenaltyScorer res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.FixedPenaltyScorer(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_FixedPenaltyScorerDecodeErrorZ_OK(object _dummy, long ptr) : bas public class Result_FixedPenaltyScorerDecodeErrorZ_Err : Result_FixedPenaltyScorerDecodeErrorZ { public readonly DecodeError err; internal Result_FixedPenaltyScorerDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultFixedPenaltyScorerDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_FixedPenaltyScorerDecodeErrorZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_FixedPenaltyScorerDecodeErrorZ in the success state. */ public static Result_FixedPenaltyScorerDecodeErrorZ ok(org.ldk.structs.FixedPenaltyScorer o) { - long ret = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultFixedPenaltyScorerDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_FixedPenaltyScorerDecodeErrorZ ret_hu_conv = Result_FixedPenaltyScorerDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_FixedPenaltyScorerDecodeErrorZ ok(org.ldk.structs.FixedPena * Creates a new CResult_FixedPenaltyScorerDecodeErrorZ in the error state. */ public static Result_FixedPenaltyScorerDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultFixedPenaltyScorerDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_FixedPenaltyScorerDecodeErrorZ ret_hu_conv = Result_FixedPenaltyScorerDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_FixedPenaltyScorerDecodeErrorZ err(org.ldk.structs.DecodeEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultFixedPenaltyScorerDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultFixedPenaltyScorerDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_FixedPenaltyScorerDecodeErrorZ clone() { - long ret = bindings.CResult_FixedPenaltyScorerDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultFixedPenaltyScorerDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_FixedPenaltyScorerDecodeErrorZ ret_hu_conv = Result_FixedPenaltyScorerDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_FundingCreatedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_FundingCreatedDecodeErrorZ.cs index 787006aa2..cacb1aeac 100644 --- a/c_sharp/src/org/ldk/structs/Result_FundingCreatedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_FundingCreatedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_FundingCreatedDecodeErrorZ : CommonBase { Result_FundingCreatedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_FundingCreatedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_FundingCreatedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultFundingCreatedDecodeErrorZFree(ptr); } } internal static Result_FundingCreatedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_FundingCreatedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultFundingCreatedDecodeErrorZIsOk(ptr)) { return new Result_FundingCreatedDecodeErrorZ_OK(null, ptr); } else { return new Result_FundingCreatedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_FundingCreatedDecodeErrorZ constr_from_ptr(long ptr) { public class Result_FundingCreatedDecodeErrorZ_OK : Result_FundingCreatedDecodeErrorZ { public readonly FundingCreated res; internal Result_FundingCreatedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_FundingCreatedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultFundingCreatedDecodeErrorZGetOk(ptr); org.ldk.structs.FundingCreated res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.FundingCreated(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_FundingCreatedDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_FundingCreatedDecodeErrorZ_Err : Result_FundingCreatedDecodeErrorZ { public readonly DecodeError err; internal Result_FundingCreatedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_FundingCreatedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultFundingCreatedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_FundingCreatedDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_FundingCreatedDecodeErrorZ in the success state. */ public static Result_FundingCreatedDecodeErrorZ ok(org.ldk.structs.FundingCreated o) { - long ret = bindings.CResult_FundingCreatedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultFundingCreatedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_FundingCreatedDecodeErrorZ ok(org.ldk.structs.FundingCreate * Creates a new CResult_FundingCreatedDecodeErrorZ in the error state. */ public static Result_FundingCreatedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_FundingCreatedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultFundingCreatedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_FundingCreatedDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_FundingCreatedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultFundingCreatedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_FundingCreatedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultFundingCreatedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_FundingCreatedDecodeErrorZ clone() { - long ret = bindings.CResult_FundingCreatedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultFundingCreatedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_FundingSignedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_FundingSignedDecodeErrorZ.cs index 55ceac757..6752be9ef 100644 --- a/c_sharp/src/org/ldk/structs/Result_FundingSignedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_FundingSignedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_FundingSignedDecodeErrorZ : CommonBase { Result_FundingSignedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_FundingSignedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_FundingSignedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultFundingSignedDecodeErrorZFree(ptr); } } internal static Result_FundingSignedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_FundingSignedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultFundingSignedDecodeErrorZIsOk(ptr)) { return new Result_FundingSignedDecodeErrorZ_OK(null, ptr); } else { return new Result_FundingSignedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_FundingSignedDecodeErrorZ constr_from_ptr(long ptr) { public class Result_FundingSignedDecodeErrorZ_OK : Result_FundingSignedDecodeErrorZ { public readonly FundingSigned res; internal Result_FundingSignedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_FundingSignedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultFundingSignedDecodeErrorZGetOk(ptr); org.ldk.structs.FundingSigned res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.FundingSigned(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_FundingSignedDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_FundingSignedDecodeErrorZ_Err : Result_FundingSignedDecodeErrorZ { public readonly DecodeError err; internal Result_FundingSignedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_FundingSignedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultFundingSignedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_FundingSignedDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_FundingSignedDecodeErrorZ in the success state. */ public static Result_FundingSignedDecodeErrorZ ok(org.ldk.structs.FundingSigned o) { - long ret = bindings.CResult_FundingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultFundingSignedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_FundingSignedDecodeErrorZ ok(org.ldk.structs.FundingSigned * Creates a new CResult_FundingSignedDecodeErrorZ in the error state. */ public static Result_FundingSignedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_FundingSignedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultFundingSignedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_FundingSignedDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_FundingSignedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultFundingSignedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_FundingSignedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultFundingSignedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_FundingSignedDecodeErrorZ clone() { - long ret = bindings.CResult_FundingSignedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultFundingSignedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_GossipTimestampFilterDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_GossipTimestampFilterDecodeErrorZ.cs index 9682ff589..6f39a72b6 100644 --- a/c_sharp/src/org/ldk/structs/Result_GossipTimestampFilterDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_GossipTimestampFilterDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_GossipTimestampFilterDecodeErrorZ : CommonBase { Result_GossipTimestampFilterDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_GossipTimestampFilterDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_GossipTimestampFilterDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultGossipTimestampFilterDecodeErrorZFree(ptr); } } internal static Result_GossipTimestampFilterDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_GossipTimestampFilterDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultGossipTimestampFilterDecodeErrorZIsOk(ptr)) { return new Result_GossipTimestampFilterDecodeErrorZ_OK(null, ptr); } else { return new Result_GossipTimestampFilterDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_GossipTimestampFilterDecodeErrorZ constr_from_ptr(long pt public class Result_GossipTimestampFilterDecodeErrorZ_OK : Result_GossipTimestampFilterDecodeErrorZ { public readonly GossipTimestampFilter res; internal Result_GossipTimestampFilterDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_GossipTimestampFilterDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultGossipTimestampFilterDecodeErrorZGetOk(ptr); org.ldk.structs.GossipTimestampFilter res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.GossipTimestampFilter(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_GossipTimestampFilterDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_GossipTimestampFilterDecodeErrorZ_Err : Result_GossipTimestampFilterDecodeErrorZ { public readonly DecodeError err; internal Result_GossipTimestampFilterDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_GossipTimestampFilterDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultGossipTimestampFilterDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_GossipTimestampFilterDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_GossipTimestampFilterDecodeErrorZ in the success state. */ public static Result_GossipTimestampFilterDecodeErrorZ ok(org.ldk.structs.GossipTimestampFilter o) { - long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultGossipTimestampFilterDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_GossipTimestampFilterDecodeErrorZ ok(org.ldk.structs.Gossip * Creates a new CResult_GossipTimestampFilterDecodeErrorZ in the error state. */ public static Result_GossipTimestampFilterDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultGossipTimestampFilterDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_GossipTimestampFilterDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultGossipTimestampFilterDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultGossipTimestampFilterDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_GossipTimestampFilterDecodeErrorZ clone() { - long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultGossipTimestampFilterDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HTLCDescriptorDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HTLCDescriptorDecodeErrorZ.cs index c946833dd..c899d01d4 100644 --- a/c_sharp/src/org/ldk/structs/Result_HTLCDescriptorDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HTLCDescriptorDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HTLCDescriptorDecodeErrorZ : CommonBase { Result_HTLCDescriptorDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HTLCDescriptorDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HTLCDescriptorDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHTLCDescriptorDecodeErrorZFree(ptr); } } internal static Result_HTLCDescriptorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HTLCDescriptorDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHTLCDescriptorDecodeErrorZIsOk(ptr)) { return new Result_HTLCDescriptorDecodeErrorZ_OK(null, ptr); } else { return new Result_HTLCDescriptorDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HTLCDescriptorDecodeErrorZ constr_from_ptr(long ptr) { public class Result_HTLCDescriptorDecodeErrorZ_OK : Result_HTLCDescriptorDecodeErrorZ { public readonly HTLCDescriptor res; internal Result_HTLCDescriptorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HTLCDescriptorDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHTLCDescriptorDecodeErrorZGetOk(ptr); org.ldk.structs.HTLCDescriptor res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HTLCDescriptor(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HTLCDescriptorDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_HTLCDescriptorDecodeErrorZ_Err : Result_HTLCDescriptorDecodeErrorZ { public readonly DecodeError err; internal Result_HTLCDescriptorDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HTLCDescriptorDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHTLCDescriptorDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HTLCDescriptorDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the success state. */ public static Result_HTLCDescriptorDecodeErrorZ ok(org.ldk.structs.HTLCDescriptor o) { - long ret = bindings.CResult_HTLCDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHTLCDescriptorDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCDescriptorDecodeErrorZ ret_hu_conv = Result_HTLCDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HTLCDescriptorDecodeErrorZ ok(org.ldk.structs.HTLCDescripto * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the error state. */ public static Result_HTLCDescriptorDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HTLCDescriptorDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHTLCDescriptorDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCDescriptorDecodeErrorZ ret_hu_conv = Result_HTLCDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HTLCDescriptorDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HTLCDescriptorDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHTLCDescriptorDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHTLCDescriptorDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HTLCDescriptorDecodeErrorZ clone() { - long ret = bindings.CResult_HTLCDescriptorDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHTLCDescriptorDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCDescriptorDecodeErrorZ ret_hu_conv = Result_HTLCDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.cs index 369191e0c..ea9bc4bd7 100644 --- a/c_sharp/src/org/ldk/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HTLCOutputInCommitmentDecodeErrorZ : CommonBase { Result_HTLCOutputInCommitmentDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HTLCOutputInCommitmentDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHTLCOutputInCommitmentDecodeErrorZFree(ptr); } } internal static Result_HTLCOutputInCommitmentDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHTLCOutputInCommitmentDecodeErrorZIsOk(ptr)) { return new Result_HTLCOutputInCommitmentDecodeErrorZ_OK(null, ptr); } else { return new Result_HTLCOutputInCommitmentDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HTLCOutputInCommitmentDecodeErrorZ constr_from_ptr(long p public class Result_HTLCOutputInCommitmentDecodeErrorZ_OK : Result_HTLCOutputInCommitmentDecodeErrorZ { public readonly HTLCOutputInCommitment res; internal Result_HTLCOutputInCommitmentDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZGetOk(ptr); org.ldk.structs.HTLCOutputInCommitment res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HTLCOutputInCommitment(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HTLCOutputInCommitmentDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_HTLCOutputInCommitmentDecodeErrorZ_Err : Result_HTLCOutputInCommitmentDecodeErrorZ { public readonly DecodeError err; internal Result_HTLCOutputInCommitmentDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HTLCOutputInCommitmentDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_HTLCOutputInCommitmentDecodeErrorZ in the success state. */ public static Result_HTLCOutputInCommitmentDecodeErrorZ ok(org.ldk.structs.HTLCOutputInCommitment o) { - long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HTLCOutputInCommitmentDecodeErrorZ ok(org.ldk.structs.HTLCO * Creates a new CResult_HTLCOutputInCommitmentDecodeErrorZ in the error state. */ public static Result_HTLCOutputInCommitmentDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HTLCOutputInCommitmentDecodeErrorZ err(org.ldk.structs.Deco * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HTLCOutputInCommitmentDecodeErrorZ clone() { - long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHTLCOutputInCommitmentDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HTLCUpdateDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HTLCUpdateDecodeErrorZ.cs index 94fac24e5..b87ca5343 100644 --- a/c_sharp/src/org/ldk/structs/Result_HTLCUpdateDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HTLCUpdateDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HTLCUpdateDecodeErrorZ : CommonBase { Result_HTLCUpdateDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HTLCUpdateDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HTLCUpdateDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHTLCUpdateDecodeErrorZFree(ptr); } } internal static Result_HTLCUpdateDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HTLCUpdateDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHTLCUpdateDecodeErrorZIsOk(ptr)) { return new Result_HTLCUpdateDecodeErrorZ_OK(null, ptr); } else { return new Result_HTLCUpdateDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HTLCUpdateDecodeErrorZ constr_from_ptr(long ptr) { public class Result_HTLCUpdateDecodeErrorZ_OK : Result_HTLCUpdateDecodeErrorZ { public readonly HTLCUpdate res; internal Result_HTLCUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HTLCUpdateDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHTLCUpdateDecodeErrorZGetOk(ptr); org.ldk.structs.HTLCUpdate res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HTLCUpdate(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HTLCUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy public class Result_HTLCUpdateDecodeErrorZ_Err : Result_HTLCUpdateDecodeErrorZ { public readonly DecodeError err; internal Result_HTLCUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HTLCUpdateDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHTLCUpdateDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HTLCUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_HTLCUpdateDecodeErrorZ in the success state. */ public static Result_HTLCUpdateDecodeErrorZ ok(org.ldk.structs.HTLCUpdate o) { - long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHTLCUpdateDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HTLCUpdateDecodeErrorZ ok(org.ldk.structs.HTLCUpdate o) { * Creates a new CResult_HTLCUpdateDecodeErrorZ in the error state. */ public static Result_HTLCUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHTLCUpdateDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HTLCUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HTLCUpdateDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHTLCUpdateDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHTLCUpdateDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HTLCUpdateDecodeErrorZ clone() { - long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHTLCUpdateDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HolderCommitmentTransactionDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HolderCommitmentTransactionDecodeErrorZ.cs index 13cbf0833..8c6f9fe2c 100644 --- a/c_sharp/src/org/ldk/structs/Result_HolderCommitmentTransactionDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HolderCommitmentTransactionDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HolderCommitmentTransactionDecodeErrorZ : CommonBase { Result_HolderCommitmentTransactionDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HolderCommitmentTransactionDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHolderCommitmentTransactionDecodeErrorZFree(ptr); } } internal static Result_HolderCommitmentTransactionDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHolderCommitmentTransactionDecodeErrorZIsOk(ptr)) { return new Result_HolderCommitmentTransactionDecodeErrorZ_OK(null, ptr); } else { return new Result_HolderCommitmentTransactionDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HolderCommitmentTransactionDecodeErrorZ constr_from_ptr(l public class Result_HolderCommitmentTransactionDecodeErrorZ_OK : Result_HolderCommitmentTransactionDecodeErrorZ { public readonly HolderCommitmentTransaction res; internal Result_HolderCommitmentTransactionDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHolderCommitmentTransactionDecodeErrorZGetOk(ptr); org.ldk.structs.HolderCommitmentTransaction res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HolderCommitmentTransaction(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HolderCommitmentTransactionDecodeErrorZ_OK(object _dummy, long p public class Result_HolderCommitmentTransactionDecodeErrorZ_Err : Result_HolderCommitmentTransactionDecodeErrorZ { public readonly DecodeError err; internal Result_HolderCommitmentTransactionDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHolderCommitmentTransactionDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HolderCommitmentTransactionDecodeErrorZ_Err(object _dummy, long * Creates a new CResult_HolderCommitmentTransactionDecodeErrorZ in the success state. */ public static Result_HolderCommitmentTransactionDecodeErrorZ ok(org.ldk.structs.HolderCommitmentTransaction o) { - long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHolderCommitmentTransactionDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HolderCommitmentTransactionDecodeErrorZ ok(org.ldk.structs. * Creates a new CResult_HolderCommitmentTransactionDecodeErrorZ in the error state. */ public static Result_HolderCommitmentTransactionDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHolderCommitmentTransactionDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HolderCommitmentTransactionDecodeErrorZ err(org.ldk.structs * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHolderCommitmentTransactionDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHolderCommitmentTransactionDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HolderCommitmentTransactionDecodeErrorZ clone() { - long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHolderCommitmentTransactionDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HostnameDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HostnameDecodeErrorZ.cs index 2fd97360b..dcdbdd456 100644 --- a/c_sharp/src/org/ldk/structs/Result_HostnameDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HostnameDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HostnameDecodeErrorZ : CommonBase { Result_HostnameDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HostnameDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HostnameDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHostnameDecodeErrorZFree(ptr); } } internal static Result_HostnameDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HostnameDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHostnameDecodeErrorZIsOk(ptr)) { return new Result_HostnameDecodeErrorZ_OK(null, ptr); } else { return new Result_HostnameDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HostnameDecodeErrorZ constr_from_ptr(long ptr) { public class Result_HostnameDecodeErrorZ_OK : Result_HostnameDecodeErrorZ { public readonly Hostname res; internal Result_HostnameDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HostnameDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHostnameDecodeErrorZGetOk(ptr); org.ldk.structs.Hostname res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Hostname(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HostnameDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_HostnameDecodeErrorZ_Err : Result_HostnameDecodeErrorZ { public readonly DecodeError err; internal Result_HostnameDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HostnameDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHostnameDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HostnameDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_HostnameDecodeErrorZ in the success state. */ public static Result_HostnameDecodeErrorZ ok(org.ldk.structs.Hostname o) { - long ret = bindings.CResult_HostnameDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHostnameDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HostnameDecodeErrorZ ret_hu_conv = Result_HostnameDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HostnameDecodeErrorZ ok(org.ldk.structs.Hostname o) { * Creates a new CResult_HostnameDecodeErrorZ in the error state. */ public static Result_HostnameDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HostnameDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHostnameDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HostnameDecodeErrorZ ret_hu_conv = Result_HostnameDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HostnameDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HostnameDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHostnameDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HostnameDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHostnameDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HostnameDecodeErrorZ clone() { - long ret = bindings.CResult_HostnameDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHostnameDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HostnameDecodeErrorZ ret_hu_conv = Result_HostnameDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HtlcBasepointDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HtlcBasepointDecodeErrorZ.cs index eb9a6fddf..81833c633 100644 --- a/c_sharp/src/org/ldk/structs/Result_HtlcBasepointDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HtlcBasepointDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HtlcBasepointDecodeErrorZ : CommonBase { Result_HtlcBasepointDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HtlcBasepointDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HtlcBasepointDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHtlcBasepointDecodeErrorZFree(ptr); } } internal static Result_HtlcBasepointDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HtlcBasepointDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHtlcBasepointDecodeErrorZIsOk(ptr)) { return new Result_HtlcBasepointDecodeErrorZ_OK(null, ptr); } else { return new Result_HtlcBasepointDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HtlcBasepointDecodeErrorZ constr_from_ptr(long ptr) { public class Result_HtlcBasepointDecodeErrorZ_OK : Result_HtlcBasepointDecodeErrorZ { public readonly HtlcBasepoint res; internal Result_HtlcBasepointDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HtlcBasepointDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHtlcBasepointDecodeErrorZGetOk(ptr); org.ldk.structs.HtlcBasepoint res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HtlcBasepoint(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HtlcBasepointDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_HtlcBasepointDecodeErrorZ_Err : Result_HtlcBasepointDecodeErrorZ { public readonly DecodeError err; internal Result_HtlcBasepointDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HtlcBasepointDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHtlcBasepointDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HtlcBasepointDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_HtlcBasepointDecodeErrorZ in the success state. */ public static Result_HtlcBasepointDecodeErrorZ ok(org.ldk.structs.HtlcBasepoint o) { - long ret = bindings.CResult_HtlcBasepointDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHtlcBasepointDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcBasepointDecodeErrorZ ret_hu_conv = Result_HtlcBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HtlcBasepointDecodeErrorZ ok(org.ldk.structs.HtlcBasepoint * Creates a new CResult_HtlcBasepointDecodeErrorZ in the error state. */ public static Result_HtlcBasepointDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HtlcBasepointDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHtlcBasepointDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcBasepointDecodeErrorZ ret_hu_conv = Result_HtlcBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HtlcBasepointDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HtlcBasepointDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHtlcBasepointDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HtlcBasepointDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHtlcBasepointDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HtlcBasepointDecodeErrorZ clone() { - long ret = bindings.CResult_HtlcBasepointDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHtlcBasepointDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcBasepointDecodeErrorZ ret_hu_conv = Result_HtlcBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_HtlcKeyDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_HtlcKeyDecodeErrorZ.cs index 6a44b286f..08c79e504 100644 --- a/c_sharp/src/org/ldk/structs/Result_HtlcKeyDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_HtlcKeyDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_HtlcKeyDecodeErrorZ : CommonBase { Result_HtlcKeyDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_HtlcKeyDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_HtlcKeyDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultHtlcKeyDecodeErrorZFree(ptr); } } internal static Result_HtlcKeyDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HtlcKeyDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultHtlcKeyDecodeErrorZIsOk(ptr)) { return new Result_HtlcKeyDecodeErrorZ_OK(null, ptr); } else { return new Result_HtlcKeyDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_HtlcKeyDecodeErrorZ constr_from_ptr(long ptr) { public class Result_HtlcKeyDecodeErrorZ_OK : Result_HtlcKeyDecodeErrorZ { public readonly HtlcKey res; internal Result_HtlcKeyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_HtlcKeyDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultHtlcKeyDecodeErrorZGetOk(ptr); org.ldk.structs.HtlcKey res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.HtlcKey(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_HtlcKeyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, p public class Result_HtlcKeyDecodeErrorZ_Err : Result_HtlcKeyDecodeErrorZ { public readonly DecodeError err; internal Result_HtlcKeyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_HtlcKeyDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultHtlcKeyDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_HtlcKeyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_HtlcKeyDecodeErrorZ in the success state. */ public static Result_HtlcKeyDecodeErrorZ ok(org.ldk.structs.HtlcKey o) { - long ret = bindings.CResult_HtlcKeyDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultHtlcKeyDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcKeyDecodeErrorZ ret_hu_conv = Result_HtlcKeyDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_HtlcKeyDecodeErrorZ ok(org.ldk.structs.HtlcKey o) { * Creates a new CResult_HtlcKeyDecodeErrorZ in the error state. */ public static Result_HtlcKeyDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_HtlcKeyDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultHtlcKeyDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcKeyDecodeErrorZ ret_hu_conv = Result_HtlcKeyDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_HtlcKeyDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_HtlcKeyDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultHtlcKeyDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_HtlcKeyDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultHtlcKeyDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_HtlcKeyDecodeErrorZ clone() { - long ret = bindings.CResult_HtlcKeyDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultHtlcKeyDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_HtlcKeyDecodeErrorZ ret_hu_conv = Result_HtlcKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_InFlightHtlcsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_InFlightHtlcsDecodeErrorZ.cs index 76e0dc102..dfb19a697 100644 --- a/c_sharp/src/org/ldk/structs/Result_InFlightHtlcsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_InFlightHtlcsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_InFlightHtlcsDecodeErrorZ : CommonBase { Result_InFlightHtlcsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_InFlightHtlcsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_InFlightHtlcsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultInFlightHtlcsDecodeErrorZFree(ptr); } } internal static Result_InFlightHtlcsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_InFlightHtlcsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultInFlightHtlcsDecodeErrorZIsOk(ptr)) { return new Result_InFlightHtlcsDecodeErrorZ_OK(null, ptr); } else { return new Result_InFlightHtlcsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_InFlightHtlcsDecodeErrorZ constr_from_ptr(long ptr) { public class Result_InFlightHtlcsDecodeErrorZ_OK : Result_InFlightHtlcsDecodeErrorZ { public readonly InFlightHtlcs res; internal Result_InFlightHtlcsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_InFlightHtlcsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultInFlightHtlcsDecodeErrorZGetOk(ptr); org.ldk.structs.InFlightHtlcs res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.InFlightHtlcs(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_InFlightHtlcsDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_InFlightHtlcsDecodeErrorZ_Err : Result_InFlightHtlcsDecodeErrorZ { public readonly DecodeError err; internal Result_InFlightHtlcsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_InFlightHtlcsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultInFlightHtlcsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_InFlightHtlcsDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_InFlightHtlcsDecodeErrorZ in the success state. */ public static Result_InFlightHtlcsDecodeErrorZ ok(org.ldk.structs.InFlightHtlcs o) { - long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultInFlightHtlcsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_InFlightHtlcsDecodeErrorZ ret_hu_conv = Result_InFlightHtlcsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_InFlightHtlcsDecodeErrorZ ok(org.ldk.structs.InFlightHtlcs * Creates a new CResult_InFlightHtlcsDecodeErrorZ in the error state. */ public static Result_InFlightHtlcsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultInFlightHtlcsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_InFlightHtlcsDecodeErrorZ ret_hu_conv = Result_InFlightHtlcsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_InFlightHtlcsDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultInFlightHtlcsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultInFlightHtlcsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_InFlightHtlcsDecodeErrorZ clone() { - long ret = bindings.CResult_InFlightHtlcsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultInFlightHtlcsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_InFlightHtlcsDecodeErrorZ ret_hu_conv = Result_InFlightHtlcsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_InMemorySignerDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_InMemorySignerDecodeErrorZ.cs index ce2ae5f00..6c8c62948 100644 --- a/c_sharp/src/org/ldk/structs/Result_InMemorySignerDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_InMemorySignerDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_InMemorySignerDecodeErrorZ : CommonBase { Result_InMemorySignerDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_InMemorySignerDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_InMemorySignerDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultInMemorySignerDecodeErrorZFree(ptr); } } internal static Result_InMemorySignerDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_InMemorySignerDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultInMemorySignerDecodeErrorZIsOk(ptr)) { return new Result_InMemorySignerDecodeErrorZ_OK(null, ptr); } else { return new Result_InMemorySignerDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_InMemorySignerDecodeErrorZ constr_from_ptr(long ptr) { public class Result_InMemorySignerDecodeErrorZ_OK : Result_InMemorySignerDecodeErrorZ { public readonly InMemorySigner res; internal Result_InMemorySignerDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_InMemorySignerDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultInMemorySignerDecodeErrorZGetOk(ptr); org.ldk.structs.InMemorySigner res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.InMemorySigner(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_InMemorySignerDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_InMemorySignerDecodeErrorZ_Err : Result_InMemorySignerDecodeErrorZ { public readonly DecodeError err; internal Result_InMemorySignerDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_InMemorySignerDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultInMemorySignerDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_InMemorySignerDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_InMemorySignerDecodeErrorZ in the success state. */ public static Result_InMemorySignerDecodeErrorZ ok(org.ldk.structs.InMemorySigner o) { - long ret = bindings.CResult_InMemorySignerDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultInMemorySignerDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_InMemorySignerDecodeErrorZ ok(org.ldk.structs.InMemorySigne * Creates a new CResult_InMemorySignerDecodeErrorZ in the error state. */ public static Result_InMemorySignerDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_InMemorySignerDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultInMemorySignerDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_InMemorySignerDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_InMemorySignerDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultInMemorySignerDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_InMemorySignerDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultInMemorySignerDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_InMemorySignerDecodeErrorZ clone() { - long ret = bindings.CResult_InMemorySignerDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultInMemorySignerDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_InitDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_InitDecodeErrorZ.cs index d35f26d27..03aeb756b 100644 --- a/c_sharp/src/org/ldk/structs/Result_InitDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_InitDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_InitDecodeErrorZ : CommonBase { Result_InitDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_InitDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_InitDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultInitDecodeErrorZFree(ptr); } } internal static Result_InitDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_InitDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultInitDecodeErrorZIsOk(ptr)) { return new Result_InitDecodeErrorZ_OK(null, ptr); } else { return new Result_InitDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_InitDecodeErrorZ constr_from_ptr(long ptr) { public class Result_InitDecodeErrorZ_OK : Result_InitDecodeErrorZ { public readonly Init res; internal Result_InitDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_InitDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultInitDecodeErrorZGetOk(ptr); org.ldk.structs.Init res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Init(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_InitDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) public class Result_InitDecodeErrorZ_Err : Result_InitDecodeErrorZ { public readonly DecodeError err; internal Result_InitDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_InitDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultInitDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_InitDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_InitDecodeErrorZ in the success state. */ public static Result_InitDecodeErrorZ ok(org.ldk.structs.Init o) { - long ret = bindings.CResult_InitDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultInitDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_InitDecodeErrorZ ok(org.ldk.structs.Init o) { * Creates a new CResult_InitDecodeErrorZ in the error state. */ public static Result_InitDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_InitDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultInitDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_InitDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_InitDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultInitDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_InitDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultInitDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_InitDecodeErrorZ clone() { - long ret = bindings.CResult_InitDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultInitDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_InitFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_InitFeaturesDecodeErrorZ.cs index ae3e3eebe..599d278e1 100644 --- a/c_sharp/src/org/ldk/structs/Result_InitFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_InitFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_InitFeaturesDecodeErrorZ : CommonBase { Result_InitFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_InitFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_InitFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultInitFeaturesDecodeErrorZFree(ptr); } } internal static Result_InitFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_InitFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultInitFeaturesDecodeErrorZIsOk(ptr)) { return new Result_InitFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_InitFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_InitFeaturesDecodeErrorZ constr_from_ptr(long ptr) { public class Result_InitFeaturesDecodeErrorZ_OK : Result_InitFeaturesDecodeErrorZ { public readonly InitFeatures res; internal Result_InitFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_InitFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultInitFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.InitFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.InitFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_InitFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_InitFeaturesDecodeErrorZ_Err : Result_InitFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_InitFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_InitFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultInitFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_InitFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_InitFeaturesDecodeErrorZ in the success state. */ public static Result_InitFeaturesDecodeErrorZ ok(org.ldk.structs.InitFeatures o) { - long ret = bindings.CResult_InitFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultInitFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_InitFeaturesDecodeErrorZ ok(org.ldk.structs.InitFeatures o) * Creates a new CResult_InitFeaturesDecodeErrorZ in the error state. */ public static Result_InitFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_InitFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultInitFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_InitFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_InitFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultInitFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_InitFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultInitFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_InitFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_InitFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultInitFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_InvoiceErrorDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_InvoiceErrorDecodeErrorZ.cs index 8b967f0e7..052f6f584 100644 --- a/c_sharp/src/org/ldk/structs/Result_InvoiceErrorDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_InvoiceErrorDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_InvoiceErrorDecodeErrorZ : CommonBase { Result_InvoiceErrorDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_InvoiceErrorDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_InvoiceErrorDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultInvoiceErrorDecodeErrorZFree(ptr); } } internal static Result_InvoiceErrorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_InvoiceErrorDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultInvoiceErrorDecodeErrorZIsOk(ptr)) { return new Result_InvoiceErrorDecodeErrorZ_OK(null, ptr); } else { return new Result_InvoiceErrorDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_InvoiceErrorDecodeErrorZ constr_from_ptr(long ptr) { public class Result_InvoiceErrorDecodeErrorZ_OK : Result_InvoiceErrorDecodeErrorZ { public readonly InvoiceError res; internal Result_InvoiceErrorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_InvoiceErrorDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultInvoiceErrorDecodeErrorZGetOk(ptr); org.ldk.structs.InvoiceError res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.InvoiceError(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_InvoiceErrorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_InvoiceErrorDecodeErrorZ_Err : Result_InvoiceErrorDecodeErrorZ { public readonly DecodeError err; internal Result_InvoiceErrorDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_InvoiceErrorDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultInvoiceErrorDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_InvoiceErrorDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_InvoiceErrorDecodeErrorZ in the success state. */ public static Result_InvoiceErrorDecodeErrorZ ok(org.ldk.structs.InvoiceError o) { - long ret = bindings.CResult_InvoiceErrorDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultInvoiceErrorDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_InvoiceErrorDecodeErrorZ ret_hu_conv = Result_InvoiceErrorDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_InvoiceErrorDecodeErrorZ ok(org.ldk.structs.InvoiceError o) * Creates a new CResult_InvoiceErrorDecodeErrorZ in the error state. */ public static Result_InvoiceErrorDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_InvoiceErrorDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultInvoiceErrorDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_InvoiceErrorDecodeErrorZ ret_hu_conv = Result_InvoiceErrorDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_InvoiceErrorDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_InvoiceErrorDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultInvoiceErrorDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_InvoiceErrorDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultInvoiceErrorDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_InvoiceErrorDecodeErrorZ clone() { - long ret = bindings.CResult_InvoiceErrorDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultInvoiceErrorDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_InvoiceErrorDecodeErrorZ ret_hu_conv = Result_InvoiceErrorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_LockedChannelMonitorNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_LockedChannelMonitorNoneZ.cs index 915c346c6..0491a6f0b 100644 --- a/c_sharp/src/org/ldk/structs/Result_LockedChannelMonitorNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_LockedChannelMonitorNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_LockedChannelMonitorNoneZ : CommonBase { Result_LockedChannelMonitorNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_LockedChannelMonitorNoneZ() { - if (ptr != 0) { bindings.CResult_LockedChannelMonitorNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultLockedChannelMonitorNoneZFree(ptr); } } internal static Result_LockedChannelMonitorNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_LockedChannelMonitorNoneZ_is_ok(ptr)) { + if (Bindings.CResultLockedChannelMonitorNoneZIsOk(ptr)) { return new Result_LockedChannelMonitorNoneZ_OK(null, ptr); } else { return new Result_LockedChannelMonitorNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_LockedChannelMonitorNoneZ constr_from_ptr(long ptr) { public class Result_LockedChannelMonitorNoneZ_OK : Result_LockedChannelMonitorNoneZ { public readonly LockedChannelMonitor res; internal Result_LockedChannelMonitorNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_LockedChannelMonitorNoneZ_get_ok(ptr); + long res = Bindings.CResultLockedChannelMonitorNoneZGetOk(ptr); org.ldk.structs.LockedChannelMonitor res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.LockedChannelMonitor(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_LockedChannelMonitorNoneZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_LockedChannelMonitorNoneZ in the success state. */ public static Result_LockedChannelMonitorNoneZ ok(org.ldk.structs.LockedChannelMonitor o) { - long ret = bindings.CResult_LockedChannelMonitorNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultLockedChannelMonitorNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_LockedChannelMonitorNoneZ ret_hu_conv = Result_LockedChannelMonitorNoneZ.constr_from_ptr(ret); @@ -57,7 +57,7 @@ public static Result_LockedChannelMonitorNoneZ ok(org.ldk.structs.LockedChannelM * Creates a new CResult_LockedChannelMonitorNoneZ in the error state. */ public static Result_LockedChannelMonitorNoneZ err() { - long ret = bindings.CResult_LockedChannelMonitorNoneZ_err(); + long ret = Bindings.CResultLockedChannelMonitorNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_LockedChannelMonitorNoneZ ret_hu_conv = Result_LockedChannelMonitorNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -67,7 +67,7 @@ public static Result_LockedChannelMonitorNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_LockedChannelMonitorNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultLockedChannelMonitorNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_MaxDustHTLCExposureDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_MaxDustHTLCExposureDecodeErrorZ.cs index 3d3b7f815..8cf8e4e93 100644 --- a/c_sharp/src/org/ldk/structs/Result_MaxDustHTLCExposureDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_MaxDustHTLCExposureDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_MaxDustHTLCExposureDecodeErrorZ : CommonBase { Result_MaxDustHTLCExposureDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_MaxDustHTLCExposureDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultMaxDustHTLCExposureDecodeErrorZFree(ptr); } } internal static Result_MaxDustHTLCExposureDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultMaxDustHTLCExposureDecodeErrorZIsOk(ptr)) { return new Result_MaxDustHTLCExposureDecodeErrorZ_OK(null, ptr); } else { return new Result_MaxDustHTLCExposureDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_MaxDustHTLCExposureDecodeErrorZ constr_from_ptr(long ptr) public class Result_MaxDustHTLCExposureDecodeErrorZ_OK : Result_MaxDustHTLCExposureDecodeErrorZ { public readonly MaxDustHTLCExposure res; internal Result_MaxDustHTLCExposureDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultMaxDustHTLCExposureDecodeErrorZGetOk(ptr); org.ldk.structs.MaxDustHTLCExposure res_hu_conv = org.ldk.structs.MaxDustHTLCExposure.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_MaxDustHTLCExposureDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_MaxDustHTLCExposureDecodeErrorZ_Err : Result_MaxDustHTLCExposureDecodeErrorZ { public readonly DecodeError err; internal Result_MaxDustHTLCExposureDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultMaxDustHTLCExposureDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_MaxDustHTLCExposureDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_MaxDustHTLCExposureDecodeErrorZ in the success state. */ public static Result_MaxDustHTLCExposureDecodeErrorZ ok(org.ldk.structs.MaxDustHTLCExposure o) { - long ret = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultMaxDustHTLCExposureDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_MaxDustHTLCExposureDecodeErrorZ ret_hu_conv = Result_MaxDustHTLCExposureDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_MaxDustHTLCExposureDecodeErrorZ ok(org.ldk.structs.MaxDustH * Creates a new CResult_MaxDustHTLCExposureDecodeErrorZ in the error state. */ public static Result_MaxDustHTLCExposureDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultMaxDustHTLCExposureDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_MaxDustHTLCExposureDecodeErrorZ ret_hu_conv = Result_MaxDustHTLCExposureDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_MaxDustHTLCExposureDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultMaxDustHTLCExposureDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultMaxDustHTLCExposureDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_MaxDustHTLCExposureDecodeErrorZ clone() { - long ret = bindings.CResult_MaxDustHTLCExposureDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultMaxDustHTLCExposureDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_MaxDustHTLCExposureDecodeErrorZ ret_hu_conv = Result_MaxDustHTLCExposureDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NetworkGraphDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NetworkGraphDecodeErrorZ.cs index 31f4e81df..5f7b5f431 100644 --- a/c_sharp/src/org/ldk/structs/Result_NetworkGraphDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NetworkGraphDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NetworkGraphDecodeErrorZ : CommonBase { Result_NetworkGraphDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NetworkGraphDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NetworkGraphDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNetworkGraphDecodeErrorZFree(ptr); } } internal static Result_NetworkGraphDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NetworkGraphDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNetworkGraphDecodeErrorZIsOk(ptr)) { return new Result_NetworkGraphDecodeErrorZ_OK(null, ptr); } else { return new Result_NetworkGraphDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NetworkGraphDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NetworkGraphDecodeErrorZ_OK : Result_NetworkGraphDecodeErrorZ { public readonly NetworkGraph res; internal Result_NetworkGraphDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NetworkGraphDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNetworkGraphDecodeErrorZGetOk(ptr); org.ldk.structs.NetworkGraph res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NetworkGraph(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NetworkGraphDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_NetworkGraphDecodeErrorZ_Err : Result_NetworkGraphDecodeErrorZ { public readonly DecodeError err; internal Result_NetworkGraphDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NetworkGraphDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNetworkGraphDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NetworkGraphDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_NetworkGraphDecodeErrorZ in the success state. */ public static Result_NetworkGraphDecodeErrorZ ok(Network o_network, Logger o_logger) { - long ret = bindings.CResult_NetworkGraphDecodeErrorZ_ok(bindings.NetworkGraph_new(o_network, o_logger.ptr)); + long ret = Bindings.CResultNetworkGraphDecodeErrorZOk(Bindings.NetworkGraphNew(o_network, o_logger.ptr)); GC.KeepAlive(o_network); GC.KeepAlive(o_logger); if (ret >= 0 && ret <= 4096) { return null; } @@ -55,7 +55,7 @@ public static Result_NetworkGraphDecodeErrorZ ok(Network o_network, Logger o_log * Creates a new CResult_NetworkGraphDecodeErrorZ in the error state. */ public static Result_NetworkGraphDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NetworkGraphDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNetworkGraphDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NetworkGraphDecodeErrorZ ret_hu_conv = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret); @@ -67,7 +67,7 @@ public static Result_NetworkGraphDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NetworkGraphDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNetworkGraphDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_NodeAliasDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeAliasDecodeErrorZ.cs index 93edb417c..1a0f45109 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeAliasDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeAliasDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeAliasDecodeErrorZ : CommonBase { Result_NodeAliasDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeAliasDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeAliasDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeAliasDecodeErrorZFree(ptr); } } internal static Result_NodeAliasDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeAliasDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeAliasDecodeErrorZIsOk(ptr)) { return new Result_NodeAliasDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeAliasDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeAliasDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NodeAliasDecodeErrorZ_OK : Result_NodeAliasDecodeErrorZ { public readonly NodeAlias res; internal Result_NodeAliasDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeAliasDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeAliasDecodeErrorZGetOk(ptr); org.ldk.structs.NodeAlias res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeAlias(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeAliasDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_NodeAliasDecodeErrorZ_Err : Result_NodeAliasDecodeErrorZ { public readonly DecodeError err; internal Result_NodeAliasDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeAliasDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeAliasDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeAliasDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_NodeAliasDecodeErrorZ in the success state. */ public static Result_NodeAliasDecodeErrorZ ok(org.ldk.structs.NodeAlias o) { - long ret = bindings.CResult_NodeAliasDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeAliasDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAliasDecodeErrorZ ret_hu_conv = Result_NodeAliasDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeAliasDecodeErrorZ ok(org.ldk.structs.NodeAlias o) { * Creates a new CResult_NodeAliasDecodeErrorZ in the error state. */ public static Result_NodeAliasDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeAliasDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeAliasDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAliasDecodeErrorZ ret_hu_conv = Result_NodeAliasDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeAliasDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeAliasDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeAliasDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeAliasDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeAliasDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeAliasDecodeErrorZ clone() { - long ret = bindings.CResult_NodeAliasDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeAliasDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAliasDecodeErrorZ ret_hu_conv = Result_NodeAliasDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementDecodeErrorZ.cs index 665e8e363..eaec1a4ce 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeAnnouncementDecodeErrorZ : CommonBase { Result_NodeAnnouncementDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeAnnouncementDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeAnnouncementDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeAnnouncementDecodeErrorZFree(ptr); } } internal static Result_NodeAnnouncementDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeAnnouncementDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeAnnouncementDecodeErrorZIsOk(ptr)) { return new Result_NodeAnnouncementDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeAnnouncementDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeAnnouncementDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NodeAnnouncementDecodeErrorZ_OK : Result_NodeAnnouncementDecodeErrorZ { public readonly NodeAnnouncement res; internal Result_NodeAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeAnnouncementDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeAnnouncementDecodeErrorZGetOk(ptr); org.ldk.structs.NodeAnnouncement res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeAnnouncement(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : base( public class Result_NodeAnnouncementDecodeErrorZ_Err : Result_NodeAnnouncementDecodeErrorZ { public readonly DecodeError err; internal Result_NodeAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeAnnouncementDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeAnnouncementDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : base * Creates a new CResult_NodeAnnouncementDecodeErrorZ in the success state. */ public static Result_NodeAnnouncementDecodeErrorZ ok(org.ldk.structs.NodeAnnouncement o) { - long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeAnnouncementDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeAnnouncementDecodeErrorZ ok(org.ldk.structs.NodeAnnounc * Creates a new CResult_NodeAnnouncementDecodeErrorZ in the error state. */ public static Result_NodeAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeAnnouncementDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeErro * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeAnnouncementDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeAnnouncementDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeAnnouncementDecodeErrorZ clone() { - long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeAnnouncementDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementInfoDecodeErrorZ.cs index cb2c2245f..115eeb7d3 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeAnnouncementInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeAnnouncementInfoDecodeErrorZ : CommonBase { Result_NodeAnnouncementInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeAnnouncementInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeAnnouncementInfoDecodeErrorZFree(ptr); } } internal static Result_NodeAnnouncementInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeAnnouncementInfoDecodeErrorZIsOk(ptr)) { return new Result_NodeAnnouncementInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeAnnouncementInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeAnnouncementInfoDecodeErrorZ constr_from_ptr(long ptr public class Result_NodeAnnouncementInfoDecodeErrorZ_OK : Result_NodeAnnouncementInfoDecodeErrorZ { public readonly NodeAnnouncementInfo res; internal Result_NodeAnnouncementInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeAnnouncementInfoDecodeErrorZGetOk(ptr); org.ldk.structs.NodeAnnouncementInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeAnnouncementInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeAnnouncementInfoDecodeErrorZ_OK(object _dummy, long ptr) : b public class Result_NodeAnnouncementInfoDecodeErrorZ_Err : Result_NodeAnnouncementInfoDecodeErrorZ { public readonly DecodeError err; internal Result_NodeAnnouncementInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeAnnouncementInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeAnnouncementInfoDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_NodeAnnouncementInfoDecodeErrorZ in the success state. */ public static Result_NodeAnnouncementInfoDecodeErrorZ ok(org.ldk.structs.NodeAnnouncementInfo o) { - long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeAnnouncementInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeAnnouncementInfoDecodeErrorZ ok(org.ldk.structs.NodeAnn * Creates a new CResult_NodeAnnouncementInfoDecodeErrorZ in the error state. */ public static Result_NodeAnnouncementInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeAnnouncementInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeAnnouncementInfoDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeAnnouncementInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeAnnouncementInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeAnnouncementInfoDecodeErrorZ clone() { - long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeAnnouncementInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.cs index 8d756c322..0c41784f5 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeFeaturesDecodeErrorZ : CommonBase { Result_NodeFeaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeFeaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeFeaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeFeaturesDecodeErrorZFree(ptr); } } internal static Result_NodeFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeFeaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeFeaturesDecodeErrorZIsOk(ptr)) { return new Result_NodeFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeFeaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeFeaturesDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NodeFeaturesDecodeErrorZ_OK : Result_NodeFeaturesDecodeErrorZ { public readonly NodeFeatures res; internal Result_NodeFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeFeaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeFeaturesDecodeErrorZGetOk(ptr); org.ldk.structs.NodeFeatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeFeatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeFeaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_NodeFeaturesDecodeErrorZ_Err : Result_NodeFeaturesDecodeErrorZ { public readonly DecodeError err; internal Result_NodeFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeFeaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeFeaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeFeaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_NodeFeaturesDecodeErrorZ in the success state. */ public static Result_NodeFeaturesDecodeErrorZ ok(org.ldk.structs.NodeFeatures o) { - long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeFeaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeFeaturesDecodeErrorZ ok(org.ldk.structs.NodeFeatures o) * Creates a new CResult_NodeFeaturesDecodeErrorZ in the error state. */ public static Result_NodeFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeFeaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeFeaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeFeaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeFeaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeFeaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeFeaturesDecodeErrorZ clone() { - long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeFeaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NodeIdDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeIdDecodeErrorZ.cs index e4a5a9184..e8501f435 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeIdDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeIdDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeIdDecodeErrorZ : CommonBase { Result_NodeIdDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeIdDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeIdDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeIdDecodeErrorZFree(ptr); } } internal static Result_NodeIdDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeIdDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeIdDecodeErrorZIsOk(ptr)) { return new Result_NodeIdDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeIdDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeIdDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NodeIdDecodeErrorZ_OK : Result_NodeIdDecodeErrorZ { public readonly NodeId res; internal Result_NodeIdDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeIdDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeIdDecodeErrorZGetOk(ptr); org.ldk.structs.NodeId res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeId(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeIdDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, pt public class Result_NodeIdDecodeErrorZ_Err : Result_NodeIdDecodeErrorZ { public readonly DecodeError err; internal Result_NodeIdDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeIdDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeIdDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeIdDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, p * Creates a new CResult_NodeIdDecodeErrorZ in the success state. */ public static Result_NodeIdDecodeErrorZ ok(org.ldk.structs.NodeId o) { - long ret = bindings.CResult_NodeIdDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeIdDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeIdDecodeErrorZ ok(org.ldk.structs.NodeId o) { * Creates a new CResult_NodeIdDecodeErrorZ in the error state. */ public static Result_NodeIdDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeIdDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeIdDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeIdDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeIdDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeIdDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeIdDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeIdDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeIdDecodeErrorZ clone() { - long ret = bindings.CResult_NodeIdDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeIdDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NodeInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NodeInfoDecodeErrorZ.cs index 61cfdcc34..7349c1b5a 100644 --- a/c_sharp/src/org/ldk/structs/Result_NodeInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NodeInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NodeInfoDecodeErrorZ : CommonBase { Result_NodeInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NodeInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_NodeInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNodeInfoDecodeErrorZFree(ptr); } } internal static Result_NodeInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NodeInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultNodeInfoDecodeErrorZIsOk(ptr)) { return new Result_NodeInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_NodeInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_NodeInfoDecodeErrorZ constr_from_ptr(long ptr) { public class Result_NodeInfoDecodeErrorZ_OK : Result_NodeInfoDecodeErrorZ { public readonly NodeInfo res; internal Result_NodeInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_NodeInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultNodeInfoDecodeErrorZGetOk(ptr); org.ldk.structs.NodeInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.NodeInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_NodeInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_NodeInfoDecodeErrorZ_Err : Result_NodeInfoDecodeErrorZ { public readonly DecodeError err; internal Result_NodeInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NodeInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultNodeInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_NodeInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_NodeInfoDecodeErrorZ in the success state. */ public static Result_NodeInfoDecodeErrorZ ok(org.ldk.structs.NodeInfo o) { - long ret = bindings.CResult_NodeInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultNodeInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_NodeInfoDecodeErrorZ ok(org.ldk.structs.NodeInfo o) { * Creates a new CResult_NodeInfoDecodeErrorZ in the error state. */ public static Result_NodeInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_NodeInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultNodeInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_NodeInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NodeInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNodeInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NodeInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNodeInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NodeInfoDecodeErrorZ clone() { - long ret = bindings.CResult_NodeInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultNodeInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneAPIErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneAPIErrorZ.cs index a89d3eb0d..d644d5808 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneAPIErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneAPIErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneAPIErrorZ : CommonBase { Result_NoneAPIErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneAPIErrorZ() { - if (ptr != 0) { bindings.CResult_NoneAPIErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneAPIErrorZFree(ptr); } } internal static Result_NoneAPIErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneAPIErrorZ_is_ok(ptr)) { + if (Bindings.CResultNoneAPIErrorZIsOk(ptr)) { return new Result_NoneAPIErrorZ_OK(null, ptr); } else { return new Result_NoneAPIErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneAPIErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { public class Result_NoneAPIErrorZ_Err : Result_NoneAPIErrorZ { public readonly APIError err; internal Result_NoneAPIErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NoneAPIErrorZ_get_err(ptr); + long err = Bindings.CResultNoneAPIErrorZGetErr(ptr); org.ldk.structs.APIError err_hu_conv = org.ldk.structs.APIError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -37,7 +37,7 @@ internal Result_NoneAPIErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { * Creates a new CResult_NoneAPIErrorZ in the success state. */ public static Result_NoneAPIErrorZ ok() { - long ret = bindings.CResult_NoneAPIErrorZ_ok(); + long ret = Bindings.CResultNoneAPIErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -47,7 +47,7 @@ public static Result_NoneAPIErrorZ ok() { * Creates a new CResult_NoneAPIErrorZ in the error state. */ public static Result_NoneAPIErrorZ err(org.ldk.structs.APIError e) { - long ret = bindings.CResult_NoneAPIErrorZ_err(e.ptr); + long ret = Bindings.CResultNoneAPIErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); @@ -59,13 +59,13 @@ public static Result_NoneAPIErrorZ err(org.ldk.structs.APIError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneAPIErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneAPIErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneAPIErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneAPIErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneAPIErrorZ clone() { - long ret = bindings.CResult_NoneAPIErrorZ_clone(this.ptr); + long ret = Bindings.CResultNoneAPIErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneBolt11SemanticErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneBolt11SemanticErrorZ.cs index f56a9e6c3..8a7f6685b 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneBolt11SemanticErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneBolt11SemanticErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneBolt11SemanticErrorZ : CommonBase { Result_NoneBolt11SemanticErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneBolt11SemanticErrorZ() { - if (ptr != 0) { bindings.CResult_NoneBolt11SemanticErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneBolt11SemanticErrorZFree(ptr); } } internal static Result_NoneBolt11SemanticErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneBolt11SemanticErrorZ_is_ok(ptr)) { + if (Bindings.CResultNoneBolt11SemanticErrorZIsOk(ptr)) { return new Result_NoneBolt11SemanticErrorZ_OK(null, ptr); } else { return new Result_NoneBolt11SemanticErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneBolt11SemanticErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_NoneBolt11SemanticErrorZ_Err : Result_NoneBolt11SemanticErrorZ { public readonly Bolt11SemanticError err; internal Result_NoneBolt11SemanticErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_NoneBolt11SemanticErrorZ_get_err(ptr); + this.err = Bindings.CResultNoneBolt11SemanticErrorZGetErr(ptr); } } @@ -34,7 +34,7 @@ internal Result_NoneBolt11SemanticErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_NoneBolt11SemanticErrorZ in the success state. */ public static Result_NoneBolt11SemanticErrorZ ok() { - long ret = bindings.CResult_NoneBolt11SemanticErrorZ_ok(); + long ret = Bindings.CResultNoneBolt11SemanticErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt11SemanticErrorZ ret_hu_conv = Result_NoneBolt11SemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -44,7 +44,7 @@ public static Result_NoneBolt11SemanticErrorZ ok() { * Creates a new CResult_NoneBolt11SemanticErrorZ in the error state. */ public static Result_NoneBolt11SemanticErrorZ err(Bolt11SemanticError e) { - long ret = bindings.CResult_NoneBolt11SemanticErrorZ_err(e); + long ret = Bindings.CResultNoneBolt11SemanticErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt11SemanticErrorZ ret_hu_conv = Result_NoneBolt11SemanticErrorZ.constr_from_ptr(ret); @@ -55,13 +55,13 @@ public static Result_NoneBolt11SemanticErrorZ err(Bolt11SemanticError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneBolt11SemanticErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneBolt11SemanticErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneBolt11SemanticErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneBolt11SemanticErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneBolt11SemanticErrorZ clone() { - long ret = bindings.CResult_NoneBolt11SemanticErrorZ_clone(this.ptr); + long ret = Bindings.CResultNoneBolt11SemanticErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt11SemanticErrorZ ret_hu_conv = Result_NoneBolt11SemanticErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneBolt12SemanticErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneBolt12SemanticErrorZ.cs index 21c5d2b9a..efffc3614 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneBolt12SemanticErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneBolt12SemanticErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneBolt12SemanticErrorZ : CommonBase { Result_NoneBolt12SemanticErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneBolt12SemanticErrorZ() { - if (ptr != 0) { bindings.CResult_NoneBolt12SemanticErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneBolt12SemanticErrorZFree(ptr); } } internal static Result_NoneBolt12SemanticErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneBolt12SemanticErrorZ_is_ok(ptr)) { + if (Bindings.CResultNoneBolt12SemanticErrorZIsOk(ptr)) { return new Result_NoneBolt12SemanticErrorZ_OK(null, ptr); } else { return new Result_NoneBolt12SemanticErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneBolt12SemanticErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_NoneBolt12SemanticErrorZ_Err : Result_NoneBolt12SemanticErrorZ { public readonly Bolt12SemanticError err; internal Result_NoneBolt12SemanticErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_NoneBolt12SemanticErrorZ_get_err(ptr); + this.err = Bindings.CResultNoneBolt12SemanticErrorZGetErr(ptr); } } @@ -34,7 +34,7 @@ internal Result_NoneBolt12SemanticErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_NoneBolt12SemanticErrorZ in the success state. */ public static Result_NoneBolt12SemanticErrorZ ok() { - long ret = bindings.CResult_NoneBolt12SemanticErrorZ_ok(); + long ret = Bindings.CResultNoneBolt12SemanticErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt12SemanticErrorZ ret_hu_conv = Result_NoneBolt12SemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -44,7 +44,7 @@ public static Result_NoneBolt12SemanticErrorZ ok() { * Creates a new CResult_NoneBolt12SemanticErrorZ in the error state. */ public static Result_NoneBolt12SemanticErrorZ err(Bolt12SemanticError e) { - long ret = bindings.CResult_NoneBolt12SemanticErrorZ_err(e); + long ret = Bindings.CResultNoneBolt12SemanticErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt12SemanticErrorZ ret_hu_conv = Result_NoneBolt12SemanticErrorZ.constr_from_ptr(ret); @@ -55,13 +55,13 @@ public static Result_NoneBolt12SemanticErrorZ err(Bolt12SemanticError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneBolt12SemanticErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneBolt12SemanticErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneBolt12SemanticErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneBolt12SemanticErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneBolt12SemanticErrorZ clone() { - long ret = bindings.CResult_NoneBolt12SemanticErrorZ_clone(this.ptr); + long ret = Bindings.CResultNoneBolt12SemanticErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneBolt12SemanticErrorZ ret_hu_conv = Result_NoneBolt12SemanticErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneIOErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneIOErrorZ.cs index 1544dc2d0..2e3e52988 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneIOErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneIOErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneIOErrorZ : CommonBase { Result_NoneIOErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneIOErrorZ() { - if (ptr != 0) { bindings.CResult_NoneIOErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneIOErrorZFree(ptr); } } internal static Result_NoneIOErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneIOErrorZ_is_ok(ptr)) { + if (Bindings.CResultNoneIOErrorZIsOk(ptr)) { return new Result_NoneIOErrorZ_OK(null, ptr); } else { return new Result_NoneIOErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneIOErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { public class Result_NoneIOErrorZ_Err : Result_NoneIOErrorZ { public readonly IOError err; internal Result_NoneIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_NoneIOErrorZ_get_err(ptr); + this.err = Bindings.CResultNoneIOErrorZGetErr(ptr); } } @@ -34,7 +34,7 @@ internal Result_NoneIOErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { * Creates a new CResult_NoneIOErrorZ in the success state. */ public static Result_NoneIOErrorZ ok() { - long ret = bindings.CResult_NoneIOErrorZ_ok(); + long ret = Bindings.CResultNoneIOErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneIOErrorZ ret_hu_conv = Result_NoneIOErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -44,7 +44,7 @@ public static Result_NoneIOErrorZ ok() { * Creates a new CResult_NoneIOErrorZ in the error state. */ public static Result_NoneIOErrorZ err(IOError e) { - long ret = bindings.CResult_NoneIOErrorZ_err(e); + long ret = Bindings.CResultNoneIOErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneIOErrorZ ret_hu_conv = Result_NoneIOErrorZ.constr_from_ptr(ret); @@ -55,13 +55,13 @@ public static Result_NoneIOErrorZ err(IOError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneIOErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneIOErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneIOErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneIOErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneIOErrorZ clone() { - long ret = bindings.CResult_NoneIOErrorZ_clone(this.ptr); + long ret = Bindings.CResultNoneIOErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneIOErrorZ ret_hu_conv = Result_NoneIOErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneLightningErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneLightningErrorZ.cs index 68b474343..6ec9f78ad 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneLightningErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneLightningErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneLightningErrorZ : CommonBase { Result_NoneLightningErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneLightningErrorZ() { - if (ptr != 0) { bindings.CResult_NoneLightningErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneLightningErrorZFree(ptr); } } internal static Result_NoneLightningErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneLightningErrorZ_is_ok(ptr)) { + if (Bindings.CResultNoneLightningErrorZIsOk(ptr)) { return new Result_NoneLightningErrorZ_OK(null, ptr); } else { return new Result_NoneLightningErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneLightningErrorZ_OK(object _dummy, long ptr) : base(_dummy, p public class Result_NoneLightningErrorZ_Err : Result_NoneLightningErrorZ { public readonly LightningError err; internal Result_NoneLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NoneLightningErrorZ_get_err(ptr); + long err = Bindings.CResultNoneLightningErrorZGetErr(ptr); org.ldk.structs.LightningError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.LightningError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -37,7 +37,7 @@ internal Result_NoneLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_NoneLightningErrorZ in the success state. */ public static Result_NoneLightningErrorZ ok() { - long ret = bindings.CResult_NoneLightningErrorZ_ok(); + long ret = Bindings.CResultNoneLightningErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -47,7 +47,7 @@ public static Result_NoneLightningErrorZ ok() { * Creates a new CResult_NoneLightningErrorZ in the error state. */ public static Result_NoneLightningErrorZ err(org.ldk.structs.LightningError e) { - long ret = bindings.CResult_NoneLightningErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultNoneLightningErrorZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret); @@ -59,13 +59,13 @@ public static Result_NoneLightningErrorZ err(org.ldk.structs.LightningError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneLightningErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneLightningErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneLightningErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneLightningErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneLightningErrorZ clone() { - long ret = bindings.CResult_NoneLightningErrorZ_clone(this.ptr); + long ret = Bindings.CResultNoneLightningErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneNoneZ.cs index 9ac316f4b..63f6e0c03 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneNoneZ : CommonBase { Result_NoneNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneNoneZ() { - if (ptr != 0) { bindings.CResult_NoneNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneNoneZFree(ptr); } } internal static Result_NoneNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneNoneZ_is_ok(ptr)) { + if (Bindings.CResultNoneNoneZIsOk(ptr)) { return new Result_NoneNoneZ_OK(null, ptr); } else { return new Result_NoneNoneZ_Err(null, ptr); @@ -32,7 +32,7 @@ internal Result_NoneNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { * Creates a new CResult_NoneNoneZ in the success state. */ public static Result_NoneNoneZ ok() { - long ret = bindings.CResult_NoneNoneZ_ok(); + long ret = Bindings.CResultNoneNoneZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -42,7 +42,7 @@ public static Result_NoneNoneZ ok() { * Creates a new CResult_NoneNoneZ in the error state. */ public static Result_NoneNoneZ err() { - long ret = bindings.CResult_NoneNoneZ_err(); + long ret = Bindings.CResultNoneNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -52,13 +52,13 @@ public static Result_NoneNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneNoneZ clone() { - long ret = bindings.CResult_NoneNoneZ_clone(this.ptr); + long ret = Bindings.CResultNoneNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NonePaymentSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_NonePaymentSendFailureZ.cs index 91eb76023..05579073d 100644 --- a/c_sharp/src/org/ldk/structs/Result_NonePaymentSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NonePaymentSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NonePaymentSendFailureZ : CommonBase { Result_NonePaymentSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_NonePaymentSendFailureZ() { - if (ptr != 0) { bindings.CResult_NonePaymentSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNonePaymentSendFailureZFree(ptr); } } internal static Result_NonePaymentSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_NonePaymentSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultNonePaymentSendFailureZIsOk(ptr)) { return new Result_NonePaymentSendFailureZ_OK(null, ptr); } else { return new Result_NonePaymentSendFailureZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NonePaymentSendFailureZ_OK(object _dummy, long ptr) : base(_dumm public class Result_NonePaymentSendFailureZ_Err : Result_NonePaymentSendFailureZ { public readonly PaymentSendFailure err; internal Result_NonePaymentSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NonePaymentSendFailureZ_get_err(ptr); + long err = Bindings.CResultNonePaymentSendFailureZGetErr(ptr); org.ldk.structs.PaymentSendFailure err_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -37,7 +37,7 @@ internal Result_NonePaymentSendFailureZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_NonePaymentSendFailureZ in the success state. */ public static Result_NonePaymentSendFailureZ ok() { - long ret = bindings.CResult_NonePaymentSendFailureZ_ok(); + long ret = Bindings.CResultNonePaymentSendFailureZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePaymentSendFailureZ ret_hu_conv = Result_NonePaymentSendFailureZ.constr_from_ptr(ret); return ret_hu_conv; @@ -47,7 +47,7 @@ public static Result_NonePaymentSendFailureZ ok() { * Creates a new CResult_NonePaymentSendFailureZ in the error state. */ public static Result_NonePaymentSendFailureZ err(org.ldk.structs.PaymentSendFailure e) { - long ret = bindings.CResult_NonePaymentSendFailureZ_err(e.ptr); + long ret = Bindings.CResultNonePaymentSendFailureZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePaymentSendFailureZ ret_hu_conv = Result_NonePaymentSendFailureZ.constr_from_ptr(ret); @@ -59,13 +59,13 @@ public static Result_NonePaymentSendFailureZ err(org.ldk.structs.PaymentSendFail * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NonePaymentSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultNonePaymentSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NonePaymentSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNonePaymentSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NonePaymentSendFailureZ clone() { - long ret = bindings.CResult_NonePaymentSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultNonePaymentSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePaymentSendFailureZ ret_hu_conv = Result_NonePaymentSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NonePeerHandleErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_NonePeerHandleErrorZ.cs index c1efa8e88..840ab6502 100644 --- a/c_sharp/src/org/ldk/structs/Result_NonePeerHandleErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NonePeerHandleErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NonePeerHandleErrorZ : CommonBase { Result_NonePeerHandleErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_NonePeerHandleErrorZ() { - if (ptr != 0) { bindings.CResult_NonePeerHandleErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNonePeerHandleErrorZFree(ptr); } } internal static Result_NonePeerHandleErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_NonePeerHandleErrorZ_is_ok(ptr)) { + if (Bindings.CResultNonePeerHandleErrorZIsOk(ptr)) { return new Result_NonePeerHandleErrorZ_OK(null, ptr); } else { return new Result_NonePeerHandleErrorZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NonePeerHandleErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_NonePeerHandleErrorZ_Err : Result_NonePeerHandleErrorZ { public readonly PeerHandleError err; internal Result_NonePeerHandleErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_NonePeerHandleErrorZ_get_err(ptr); + long err = Bindings.CResultNonePeerHandleErrorZGetErr(ptr); org.ldk.structs.PeerHandleError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.PeerHandleError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -37,7 +37,7 @@ internal Result_NonePeerHandleErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_NonePeerHandleErrorZ in the success state. */ public static Result_NonePeerHandleErrorZ ok() { - long ret = bindings.CResult_NonePeerHandleErrorZ_ok(); + long ret = Bindings.CResultNonePeerHandleErrorZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret); return ret_hu_conv; @@ -47,7 +47,7 @@ public static Result_NonePeerHandleErrorZ ok() { * Creates a new CResult_NonePeerHandleErrorZ in the error state. */ public static Result_NonePeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) { - long ret = bindings.CResult_NonePeerHandleErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultNonePeerHandleErrorZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret); @@ -59,13 +59,13 @@ public static Result_NonePeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NonePeerHandleErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultNonePeerHandleErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NonePeerHandleErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNonePeerHandleErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NonePeerHandleErrorZ clone() { - long ret = bindings.CResult_NonePeerHandleErrorZ_clone(this.ptr); + long ret = Bindings.CResultNonePeerHandleErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_NoneRetryableSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_NoneRetryableSendFailureZ.cs index ddf6a1152..758ef77d3 100644 --- a/c_sharp/src/org/ldk/structs/Result_NoneRetryableSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_NoneRetryableSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_NoneRetryableSendFailureZ : CommonBase { Result_NoneRetryableSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_NoneRetryableSendFailureZ() { - if (ptr != 0) { bindings.CResult_NoneRetryableSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultNoneRetryableSendFailureZFree(ptr); } } internal static Result_NoneRetryableSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_NoneRetryableSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultNoneRetryableSendFailureZIsOk(ptr)) { return new Result_NoneRetryableSendFailureZ_OK(null, ptr); } else { return new Result_NoneRetryableSendFailureZ_Err(null, ptr); @@ -26,7 +26,7 @@ internal Result_NoneRetryableSendFailureZ_OK(object _dummy, long ptr) : base(_du public class Result_NoneRetryableSendFailureZ_Err : Result_NoneRetryableSendFailureZ { public readonly RetryableSendFailure err; internal Result_NoneRetryableSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_NoneRetryableSendFailureZ_get_err(ptr); + this.err = Bindings.CResultNoneRetryableSendFailureZGetErr(ptr); } } @@ -34,7 +34,7 @@ internal Result_NoneRetryableSendFailureZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_NoneRetryableSendFailureZ in the success state. */ public static Result_NoneRetryableSendFailureZ ok() { - long ret = bindings.CResult_NoneRetryableSendFailureZ_ok(); + long ret = Bindings.CResultNoneRetryableSendFailureZOk(); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneRetryableSendFailureZ ret_hu_conv = Result_NoneRetryableSendFailureZ.constr_from_ptr(ret); return ret_hu_conv; @@ -44,7 +44,7 @@ public static Result_NoneRetryableSendFailureZ ok() { * Creates a new CResult_NoneRetryableSendFailureZ in the error state. */ public static Result_NoneRetryableSendFailureZ err(RetryableSendFailure e) { - long ret = bindings.CResult_NoneRetryableSendFailureZ_err(e); + long ret = Bindings.CResultNoneRetryableSendFailureZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneRetryableSendFailureZ ret_hu_conv = Result_NoneRetryableSendFailureZ.constr_from_ptr(ret); @@ -55,13 +55,13 @@ public static Result_NoneRetryableSendFailureZ err(RetryableSendFailure e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_NoneRetryableSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultNoneRetryableSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_NoneRetryableSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultNoneRetryableSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -71,7 +71,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_NoneRetryableSendFailureZ clone() { - long ret = bindings.CResult_NoneRetryableSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultNoneRetryableSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneRetryableSendFailureZ ret_hu_conv = Result_NoneRetryableSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OfferBolt12ParseErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OfferBolt12ParseErrorZ.cs index 778fb0c22..44f5ce365 100644 --- a/c_sharp/src/org/ldk/structs/Result_OfferBolt12ParseErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OfferBolt12ParseErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OfferBolt12ParseErrorZ : CommonBase { Result_OfferBolt12ParseErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OfferBolt12ParseErrorZ() { - if (ptr != 0) { bindings.CResult_OfferBolt12ParseErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOfferBolt12ParseErrorZFree(ptr); } } internal static Result_OfferBolt12ParseErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OfferBolt12ParseErrorZ_is_ok(ptr)) { + if (Bindings.CResultOfferBolt12ParseErrorZIsOk(ptr)) { return new Result_OfferBolt12ParseErrorZ_OK(null, ptr); } else { return new Result_OfferBolt12ParseErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OfferBolt12ParseErrorZ constr_from_ptr(long ptr) { public class Result_OfferBolt12ParseErrorZ_OK : Result_OfferBolt12ParseErrorZ { public readonly Offer res; internal Result_OfferBolt12ParseErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OfferBolt12ParseErrorZ_get_ok(ptr); + long res = Bindings.CResultOfferBolt12ParseErrorZGetOk(ptr); org.ldk.structs.Offer res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Offer(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OfferBolt12ParseErrorZ_OK(object _dummy, long ptr) : base(_dummy public class Result_OfferBolt12ParseErrorZ_Err : Result_OfferBolt12ParseErrorZ { public readonly Bolt12ParseError err; internal Result_OfferBolt12ParseErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OfferBolt12ParseErrorZ_get_err(ptr); + long err = Bindings.CResultOfferBolt12ParseErrorZGetErr(ptr); org.ldk.structs.Bolt12ParseError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.Bolt12ParseError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OfferBolt12ParseErrorZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_OfferBolt12ParseErrorZ in the success state. */ public static Result_OfferBolt12ParseErrorZ ok(org.ldk.structs.Offer o) { - long ret = bindings.CResult_OfferBolt12ParseErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOfferBolt12ParseErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OfferBolt12ParseErrorZ ret_hu_conv = Result_OfferBolt12ParseErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OfferBolt12ParseErrorZ ok(org.ldk.structs.Offer o) { * Creates a new CResult_OfferBolt12ParseErrorZ in the error state. */ public static Result_OfferBolt12ParseErrorZ err(org.ldk.structs.Bolt12ParseError e) { - long ret = bindings.CResult_OfferBolt12ParseErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultOfferBolt12ParseErrorZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OfferBolt12ParseErrorZ ret_hu_conv = Result_OfferBolt12ParseErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OfferBolt12ParseErrorZ err(org.ldk.structs.Bolt12ParseError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OfferBolt12ParseErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOfferBolt12ParseErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OfferBolt12ParseErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOfferBolt12ParseErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OfferBolt12ParseErrorZ clone() { - long ret = bindings.CResult_OfferBolt12ParseErrorZ_clone(this.ptr); + long ret = Bindings.CResultOfferBolt12ParseErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OfferBolt12ParseErrorZ ret_hu_conv = Result_OfferBolt12ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OffersMessageDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OffersMessageDecodeErrorZ.cs index fc13b343d..847960995 100644 --- a/c_sharp/src/org/ldk/structs/Result_OffersMessageDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OffersMessageDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OffersMessageDecodeErrorZ : CommonBase { Result_OffersMessageDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OffersMessageDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OffersMessageDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOffersMessageDecodeErrorZFree(ptr); } } internal static Result_OffersMessageDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OffersMessageDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOffersMessageDecodeErrorZIsOk(ptr)) { return new Result_OffersMessageDecodeErrorZ_OK(null, ptr); } else { return new Result_OffersMessageDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OffersMessageDecodeErrorZ constr_from_ptr(long ptr) { public class Result_OffersMessageDecodeErrorZ_OK : Result_OffersMessageDecodeErrorZ { public readonly OffersMessage res; internal Result_OffersMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OffersMessageDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOffersMessageDecodeErrorZGetOk(ptr); org.ldk.structs.OffersMessage res_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OffersMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_OffersMessageDecodeErrorZ_Err : Result_OffersMessageDecodeErrorZ { public readonly DecodeError err; internal Result_OffersMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OffersMessageDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOffersMessageDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OffersMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_OffersMessageDecodeErrorZ in the success state. */ public static Result_OffersMessageDecodeErrorZ ok(org.ldk.structs.OffersMessage o) { - long ret = bindings.CResult_OffersMessageDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultOffersMessageDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OffersMessageDecodeErrorZ ret_hu_conv = Result_OffersMessageDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OffersMessageDecodeErrorZ ok(org.ldk.structs.OffersMessage * Creates a new CResult_OffersMessageDecodeErrorZ in the error state. */ public static Result_OffersMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OffersMessageDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOffersMessageDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OffersMessageDecodeErrorZ ret_hu_conv = Result_OffersMessageDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OffersMessageDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OffersMessageDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOffersMessageDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OffersMessageDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOffersMessageDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OffersMessageDecodeErrorZ clone() { - long ret = bindings.CResult_OffersMessageDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOffersMessageDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OffersMessageDecodeErrorZ ret_hu_conv = Result_OffersMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OnionMessageDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OnionMessageDecodeErrorZ.cs index 8dfa807cc..b0f9b43a7 100644 --- a/c_sharp/src/org/ldk/structs/Result_OnionMessageDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OnionMessageDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OnionMessageDecodeErrorZ : CommonBase { Result_OnionMessageDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OnionMessageDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OnionMessageDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOnionMessageDecodeErrorZFree(ptr); } } internal static Result_OnionMessageDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OnionMessageDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOnionMessageDecodeErrorZIsOk(ptr)) { return new Result_OnionMessageDecodeErrorZ_OK(null, ptr); } else { return new Result_OnionMessageDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OnionMessageDecodeErrorZ constr_from_ptr(long ptr) { public class Result_OnionMessageDecodeErrorZ_OK : Result_OnionMessageDecodeErrorZ { public readonly OnionMessage res; internal Result_OnionMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OnionMessageDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOnionMessageDecodeErrorZGetOk(ptr); org.ldk.structs.OnionMessage res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OnionMessage(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OnionMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_OnionMessageDecodeErrorZ_Err : Result_OnionMessageDecodeErrorZ { public readonly DecodeError err; internal Result_OnionMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OnionMessageDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOnionMessageDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OnionMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_OnionMessageDecodeErrorZ in the success state. */ public static Result_OnionMessageDecodeErrorZ ok(org.ldk.structs.OnionMessage o) { - long ret = bindings.CResult_OnionMessageDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOnionMessageDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessageDecodeErrorZ ret_hu_conv = Result_OnionMessageDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OnionMessageDecodeErrorZ ok(org.ldk.structs.OnionMessage o) * Creates a new CResult_OnionMessageDecodeErrorZ in the error state. */ public static Result_OnionMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OnionMessageDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOnionMessageDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessageDecodeErrorZ ret_hu_conv = Result_OnionMessageDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OnionMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OnionMessageDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOnionMessageDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OnionMessageDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOnionMessageDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OnionMessageDecodeErrorZ clone() { - long ret = bindings.CResult_OnionMessageDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOnionMessageDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessageDecodeErrorZ ret_hu_conv = Result_OnionMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OnionMessagePathNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_OnionMessagePathNoneZ.cs index c435f160f..1f91141dc 100644 --- a/c_sharp/src/org/ldk/structs/Result_OnionMessagePathNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OnionMessagePathNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OnionMessagePathNoneZ : CommonBase { Result_OnionMessagePathNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_OnionMessagePathNoneZ() { - if (ptr != 0) { bindings.CResult_OnionMessagePathNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOnionMessagePathNoneZFree(ptr); } } internal static Result_OnionMessagePathNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_OnionMessagePathNoneZ_is_ok(ptr)) { + if (Bindings.CResultOnionMessagePathNoneZIsOk(ptr)) { return new Result_OnionMessagePathNoneZ_OK(null, ptr); } else { return new Result_OnionMessagePathNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OnionMessagePathNoneZ constr_from_ptr(long ptr) { public class Result_OnionMessagePathNoneZ_OK : Result_OnionMessagePathNoneZ { public readonly OnionMessagePath res; internal Result_OnionMessagePathNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OnionMessagePathNoneZ_get_ok(ptr); + long res = Bindings.CResultOnionMessagePathNoneZGetOk(ptr); org.ldk.structs.OnionMessagePath res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OnionMessagePath(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_OnionMessagePathNoneZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_OnionMessagePathNoneZ in the success state. */ public static Result_OnionMessagePathNoneZ ok(org.ldk.structs.OnionMessagePath o) { - long ret = bindings.CResult_OnionMessagePathNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOnionMessagePathNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessagePathNoneZ ret_hu_conv = Result_OnionMessagePathNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_OnionMessagePathNoneZ ok(org.ldk.structs.OnionMessagePath o * Creates a new CResult_OnionMessagePathNoneZ in the error state. */ public static Result_OnionMessagePathNoneZ err() { - long ret = bindings.CResult_OnionMessagePathNoneZ_err(); + long ret = Bindings.CResultOnionMessagePathNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessagePathNoneZ ret_hu_conv = Result_OnionMessagePathNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_OnionMessagePathNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OnionMessagePathNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultOnionMessagePathNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OnionMessagePathNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOnionMessagePathNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OnionMessagePathNoneZ clone() { - long ret = bindings.CResult_OnionMessagePathNoneZ_clone(this.ptr); + long ret = Bindings.CResultOnionMessagePathNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionMessagePathNoneZ ret_hu_conv = Result_OnionMessagePathNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OnionPacketDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OnionPacketDecodeErrorZ.cs index d699ca0ae..276a71edc 100644 --- a/c_sharp/src/org/ldk/structs/Result_OnionPacketDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OnionPacketDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OnionPacketDecodeErrorZ : CommonBase { Result_OnionPacketDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OnionPacketDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OnionPacketDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOnionPacketDecodeErrorZFree(ptr); } } internal static Result_OnionPacketDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OnionPacketDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOnionPacketDecodeErrorZIsOk(ptr)) { return new Result_OnionPacketDecodeErrorZ_OK(null, ptr); } else { return new Result_OnionPacketDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OnionPacketDecodeErrorZ constr_from_ptr(long ptr) { public class Result_OnionPacketDecodeErrorZ_OK : Result_OnionPacketDecodeErrorZ { public readonly OnionPacket res; internal Result_OnionPacketDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OnionPacketDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOnionPacketDecodeErrorZGetOk(ptr); org.ldk.structs.OnionPacket res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OnionPacket(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OnionPacketDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_OnionPacketDecodeErrorZ_Err : Result_OnionPacketDecodeErrorZ { public readonly DecodeError err; internal Result_OnionPacketDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OnionPacketDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOnionPacketDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OnionPacketDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_OnionPacketDecodeErrorZ in the success state. */ public static Result_OnionPacketDecodeErrorZ ok(org.ldk.structs.OnionPacket o) { - long ret = bindings.CResult_OnionPacketDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOnionPacketDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionPacketDecodeErrorZ ret_hu_conv = Result_OnionPacketDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OnionPacketDecodeErrorZ ok(org.ldk.structs.OnionPacket o) { * Creates a new CResult_OnionPacketDecodeErrorZ in the error state. */ public static Result_OnionPacketDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OnionPacketDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOnionPacketDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionPacketDecodeErrorZ ret_hu_conv = Result_OnionPacketDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OnionPacketDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OnionPacketDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOnionPacketDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OnionPacketDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOnionPacketDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OnionPacketDecodeErrorZ clone() { - long ret = bindings.CResult_OnionPacketDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOnionPacketDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OnionPacketDecodeErrorZ ret_hu_conv = Result_OnionPacketDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OpenChannelDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OpenChannelDecodeErrorZ.cs index 955e37b67..619d56dc2 100644 --- a/c_sharp/src/org/ldk/structs/Result_OpenChannelDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OpenChannelDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OpenChannelDecodeErrorZ : CommonBase { Result_OpenChannelDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OpenChannelDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OpenChannelDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOpenChannelDecodeErrorZFree(ptr); } } internal static Result_OpenChannelDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OpenChannelDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOpenChannelDecodeErrorZIsOk(ptr)) { return new Result_OpenChannelDecodeErrorZ_OK(null, ptr); } else { return new Result_OpenChannelDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OpenChannelDecodeErrorZ constr_from_ptr(long ptr) { public class Result_OpenChannelDecodeErrorZ_OK : Result_OpenChannelDecodeErrorZ { public readonly OpenChannel res; internal Result_OpenChannelDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OpenChannelDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOpenChannelDecodeErrorZGetOk(ptr); org.ldk.structs.OpenChannel res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OpenChannel(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OpenChannelDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_OpenChannelDecodeErrorZ_Err : Result_OpenChannelDecodeErrorZ { public readonly DecodeError err; internal Result_OpenChannelDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OpenChannelDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOpenChannelDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OpenChannelDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_OpenChannelDecodeErrorZ in the success state. */ public static Result_OpenChannelDecodeErrorZ ok(org.ldk.structs.OpenChannel o) { - long ret = bindings.CResult_OpenChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOpenChannelDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OpenChannelDecodeErrorZ ok(org.ldk.structs.OpenChannel o) { * Creates a new CResult_OpenChannelDecodeErrorZ in the error state. */ public static Result_OpenChannelDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OpenChannelDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOpenChannelDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OpenChannelDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OpenChannelDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOpenChannelDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OpenChannelDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOpenChannelDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OpenChannelDecodeErrorZ clone() { - long ret = bindings.CResult_OpenChannelDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOpenChannelDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OpenChannelV2DecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OpenChannelV2DecodeErrorZ.cs index 10d7b4dc8..fff8bfd52 100644 --- a/c_sharp/src/org/ldk/structs/Result_OpenChannelV2DecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OpenChannelV2DecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OpenChannelV2DecodeErrorZ : CommonBase { Result_OpenChannelV2DecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OpenChannelV2DecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OpenChannelV2DecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOpenChannelV2DecodeErrorZFree(ptr); } } internal static Result_OpenChannelV2DecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OpenChannelV2DecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOpenChannelV2DecodeErrorZIsOk(ptr)) { return new Result_OpenChannelV2DecodeErrorZ_OK(null, ptr); } else { return new Result_OpenChannelV2DecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OpenChannelV2DecodeErrorZ constr_from_ptr(long ptr) { public class Result_OpenChannelV2DecodeErrorZ_OK : Result_OpenChannelV2DecodeErrorZ { public readonly OpenChannelV2 res; internal Result_OpenChannelV2DecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OpenChannelV2DecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOpenChannelV2DecodeErrorZGetOk(ptr); org.ldk.structs.OpenChannelV2 res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OpenChannelV2(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OpenChannelV2DecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_OpenChannelV2DecodeErrorZ_Err : Result_OpenChannelV2DecodeErrorZ { public readonly DecodeError err; internal Result_OpenChannelV2DecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OpenChannelV2DecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOpenChannelV2DecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OpenChannelV2DecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_OpenChannelV2DecodeErrorZ in the success state. */ public static Result_OpenChannelV2DecodeErrorZ ok(org.ldk.structs.OpenChannelV2 o) { - long ret = bindings.CResult_OpenChannelV2DecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOpenChannelV2DecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelV2DecodeErrorZ ret_hu_conv = Result_OpenChannelV2DecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OpenChannelV2DecodeErrorZ ok(org.ldk.structs.OpenChannelV2 * Creates a new CResult_OpenChannelV2DecodeErrorZ in the error state. */ public static Result_OpenChannelV2DecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OpenChannelV2DecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOpenChannelV2DecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelV2DecodeErrorZ ret_hu_conv = Result_OpenChannelV2DecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OpenChannelV2DecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OpenChannelV2DecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOpenChannelV2DecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OpenChannelV2DecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOpenChannelV2DecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OpenChannelV2DecodeErrorZ clone() { - long ret = bindings.CResult_OpenChannelV2DecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOpenChannelV2DecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OpenChannelV2DecodeErrorZ ret_hu_conv = Result_OpenChannelV2DecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_OutPointDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_OutPointDecodeErrorZ.cs index dac99c186..3fc9dc28f 100644 --- a/c_sharp/src/org/ldk/structs/Result_OutPointDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_OutPointDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_OutPointDecodeErrorZ : CommonBase { Result_OutPointDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_OutPointDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_OutPointDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultOutPointDecodeErrorZFree(ptr); } } internal static Result_OutPointDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_OutPointDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultOutPointDecodeErrorZIsOk(ptr)) { return new Result_OutPointDecodeErrorZ_OK(null, ptr); } else { return new Result_OutPointDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_OutPointDecodeErrorZ constr_from_ptr(long ptr) { public class Result_OutPointDecodeErrorZ_OK : Result_OutPointDecodeErrorZ { public readonly OutPoint res; internal Result_OutPointDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_OutPointDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultOutPointDecodeErrorZGetOk(ptr); org.ldk.structs.OutPoint res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.OutPoint(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_OutPointDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_OutPointDecodeErrorZ_Err : Result_OutPointDecodeErrorZ { public readonly DecodeError err; internal Result_OutPointDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_OutPointDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultOutPointDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_OutPointDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_OutPointDecodeErrorZ in the success state. */ public static Result_OutPointDecodeErrorZ ok(org.ldk.structs.OutPoint o) { - long ret = bindings.CResult_OutPointDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultOutPointDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_OutPointDecodeErrorZ ok(org.ldk.structs.OutPoint o) { * Creates a new CResult_OutPointDecodeErrorZ in the error state. */ public static Result_OutPointDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_OutPointDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultOutPointDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_OutPointDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_OutPointDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultOutPointDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_OutPointDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultOutPointDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_OutPointDecodeErrorZ clone() { - long ret = bindings.CResult_OutPointDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultOutPointDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.cs index e56a62c56..5886d8402 100644 --- a/c_sharp/src/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PayeePubKeySecp256k1ErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PayeePubKeySecp256k1ErrorZ : CommonBase { Result_PayeePubKeySecp256k1ErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PayeePubKeySecp256k1ErrorZ() { - if (ptr != 0) { bindings.CResult_PayeePubKeySecp256k1ErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPayeePubKeySecp256k1ErrorZFree(ptr); } } internal static Result_PayeePubKeySecp256k1ErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PayeePubKeySecp256k1ErrorZ_is_ok(ptr)) { + if (Bindings.CResultPayeePubKeySecp256k1ErrorZIsOk(ptr)) { return new Result_PayeePubKeySecp256k1ErrorZ_OK(null, ptr); } else { return new Result_PayeePubKeySecp256k1ErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PayeePubKeySecp256k1ErrorZ constr_from_ptr(long ptr) { public class Result_PayeePubKeySecp256k1ErrorZ_OK : Result_PayeePubKeySecp256k1ErrorZ { public readonly PayeePubKey res; internal Result_PayeePubKeySecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PayeePubKeySecp256k1ErrorZ_get_ok(ptr); + long res = Bindings.CResultPayeePubKeySecp256k1ErrorZGetOk(ptr); org.ldk.structs.PayeePubKey res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PayeePubKey(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PayeePubKeySecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_PayeePubKeySecp256k1ErrorZ_Err : Result_PayeePubKeySecp256k1ErrorZ { public readonly Secp256k1Error err; internal Result_PayeePubKeySecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_PayeePubKeySecp256k1ErrorZ_get_err(ptr); + this.err = Bindings.CResultPayeePubKeySecp256k1ErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_PayeePubKeySecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the success state. */ public static Result_PayeePubKeySecp256k1ErrorZ ok(org.ldk.structs.PayeePubKey o) { - long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPayeePubKeySecp256k1ErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_PayeePubKeySecp256k1ErrorZ ok(org.ldk.structs.PayeePubKey o * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the error state. */ public static Result_PayeePubKeySecp256k1ErrorZ err(Secp256k1Error e) { - long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_err(e); + long ret = Bindings.CResultPayeePubKeySecp256k1ErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_PayeePubKeySecp256k1ErrorZ err(Secp256k1Error e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPayeePubKeySecp256k1ErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPayeePubKeySecp256k1ErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PayeePubKeySecp256k1ErrorZ clone() { - long ret = bindings.CResult_PayeePubKeySecp256k1ErrorZ_clone(this.ptr); + long ret = Bindings.CResultPayeePubKeySecp256k1ErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PaymentConstraintsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PaymentConstraintsDecodeErrorZ.cs index fc1beb515..611d7f455 100644 --- a/c_sharp/src/org/ldk/structs/Result_PaymentConstraintsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PaymentConstraintsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PaymentConstraintsDecodeErrorZ : CommonBase { Result_PaymentConstraintsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PaymentConstraintsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PaymentConstraintsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPaymentConstraintsDecodeErrorZFree(ptr); } } internal static Result_PaymentConstraintsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PaymentConstraintsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPaymentConstraintsDecodeErrorZIsOk(ptr)) { return new Result_PaymentConstraintsDecodeErrorZ_OK(null, ptr); } else { return new Result_PaymentConstraintsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PaymentConstraintsDecodeErrorZ constr_from_ptr(long ptr) public class Result_PaymentConstraintsDecodeErrorZ_OK : Result_PaymentConstraintsDecodeErrorZ { public readonly PaymentConstraints res; internal Result_PaymentConstraintsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PaymentConstraintsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPaymentConstraintsDecodeErrorZGetOk(ptr); org.ldk.structs.PaymentConstraints res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PaymentConstraints(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PaymentConstraintsDecodeErrorZ_OK(object _dummy, long ptr) : bas public class Result_PaymentConstraintsDecodeErrorZ_Err : Result_PaymentConstraintsDecodeErrorZ { public readonly DecodeError err; internal Result_PaymentConstraintsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PaymentConstraintsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPaymentConstraintsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PaymentConstraintsDecodeErrorZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the success state. */ public static Result_PaymentConstraintsDecodeErrorZ ok(org.ldk.structs.PaymentConstraints o) { - long ret = bindings.CResult_PaymentConstraintsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPaymentConstraintsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentConstraintsDecodeErrorZ ret_hu_conv = Result_PaymentConstraintsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PaymentConstraintsDecodeErrorZ ok(org.ldk.structs.PaymentCo * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the error state. */ public static Result_PaymentConstraintsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PaymentConstraintsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPaymentConstraintsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentConstraintsDecodeErrorZ ret_hu_conv = Result_PaymentConstraintsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PaymentConstraintsDecodeErrorZ err(org.ldk.structs.DecodeEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PaymentConstraintsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPaymentConstraintsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPaymentConstraintsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PaymentConstraintsDecodeErrorZ clone() { - long ret = bindings.CResult_PaymentConstraintsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPaymentConstraintsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentConstraintsDecodeErrorZ ret_hu_conv = Result_PaymentConstraintsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PaymentFailureReasonDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PaymentFailureReasonDecodeErrorZ.cs index 433c819d1..307e956e6 100644 --- a/c_sharp/src/org/ldk/structs/Result_PaymentFailureReasonDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PaymentFailureReasonDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PaymentFailureReasonDecodeErrorZ : CommonBase { Result_PaymentFailureReasonDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PaymentFailureReasonDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PaymentFailureReasonDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPaymentFailureReasonDecodeErrorZFree(ptr); } } internal static Result_PaymentFailureReasonDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PaymentFailureReasonDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPaymentFailureReasonDecodeErrorZIsOk(ptr)) { return new Result_PaymentFailureReasonDecodeErrorZ_OK(null, ptr); } else { return new Result_PaymentFailureReasonDecodeErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_PaymentFailureReasonDecodeErrorZ constr_from_ptr(long ptr public class Result_PaymentFailureReasonDecodeErrorZ_OK : Result_PaymentFailureReasonDecodeErrorZ { public readonly PaymentFailureReason res; internal Result_PaymentFailureReasonDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_PaymentFailureReasonDecodeErrorZ_get_ok(ptr); + this.res = Bindings.CResultPaymentFailureReasonDecodeErrorZGetOk(ptr); } } public class Result_PaymentFailureReasonDecodeErrorZ_Err : Result_PaymentFailureReasonDecodeErrorZ { public readonly DecodeError err; internal Result_PaymentFailureReasonDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PaymentFailureReasonDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPaymentFailureReasonDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_PaymentFailureReasonDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_PaymentFailureReasonDecodeErrorZ in the success state. */ public static Result_PaymentFailureReasonDecodeErrorZ ok(PaymentFailureReason o) { - long ret = bindings.CResult_PaymentFailureReasonDecodeErrorZ_ok(o); + long ret = Bindings.CResultPaymentFailureReasonDecodeErrorZOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentFailureReasonDecodeErrorZ ret_hu_conv = Result_PaymentFailureReasonDecodeErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_PaymentFailureReasonDecodeErrorZ ok(PaymentFailureReason o) * Creates a new CResult_PaymentFailureReasonDecodeErrorZ in the error state. */ public static Result_PaymentFailureReasonDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PaymentFailureReasonDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPaymentFailureReasonDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentFailureReasonDecodeErrorZ ret_hu_conv = Result_PaymentFailureReasonDecodeErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_PaymentFailureReasonDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PaymentFailureReasonDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPaymentFailureReasonDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPaymentFailureReasonDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PaymentFailureReasonDecodeErrorZ clone() { - long ret = bindings.CResult_PaymentFailureReasonDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPaymentFailureReasonDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentFailureReasonDecodeErrorZ ret_hu_conv = Result_PaymentFailureReasonDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PaymentParametersDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PaymentParametersDecodeErrorZ.cs index 4d9eb90c8..83915f588 100644 --- a/c_sharp/src/org/ldk/structs/Result_PaymentParametersDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PaymentParametersDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PaymentParametersDecodeErrorZ : CommonBase { Result_PaymentParametersDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PaymentParametersDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PaymentParametersDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPaymentParametersDecodeErrorZFree(ptr); } } internal static Result_PaymentParametersDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PaymentParametersDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPaymentParametersDecodeErrorZIsOk(ptr)) { return new Result_PaymentParametersDecodeErrorZ_OK(null, ptr); } else { return new Result_PaymentParametersDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PaymentParametersDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PaymentParametersDecodeErrorZ_OK : Result_PaymentParametersDecodeErrorZ { public readonly PaymentParameters res; internal Result_PaymentParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PaymentParametersDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPaymentParametersDecodeErrorZGetOk(ptr); org.ldk.structs.PaymentParameters res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PaymentParameters(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PaymentParametersDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_PaymentParametersDecodeErrorZ_Err : Result_PaymentParametersDecodeErrorZ { public readonly DecodeError err; internal Result_PaymentParametersDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PaymentParametersDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPaymentParametersDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PaymentParametersDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_PaymentParametersDecodeErrorZ in the success state. */ public static Result_PaymentParametersDecodeErrorZ ok(org.ldk.structs.PaymentParameters o) { - long ret = bindings.CResult_PaymentParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPaymentParametersDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentParametersDecodeErrorZ ret_hu_conv = Result_PaymentParametersDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PaymentParametersDecodeErrorZ ok(org.ldk.structs.PaymentPar * Creates a new CResult_PaymentParametersDecodeErrorZ in the error state. */ public static Result_PaymentParametersDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PaymentParametersDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPaymentParametersDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentParametersDecodeErrorZ ret_hu_conv = Result_PaymentParametersDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PaymentParametersDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PaymentParametersDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPaymentParametersDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PaymentParametersDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPaymentParametersDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PaymentParametersDecodeErrorZ clone() { - long ret = bindings.CResult_PaymentParametersDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPaymentParametersDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentParametersDecodeErrorZ ret_hu_conv = Result_PaymentParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PaymentPurposeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PaymentPurposeDecodeErrorZ.cs index f4ab8b269..b04101d45 100644 --- a/c_sharp/src/org/ldk/structs/Result_PaymentPurposeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PaymentPurposeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PaymentPurposeDecodeErrorZ : CommonBase { Result_PaymentPurposeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PaymentPurposeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PaymentPurposeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPaymentPurposeDecodeErrorZFree(ptr); } } internal static Result_PaymentPurposeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PaymentPurposeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPaymentPurposeDecodeErrorZIsOk(ptr)) { return new Result_PaymentPurposeDecodeErrorZ_OK(null, ptr); } else { return new Result_PaymentPurposeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PaymentPurposeDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PaymentPurposeDecodeErrorZ_OK : Result_PaymentPurposeDecodeErrorZ { public readonly PaymentPurpose res; internal Result_PaymentPurposeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PaymentPurposeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPaymentPurposeDecodeErrorZGetOk(ptr); org.ldk.structs.PaymentPurpose res_hu_conv = org.ldk.structs.PaymentPurpose.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PaymentPurposeDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_PaymentPurposeDecodeErrorZ_Err : Result_PaymentPurposeDecodeErrorZ { public readonly DecodeError err; internal Result_PaymentPurposeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PaymentPurposeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPaymentPurposeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PaymentPurposeDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_PaymentPurposeDecodeErrorZ in the success state. */ public static Result_PaymentPurposeDecodeErrorZ ok(org.ldk.structs.PaymentPurpose o) { - long ret = bindings.CResult_PaymentPurposeDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultPaymentPurposeDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentPurposeDecodeErrorZ ret_hu_conv = Result_PaymentPurposeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PaymentPurposeDecodeErrorZ ok(org.ldk.structs.PaymentPurpos * Creates a new CResult_PaymentPurposeDecodeErrorZ in the error state. */ public static Result_PaymentPurposeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PaymentPurposeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPaymentPurposeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentPurposeDecodeErrorZ ret_hu_conv = Result_PaymentPurposeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PaymentPurposeDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PaymentPurposeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPaymentPurposeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PaymentPurposeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPaymentPurposeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PaymentPurposeDecodeErrorZ clone() { - long ret = bindings.CResult_PaymentPurposeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPaymentPurposeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentPurposeDecodeErrorZ ret_hu_conv = Result_PaymentPurposeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PaymentRelayDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PaymentRelayDecodeErrorZ.cs index fbc7f8727..bdc3ff1ad 100644 --- a/c_sharp/src/org/ldk/structs/Result_PaymentRelayDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PaymentRelayDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PaymentRelayDecodeErrorZ : CommonBase { Result_PaymentRelayDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PaymentRelayDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PaymentRelayDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPaymentRelayDecodeErrorZFree(ptr); } } internal static Result_PaymentRelayDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PaymentRelayDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPaymentRelayDecodeErrorZIsOk(ptr)) { return new Result_PaymentRelayDecodeErrorZ_OK(null, ptr); } else { return new Result_PaymentRelayDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PaymentRelayDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PaymentRelayDecodeErrorZ_OK : Result_PaymentRelayDecodeErrorZ { public readonly PaymentRelay res; internal Result_PaymentRelayDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PaymentRelayDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPaymentRelayDecodeErrorZGetOk(ptr); org.ldk.structs.PaymentRelay res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PaymentRelay(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PaymentRelayDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_PaymentRelayDecodeErrorZ_Err : Result_PaymentRelayDecodeErrorZ { public readonly DecodeError err; internal Result_PaymentRelayDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PaymentRelayDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPaymentRelayDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PaymentRelayDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_PaymentRelayDecodeErrorZ in the success state. */ public static Result_PaymentRelayDecodeErrorZ ok(org.ldk.structs.PaymentRelay o) { - long ret = bindings.CResult_PaymentRelayDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPaymentRelayDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentRelayDecodeErrorZ ret_hu_conv = Result_PaymentRelayDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PaymentRelayDecodeErrorZ ok(org.ldk.structs.PaymentRelay o) * Creates a new CResult_PaymentRelayDecodeErrorZ in the error state. */ public static Result_PaymentRelayDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PaymentRelayDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPaymentRelayDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentRelayDecodeErrorZ ret_hu_conv = Result_PaymentRelayDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PaymentRelayDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PaymentRelayDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPaymentRelayDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PaymentRelayDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPaymentRelayDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PaymentRelayDecodeErrorZ clone() { - long ret = bindings.CResult_PaymentRelayDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPaymentRelayDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PaymentRelayDecodeErrorZ ret_hu_conv = Result_PaymentRelayDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PeeledOnionNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_PeeledOnionNoneZ.cs index 176dd41e4..6a0fd1bdc 100644 --- a/c_sharp/src/org/ldk/structs/Result_PeeledOnionNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PeeledOnionNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PeeledOnionNoneZ : CommonBase { Result_PeeledOnionNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_PeeledOnionNoneZ() { - if (ptr != 0) { bindings.CResult_PeeledOnionNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPeeledOnionNoneZFree(ptr); } } internal static Result_PeeledOnionNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_PeeledOnionNoneZ_is_ok(ptr)) { + if (Bindings.CResultPeeledOnionNoneZIsOk(ptr)) { return new Result_PeeledOnionNoneZ_OK(null, ptr); } else { return new Result_PeeledOnionNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PeeledOnionNoneZ constr_from_ptr(long ptr) { public class Result_PeeledOnionNoneZ_OK : Result_PeeledOnionNoneZ { public readonly PeeledOnion res; internal Result_PeeledOnionNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PeeledOnionNoneZ_get_ok(ptr); + long res = Bindings.CResultPeeledOnionNoneZGetOk(ptr); org.ldk.structs.PeeledOnion res_hu_conv = org.ldk.structs.PeeledOnion.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_PeeledOnionNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_PeeledOnionNoneZ in the success state. */ public static Result_PeeledOnionNoneZ ok(org.ldk.structs.PeeledOnion o) { - long ret = bindings.CResult_PeeledOnionNoneZ_ok(o.ptr); + long ret = Bindings.CResultPeeledOnionNoneZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PeeledOnionNoneZ ret_hu_conv = Result_PeeledOnionNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_PeeledOnionNoneZ ok(org.ldk.structs.PeeledOnion o) { * Creates a new CResult_PeeledOnionNoneZ in the error state. */ public static Result_PeeledOnionNoneZ err() { - long ret = bindings.CResult_PeeledOnionNoneZ_err(); + long ret = Bindings.CResultPeeledOnionNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_PeeledOnionNoneZ ret_hu_conv = Result_PeeledOnionNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,7 +59,7 @@ public static Result_PeeledOnionNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PeeledOnionNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultPeeledOnionNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoDecodeErrorZ.cs index 4601eb89d..95277870b 100644 --- a/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PendingHTLCInfoDecodeErrorZ : CommonBase { Result_PendingHTLCInfoDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PendingHTLCInfoDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PendingHTLCInfoDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPendingHTLCInfoDecodeErrorZFree(ptr); } } internal static Result_PendingHTLCInfoDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PendingHTLCInfoDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPendingHTLCInfoDecodeErrorZIsOk(ptr)) { return new Result_PendingHTLCInfoDecodeErrorZ_OK(null, ptr); } else { return new Result_PendingHTLCInfoDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PendingHTLCInfoDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PendingHTLCInfoDecodeErrorZ_OK : Result_PendingHTLCInfoDecodeErrorZ { public readonly PendingHTLCInfo res; internal Result_PendingHTLCInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PendingHTLCInfoDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPendingHTLCInfoDecodeErrorZGetOk(ptr); org.ldk.structs.PendingHTLCInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PendingHTLCInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PendingHTLCInfoDecodeErrorZ_OK(object _dummy, long ptr) : base(_ public class Result_PendingHTLCInfoDecodeErrorZ_Err : Result_PendingHTLCInfoDecodeErrorZ { public readonly DecodeError err; internal Result_PendingHTLCInfoDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PendingHTLCInfoDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPendingHTLCInfoDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PendingHTLCInfoDecodeErrorZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_PendingHTLCInfoDecodeErrorZ in the success state. */ public static Result_PendingHTLCInfoDecodeErrorZ ok(org.ldk.structs.PendingHTLCInfo o) { - long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPendingHTLCInfoDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCInfoDecodeErrorZ ret_hu_conv = Result_PendingHTLCInfoDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PendingHTLCInfoDecodeErrorZ ok(org.ldk.structs.PendingHTLCI * Creates a new CResult_PendingHTLCInfoDecodeErrorZ in the error state. */ public static Result_PendingHTLCInfoDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPendingHTLCInfoDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCInfoDecodeErrorZ ret_hu_conv = Result_PendingHTLCInfoDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PendingHTLCInfoDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPendingHTLCInfoDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPendingHTLCInfoDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PendingHTLCInfoDecodeErrorZ clone() { - long ret = bindings.CResult_PendingHTLCInfoDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPendingHTLCInfoDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCInfoDecodeErrorZ ret_hu_conv = Result_PendingHTLCInfoDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoInboundHTLCErrZ.cs b/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoInboundHTLCErrZ.cs index 5b179ad20..f66b1fe0a 100644 --- a/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoInboundHTLCErrZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PendingHTLCInfoInboundHTLCErrZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PendingHTLCInfoInboundHTLCErrZ : CommonBase { Result_PendingHTLCInfoInboundHTLCErrZ(object _dummy, long ptr) : base(ptr) { } ~Result_PendingHTLCInfoInboundHTLCErrZ() { - if (ptr != 0) { bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPendingHTLCInfoInboundHTLCErrZFree(ptr); } } internal static Result_PendingHTLCInfoInboundHTLCErrZ constr_from_ptr(long ptr) { - if (bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(ptr)) { + if (Bindings.CResultPendingHTLCInfoInboundHTLCErrZIsOk(ptr)) { return new Result_PendingHTLCInfoInboundHTLCErrZ_OK(null, ptr); } else { return new Result_PendingHTLCInfoInboundHTLCErrZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PendingHTLCInfoInboundHTLCErrZ constr_from_ptr(long ptr) public class Result_PendingHTLCInfoInboundHTLCErrZ_OK : Result_PendingHTLCInfoInboundHTLCErrZ { public readonly PendingHTLCInfo res; internal Result_PendingHTLCInfoInboundHTLCErrZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(ptr); + long res = Bindings.CResultPendingHTLCInfoInboundHTLCErrZGetOk(ptr); org.ldk.structs.PendingHTLCInfo res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PendingHTLCInfo(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PendingHTLCInfoInboundHTLCErrZ_OK(object _dummy, long ptr) : bas public class Result_PendingHTLCInfoInboundHTLCErrZ_Err : Result_PendingHTLCInfoInboundHTLCErrZ { public readonly InboundHTLCErr err; internal Result_PendingHTLCInfoInboundHTLCErrZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(ptr); + long err = Bindings.CResultPendingHTLCInfoInboundHTLCErrZGetErr(ptr); org.ldk.structs.InboundHTLCErr err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.InboundHTLCErr(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PendingHTLCInfoInboundHTLCErrZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_PendingHTLCInfoInboundHTLCErrZ in the success state. */ public static Result_PendingHTLCInfoInboundHTLCErrZ ok(org.ldk.structs.PendingHTLCInfo o) { - long ret = bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPendingHTLCInfoInboundHTLCErrZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCInfoInboundHTLCErrZ ret_hu_conv = Result_PendingHTLCInfoInboundHTLCErrZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PendingHTLCInfoInboundHTLCErrZ ok(org.ldk.structs.PendingHT * Creates a new CResult_PendingHTLCInfoInboundHTLCErrZ in the error state. */ public static Result_PendingHTLCInfoInboundHTLCErrZ err(short e_err_code_arg, byte[] e_err_data_arg, string e_msg_arg) { - long ret = bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_err(bindings.InboundHTLCErr_new(e_err_code_arg, InternalUtils.encodeUint8Array(e_err_data_arg), InternalUtils.encodeString(e_msg_arg))); + long ret = Bindings.CResultPendingHTLCInfoInboundHTLCErrZErr(Bindings.InboundHTLCErrNew(e_err_code_arg, InternalUtils.EncodeUint8Array(e_err_data_arg), InternalUtils.EncodeString(e_msg_arg))); GC.KeepAlive(e_err_code_arg); GC.KeepAlive(e_err_data_arg); GC.KeepAlive(e_msg_arg); @@ -69,7 +69,7 @@ public static Result_PendingHTLCInfoInboundHTLCErrZ err(short e_err_code_arg, by * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(this.ptr); + bool ret = Bindings.CResultPendingHTLCInfoInboundHTLCErrZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_PendingHTLCRoutingDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PendingHTLCRoutingDecodeErrorZ.cs index e4527a21d..32b28598c 100644 --- a/c_sharp/src/org/ldk/structs/Result_PendingHTLCRoutingDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PendingHTLCRoutingDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PendingHTLCRoutingDecodeErrorZ : CommonBase { Result_PendingHTLCRoutingDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PendingHTLCRoutingDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PendingHTLCRoutingDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPendingHTLCRoutingDecodeErrorZFree(ptr); } } internal static Result_PendingHTLCRoutingDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPendingHTLCRoutingDecodeErrorZIsOk(ptr)) { return new Result_PendingHTLCRoutingDecodeErrorZ_OK(null, ptr); } else { return new Result_PendingHTLCRoutingDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PendingHTLCRoutingDecodeErrorZ constr_from_ptr(long ptr) public class Result_PendingHTLCRoutingDecodeErrorZ_OK : Result_PendingHTLCRoutingDecodeErrorZ { public readonly PendingHTLCRouting res; internal Result_PendingHTLCRoutingDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPendingHTLCRoutingDecodeErrorZGetOk(ptr); org.ldk.structs.PendingHTLCRouting res_hu_conv = org.ldk.structs.PendingHTLCRouting.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PendingHTLCRoutingDecodeErrorZ_OK(object _dummy, long ptr) : bas public class Result_PendingHTLCRoutingDecodeErrorZ_Err : Result_PendingHTLCRoutingDecodeErrorZ { public readonly DecodeError err; internal Result_PendingHTLCRoutingDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPendingHTLCRoutingDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PendingHTLCRoutingDecodeErrorZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_PendingHTLCRoutingDecodeErrorZ in the success state. */ public static Result_PendingHTLCRoutingDecodeErrorZ ok(org.ldk.structs.PendingHTLCRouting o) { - long ret = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultPendingHTLCRoutingDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCRoutingDecodeErrorZ ret_hu_conv = Result_PendingHTLCRoutingDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PendingHTLCRoutingDecodeErrorZ ok(org.ldk.structs.PendingHT * Creates a new CResult_PendingHTLCRoutingDecodeErrorZ in the error state. */ public static Result_PendingHTLCRoutingDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPendingHTLCRoutingDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCRoutingDecodeErrorZ ret_hu_conv = Result_PendingHTLCRoutingDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PendingHTLCRoutingDecodeErrorZ err(org.ldk.structs.DecodeEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPendingHTLCRoutingDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPendingHTLCRoutingDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PendingHTLCRoutingDecodeErrorZ clone() { - long ret = bindings.CResult_PendingHTLCRoutingDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPendingHTLCRoutingDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PendingHTLCRoutingDecodeErrorZ ret_hu_conv = Result_PendingHTLCRoutingDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PhantomRouteHintsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PhantomRouteHintsDecodeErrorZ.cs index 3999a2cae..26bca7e67 100644 --- a/c_sharp/src/org/ldk/structs/Result_PhantomRouteHintsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PhantomRouteHintsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PhantomRouteHintsDecodeErrorZ : CommonBase { Result_PhantomRouteHintsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PhantomRouteHintsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PhantomRouteHintsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPhantomRouteHintsDecodeErrorZFree(ptr); } } internal static Result_PhantomRouteHintsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PhantomRouteHintsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPhantomRouteHintsDecodeErrorZIsOk(ptr)) { return new Result_PhantomRouteHintsDecodeErrorZ_OK(null, ptr); } else { return new Result_PhantomRouteHintsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PhantomRouteHintsDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PhantomRouteHintsDecodeErrorZ_OK : Result_PhantomRouteHintsDecodeErrorZ { public readonly PhantomRouteHints res; internal Result_PhantomRouteHintsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PhantomRouteHintsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPhantomRouteHintsDecodeErrorZGetOk(ptr); org.ldk.structs.PhantomRouteHints res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PhantomRouteHints(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PhantomRouteHintsDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_PhantomRouteHintsDecodeErrorZ_Err : Result_PhantomRouteHintsDecodeErrorZ { public readonly DecodeError err; internal Result_PhantomRouteHintsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PhantomRouteHintsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPhantomRouteHintsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PhantomRouteHintsDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_PhantomRouteHintsDecodeErrorZ in the success state. */ public static Result_PhantomRouteHintsDecodeErrorZ ok(org.ldk.structs.PhantomRouteHints o) { - long ret = bindings.CResult_PhantomRouteHintsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPhantomRouteHintsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PhantomRouteHintsDecodeErrorZ ret_hu_conv = Result_PhantomRouteHintsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PhantomRouteHintsDecodeErrorZ ok(org.ldk.structs.PhantomRou * Creates a new CResult_PhantomRouteHintsDecodeErrorZ in the error state. */ public static Result_PhantomRouteHintsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PhantomRouteHintsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPhantomRouteHintsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PhantomRouteHintsDecodeErrorZ ret_hu_conv = Result_PhantomRouteHintsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PhantomRouteHintsDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PhantomRouteHintsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPhantomRouteHintsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPhantomRouteHintsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PhantomRouteHintsDecodeErrorZ clone() { - long ret = bindings.CResult_PhantomRouteHintsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPhantomRouteHintsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PhantomRouteHintsDecodeErrorZ ret_hu_conv = Result_PhantomRouteHintsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PingDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PingDecodeErrorZ.cs index 5fb56b9de..9e5610fce 100644 --- a/c_sharp/src/org/ldk/structs/Result_PingDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PingDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PingDecodeErrorZ : CommonBase { Result_PingDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PingDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PingDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPingDecodeErrorZFree(ptr); } } internal static Result_PingDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PingDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPingDecodeErrorZIsOk(ptr)) { return new Result_PingDecodeErrorZ_OK(null, ptr); } else { return new Result_PingDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PingDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PingDecodeErrorZ_OK : Result_PingDecodeErrorZ { public readonly Ping res; internal Result_PingDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PingDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPingDecodeErrorZGetOk(ptr); org.ldk.structs.Ping res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Ping(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PingDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) public class Result_PingDecodeErrorZ_Err : Result_PingDecodeErrorZ { public readonly DecodeError err; internal Result_PingDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PingDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPingDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PingDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_PingDecodeErrorZ in the success state. */ public static Result_PingDecodeErrorZ ok(org.ldk.structs.Ping o) { - long ret = bindings.CResult_PingDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPingDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PingDecodeErrorZ ok(org.ldk.structs.Ping o) { * Creates a new CResult_PingDecodeErrorZ in the error state. */ public static Result_PingDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PingDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPingDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PingDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PingDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPingDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PingDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPingDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PingDecodeErrorZ clone() { - long ret = bindings.CResult_PingDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPingDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PongDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PongDecodeErrorZ.cs index 0775c3106..bd1cd46f2 100644 --- a/c_sharp/src/org/ldk/structs/Result_PongDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PongDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PongDecodeErrorZ : CommonBase { Result_PongDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PongDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_PongDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPongDecodeErrorZFree(ptr); } } internal static Result_PongDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PongDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultPongDecodeErrorZIsOk(ptr)) { return new Result_PongDecodeErrorZ_OK(null, ptr); } else { return new Result_PongDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PongDecodeErrorZ constr_from_ptr(long ptr) { public class Result_PongDecodeErrorZ_OK : Result_PongDecodeErrorZ { public readonly Pong res; internal Result_PongDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PongDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultPongDecodeErrorZGetOk(ptr); org.ldk.structs.Pong res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Pong(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PongDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) public class Result_PongDecodeErrorZ_Err : Result_PongDecodeErrorZ { public readonly DecodeError err; internal Result_PongDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_PongDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultPongDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_PongDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_PongDecodeErrorZ in the success state. */ public static Result_PongDecodeErrorZ ok(org.ldk.structs.Pong o) { - long ret = bindings.CResult_PongDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPongDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_PongDecodeErrorZ ok(org.ldk.structs.Pong o) { * Creates a new CResult_PongDecodeErrorZ in the error state. */ public static Result_PongDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_PongDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultPongDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_PongDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PongDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPongDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PongDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPongDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PongDecodeErrorZ clone() { - long ret = bindings.CResult_PongDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultPongDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PositiveTimestampCreationErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PositiveTimestampCreationErrorZ.cs index 7093924b4..04ca32e03 100644 --- a/c_sharp/src/org/ldk/structs/Result_PositiveTimestampCreationErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PositiveTimestampCreationErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PositiveTimestampCreationErrorZ : CommonBase { Result_PositiveTimestampCreationErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PositiveTimestampCreationErrorZ() { - if (ptr != 0) { bindings.CResult_PositiveTimestampCreationErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPositiveTimestampCreationErrorZFree(ptr); } } internal static Result_PositiveTimestampCreationErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PositiveTimestampCreationErrorZ_is_ok(ptr)) { + if (Bindings.CResultPositiveTimestampCreationErrorZIsOk(ptr)) { return new Result_PositiveTimestampCreationErrorZ_OK(null, ptr); } else { return new Result_PositiveTimestampCreationErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PositiveTimestampCreationErrorZ constr_from_ptr(long ptr) public class Result_PositiveTimestampCreationErrorZ_OK : Result_PositiveTimestampCreationErrorZ { public readonly PositiveTimestamp res; internal Result_PositiveTimestampCreationErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PositiveTimestampCreationErrorZ_get_ok(ptr); + long res = Bindings.CResultPositiveTimestampCreationErrorZGetOk(ptr); org.ldk.structs.PositiveTimestamp res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PositiveTimestamp(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PositiveTimestampCreationErrorZ_OK(object _dummy, long ptr) : ba public class Result_PositiveTimestampCreationErrorZ_Err : Result_PositiveTimestampCreationErrorZ { public readonly CreationError err; internal Result_PositiveTimestampCreationErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_PositiveTimestampCreationErrorZ_get_err(ptr); + this.err = Bindings.CResultPositiveTimestampCreationErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_PositiveTimestampCreationErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_PositiveTimestampCreationErrorZ in the success state. */ public static Result_PositiveTimestampCreationErrorZ ok(org.ldk.structs.PositiveTimestamp o) { - long ret = bindings.CResult_PositiveTimestampCreationErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPositiveTimestampCreationErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_PositiveTimestampCreationErrorZ ok(org.ldk.structs.Positive * Creates a new CResult_PositiveTimestampCreationErrorZ in the error state. */ public static Result_PositiveTimestampCreationErrorZ err(CreationError e) { - long ret = bindings.CResult_PositiveTimestampCreationErrorZ_err(e); + long ret = Bindings.CResultPositiveTimestampCreationErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_PositiveTimestampCreationErrorZ err(CreationError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PositiveTimestampCreationErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPositiveTimestampCreationErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PositiveTimestampCreationErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPositiveTimestampCreationErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PositiveTimestampCreationErrorZ clone() { - long ret = bindings.CResult_PositiveTimestampCreationErrorZ_clone(this.ptr); + long ret = Bindings.CResultPositiveTimestampCreationErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PrivateRouteCreationErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PrivateRouteCreationErrorZ.cs index 929e63a73..4c15c688f 100644 --- a/c_sharp/src/org/ldk/structs/Result_PrivateRouteCreationErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PrivateRouteCreationErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PrivateRouteCreationErrorZ : CommonBase { Result_PrivateRouteCreationErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PrivateRouteCreationErrorZ() { - if (ptr != 0) { bindings.CResult_PrivateRouteCreationErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPrivateRouteCreationErrorZFree(ptr); } } internal static Result_PrivateRouteCreationErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PrivateRouteCreationErrorZ_is_ok(ptr)) { + if (Bindings.CResultPrivateRouteCreationErrorZIsOk(ptr)) { return new Result_PrivateRouteCreationErrorZ_OK(null, ptr); } else { return new Result_PrivateRouteCreationErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_PrivateRouteCreationErrorZ constr_from_ptr(long ptr) { public class Result_PrivateRouteCreationErrorZ_OK : Result_PrivateRouteCreationErrorZ { public readonly PrivateRoute res; internal Result_PrivateRouteCreationErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PrivateRouteCreationErrorZ_get_ok(ptr); + long res = Bindings.CResultPrivateRouteCreationErrorZGetOk(ptr); org.ldk.structs.PrivateRoute res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.PrivateRoute(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_PrivateRouteCreationErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_PrivateRouteCreationErrorZ_Err : Result_PrivateRouteCreationErrorZ { public readonly CreationError err; internal Result_PrivateRouteCreationErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_PrivateRouteCreationErrorZ_get_err(ptr); + this.err = Bindings.CResultPrivateRouteCreationErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_PrivateRouteCreationErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_PrivateRouteCreationErrorZ in the success state. */ public static Result_PrivateRouteCreationErrorZ ok(org.ldk.structs.PrivateRoute o) { - long ret = bindings.CResult_PrivateRouteCreationErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultPrivateRouteCreationErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_PrivateRouteCreationErrorZ ok(org.ldk.structs.PrivateRoute * Creates a new CResult_PrivateRouteCreationErrorZ in the error state. */ public static Result_PrivateRouteCreationErrorZ err(CreationError e) { - long ret = bindings.CResult_PrivateRouteCreationErrorZ_err(e); + long ret = Bindings.CResultPrivateRouteCreationErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_PrivateRouteCreationErrorZ err(CreationError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PrivateRouteCreationErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPrivateRouteCreationErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PrivateRouteCreationErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPrivateRouteCreationErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PrivateRouteCreationErrorZ clone() { - long ret = bindings.CResult_PrivateRouteCreationErrorZ_clone(this.ptr); + long ret = Bindings.CResultPrivateRouteCreationErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ProbabilisticScorerDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ProbabilisticScorerDecodeErrorZ.cs index 2bed5dd27..c1f8b0ef4 100644 --- a/c_sharp/src/org/ldk/structs/Result_ProbabilisticScorerDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ProbabilisticScorerDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ProbabilisticScorerDecodeErrorZ : CommonBase { Result_ProbabilisticScorerDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ProbabilisticScorerDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ProbabilisticScorerDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultProbabilisticScorerDecodeErrorZFree(ptr); } } internal static Result_ProbabilisticScorerDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ProbabilisticScorerDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultProbabilisticScorerDecodeErrorZIsOk(ptr)) { return new Result_ProbabilisticScorerDecodeErrorZ_OK(null, ptr); } else { return new Result_ProbabilisticScorerDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ProbabilisticScorerDecodeErrorZ constr_from_ptr(long ptr) public class Result_ProbabilisticScorerDecodeErrorZ_OK : Result_ProbabilisticScorerDecodeErrorZ { public readonly ProbabilisticScorer res; internal Result_ProbabilisticScorerDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ProbabilisticScorerDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultProbabilisticScorerDecodeErrorZGetOk(ptr); org.ldk.structs.ProbabilisticScorer res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ProbabilisticScorer(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ProbabilisticScorerDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_ProbabilisticScorerDecodeErrorZ_Err : Result_ProbabilisticScorerDecodeErrorZ { public readonly DecodeError err; internal Result_ProbabilisticScorerDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ProbabilisticScorerDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultProbabilisticScorerDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ProbabilisticScorerDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_ProbabilisticScorerDecodeErrorZ in the success state. */ public static Result_ProbabilisticScorerDecodeErrorZ ok(ProbabilisticScoringDecayParameters o_decay_params, NetworkGraph o_network_graph, Logger o_logger) { - long ret = bindings.CResult_ProbabilisticScorerDecodeErrorZ_ok(bindings.ProbabilisticScorer_new(o_decay_params == null ? 0 : o_decay_params.ptr, o_network_graph == null ? 0 : o_network_graph.ptr, o_logger.ptr)); + long ret = Bindings.CResultProbabilisticScorerDecodeErrorZOk(Bindings.ProbabilisticScorerNew(o_decay_params == null ? 0 : o_decay_params.ptr, o_network_graph == null ? 0 : o_network_graph.ptr, o_logger.ptr)); GC.KeepAlive(o_decay_params); GC.KeepAlive(o_network_graph); GC.KeepAlive(o_logger); @@ -58,7 +58,7 @@ public static Result_ProbabilisticScorerDecodeErrorZ ok(ProbabilisticScoringDeca * Creates a new CResult_ProbabilisticScorerDecodeErrorZ in the error state. */ public static Result_ProbabilisticScorerDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ProbabilisticScorerDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultProbabilisticScorerDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ProbabilisticScorerDecodeErrorZ ret_hu_conv = Result_ProbabilisticScorerDecodeErrorZ.constr_from_ptr(ret); @@ -70,7 +70,7 @@ public static Result_ProbabilisticScorerDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ProbabilisticScorerDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultProbabilisticScorerDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_PublicKeyNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_PublicKeyNoneZ.cs index 709b856ac..05d1aae64 100644 --- a/c_sharp/src/org/ldk/structs/Result_PublicKeyNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PublicKeyNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PublicKeyNoneZ : CommonBase { Result_PublicKeyNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_PublicKeyNoneZ() { - if (ptr != 0) { bindings.CResult_PublicKeyNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPublicKeyNoneZFree(ptr); } } internal static Result_PublicKeyNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_PublicKeyNoneZ_is_ok(ptr)) { + if (Bindings.CResultPublicKeyNoneZIsOk(ptr)) { return new Result_PublicKeyNoneZ_OK(null, ptr); } else { return new Result_PublicKeyNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_PublicKeyNoneZ constr_from_ptr(long ptr) { public class Result_PublicKeyNoneZ_OK : Result_PublicKeyNoneZ { public readonly byte[] res; internal Result_PublicKeyNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PublicKeyNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultPublicKeyNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_PublicKeyNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr) * Creates a new CResult_PublicKeyNoneZ in the success state. */ public static Result_PublicKeyNoneZ ok(byte[] o) { - long ret = bindings.CResult_PublicKeyNoneZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 33))); + long ret = Bindings.CResultPublicKeyNoneZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 33))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeyNoneZ ret_hu_conv = Result_PublicKeyNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_PublicKeyNoneZ ok(byte[] o) { * Creates a new CResult_PublicKeyNoneZ in the error state. */ public static Result_PublicKeyNoneZ err() { - long ret = bindings.CResult_PublicKeyNoneZ_err(); + long ret = Bindings.CResultPublicKeyNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeyNoneZ ret_hu_conv = Result_PublicKeyNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_PublicKeyNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PublicKeyNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultPublicKeyNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PublicKeyNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPublicKeyNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PublicKeyNoneZ clone() { - long ret = bindings.CResult_PublicKeyNoneZ_clone(this.ptr); + long ret = Bindings.CResultPublicKeyNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeyNoneZ ret_hu_conv = Result_PublicKeyNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_PublicKeySecp256k1ErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_PublicKeySecp256k1ErrorZ.cs index 3ad8879c2..62b253100 100644 --- a/c_sharp/src/org/ldk/structs/Result_PublicKeySecp256k1ErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_PublicKeySecp256k1ErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_PublicKeySecp256k1ErrorZ : CommonBase { Result_PublicKeySecp256k1ErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_PublicKeySecp256k1ErrorZ() { - if (ptr != 0) { bindings.CResult_PublicKeySecp256k1ErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultPublicKeySecp256k1ErrorZFree(ptr); } } internal static Result_PublicKeySecp256k1ErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_PublicKeySecp256k1ErrorZ_is_ok(ptr)) { + if (Bindings.CResultPublicKeySecp256k1ErrorZIsOk(ptr)) { return new Result_PublicKeySecp256k1ErrorZ_OK(null, ptr); } else { return new Result_PublicKeySecp256k1ErrorZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_PublicKeySecp256k1ErrorZ constr_from_ptr(long ptr) { public class Result_PublicKeySecp256k1ErrorZ_OK : Result_PublicKeySecp256k1ErrorZ { public readonly byte[] res; internal Result_PublicKeySecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_PublicKeySecp256k1ErrorZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultPublicKeySecp256k1ErrorZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_PublicKeySecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_PublicKeySecp256k1ErrorZ_Err : Result_PublicKeySecp256k1ErrorZ { public readonly Secp256k1Error err; internal Result_PublicKeySecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_PublicKeySecp256k1ErrorZ_get_err(ptr); + this.err = Bindings.CResultPublicKeySecp256k1ErrorZGetErr(ptr); } } @@ -38,7 +38,7 @@ internal Result_PublicKeySecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_PublicKeySecp256k1ErrorZ in the success state. */ public static Result_PublicKeySecp256k1ErrorZ ok(byte[] o) { - long ret = bindings.CResult_PublicKeySecp256k1ErrorZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 33))); + long ret = Bindings.CResultPublicKeySecp256k1ErrorZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 33))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeySecp256k1ErrorZ ret_hu_conv = Result_PublicKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_PublicKeySecp256k1ErrorZ ok(byte[] o) { * Creates a new CResult_PublicKeySecp256k1ErrorZ in the error state. */ public static Result_PublicKeySecp256k1ErrorZ err(Secp256k1Error e) { - long ret = bindings.CResult_PublicKeySecp256k1ErrorZ_err(e); + long ret = Bindings.CResultPublicKeySecp256k1ErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeySecp256k1ErrorZ ret_hu_conv = Result_PublicKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -60,13 +60,13 @@ public static Result_PublicKeySecp256k1ErrorZ err(Secp256k1Error e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_PublicKeySecp256k1ErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultPublicKeySecp256k1ErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_PublicKeySecp256k1ErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultPublicKeySecp256k1ErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_PublicKeySecp256k1ErrorZ clone() { - long ret = bindings.CResult_PublicKeySecp256k1ErrorZ_clone(this.ptr); + long ret = Bindings.CResultPublicKeySecp256k1ErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PublicKeySecp256k1ErrorZ ret_hu_conv = Result_PublicKeySecp256k1ErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_QueryChannelRangeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_QueryChannelRangeDecodeErrorZ.cs index e11861079..c7b8ed0c4 100644 --- a/c_sharp/src/org/ldk/structs/Result_QueryChannelRangeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_QueryChannelRangeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_QueryChannelRangeDecodeErrorZ : CommonBase { Result_QueryChannelRangeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_QueryChannelRangeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_QueryChannelRangeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultQueryChannelRangeDecodeErrorZFree(ptr); } } internal static Result_QueryChannelRangeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_QueryChannelRangeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultQueryChannelRangeDecodeErrorZIsOk(ptr)) { return new Result_QueryChannelRangeDecodeErrorZ_OK(null, ptr); } else { return new Result_QueryChannelRangeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_QueryChannelRangeDecodeErrorZ constr_from_ptr(long ptr) { public class Result_QueryChannelRangeDecodeErrorZ_OK : Result_QueryChannelRangeDecodeErrorZ { public readonly QueryChannelRange res; internal Result_QueryChannelRangeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_QueryChannelRangeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultQueryChannelRangeDecodeErrorZGetOk(ptr); org.ldk.structs.QueryChannelRange res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.QueryChannelRange(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_QueryChannelRangeDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_QueryChannelRangeDecodeErrorZ_Err : Result_QueryChannelRangeDecodeErrorZ { public readonly DecodeError err; internal Result_QueryChannelRangeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_QueryChannelRangeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultQueryChannelRangeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_QueryChannelRangeDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_QueryChannelRangeDecodeErrorZ in the success state. */ public static Result_QueryChannelRangeDecodeErrorZ ok(org.ldk.structs.QueryChannelRange o) { - long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultQueryChannelRangeDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_QueryChannelRangeDecodeErrorZ ok(org.ldk.structs.QueryChann * Creates a new CResult_QueryChannelRangeDecodeErrorZ in the error state. */ public static Result_QueryChannelRangeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultQueryChannelRangeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_QueryChannelRangeDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultQueryChannelRangeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultQueryChannelRangeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_QueryChannelRangeDecodeErrorZ clone() { - long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultQueryChannelRangeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_QueryShortChannelIdsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_QueryShortChannelIdsDecodeErrorZ.cs index 2f3003971..2596dac7d 100644 --- a/c_sharp/src/org/ldk/structs/Result_QueryShortChannelIdsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_QueryShortChannelIdsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_QueryShortChannelIdsDecodeErrorZ : CommonBase { Result_QueryShortChannelIdsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_QueryShortChannelIdsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_QueryShortChannelIdsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultQueryShortChannelIdsDecodeErrorZFree(ptr); } } internal static Result_QueryShortChannelIdsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultQueryShortChannelIdsDecodeErrorZIsOk(ptr)) { return new Result_QueryShortChannelIdsDecodeErrorZ_OK(null, ptr); } else { return new Result_QueryShortChannelIdsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_QueryShortChannelIdsDecodeErrorZ constr_from_ptr(long ptr public class Result_QueryShortChannelIdsDecodeErrorZ_OK : Result_QueryShortChannelIdsDecodeErrorZ { public readonly QueryShortChannelIds res; internal Result_QueryShortChannelIdsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultQueryShortChannelIdsDecodeErrorZGetOk(ptr); org.ldk.structs.QueryShortChannelIds res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.QueryShortChannelIds(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_QueryShortChannelIdsDecodeErrorZ_OK(object _dummy, long ptr) : b public class Result_QueryShortChannelIdsDecodeErrorZ_Err : Result_QueryShortChannelIdsDecodeErrorZ { public readonly DecodeError err; internal Result_QueryShortChannelIdsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultQueryShortChannelIdsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_QueryShortChannelIdsDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_QueryShortChannelIdsDecodeErrorZ in the success state. */ public static Result_QueryShortChannelIdsDecodeErrorZ ok(org.ldk.structs.QueryShortChannelIds o) { - long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultQueryShortChannelIdsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_QueryShortChannelIdsDecodeErrorZ ok(org.ldk.structs.QuerySh * Creates a new CResult_QueryShortChannelIdsDecodeErrorZ in the error state. */ public static Result_QueryShortChannelIdsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultQueryShortChannelIdsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_QueryShortChannelIdsDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultQueryShortChannelIdsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultQueryShortChannelIdsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_QueryShortChannelIdsDecodeErrorZ clone() { - long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultQueryShortChannelIdsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsDecodeErrorZ.cs index fdc4db809..b576bea8e 100644 --- a/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RecipientOnionFieldsDecodeErrorZ : CommonBase { Result_RecipientOnionFieldsDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RecipientOnionFieldsDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RecipientOnionFieldsDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRecipientOnionFieldsDecodeErrorZFree(ptr); } } internal static Result_RecipientOnionFieldsDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRecipientOnionFieldsDecodeErrorZIsOk(ptr)) { return new Result_RecipientOnionFieldsDecodeErrorZ_OK(null, ptr); } else { return new Result_RecipientOnionFieldsDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RecipientOnionFieldsDecodeErrorZ constr_from_ptr(long ptr public class Result_RecipientOnionFieldsDecodeErrorZ_OK : Result_RecipientOnionFieldsDecodeErrorZ { public readonly RecipientOnionFields res; internal Result_RecipientOnionFieldsDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRecipientOnionFieldsDecodeErrorZGetOk(ptr); org.ldk.structs.RecipientOnionFields res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RecipientOnionFields(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RecipientOnionFieldsDecodeErrorZ_OK(object _dummy, long ptr) : b public class Result_RecipientOnionFieldsDecodeErrorZ_Err : Result_RecipientOnionFieldsDecodeErrorZ { public readonly DecodeError err; internal Result_RecipientOnionFieldsDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRecipientOnionFieldsDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RecipientOnionFieldsDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_RecipientOnionFieldsDecodeErrorZ in the success state. */ public static Result_RecipientOnionFieldsDecodeErrorZ ok(org.ldk.structs.RecipientOnionFields o) { - long ret = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRecipientOnionFieldsDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsDecodeErrorZ ret_hu_conv = Result_RecipientOnionFieldsDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RecipientOnionFieldsDecodeErrorZ ok(org.ldk.structs.Recipie * Creates a new CResult_RecipientOnionFieldsDecodeErrorZ in the error state. */ public static Result_RecipientOnionFieldsDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRecipientOnionFieldsDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsDecodeErrorZ ret_hu_conv = Result_RecipientOnionFieldsDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RecipientOnionFieldsDecodeErrorZ err(org.ldk.structs.Decode * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRecipientOnionFieldsDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRecipientOnionFieldsDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RecipientOnionFieldsDecodeErrorZ clone() { - long ret = bindings.CResult_RecipientOnionFieldsDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRecipientOnionFieldsDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsDecodeErrorZ ret_hu_conv = Result_RecipientOnionFieldsDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsNoneZ.cs index 3dfe1b76e..075e5599c 100644 --- a/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RecipientOnionFieldsNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RecipientOnionFieldsNoneZ : CommonBase { Result_RecipientOnionFieldsNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_RecipientOnionFieldsNoneZ() { - if (ptr != 0) { bindings.CResult_RecipientOnionFieldsNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRecipientOnionFieldsNoneZFree(ptr); } } internal static Result_RecipientOnionFieldsNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_RecipientOnionFieldsNoneZ_is_ok(ptr)) { + if (Bindings.CResultRecipientOnionFieldsNoneZIsOk(ptr)) { return new Result_RecipientOnionFieldsNoneZ_OK(null, ptr); } else { return new Result_RecipientOnionFieldsNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RecipientOnionFieldsNoneZ constr_from_ptr(long ptr) { public class Result_RecipientOnionFieldsNoneZ_OK : Result_RecipientOnionFieldsNoneZ { public readonly RecipientOnionFields res; internal Result_RecipientOnionFieldsNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RecipientOnionFieldsNoneZ_get_ok(ptr); + long res = Bindings.CResultRecipientOnionFieldsNoneZGetOk(ptr); org.ldk.structs.RecipientOnionFields res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RecipientOnionFields(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_RecipientOnionFieldsNoneZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_RecipientOnionFieldsNoneZ in the success state. */ public static Result_RecipientOnionFieldsNoneZ ok(org.ldk.structs.RecipientOnionFields o) { - long ret = bindings.CResult_RecipientOnionFieldsNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRecipientOnionFieldsNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsNoneZ ret_hu_conv = Result_RecipientOnionFieldsNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_RecipientOnionFieldsNoneZ ok(org.ldk.structs.RecipientOnion * Creates a new CResult_RecipientOnionFieldsNoneZ in the error state. */ public static Result_RecipientOnionFieldsNoneZ err() { - long ret = bindings.CResult_RecipientOnionFieldsNoneZ_err(); + long ret = Bindings.CResultRecipientOnionFieldsNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsNoneZ ret_hu_conv = Result_RecipientOnionFieldsNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_RecipientOnionFieldsNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RecipientOnionFieldsNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultRecipientOnionFieldsNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RecipientOnionFieldsNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRecipientOnionFieldsNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RecipientOnionFieldsNoneZ clone() { - long ret = bindings.CResult_RecipientOnionFieldsNoneZ_clone(this.ptr); + long ret = Bindings.CResultRecipientOnionFieldsNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RecipientOnionFieldsNoneZ ret_hu_conv = Result_RecipientOnionFieldsNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RecoverableSignatureNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_RecoverableSignatureNoneZ.cs index fb71b63a6..cbbd04b8e 100644 --- a/c_sharp/src/org/ldk/structs/Result_RecoverableSignatureNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RecoverableSignatureNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RecoverableSignatureNoneZ : CommonBase { Result_RecoverableSignatureNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_RecoverableSignatureNoneZ() { - if (ptr != 0) { bindings.CResult_RecoverableSignatureNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRecoverableSignatureNoneZFree(ptr); } } internal static Result_RecoverableSignatureNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_RecoverableSignatureNoneZ_is_ok(ptr)) { + if (Bindings.CResultRecoverableSignatureNoneZIsOk(ptr)) { return new Result_RecoverableSignatureNoneZ_OK(null, ptr); } else { return new Result_RecoverableSignatureNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_RecoverableSignatureNoneZ constr_from_ptr(long ptr) { public class Result_RecoverableSignatureNoneZ_OK : Result_RecoverableSignatureNoneZ { public readonly byte[] res; internal Result_RecoverableSignatureNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RecoverableSignatureNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultRecoverableSignatureNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_RecoverableSignatureNoneZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_RecoverableSignatureNoneZ in the success state. */ public static Result_RecoverableSignatureNoneZ ok(byte[] o) { - long ret = bindings.CResult_RecoverableSignatureNoneZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 68))); + long ret = Bindings.CResultRecoverableSignatureNoneZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 68))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RecoverableSignatureNoneZ ret_hu_conv = Result_RecoverableSignatureNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_RecoverableSignatureNoneZ ok(byte[] o) { * Creates a new CResult_RecoverableSignatureNoneZ in the error state. */ public static Result_RecoverableSignatureNoneZ err() { - long ret = bindings.CResult_RecoverableSignatureNoneZ_err(); + long ret = Bindings.CResultRecoverableSignatureNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_RecoverableSignatureNoneZ ret_hu_conv = Result_RecoverableSignatureNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_RecoverableSignatureNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RecoverableSignatureNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultRecoverableSignatureNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RecoverableSignatureNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRecoverableSignatureNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RecoverableSignatureNoneZ clone() { - long ret = bindings.CResult_RecoverableSignatureNoneZ_clone(this.ptr); + long ret = Bindings.CResultRecoverableSignatureNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RecoverableSignatureNoneZ ret_hu_conv = Result_RecoverableSignatureNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RefundBolt12ParseErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RefundBolt12ParseErrorZ.cs index 56760a92a..c93761f6e 100644 --- a/c_sharp/src/org/ldk/structs/Result_RefundBolt12ParseErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RefundBolt12ParseErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RefundBolt12ParseErrorZ : CommonBase { Result_RefundBolt12ParseErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RefundBolt12ParseErrorZ() { - if (ptr != 0) { bindings.CResult_RefundBolt12ParseErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRefundBolt12ParseErrorZFree(ptr); } } internal static Result_RefundBolt12ParseErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RefundBolt12ParseErrorZ_is_ok(ptr)) { + if (Bindings.CResultRefundBolt12ParseErrorZIsOk(ptr)) { return new Result_RefundBolt12ParseErrorZ_OK(null, ptr); } else { return new Result_RefundBolt12ParseErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RefundBolt12ParseErrorZ constr_from_ptr(long ptr) { public class Result_RefundBolt12ParseErrorZ_OK : Result_RefundBolt12ParseErrorZ { public readonly Refund res; internal Result_RefundBolt12ParseErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RefundBolt12ParseErrorZ_get_ok(ptr); + long res = Bindings.CResultRefundBolt12ParseErrorZGetOk(ptr); org.ldk.structs.Refund res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Refund(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RefundBolt12ParseErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_RefundBolt12ParseErrorZ_Err : Result_RefundBolt12ParseErrorZ { public readonly Bolt12ParseError err; internal Result_RefundBolt12ParseErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RefundBolt12ParseErrorZ_get_err(ptr); + long err = Bindings.CResultRefundBolt12ParseErrorZGetErr(ptr); org.ldk.structs.Bolt12ParseError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.Bolt12ParseError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RefundBolt12ParseErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. */ public static Result_RefundBolt12ParseErrorZ ok(org.ldk.structs.Refund o) { - long ret = bindings.CResult_RefundBolt12ParseErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRefundBolt12ParseErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RefundBolt12ParseErrorZ ret_hu_conv = Result_RefundBolt12ParseErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RefundBolt12ParseErrorZ ok(org.ldk.structs.Refund o) { * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. */ public static Result_RefundBolt12ParseErrorZ err(org.ldk.structs.Bolt12ParseError e) { - long ret = bindings.CResult_RefundBolt12ParseErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultRefundBolt12ParseErrorZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RefundBolt12ParseErrorZ ret_hu_conv = Result_RefundBolt12ParseErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RefundBolt12ParseErrorZ err(org.ldk.structs.Bolt12ParseErro * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RefundBolt12ParseErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRefundBolt12ParseErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RefundBolt12ParseErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRefundBolt12ParseErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RefundBolt12ParseErrorZ clone() { - long ret = bindings.CResult_RefundBolt12ParseErrorZ_clone(this.ptr); + long ret = Bindings.CResultRefundBolt12ParseErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RefundBolt12ParseErrorZ ret_hu_conv = Result_RefundBolt12ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ReplyChannelRangeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ReplyChannelRangeDecodeErrorZ.cs index d2bd98a72..73104b173 100644 --- a/c_sharp/src/org/ldk/structs/Result_ReplyChannelRangeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ReplyChannelRangeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ReplyChannelRangeDecodeErrorZ : CommonBase { Result_ReplyChannelRangeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ReplyChannelRangeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ReplyChannelRangeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultReplyChannelRangeDecodeErrorZFree(ptr); } } internal static Result_ReplyChannelRangeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ReplyChannelRangeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultReplyChannelRangeDecodeErrorZIsOk(ptr)) { return new Result_ReplyChannelRangeDecodeErrorZ_OK(null, ptr); } else { return new Result_ReplyChannelRangeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ReplyChannelRangeDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ReplyChannelRangeDecodeErrorZ_OK : Result_ReplyChannelRangeDecodeErrorZ { public readonly ReplyChannelRange res; internal Result_ReplyChannelRangeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ReplyChannelRangeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultReplyChannelRangeDecodeErrorZGetOk(ptr); org.ldk.structs.ReplyChannelRange res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ReplyChannelRange(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ReplyChannelRangeDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_ReplyChannelRangeDecodeErrorZ_Err : Result_ReplyChannelRangeDecodeErrorZ { public readonly DecodeError err; internal Result_ReplyChannelRangeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ReplyChannelRangeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultReplyChannelRangeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ReplyChannelRangeDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_ReplyChannelRangeDecodeErrorZ in the success state. */ public static Result_ReplyChannelRangeDecodeErrorZ ok(org.ldk.structs.ReplyChannelRange o) { - long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultReplyChannelRangeDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ReplyChannelRangeDecodeErrorZ ok(org.ldk.structs.ReplyChann * Creates a new CResult_ReplyChannelRangeDecodeErrorZ in the error state. */ public static Result_ReplyChannelRangeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultReplyChannelRangeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ReplyChannelRangeDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultReplyChannelRangeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultReplyChannelRangeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ReplyChannelRangeDecodeErrorZ clone() { - long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultReplyChannelRangeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.cs index 57cb7f02e..98df63435 100644 --- a/c_sharp/src/org/ldk/structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ReplyShortChannelIdsEndDecodeErrorZ : CommonBase { Result_ReplyShortChannelIdsEndDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ReplyShortChannelIdsEndDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultReplyShortChannelIdsEndDecodeErrorZFree(ptr); } } internal static Result_ReplyShortChannelIdsEndDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultReplyShortChannelIdsEndDecodeErrorZIsOk(ptr)) { return new Result_ReplyShortChannelIdsEndDecodeErrorZ_OK(null, ptr); } else { return new Result_ReplyShortChannelIdsEndDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ReplyShortChannelIdsEndDecodeErrorZ constr_from_ptr(long public class Result_ReplyShortChannelIdsEndDecodeErrorZ_OK : Result_ReplyShortChannelIdsEndDecodeErrorZ { public readonly ReplyShortChannelIdsEnd res; internal Result_ReplyShortChannelIdsEndDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZGetOk(ptr); org.ldk.structs.ReplyShortChannelIdsEnd res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ReplyShortChannelIdsEndDecodeErrorZ_OK(object _dummy, long ptr) public class Result_ReplyShortChannelIdsEndDecodeErrorZ_Err : Result_ReplyShortChannelIdsEndDecodeErrorZ { public readonly DecodeError err; internal Result_ReplyShortChannelIdsEndDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ReplyShortChannelIdsEndDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_ReplyShortChannelIdsEndDecodeErrorZ in the success state. */ public static Result_ReplyShortChannelIdsEndDecodeErrorZ ok(org.ldk.structs.ReplyShortChannelIdsEnd o) { - long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ReplyShortChannelIdsEndDecodeErrorZ ok(org.ldk.structs.Repl * Creates a new CResult_ReplyShortChannelIdsEndDecodeErrorZ in the error state. */ public static Result_ReplyShortChannelIdsEndDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ReplyShortChannelIdsEndDecodeErrorZ err(org.ldk.structs.Dec * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ReplyShortChannelIdsEndDecodeErrorZ clone() { - long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultReplyShortChannelIdsEndDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RetryDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RetryDecodeErrorZ.cs index db35a4d09..83593ed18 100644 --- a/c_sharp/src/org/ldk/structs/Result_RetryDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RetryDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RetryDecodeErrorZ : CommonBase { Result_RetryDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RetryDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RetryDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRetryDecodeErrorZFree(ptr); } } internal static Result_RetryDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RetryDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRetryDecodeErrorZIsOk(ptr)) { return new Result_RetryDecodeErrorZ_OK(null, ptr); } else { return new Result_RetryDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RetryDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RetryDecodeErrorZ_OK : Result_RetryDecodeErrorZ { public readonly Retry res; internal Result_RetryDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RetryDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRetryDecodeErrorZGetOk(ptr); org.ldk.structs.Retry res_hu_conv = org.ldk.structs.Retry.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RetryDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr public class Result_RetryDecodeErrorZ_Err : Result_RetryDecodeErrorZ { public readonly DecodeError err; internal Result_RetryDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RetryDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRetryDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RetryDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, pt * Creates a new CResult_RetryDecodeErrorZ in the success state. */ public static Result_RetryDecodeErrorZ ok(org.ldk.structs.Retry o) { - long ret = bindings.CResult_RetryDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultRetryDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RetryDecodeErrorZ ret_hu_conv = Result_RetryDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RetryDecodeErrorZ ok(org.ldk.structs.Retry o) { * Creates a new CResult_RetryDecodeErrorZ in the error state. */ public static Result_RetryDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RetryDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRetryDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RetryDecodeErrorZ ret_hu_conv = Result_RetryDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RetryDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RetryDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRetryDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RetryDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRetryDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RetryDecodeErrorZ clone() { - long ret = bindings.CResult_RetryDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRetryDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RetryDecodeErrorZ ret_hu_conv = Result_RetryDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RevocationBasepointDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RevocationBasepointDecodeErrorZ.cs index 700113a7f..cb55b6c3e 100644 --- a/c_sharp/src/org/ldk/structs/Result_RevocationBasepointDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RevocationBasepointDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RevocationBasepointDecodeErrorZ : CommonBase { Result_RevocationBasepointDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RevocationBasepointDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RevocationBasepointDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRevocationBasepointDecodeErrorZFree(ptr); } } internal static Result_RevocationBasepointDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RevocationBasepointDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRevocationBasepointDecodeErrorZIsOk(ptr)) { return new Result_RevocationBasepointDecodeErrorZ_OK(null, ptr); } else { return new Result_RevocationBasepointDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RevocationBasepointDecodeErrorZ constr_from_ptr(long ptr) public class Result_RevocationBasepointDecodeErrorZ_OK : Result_RevocationBasepointDecodeErrorZ { public readonly RevocationBasepoint res; internal Result_RevocationBasepointDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RevocationBasepointDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRevocationBasepointDecodeErrorZGetOk(ptr); org.ldk.structs.RevocationBasepoint res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RevocationBasepoint(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RevocationBasepointDecodeErrorZ_OK(object _dummy, long ptr) : ba public class Result_RevocationBasepointDecodeErrorZ_Err : Result_RevocationBasepointDecodeErrorZ { public readonly DecodeError err; internal Result_RevocationBasepointDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RevocationBasepointDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRevocationBasepointDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RevocationBasepointDecodeErrorZ_Err(object _dummy, long ptr) : b * Creates a new CResult_RevocationBasepointDecodeErrorZ in the success state. */ public static Result_RevocationBasepointDecodeErrorZ ok(org.ldk.structs.RevocationBasepoint o) { - long ret = bindings.CResult_RevocationBasepointDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRevocationBasepointDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationBasepointDecodeErrorZ ret_hu_conv = Result_RevocationBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RevocationBasepointDecodeErrorZ ok(org.ldk.structs.Revocati * Creates a new CResult_RevocationBasepointDecodeErrorZ in the error state. */ public static Result_RevocationBasepointDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RevocationBasepointDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRevocationBasepointDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationBasepointDecodeErrorZ ret_hu_conv = Result_RevocationBasepointDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RevocationBasepointDecodeErrorZ err(org.ldk.structs.DecodeE * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RevocationBasepointDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRevocationBasepointDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RevocationBasepointDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRevocationBasepointDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RevocationBasepointDecodeErrorZ clone() { - long ret = bindings.CResult_RevocationBasepointDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRevocationBasepointDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationBasepointDecodeErrorZ ret_hu_conv = Result_RevocationBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RevocationKeyDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RevocationKeyDecodeErrorZ.cs index 8278d2f01..1ca3a62a6 100644 --- a/c_sharp/src/org/ldk/structs/Result_RevocationKeyDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RevocationKeyDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RevocationKeyDecodeErrorZ : CommonBase { Result_RevocationKeyDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RevocationKeyDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RevocationKeyDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRevocationKeyDecodeErrorZFree(ptr); } } internal static Result_RevocationKeyDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RevocationKeyDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRevocationKeyDecodeErrorZIsOk(ptr)) { return new Result_RevocationKeyDecodeErrorZ_OK(null, ptr); } else { return new Result_RevocationKeyDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RevocationKeyDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RevocationKeyDecodeErrorZ_OK : Result_RevocationKeyDecodeErrorZ { public readonly RevocationKey res; internal Result_RevocationKeyDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RevocationKeyDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRevocationKeyDecodeErrorZGetOk(ptr); org.ldk.structs.RevocationKey res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RevocationKey(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RevocationKeyDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_RevocationKeyDecodeErrorZ_Err : Result_RevocationKeyDecodeErrorZ { public readonly DecodeError err; internal Result_RevocationKeyDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RevocationKeyDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRevocationKeyDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RevocationKeyDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_RevocationKeyDecodeErrorZ in the success state. */ public static Result_RevocationKeyDecodeErrorZ ok(org.ldk.structs.RevocationKey o) { - long ret = bindings.CResult_RevocationKeyDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRevocationKeyDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationKeyDecodeErrorZ ret_hu_conv = Result_RevocationKeyDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RevocationKeyDecodeErrorZ ok(org.ldk.structs.RevocationKey * Creates a new CResult_RevocationKeyDecodeErrorZ in the error state. */ public static Result_RevocationKeyDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RevocationKeyDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRevocationKeyDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationKeyDecodeErrorZ ret_hu_conv = Result_RevocationKeyDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RevocationKeyDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RevocationKeyDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRevocationKeyDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RevocationKeyDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRevocationKeyDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RevocationKeyDecodeErrorZ clone() { - long ret = bindings.CResult_RevocationKeyDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRevocationKeyDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationKeyDecodeErrorZ ret_hu_conv = Result_RevocationKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RevokeAndACKDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RevokeAndACKDecodeErrorZ.cs index aa178bde1..464e7f3af 100644 --- a/c_sharp/src/org/ldk/structs/Result_RevokeAndACKDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RevokeAndACKDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RevokeAndACKDecodeErrorZ : CommonBase { Result_RevokeAndACKDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RevokeAndACKDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RevokeAndACKDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRevokeAndACKDecodeErrorZFree(ptr); } } internal static Result_RevokeAndACKDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RevokeAndACKDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRevokeAndACKDecodeErrorZIsOk(ptr)) { return new Result_RevokeAndACKDecodeErrorZ_OK(null, ptr); } else { return new Result_RevokeAndACKDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RevokeAndACKDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RevokeAndACKDecodeErrorZ_OK : Result_RevokeAndACKDecodeErrorZ { public readonly RevokeAndACK res; internal Result_RevokeAndACKDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RevokeAndACKDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRevokeAndACKDecodeErrorZGetOk(ptr); org.ldk.structs.RevokeAndACK res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RevokeAndACK(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RevokeAndACKDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_RevokeAndACKDecodeErrorZ_Err : Result_RevokeAndACKDecodeErrorZ { public readonly DecodeError err; internal Result_RevokeAndACKDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RevokeAndACKDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRevokeAndACKDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RevokeAndACKDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_RevokeAndACKDecodeErrorZ in the success state. */ public static Result_RevokeAndACKDecodeErrorZ ok(org.ldk.structs.RevokeAndACK o) { - long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRevokeAndACKDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RevokeAndACKDecodeErrorZ ok(org.ldk.structs.RevokeAndACK o) * Creates a new CResult_RevokeAndACKDecodeErrorZ in the error state. */ public static Result_RevokeAndACKDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRevokeAndACKDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RevokeAndACKDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RevokeAndACKDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRevokeAndACKDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRevokeAndACKDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RevokeAndACKDecodeErrorZ clone() { - long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRevokeAndACKDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteDecodeErrorZ.cs index 9a406663e..eef7ee4d5 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteDecodeErrorZ : CommonBase { Result_RouteDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RouteDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteDecodeErrorZFree(ptr); } } internal static Result_RouteDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteDecodeErrorZIsOk(ptr)) { return new Result_RouteDecodeErrorZ_OK(null, ptr); } else { return new Result_RouteDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RouteDecodeErrorZ_OK : Result_RouteDecodeErrorZ { public readonly Route res; internal Result_RouteDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteDecodeErrorZGetOk(ptr); org.ldk.structs.Route res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Route(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr public class Result_RouteDecodeErrorZ_Err : Result_RouteDecodeErrorZ { public readonly DecodeError err; internal Result_RouteDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRouteDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, pt * Creates a new CResult_RouteDecodeErrorZ in the success state. */ public static Result_RouteDecodeErrorZ ok(org.ldk.structs.Route o) { - long ret = bindings.CResult_RouteDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteDecodeErrorZ ok(org.ldk.structs.Route o) { * Creates a new CResult_RouteDecodeErrorZ in the error state. */ public static Result_RouteDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RouteDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRouteDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteDecodeErrorZ clone() { - long ret = bindings.CResult_RouteDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteHintDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteHintDecodeErrorZ.cs index 068fc5579..bb5047b90 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteHintDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteHintDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteHintDecodeErrorZ : CommonBase { Result_RouteHintDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteHintDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RouteHintDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteHintDecodeErrorZFree(ptr); } } internal static Result_RouteHintDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteHintDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteHintDecodeErrorZIsOk(ptr)) { return new Result_RouteHintDecodeErrorZ_OK(null, ptr); } else { return new Result_RouteHintDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteHintDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RouteHintDecodeErrorZ_OK : Result_RouteHintDecodeErrorZ { public readonly RouteHint res; internal Result_RouteHintDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteHintDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteHintDecodeErrorZGetOk(ptr); org.ldk.structs.RouteHint res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RouteHint(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteHintDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_RouteHintDecodeErrorZ_Err : Result_RouteHintDecodeErrorZ { public readonly DecodeError err; internal Result_RouteHintDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteHintDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRouteHintDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteHintDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_RouteHintDecodeErrorZ in the success state. */ public static Result_RouteHintDecodeErrorZ ok(org.ldk.structs.RouteHint o) { - long ret = bindings.CResult_RouteHintDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteHintDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintDecodeErrorZ ret_hu_conv = Result_RouteHintDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteHintDecodeErrorZ ok(org.ldk.structs.RouteHint o) { * Creates a new CResult_RouteHintDecodeErrorZ in the error state. */ public static Result_RouteHintDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RouteHintDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRouteHintDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintDecodeErrorZ ret_hu_conv = Result_RouteHintDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteHintDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteHintDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteHintDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteHintDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteHintDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteHintDecodeErrorZ clone() { - long ret = bindings.CResult_RouteHintDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteHintDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintDecodeErrorZ ret_hu_conv = Result_RouteHintDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteHintHopDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteHintHopDecodeErrorZ.cs index 99be1f7a3..8070c9320 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteHintHopDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteHintHopDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteHintHopDecodeErrorZ : CommonBase { Result_RouteHintHopDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteHintHopDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RouteHintHopDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteHintHopDecodeErrorZFree(ptr); } } internal static Result_RouteHintHopDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteHintHopDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteHintHopDecodeErrorZIsOk(ptr)) { return new Result_RouteHintHopDecodeErrorZ_OK(null, ptr); } else { return new Result_RouteHintHopDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteHintHopDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RouteHintHopDecodeErrorZ_OK : Result_RouteHintHopDecodeErrorZ { public readonly RouteHintHop res; internal Result_RouteHintHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteHintHopDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteHintHopDecodeErrorZGetOk(ptr); org.ldk.structs.RouteHintHop res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RouteHintHop(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteHintHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_RouteHintHopDecodeErrorZ_Err : Result_RouteHintHopDecodeErrorZ { public readonly DecodeError err; internal Result_RouteHintHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteHintHopDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRouteHintHopDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteHintHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_RouteHintHopDecodeErrorZ in the success state. */ public static Result_RouteHintHopDecodeErrorZ ok(org.ldk.structs.RouteHintHop o) { - long ret = bindings.CResult_RouteHintHopDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteHintHopDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteHintHopDecodeErrorZ ok(org.ldk.structs.RouteHintHop o) * Creates a new CResult_RouteHintHopDecodeErrorZ in the error state. */ public static Result_RouteHintHopDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RouteHintHopDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRouteHintHopDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteHintHopDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteHintHopDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteHintHopDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteHintHopDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteHintHopDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteHintHopDecodeErrorZ clone() { - long ret = bindings.CResult_RouteHintHopDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteHintHopDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteHopDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteHopDecodeErrorZ.cs index caee5cf49..73da530d5 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteHopDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteHopDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteHopDecodeErrorZ : CommonBase { Result_RouteHopDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteHopDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RouteHopDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteHopDecodeErrorZFree(ptr); } } internal static Result_RouteHopDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteHopDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteHopDecodeErrorZIsOk(ptr)) { return new Result_RouteHopDecodeErrorZ_OK(null, ptr); } else { return new Result_RouteHopDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteHopDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RouteHopDecodeErrorZ_OK : Result_RouteHopDecodeErrorZ { public readonly RouteHop res; internal Result_RouteHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteHopDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteHopDecodeErrorZGetOk(ptr); org.ldk.structs.RouteHop res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RouteHop(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteHopDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_RouteHopDecodeErrorZ_Err : Result_RouteHopDecodeErrorZ { public readonly DecodeError err; internal Result_RouteHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteHopDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRouteHopDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteHopDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_RouteHopDecodeErrorZ in the success state. */ public static Result_RouteHopDecodeErrorZ ok(org.ldk.structs.RouteHop o) { - long ret = bindings.CResult_RouteHopDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteHopDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteHopDecodeErrorZ ok(org.ldk.structs.RouteHop o) { * Creates a new CResult_RouteHopDecodeErrorZ in the error state. */ public static Result_RouteHopDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RouteHopDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRouteHopDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteHopDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteHopDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteHopDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteHopDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteHopDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteHopDecodeErrorZ clone() { - long ret = bindings.CResult_RouteHopDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteHopDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteLightningErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteLightningErrorZ.cs index e3dc6d27c..8b90468cc 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteLightningErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteLightningErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteLightningErrorZ : CommonBase { Result_RouteLightningErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteLightningErrorZ() { - if (ptr != 0) { bindings.CResult_RouteLightningErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteLightningErrorZFree(ptr); } } internal static Result_RouteLightningErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteLightningErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteLightningErrorZIsOk(ptr)) { return new Result_RouteLightningErrorZ_OK(null, ptr); } else { return new Result_RouteLightningErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteLightningErrorZ constr_from_ptr(long ptr) { public class Result_RouteLightningErrorZ_OK : Result_RouteLightningErrorZ { public readonly Route res; internal Result_RouteLightningErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteLightningErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteLightningErrorZGetOk(ptr); org.ldk.structs.Route res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Route(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteLightningErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_RouteLightningErrorZ_Err : Result_RouteLightningErrorZ { public readonly LightningError err; internal Result_RouteLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteLightningErrorZ_get_err(ptr); + long err = Bindings.CResultRouteLightningErrorZGetErr(ptr); org.ldk.structs.LightningError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.LightningError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_RouteLightningErrorZ in the success state. */ public static Result_RouteLightningErrorZ ok(org.ldk.structs.Route o) { - long ret = bindings.CResult_RouteLightningErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteLightningErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteLightningErrorZ ok(org.ldk.structs.Route o) { * Creates a new CResult_RouteLightningErrorZ in the error state. */ public static Result_RouteLightningErrorZ err(org.ldk.structs.LightningError e) { - long ret = bindings.CResult_RouteLightningErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultRouteLightningErrorZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteLightningErrorZ err(org.ldk.structs.LightningError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteLightningErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteLightningErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteLightningErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteLightningErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteLightningErrorZ clone() { - long ret = bindings.CResult_RouteLightningErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteLightningErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RouteParametersDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RouteParametersDecodeErrorZ.cs index c7fe06d03..0c5eb8d33 100644 --- a/c_sharp/src/org/ldk/structs/Result_RouteParametersDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RouteParametersDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RouteParametersDecodeErrorZ : CommonBase { Result_RouteParametersDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RouteParametersDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RouteParametersDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRouteParametersDecodeErrorZFree(ptr); } } internal static Result_RouteParametersDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RouteParametersDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRouteParametersDecodeErrorZIsOk(ptr)) { return new Result_RouteParametersDecodeErrorZ_OK(null, ptr); } else { return new Result_RouteParametersDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RouteParametersDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RouteParametersDecodeErrorZ_OK : Result_RouteParametersDecodeErrorZ { public readonly RouteParameters res; internal Result_RouteParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RouteParametersDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRouteParametersDecodeErrorZGetOk(ptr); org.ldk.structs.RouteParameters res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RouteParameters(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RouteParametersDecodeErrorZ_OK(object _dummy, long ptr) : base(_ public class Result_RouteParametersDecodeErrorZ_Err : Result_RouteParametersDecodeErrorZ { public readonly DecodeError err; internal Result_RouteParametersDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RouteParametersDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRouteParametersDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RouteParametersDecodeErrorZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_RouteParametersDecodeErrorZ in the success state. */ public static Result_RouteParametersDecodeErrorZ ok(org.ldk.structs.RouteParameters o) { - long ret = bindings.CResult_RouteParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRouteParametersDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteParametersDecodeErrorZ ret_hu_conv = Result_RouteParametersDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RouteParametersDecodeErrorZ ok(org.ldk.structs.RouteParamet * Creates a new CResult_RouteParametersDecodeErrorZ in the error state. */ public static Result_RouteParametersDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RouteParametersDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRouteParametersDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteParametersDecodeErrorZ ret_hu_conv = Result_RouteParametersDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RouteParametersDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RouteParametersDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRouteParametersDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RouteParametersDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRouteParametersDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RouteParametersDecodeErrorZ clone() { - long ret = bindings.CResult_RouteParametersDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRouteParametersDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteParametersDecodeErrorZ ret_hu_conv = Result_RouteParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_RoutingFeesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_RoutingFeesDecodeErrorZ.cs index 4009919a8..fba1e34be 100644 --- a/c_sharp/src/org/ldk/structs/Result_RoutingFeesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_RoutingFeesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_RoutingFeesDecodeErrorZ : CommonBase { Result_RoutingFeesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_RoutingFeesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_RoutingFeesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultRoutingFeesDecodeErrorZFree(ptr); } } internal static Result_RoutingFeesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_RoutingFeesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultRoutingFeesDecodeErrorZIsOk(ptr)) { return new Result_RoutingFeesDecodeErrorZ_OK(null, ptr); } else { return new Result_RoutingFeesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_RoutingFeesDecodeErrorZ constr_from_ptr(long ptr) { public class Result_RoutingFeesDecodeErrorZ_OK : Result_RoutingFeesDecodeErrorZ { public readonly RoutingFees res; internal Result_RoutingFeesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_RoutingFeesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultRoutingFeesDecodeErrorZGetOk(ptr); org.ldk.structs.RoutingFees res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.RoutingFees(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_RoutingFeesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_RoutingFeesDecodeErrorZ_Err : Result_RoutingFeesDecodeErrorZ { public readonly DecodeError err; internal Result_RoutingFeesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_RoutingFeesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultRoutingFeesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_RoutingFeesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_RoutingFeesDecodeErrorZ in the success state. */ public static Result_RoutingFeesDecodeErrorZ ok(org.ldk.structs.RoutingFees o) { - long ret = bindings.CResult_RoutingFeesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultRoutingFeesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_RoutingFeesDecodeErrorZ ok(org.ldk.structs.RoutingFees o) { * Creates a new CResult_RoutingFeesDecodeErrorZ in the error state. */ public static Result_RoutingFeesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_RoutingFeesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultRoutingFeesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_RoutingFeesDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_RoutingFeesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultRoutingFeesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_RoutingFeesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultRoutingFeesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_RoutingFeesDecodeErrorZ clone() { - long ret = bindings.CResult_RoutingFeesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultRoutingFeesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SchnorrSignatureNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_SchnorrSignatureNoneZ.cs index 0742fb28a..b8136f1ba 100644 --- a/c_sharp/src/org/ldk/structs/Result_SchnorrSignatureNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SchnorrSignatureNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SchnorrSignatureNoneZ : CommonBase { Result_SchnorrSignatureNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_SchnorrSignatureNoneZ() { - if (ptr != 0) { bindings.CResult_SchnorrSignatureNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSchnorrSignatureNoneZFree(ptr); } } internal static Result_SchnorrSignatureNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_SchnorrSignatureNoneZ_is_ok(ptr)) { + if (Bindings.CResultSchnorrSignatureNoneZIsOk(ptr)) { return new Result_SchnorrSignatureNoneZ_OK(null, ptr); } else { return new Result_SchnorrSignatureNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_SchnorrSignatureNoneZ constr_from_ptr(long ptr) { public class Result_SchnorrSignatureNoneZ_OK : Result_SchnorrSignatureNoneZ { public readonly byte[] res; internal Result_SchnorrSignatureNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SchnorrSignatureNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultSchnorrSignatureNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_SchnorrSignatureNoneZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_SchnorrSignatureNoneZ in the success state. */ public static Result_SchnorrSignatureNoneZ ok(byte[] o) { - long ret = bindings.CResult_SchnorrSignatureNoneZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 64))); + long ret = Bindings.CResultSchnorrSignatureNoneZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 64))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SchnorrSignatureNoneZ ret_hu_conv = Result_SchnorrSignatureNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_SchnorrSignatureNoneZ ok(byte[] o) { * Creates a new CResult_SchnorrSignatureNoneZ in the error state. */ public static Result_SchnorrSignatureNoneZ err() { - long ret = bindings.CResult_SchnorrSignatureNoneZ_err(); + long ret = Bindings.CResultSchnorrSignatureNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_SchnorrSignatureNoneZ ret_hu_conv = Result_SchnorrSignatureNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_SchnorrSignatureNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SchnorrSignatureNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultSchnorrSignatureNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SchnorrSignatureNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSchnorrSignatureNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SchnorrSignatureNoneZ clone() { - long ret = bindings.CResult_SchnorrSignatureNoneZ_clone(this.ptr); + long ret = Bindings.CResultSchnorrSignatureNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SchnorrSignatureNoneZ ret_hu_conv = Result_SchnorrSignatureNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SendSuccessSendErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SendSuccessSendErrorZ.cs index c608d13e9..6e43c0ddd 100644 --- a/c_sharp/src/org/ldk/structs/Result_SendSuccessSendErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SendSuccessSendErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SendSuccessSendErrorZ : CommonBase { Result_SendSuccessSendErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SendSuccessSendErrorZ() { - if (ptr != 0) { bindings.CResult_SendSuccessSendErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSendSuccessSendErrorZFree(ptr); } } internal static Result_SendSuccessSendErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SendSuccessSendErrorZ_is_ok(ptr)) { + if (Bindings.CResultSendSuccessSendErrorZIsOk(ptr)) { return new Result_SendSuccessSendErrorZ_OK(null, ptr); } else { return new Result_SendSuccessSendErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SendSuccessSendErrorZ constr_from_ptr(long ptr) { public class Result_SendSuccessSendErrorZ_OK : Result_SendSuccessSendErrorZ { public readonly SendSuccess res; internal Result_SendSuccessSendErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SendSuccessSendErrorZ_get_ok(ptr); + long res = Bindings.CResultSendSuccessSendErrorZGetOk(ptr); org.ldk.structs.SendSuccess res_hu_conv = org.ldk.structs.SendSuccess.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SendSuccessSendErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_SendSuccessSendErrorZ_Err : Result_SendSuccessSendErrorZ { public readonly SendError err; internal Result_SendSuccessSendErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SendSuccessSendErrorZ_get_err(ptr); + long err = Bindings.CResultSendSuccessSendErrorZGetErr(ptr); org.ldk.structs.SendError err_hu_conv = org.ldk.structs.SendError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SendSuccessSendErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_SendSuccessSendErrorZ in the success state. */ public static Result_SendSuccessSendErrorZ ok(org.ldk.structs.SendSuccess o) { - long ret = bindings.CResult_SendSuccessSendErrorZ_ok(o.ptr); + long ret = Bindings.CResultSendSuccessSendErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SendSuccessSendErrorZ ret_hu_conv = Result_SendSuccessSendErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SendSuccessSendErrorZ ok(org.ldk.structs.SendSuccess o) { * Creates a new CResult_SendSuccessSendErrorZ in the error state. */ public static Result_SendSuccessSendErrorZ err(org.ldk.structs.SendError e) { - long ret = bindings.CResult_SendSuccessSendErrorZ_err(e.ptr); + long ret = Bindings.CResultSendSuccessSendErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SendSuccessSendErrorZ ret_hu_conv = Result_SendSuccessSendErrorZ.constr_from_ptr(ret); @@ -66,7 +66,7 @@ public static Result_SendSuccessSendErrorZ err(org.ldk.structs.SendError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SendSuccessSendErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSendSuccessSendErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_ShutdownDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ShutdownDecodeErrorZ.cs index 6624e31f3..a3e15de4b 100644 --- a/c_sharp/src/org/ldk/structs/Result_ShutdownDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ShutdownDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ShutdownDecodeErrorZ : CommonBase { Result_ShutdownDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ShutdownDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ShutdownDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultShutdownDecodeErrorZFree(ptr); } } internal static Result_ShutdownDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ShutdownDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultShutdownDecodeErrorZIsOk(ptr)) { return new Result_ShutdownDecodeErrorZ_OK(null, ptr); } else { return new Result_ShutdownDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ShutdownDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ShutdownDecodeErrorZ_OK : Result_ShutdownDecodeErrorZ { public readonly Shutdown res; internal Result_ShutdownDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ShutdownDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultShutdownDecodeErrorZGetOk(ptr); org.ldk.structs.Shutdown res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Shutdown(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ShutdownDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_ShutdownDecodeErrorZ_Err : Result_ShutdownDecodeErrorZ { public readonly DecodeError err; internal Result_ShutdownDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ShutdownDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultShutdownDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ShutdownDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_ShutdownDecodeErrorZ in the success state. */ public static Result_ShutdownDecodeErrorZ ok(org.ldk.structs.Shutdown o) { - long ret = bindings.CResult_ShutdownDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultShutdownDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ShutdownDecodeErrorZ ok(org.ldk.structs.Shutdown o) { * Creates a new CResult_ShutdownDecodeErrorZ in the error state. */ public static Result_ShutdownDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ShutdownDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultShutdownDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ShutdownDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ShutdownDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultShutdownDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ShutdownDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultShutdownDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ShutdownDecodeErrorZ clone() { - long ret = bindings.CResult_ShutdownDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultShutdownDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptDecodeErrorZ.cs index 27612b9a4..85a112368 100644 --- a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ShutdownScriptDecodeErrorZ : CommonBase { Result_ShutdownScriptDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ShutdownScriptDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_ShutdownScriptDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultShutdownScriptDecodeErrorZFree(ptr); } } internal static Result_ShutdownScriptDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ShutdownScriptDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultShutdownScriptDecodeErrorZIsOk(ptr)) { return new Result_ShutdownScriptDecodeErrorZ_OK(null, ptr); } else { return new Result_ShutdownScriptDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ShutdownScriptDecodeErrorZ constr_from_ptr(long ptr) { public class Result_ShutdownScriptDecodeErrorZ_OK : Result_ShutdownScriptDecodeErrorZ { public readonly ShutdownScript res; internal Result_ShutdownScriptDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ShutdownScriptDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultShutdownScriptDecodeErrorZGetOk(ptr); org.ldk.structs.ShutdownScript res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ShutdownScript(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ShutdownScriptDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_ShutdownScriptDecodeErrorZ_Err : Result_ShutdownScriptDecodeErrorZ { public readonly DecodeError err; internal Result_ShutdownScriptDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ShutdownScriptDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultShutdownScriptDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ShutdownScriptDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_ShutdownScriptDecodeErrorZ in the success state. */ public static Result_ShutdownScriptDecodeErrorZ ok(org.ldk.structs.ShutdownScript o) { - long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultShutdownScriptDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ShutdownScriptDecodeErrorZ ok(org.ldk.structs.ShutdownScrip * Creates a new CResult_ShutdownScriptDecodeErrorZ in the error state. */ public static Result_ShutdownScriptDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultShutdownScriptDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ShutdownScriptDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ShutdownScriptDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultShutdownScriptDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultShutdownScriptDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ShutdownScriptDecodeErrorZ clone() { - long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultShutdownScriptDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptInvalidShutdownScriptZ.cs b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptInvalidShutdownScriptZ.cs index 4cffd040d..60126f311 100644 --- a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptInvalidShutdownScriptZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptInvalidShutdownScriptZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ShutdownScriptInvalidShutdownScriptZ : CommonBase { Result_ShutdownScriptInvalidShutdownScriptZ(object _dummy, long ptr) : base(ptr) { } ~Result_ShutdownScriptInvalidShutdownScriptZ() { - if (ptr != 0) { bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_free(ptr); } + if (ptr != 0) { Bindings.CResultShutdownScriptInvalidShutdownScriptZFree(ptr); } } internal static Result_ShutdownScriptInvalidShutdownScriptZ constr_from_ptr(long ptr) { - if (bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(ptr)) { + if (Bindings.CResultShutdownScriptInvalidShutdownScriptZIsOk(ptr)) { return new Result_ShutdownScriptInvalidShutdownScriptZ_OK(null, ptr); } else { return new Result_ShutdownScriptInvalidShutdownScriptZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ShutdownScriptInvalidShutdownScriptZ constr_from_ptr(long public class Result_ShutdownScriptInvalidShutdownScriptZ_OK : Result_ShutdownScriptInvalidShutdownScriptZ { public readonly ShutdownScript res; internal Result_ShutdownScriptInvalidShutdownScriptZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(ptr); + long res = Bindings.CResultShutdownScriptInvalidShutdownScriptZGetOk(ptr); org.ldk.structs.ShutdownScript res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ShutdownScript(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_ShutdownScriptInvalidShutdownScriptZ_OK(object _dummy, long ptr) public class Result_ShutdownScriptInvalidShutdownScriptZ_Err : Result_ShutdownScriptInvalidShutdownScriptZ { public readonly InvalidShutdownScript err; internal Result_ShutdownScriptInvalidShutdownScriptZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(ptr); + long err = Bindings.CResultShutdownScriptInvalidShutdownScriptZGetErr(ptr); org.ldk.structs.InvalidShutdownScript err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.InvalidShutdownScript(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_ShutdownScriptInvalidShutdownScriptZ_Err(object _dummy, long ptr * Creates a new CResult_ShutdownScriptInvalidShutdownScriptZ in the success state. */ public static Result_ShutdownScriptInvalidShutdownScriptZ ok(org.ldk.structs.ShutdownScript o) { - long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultShutdownScriptInvalidShutdownScriptZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_ShutdownScriptInvalidShutdownScriptZ ok(org.ldk.structs.Shu * Creates a new CResult_ShutdownScriptInvalidShutdownScriptZ in the error state. */ public static Result_ShutdownScriptInvalidShutdownScriptZ err(org.ldk.structs.InvalidShutdownScript e) { - long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultShutdownScriptInvalidShutdownScriptZErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_ShutdownScriptInvalidShutdownScriptZ err(org.ldk.structs.In * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(this.ptr); + bool ret = Bindings.CResultShutdownScriptInvalidShutdownScriptZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(this.ptr); + long ret = Bindings.CResultShutdownScriptInvalidShutdownScriptZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ShutdownScriptInvalidShutdownScriptZ clone() { - long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_clone(this.ptr); + long ret = Bindings.CResultShutdownScriptInvalidShutdownScriptZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptNoneZ.cs index e65cec4d3..db66ca96d 100644 --- a/c_sharp/src/org/ldk/structs/Result_ShutdownScriptNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ShutdownScriptNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ShutdownScriptNoneZ : CommonBase { Result_ShutdownScriptNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_ShutdownScriptNoneZ() { - if (ptr != 0) { bindings.CResult_ShutdownScriptNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultShutdownScriptNoneZFree(ptr); } } internal static Result_ShutdownScriptNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_ShutdownScriptNoneZ_is_ok(ptr)) { + if (Bindings.CResultShutdownScriptNoneZIsOk(ptr)) { return new Result_ShutdownScriptNoneZ_OK(null, ptr); } else { return new Result_ShutdownScriptNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_ShutdownScriptNoneZ constr_from_ptr(long ptr) { public class Result_ShutdownScriptNoneZ_OK : Result_ShutdownScriptNoneZ { public readonly ShutdownScript res; internal Result_ShutdownScriptNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ShutdownScriptNoneZ_get_ok(ptr); + long res = Bindings.CResultShutdownScriptNoneZGetOk(ptr); org.ldk.structs.ShutdownScript res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.ShutdownScript(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_ShutdownScriptNoneZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_ShutdownScriptNoneZ in the success state. */ public static Result_ShutdownScriptNoneZ ok(org.ldk.structs.ShutdownScript o) { - long ret = bindings.CResult_ShutdownScriptNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultShutdownScriptNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptNoneZ ret_hu_conv = Result_ShutdownScriptNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_ShutdownScriptNoneZ ok(org.ldk.structs.ShutdownScript o) { * Creates a new CResult_ShutdownScriptNoneZ in the error state. */ public static Result_ShutdownScriptNoneZ err() { - long ret = bindings.CResult_ShutdownScriptNoneZ_err(); + long ret = Bindings.CResultShutdownScriptNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptNoneZ ret_hu_conv = Result_ShutdownScriptNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_ShutdownScriptNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ShutdownScriptNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultShutdownScriptNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ShutdownScriptNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultShutdownScriptNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ShutdownScriptNoneZ clone() { - long ret = bindings.CResult_ShutdownScriptNoneZ_clone(this.ptr); + long ret = Bindings.CResultShutdownScriptNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptNoneZ ret_hu_conv = Result_ShutdownScriptNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SiPrefixBolt11ParseErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SiPrefixBolt11ParseErrorZ.cs index 442c71b6d..47a1ab6a8 100644 --- a/c_sharp/src/org/ldk/structs/Result_SiPrefixBolt11ParseErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SiPrefixBolt11ParseErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SiPrefixBolt11ParseErrorZ : CommonBase { Result_SiPrefixBolt11ParseErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SiPrefixBolt11ParseErrorZ() { - if (ptr != 0) { bindings.CResult_SiPrefixBolt11ParseErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSiPrefixBolt11ParseErrorZFree(ptr); } } internal static Result_SiPrefixBolt11ParseErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SiPrefixBolt11ParseErrorZ_is_ok(ptr)) { + if (Bindings.CResultSiPrefixBolt11ParseErrorZIsOk(ptr)) { return new Result_SiPrefixBolt11ParseErrorZ_OK(null, ptr); } else { return new Result_SiPrefixBolt11ParseErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_SiPrefixBolt11ParseErrorZ constr_from_ptr(long ptr) { public class Result_SiPrefixBolt11ParseErrorZ_OK : Result_SiPrefixBolt11ParseErrorZ { public readonly SiPrefix res; internal Result_SiPrefixBolt11ParseErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_SiPrefixBolt11ParseErrorZ_get_ok(ptr); + this.res = Bindings.CResultSiPrefixBolt11ParseErrorZGetOk(ptr); } } public class Result_SiPrefixBolt11ParseErrorZ_Err : Result_SiPrefixBolt11ParseErrorZ { public readonly Bolt11ParseError err; internal Result_SiPrefixBolt11ParseErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SiPrefixBolt11ParseErrorZ_get_err(ptr); + long err = Bindings.CResultSiPrefixBolt11ParseErrorZGetErr(ptr); org.ldk.structs.Bolt11ParseError err_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_SiPrefixBolt11ParseErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_SiPrefixBolt11ParseErrorZ in the success state. */ public static Result_SiPrefixBolt11ParseErrorZ ok(SiPrefix o) { - long ret = bindings.CResult_SiPrefixBolt11ParseErrorZ_ok(o); + long ret = Bindings.CResultSiPrefixBolt11ParseErrorZOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SiPrefixBolt11ParseErrorZ ret_hu_conv = Result_SiPrefixBolt11ParseErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_SiPrefixBolt11ParseErrorZ ok(SiPrefix o) { * Creates a new CResult_SiPrefixBolt11ParseErrorZ in the error state. */ public static Result_SiPrefixBolt11ParseErrorZ err(org.ldk.structs.Bolt11ParseError e) { - long ret = bindings.CResult_SiPrefixBolt11ParseErrorZ_err(e.ptr); + long ret = Bindings.CResultSiPrefixBolt11ParseErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SiPrefixBolt11ParseErrorZ ret_hu_conv = Result_SiPrefixBolt11ParseErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_SiPrefixBolt11ParseErrorZ err(org.ldk.structs.Bolt11ParseEr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SiPrefixBolt11ParseErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSiPrefixBolt11ParseErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSiPrefixBolt11ParseErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SiPrefixBolt11ParseErrorZ clone() { - long ret = bindings.CResult_SiPrefixBolt11ParseErrorZ_clone(this.ptr); + long ret = Bindings.CResultSiPrefixBolt11ParseErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SiPrefixBolt11ParseErrorZ ret_hu_conv = Result_SiPrefixBolt11ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.cs index 4a8113339..dbf4a6679 100644 --- a/c_sharp/src/org/ldk/structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : CommonBase { Result_SignedRawBolt11InvoiceBolt11ParseErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SignedRawBolt11InvoiceBolt11ParseErrorZ() { - if (ptr != 0) { bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZFree(ptr); } } internal static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(ptr)) { + if (Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZIsOk(ptr)) { return new Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_OK(null, ptr); } else { return new Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ constr_from_ptr(l public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_OK : Result_SignedRawBolt11InvoiceBolt11ParseErrorZ { public readonly SignedRawBolt11Invoice res; internal Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(ptr); + long res = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZGetOk(ptr); org.ldk.structs.SignedRawBolt11Invoice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.SignedRawBolt11Invoice(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_OK(object _dummy, long p public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_Err : Result_SignedRawBolt11InvoiceBolt11ParseErrorZ { public readonly Bolt11ParseError err; internal Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(ptr); + long err = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZGetErr(ptr); org.ldk.structs.Bolt11ParseError err_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_Err(object _dummy, long * Creates a new CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ in the success state. */ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ok(org.ldk.structs.SignedRawBolt11Invoice o) { - long ret = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ret_hu_conv = Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ok(org.ldk.structs. * Creates a new CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ in the error state. */ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ err(org.ldk.structs.Bolt11ParseError e) { - long ret = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(e.ptr); + long ret = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ret_hu_conv = Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ err(org.ldk.structs * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SignedRawBolt11InvoiceBolt11ParseErrorZ clone() { - long ret = bindings.CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(this.ptr); + long ret = Bindings.CResultSignedRawBolt11InvoiceBolt11ParseErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ret_hu_conv = Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SocketAddressDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SocketAddressDecodeErrorZ.cs index 4752af6cd..94c477733 100644 --- a/c_sharp/src/org/ldk/structs/Result_SocketAddressDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SocketAddressDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SocketAddressDecodeErrorZ : CommonBase { Result_SocketAddressDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SocketAddressDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_SocketAddressDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSocketAddressDecodeErrorZFree(ptr); } } internal static Result_SocketAddressDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SocketAddressDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultSocketAddressDecodeErrorZIsOk(ptr)) { return new Result_SocketAddressDecodeErrorZ_OK(null, ptr); } else { return new Result_SocketAddressDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SocketAddressDecodeErrorZ constr_from_ptr(long ptr) { public class Result_SocketAddressDecodeErrorZ_OK : Result_SocketAddressDecodeErrorZ { public readonly SocketAddress res; internal Result_SocketAddressDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SocketAddressDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultSocketAddressDecodeErrorZGetOk(ptr); org.ldk.structs.SocketAddress res_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SocketAddressDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_SocketAddressDecodeErrorZ_Err : Result_SocketAddressDecodeErrorZ { public readonly DecodeError err; internal Result_SocketAddressDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SocketAddressDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultSocketAddressDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SocketAddressDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_SocketAddressDecodeErrorZ in the success state. */ public static Result_SocketAddressDecodeErrorZ ok(org.ldk.structs.SocketAddress o) { - long ret = bindings.CResult_SocketAddressDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultSocketAddressDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressDecodeErrorZ ret_hu_conv = Result_SocketAddressDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SocketAddressDecodeErrorZ ok(org.ldk.structs.SocketAddress * Creates a new CResult_SocketAddressDecodeErrorZ in the error state. */ public static Result_SocketAddressDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_SocketAddressDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultSocketAddressDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressDecodeErrorZ ret_hu_conv = Result_SocketAddressDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SocketAddressDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SocketAddressDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSocketAddressDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SocketAddressDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSocketAddressDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SocketAddressDecodeErrorZ clone() { - long ret = bindings.CResult_SocketAddressDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultSocketAddressDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressDecodeErrorZ ret_hu_conv = Result_SocketAddressDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SocketAddressSocketAddressParseErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SocketAddressSocketAddressParseErrorZ.cs index 6972f8cd3..3be302666 100644 --- a/c_sharp/src/org/ldk/structs/Result_SocketAddressSocketAddressParseErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SocketAddressSocketAddressParseErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SocketAddressSocketAddressParseErrorZ : CommonBase { Result_SocketAddressSocketAddressParseErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SocketAddressSocketAddressParseErrorZ() { - if (ptr != 0) { bindings.CResult_SocketAddressSocketAddressParseErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSocketAddressSocketAddressParseErrorZFree(ptr); } } internal static Result_SocketAddressSocketAddressParseErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SocketAddressSocketAddressParseErrorZ_is_ok(ptr)) { + if (Bindings.CResultSocketAddressSocketAddressParseErrorZIsOk(ptr)) { return new Result_SocketAddressSocketAddressParseErrorZ_OK(null, ptr); } else { return new Result_SocketAddressSocketAddressParseErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SocketAddressSocketAddressParseErrorZ constr_from_ptr(lon public class Result_SocketAddressSocketAddressParseErrorZ_OK : Result_SocketAddressSocketAddressParseErrorZ { public readonly SocketAddress res; internal Result_SocketAddressSocketAddressParseErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SocketAddressSocketAddressParseErrorZ_get_ok(ptr); + long res = Bindings.CResultSocketAddressSocketAddressParseErrorZGetOk(ptr); org.ldk.structs.SocketAddress res_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SocketAddressSocketAddressParseErrorZ_OK(object _dummy, long ptr public class Result_SocketAddressSocketAddressParseErrorZ_Err : Result_SocketAddressSocketAddressParseErrorZ { public readonly SocketAddressParseError err; internal Result_SocketAddressSocketAddressParseErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_SocketAddressSocketAddressParseErrorZ_get_err(ptr); + this.err = Bindings.CResultSocketAddressSocketAddressParseErrorZGetErr(ptr); } } @@ -39,7 +39,7 @@ internal Result_SocketAddressSocketAddressParseErrorZ_Err(object _dummy, long pt * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the success state. */ public static Result_SocketAddressSocketAddressParseErrorZ ok(org.ldk.structs.SocketAddress o) { - long ret = bindings.CResult_SocketAddressSocketAddressParseErrorZ_ok(o.ptr); + long ret = Bindings.CResultSocketAddressSocketAddressParseErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressSocketAddressParseErrorZ ret_hu_conv = Result_SocketAddressSocketAddressParseErrorZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public static Result_SocketAddressSocketAddressParseErrorZ ok(org.ldk.structs.So * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the error state. */ public static Result_SocketAddressSocketAddressParseErrorZ err(SocketAddressParseError e) { - long ret = bindings.CResult_SocketAddressSocketAddressParseErrorZ_err(e); + long ret = Bindings.CResultSocketAddressSocketAddressParseErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressSocketAddressParseErrorZ ret_hu_conv = Result_SocketAddressSocketAddressParseErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_SocketAddressSocketAddressParseErrorZ err(SocketAddressPars * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SocketAddressSocketAddressParseErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSocketAddressSocketAddressParseErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSocketAddressSocketAddressParseErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SocketAddressSocketAddressParseErrorZ clone() { - long ret = bindings.CResult_SocketAddressSocketAddressParseErrorZ_clone(this.ptr); + long ret = Bindings.CResultSocketAddressSocketAddressParseErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressSocketAddressParseErrorZ ret_hu_conv = Result_SocketAddressSocketAddressParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SpendableOutputDescriptorDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SpendableOutputDescriptorDecodeErrorZ.cs index a04b460c9..90393e57f 100644 --- a/c_sharp/src/org/ldk/structs/Result_SpendableOutputDescriptorDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SpendableOutputDescriptorDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SpendableOutputDescriptorDecodeErrorZ : CommonBase { Result_SpendableOutputDescriptorDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SpendableOutputDescriptorDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSpendableOutputDescriptorDecodeErrorZFree(ptr); } } internal static Result_SpendableOutputDescriptorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultSpendableOutputDescriptorDecodeErrorZIsOk(ptr)) { return new Result_SpendableOutputDescriptorDecodeErrorZ_OK(null, ptr); } else { return new Result_SpendableOutputDescriptorDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SpendableOutputDescriptorDecodeErrorZ constr_from_ptr(lon public class Result_SpendableOutputDescriptorDecodeErrorZ_OK : Result_SpendableOutputDescriptorDecodeErrorZ { public readonly SpendableOutputDescriptor res; internal Result_SpendableOutputDescriptorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultSpendableOutputDescriptorDecodeErrorZGetOk(ptr); org.ldk.structs.SpendableOutputDescriptor res_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(res); if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SpendableOutputDescriptorDecodeErrorZ_OK(object _dummy, long ptr public class Result_SpendableOutputDescriptorDecodeErrorZ_Err : Result_SpendableOutputDescriptorDecodeErrorZ { public readonly DecodeError err; internal Result_SpendableOutputDescriptorDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultSpendableOutputDescriptorDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SpendableOutputDescriptorDecodeErrorZ_Err(object _dummy, long pt * Creates a new CResult_SpendableOutputDescriptorDecodeErrorZ in the success state. */ public static Result_SpendableOutputDescriptorDecodeErrorZ ok(org.ldk.structs.SpendableOutputDescriptor o) { - long ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultSpendableOutputDescriptorDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SpendableOutputDescriptorDecodeErrorZ ok(org.ldk.structs.Sp * Creates a new CResult_SpendableOutputDescriptorDecodeErrorZ in the error state. */ public static Result_SpendableOutputDescriptorDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultSpendableOutputDescriptorDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SpendableOutputDescriptorDecodeErrorZ err(org.ldk.structs.D * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSpendableOutputDescriptorDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSpendableOutputDescriptorDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SpendableOutputDescriptorDecodeErrorZ clone() { - long ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultSpendableOutputDescriptorDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SpliceAckDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SpliceAckDecodeErrorZ.cs index 2034f6b80..006e2f539 100644 --- a/c_sharp/src/org/ldk/structs/Result_SpliceAckDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SpliceAckDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SpliceAckDecodeErrorZ : CommonBase { Result_SpliceAckDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SpliceAckDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_SpliceAckDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSpliceAckDecodeErrorZFree(ptr); } } internal static Result_SpliceAckDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SpliceAckDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultSpliceAckDecodeErrorZIsOk(ptr)) { return new Result_SpliceAckDecodeErrorZ_OK(null, ptr); } else { return new Result_SpliceAckDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SpliceAckDecodeErrorZ constr_from_ptr(long ptr) { public class Result_SpliceAckDecodeErrorZ_OK : Result_SpliceAckDecodeErrorZ { public readonly SpliceAck res; internal Result_SpliceAckDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SpliceAckDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultSpliceAckDecodeErrorZGetOk(ptr); org.ldk.structs.SpliceAck res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.SpliceAck(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SpliceAckDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_SpliceAckDecodeErrorZ_Err : Result_SpliceAckDecodeErrorZ { public readonly DecodeError err; internal Result_SpliceAckDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SpliceAckDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultSpliceAckDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SpliceAckDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_SpliceAckDecodeErrorZ in the success state. */ public static Result_SpliceAckDecodeErrorZ ok(org.ldk.structs.SpliceAck o) { - long ret = bindings.CResult_SpliceAckDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultSpliceAckDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceAckDecodeErrorZ ret_hu_conv = Result_SpliceAckDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SpliceAckDecodeErrorZ ok(org.ldk.structs.SpliceAck o) { * Creates a new CResult_SpliceAckDecodeErrorZ in the error state. */ public static Result_SpliceAckDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_SpliceAckDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultSpliceAckDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceAckDecodeErrorZ ret_hu_conv = Result_SpliceAckDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SpliceAckDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SpliceAckDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSpliceAckDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SpliceAckDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSpliceAckDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SpliceAckDecodeErrorZ clone() { - long ret = bindings.CResult_SpliceAckDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultSpliceAckDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceAckDecodeErrorZ ret_hu_conv = Result_SpliceAckDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SpliceDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SpliceDecodeErrorZ.cs index 8d9f07b93..4dad1c3df 100644 --- a/c_sharp/src/org/ldk/structs/Result_SpliceDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SpliceDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SpliceDecodeErrorZ : CommonBase { Result_SpliceDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SpliceDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_SpliceDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSpliceDecodeErrorZFree(ptr); } } internal static Result_SpliceDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SpliceDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultSpliceDecodeErrorZIsOk(ptr)) { return new Result_SpliceDecodeErrorZ_OK(null, ptr); } else { return new Result_SpliceDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SpliceDecodeErrorZ constr_from_ptr(long ptr) { public class Result_SpliceDecodeErrorZ_OK : Result_SpliceDecodeErrorZ { public readonly Splice res; internal Result_SpliceDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SpliceDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultSpliceDecodeErrorZGetOk(ptr); org.ldk.structs.Splice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Splice(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SpliceDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, pt public class Result_SpliceDecodeErrorZ_Err : Result_SpliceDecodeErrorZ { public readonly DecodeError err; internal Result_SpliceDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SpliceDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultSpliceDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SpliceDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, p * Creates a new CResult_SpliceDecodeErrorZ in the success state. */ public static Result_SpliceDecodeErrorZ ok(org.ldk.structs.Splice o) { - long ret = bindings.CResult_SpliceDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultSpliceDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceDecodeErrorZ ret_hu_conv = Result_SpliceDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SpliceDecodeErrorZ ok(org.ldk.structs.Splice o) { * Creates a new CResult_SpliceDecodeErrorZ in the error state. */ public static Result_SpliceDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_SpliceDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultSpliceDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceDecodeErrorZ ret_hu_conv = Result_SpliceDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SpliceDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SpliceDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSpliceDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SpliceDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSpliceDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SpliceDecodeErrorZ clone() { - long ret = bindings.CResult_SpliceDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultSpliceDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceDecodeErrorZ ret_hu_conv = Result_SpliceDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_SpliceLockedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_SpliceLockedDecodeErrorZ.cs index e8aafaafb..a0a65c8c1 100644 --- a/c_sharp/src/org/ldk/structs/Result_SpliceLockedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_SpliceLockedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_SpliceLockedDecodeErrorZ : CommonBase { Result_SpliceLockedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_SpliceLockedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_SpliceLockedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultSpliceLockedDecodeErrorZFree(ptr); } } internal static Result_SpliceLockedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_SpliceLockedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultSpliceLockedDecodeErrorZIsOk(ptr)) { return new Result_SpliceLockedDecodeErrorZ_OK(null, ptr); } else { return new Result_SpliceLockedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_SpliceLockedDecodeErrorZ constr_from_ptr(long ptr) { public class Result_SpliceLockedDecodeErrorZ_OK : Result_SpliceLockedDecodeErrorZ { public readonly SpliceLocked res; internal Result_SpliceLockedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_SpliceLockedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultSpliceLockedDecodeErrorZGetOk(ptr); org.ldk.structs.SpliceLocked res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.SpliceLocked(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_SpliceLockedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_SpliceLockedDecodeErrorZ_Err : Result_SpliceLockedDecodeErrorZ { public readonly DecodeError err; internal Result_SpliceLockedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_SpliceLockedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultSpliceLockedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_SpliceLockedDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_SpliceLockedDecodeErrorZ in the success state. */ public static Result_SpliceLockedDecodeErrorZ ok(org.ldk.structs.SpliceLocked o) { - long ret = bindings.CResult_SpliceLockedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultSpliceLockedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceLockedDecodeErrorZ ret_hu_conv = Result_SpliceLockedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_SpliceLockedDecodeErrorZ ok(org.ldk.structs.SpliceLocked o) * Creates a new CResult_SpliceLockedDecodeErrorZ in the error state. */ public static Result_SpliceLockedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_SpliceLockedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultSpliceLockedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceLockedDecodeErrorZ ret_hu_conv = Result_SpliceLockedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_SpliceLockedDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_SpliceLockedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultSpliceLockedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_SpliceLockedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultSpliceLockedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_SpliceLockedDecodeErrorZ clone() { - long ret = bindings.CResult_SpliceLockedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultSpliceLockedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceLockedDecodeErrorZ ret_hu_conv = Result_SpliceLockedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.cs index 571cb1c03..3afbd4df1 100644 --- a/c_sharp/src/org/ldk/structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : CommonBase { Result_StaticPaymentOutputDescriptorDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_StaticPaymentOutputDescriptorDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZFree(ptr); } } internal static Result_StaticPaymentOutputDescriptorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZIsOk(ptr)) { return new Result_StaticPaymentOutputDescriptorDecodeErrorZ_OK(null, ptr); } else { return new Result_StaticPaymentOutputDescriptorDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_StaticPaymentOutputDescriptorDecodeErrorZ constr_from_ptr public class Result_StaticPaymentOutputDescriptorDecodeErrorZ_OK : Result_StaticPaymentOutputDescriptorDecodeErrorZ { public readonly StaticPaymentOutputDescriptor res; internal Result_StaticPaymentOutputDescriptorDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZGetOk(ptr); org.ldk.structs.StaticPaymentOutputDescriptor res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.StaticPaymentOutputDescriptor(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_StaticPaymentOutputDescriptorDecodeErrorZ_OK(object _dummy, long public class Result_StaticPaymentOutputDescriptorDecodeErrorZ_Err : Result_StaticPaymentOutputDescriptorDecodeErrorZ { public readonly DecodeError err; internal Result_StaticPaymentOutputDescriptorDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_StaticPaymentOutputDescriptorDecodeErrorZ_Err(object _dummy, lon * Creates a new CResult_StaticPaymentOutputDescriptorDecodeErrorZ in the success state. */ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ ok(org.ldk.structs.StaticPaymentOutputDescriptor o) { - long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ ok(org.ldk.struct * Creates a new CResult_StaticPaymentOutputDescriptorDecodeErrorZ in the error state. */ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ err(org.ldk.struc * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_StaticPaymentOutputDescriptorDecodeErrorZ clone() { - long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultStaticPaymentOutputDescriptorDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_StfuDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_StfuDecodeErrorZ.cs index 4168537a0..f3452c7ce 100644 --- a/c_sharp/src/org/ldk/structs/Result_StfuDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_StfuDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_StfuDecodeErrorZ : CommonBase { Result_StfuDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_StfuDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_StfuDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultStfuDecodeErrorZFree(ptr); } } internal static Result_StfuDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_StfuDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultStfuDecodeErrorZIsOk(ptr)) { return new Result_StfuDecodeErrorZ_OK(null, ptr); } else { return new Result_StfuDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_StfuDecodeErrorZ constr_from_ptr(long ptr) { public class Result_StfuDecodeErrorZ_OK : Result_StfuDecodeErrorZ { public readonly Stfu res; internal Result_StfuDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_StfuDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultStfuDecodeErrorZGetOk(ptr); org.ldk.structs.Stfu res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Stfu(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_StfuDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) public class Result_StfuDecodeErrorZ_Err : Result_StfuDecodeErrorZ { public readonly DecodeError err; internal Result_StfuDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_StfuDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultStfuDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_StfuDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_StfuDecodeErrorZ in the success state. */ public static Result_StfuDecodeErrorZ ok(org.ldk.structs.Stfu o) { - long ret = bindings.CResult_StfuDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultStfuDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_StfuDecodeErrorZ ret_hu_conv = Result_StfuDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_StfuDecodeErrorZ ok(org.ldk.structs.Stfu o) { * Creates a new CResult_StfuDecodeErrorZ in the error state. */ public static Result_StfuDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_StfuDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultStfuDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_StfuDecodeErrorZ ret_hu_conv = Result_StfuDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_StfuDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_StfuDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultStfuDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_StfuDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultStfuDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_StfuDecodeErrorZ clone() { - long ret = bindings.CResult_StfuDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultStfuDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_StfuDecodeErrorZ ret_hu_conv = Result_StfuDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_StrSecp256k1ErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_StrSecp256k1ErrorZ.cs index 421ccb31e..36cbf0831 100644 --- a/c_sharp/src/org/ldk/structs/Result_StrSecp256k1ErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_StrSecp256k1ErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_StrSecp256k1ErrorZ : CommonBase { Result_StrSecp256k1ErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_StrSecp256k1ErrorZ() { - if (ptr != 0) { bindings.CResult_StrSecp256k1ErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultStrSecp256k1ErrorZFree(ptr); } } internal static Result_StrSecp256k1ErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_StrSecp256k1ErrorZ_is_ok(ptr)) { + if (Bindings.CResultStrSecp256k1ErrorZIsOk(ptr)) { return new Result_StrSecp256k1ErrorZ_OK(null, ptr); } else { return new Result_StrSecp256k1ErrorZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_StrSecp256k1ErrorZ constr_from_ptr(long ptr) { public class Result_StrSecp256k1ErrorZ_OK : Result_StrSecp256k1ErrorZ { public readonly string res; internal Result_StrSecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_StrSecp256k1ErrorZ_get_ok(ptr); - string res_conv = InternalUtils.decodeString(res); + long res = Bindings.CResultStrSecp256k1ErrorZGetOk(ptr); + string res_conv = InternalUtils.DecodeString(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_StrSecp256k1ErrorZ_OK(object _dummy, long ptr) : base(_dummy, pt public class Result_StrSecp256k1ErrorZ_Err : Result_StrSecp256k1ErrorZ { public readonly Secp256k1Error err; internal Result_StrSecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_StrSecp256k1ErrorZ_get_err(ptr); + this.err = Bindings.CResultStrSecp256k1ErrorZGetErr(ptr); } } @@ -38,7 +38,7 @@ internal Result_StrSecp256k1ErrorZ_Err(object _dummy, long ptr) : base(_dummy, p * Creates a new CResult_StrSecp256k1ErrorZ in the success state. */ public static Result_StrSecp256k1ErrorZ ok(string o) { - long ret = bindings.CResult_StrSecp256k1ErrorZ_ok(InternalUtils.encodeString(o)); + long ret = Bindings.CResultStrSecp256k1ErrorZOk(InternalUtils.EncodeString(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_StrSecp256k1ErrorZ ret_hu_conv = Result_StrSecp256k1ErrorZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_StrSecp256k1ErrorZ ok(string o) { * Creates a new CResult_StrSecp256k1ErrorZ in the error state. */ public static Result_StrSecp256k1ErrorZ err(Secp256k1Error e) { - long ret = bindings.CResult_StrSecp256k1ErrorZ_err(e); + long ret = Bindings.CResultStrSecp256k1ErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_StrSecp256k1ErrorZ ret_hu_conv = Result_StrSecp256k1ErrorZ.constr_from_ptr(ret); @@ -60,13 +60,13 @@ public static Result_StrSecp256k1ErrorZ err(Secp256k1Error e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_StrSecp256k1ErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultStrSecp256k1ErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_StrSecp256k1ErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultStrSecp256k1ErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_StrSecp256k1ErrorZ clone() { - long ret = bindings.CResult_StrSecp256k1ErrorZ_clone(this.ptr); + long ret = Bindings.CResultStrSecp256k1ErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_StrSecp256k1ErrorZ ret_hu_conv = Result_StrSecp256k1ErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesAPIErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesAPIErrorZ.cs index 44bfed188..b402dcf17 100644 --- a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesAPIErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesAPIErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ThirtyTwoBytesAPIErrorZ : CommonBase { Result_ThirtyTwoBytesAPIErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_ThirtyTwoBytesAPIErrorZ() { - if (ptr != 0) { bindings.CResult_ThirtyTwoBytesAPIErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultThirtyTwoBytesAPIErrorZFree(ptr); } } internal static Result_ThirtyTwoBytesAPIErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_ThirtyTwoBytesAPIErrorZ_is_ok(ptr)) { + if (Bindings.CResultThirtyTwoBytesAPIErrorZIsOk(ptr)) { return new Result_ThirtyTwoBytesAPIErrorZ_OK(null, ptr); } else { return new Result_ThirtyTwoBytesAPIErrorZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_ThirtyTwoBytesAPIErrorZ constr_from_ptr(long ptr) { public class Result_ThirtyTwoBytesAPIErrorZ_OK : Result_ThirtyTwoBytesAPIErrorZ { public readonly byte[] res; internal Result_ThirtyTwoBytesAPIErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ThirtyTwoBytesAPIErrorZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultThirtyTwoBytesAPIErrorZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_ThirtyTwoBytesAPIErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_ThirtyTwoBytesAPIErrorZ_Err : Result_ThirtyTwoBytesAPIErrorZ { public readonly APIError err; internal Result_ThirtyTwoBytesAPIErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ThirtyTwoBytesAPIErrorZ_get_err(ptr); + long err = Bindings.CResultThirtyTwoBytesAPIErrorZGetErr(ptr); org.ldk.structs.APIError err_hu_conv = org.ldk.structs.APIError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -41,7 +41,7 @@ internal Result_ThirtyTwoBytesAPIErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the success state. */ public static Result_ThirtyTwoBytesAPIErrorZ ok(byte[] o) { - long ret = bindings.CResult_ThirtyTwoBytesAPIErrorZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.CResultThirtyTwoBytesAPIErrorZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesAPIErrorZ ret_hu_conv = Result_ThirtyTwoBytesAPIErrorZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Result_ThirtyTwoBytesAPIErrorZ ok(byte[] o) { * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the error state. */ public static Result_ThirtyTwoBytesAPIErrorZ err(org.ldk.structs.APIError e) { - long ret = bindings.CResult_ThirtyTwoBytesAPIErrorZ_err(e.ptr); + long ret = Bindings.CResultThirtyTwoBytesAPIErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesAPIErrorZ ret_hu_conv = Result_ThirtyTwoBytesAPIErrorZ.constr_from_ptr(ret); @@ -64,13 +64,13 @@ public static Result_ThirtyTwoBytesAPIErrorZ err(org.ldk.structs.APIError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ThirtyTwoBytesAPIErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultThirtyTwoBytesAPIErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesAPIErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ThirtyTwoBytesAPIErrorZ clone() { - long ret = bindings.CResult_ThirtyTwoBytesAPIErrorZ_clone(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesAPIErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesAPIErrorZ ret_hu_conv = Result_ThirtyTwoBytesAPIErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesNoneZ.cs index f60ea0128..106ad42f4 100644 --- a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ThirtyTwoBytesNoneZ : CommonBase { Result_ThirtyTwoBytesNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_ThirtyTwoBytesNoneZ() { - if (ptr != 0) { bindings.CResult_ThirtyTwoBytesNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultThirtyTwoBytesNoneZFree(ptr); } } internal static Result_ThirtyTwoBytesNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_ThirtyTwoBytesNoneZ_is_ok(ptr)) { + if (Bindings.CResultThirtyTwoBytesNoneZIsOk(ptr)) { return new Result_ThirtyTwoBytesNoneZ_OK(null, ptr); } else { return new Result_ThirtyTwoBytesNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_ThirtyTwoBytesNoneZ constr_from_ptr(long ptr) { public class Result_ThirtyTwoBytesNoneZ_OK : Result_ThirtyTwoBytesNoneZ { public readonly byte[] res; internal Result_ThirtyTwoBytesNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ThirtyTwoBytesNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultThirtyTwoBytesNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_ThirtyTwoBytesNoneZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_ThirtyTwoBytesNoneZ in the success state. */ public static Result_ThirtyTwoBytesNoneZ ok(byte[] o) { - long ret = bindings.CResult_ThirtyTwoBytesNoneZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.CResultThirtyTwoBytesNoneZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesNoneZ ret_hu_conv = Result_ThirtyTwoBytesNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_ThirtyTwoBytesNoneZ ok(byte[] o) { * Creates a new CResult_ThirtyTwoBytesNoneZ in the error state. */ public static Result_ThirtyTwoBytesNoneZ err() { - long ret = bindings.CResult_ThirtyTwoBytesNoneZ_err(); + long ret = Bindings.CResultThirtyTwoBytesNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesNoneZ ret_hu_conv = Result_ThirtyTwoBytesNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_ThirtyTwoBytesNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ThirtyTwoBytesNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultThirtyTwoBytesNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ThirtyTwoBytesNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ThirtyTwoBytesNoneZ clone() { - long ret = bindings.CResult_ThirtyTwoBytesNoneZ_clone(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesNoneZ ret_hu_conv = Result_ThirtyTwoBytesNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesPaymentSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesPaymentSendFailureZ.cs index f3869ba10..0dc76a668 100644 --- a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesPaymentSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesPaymentSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ThirtyTwoBytesPaymentSendFailureZ : CommonBase { Result_ThirtyTwoBytesPaymentSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_ThirtyTwoBytesPaymentSendFailureZ() { - if (ptr != 0) { bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultThirtyTwoBytesPaymentSendFailureZFree(ptr); } } internal static Result_ThirtyTwoBytesPaymentSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultThirtyTwoBytesPaymentSendFailureZIsOk(ptr)) { return new Result_ThirtyTwoBytesPaymentSendFailureZ_OK(null, ptr); } else { return new Result_ThirtyTwoBytesPaymentSendFailureZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_ThirtyTwoBytesPaymentSendFailureZ constr_from_ptr(long pt public class Result_ThirtyTwoBytesPaymentSendFailureZ_OK : Result_ThirtyTwoBytesPaymentSendFailureZ { public readonly byte[] res; internal Result_ThirtyTwoBytesPaymentSendFailureZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultThirtyTwoBytesPaymentSendFailureZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_ThirtyTwoBytesPaymentSendFailureZ_OK(object _dummy, long ptr) : public class Result_ThirtyTwoBytesPaymentSendFailureZ_Err : Result_ThirtyTwoBytesPaymentSendFailureZ { public readonly PaymentSendFailure err; internal Result_ThirtyTwoBytesPaymentSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(ptr); + long err = Bindings.CResultThirtyTwoBytesPaymentSendFailureZGetErr(ptr); org.ldk.structs.PaymentSendFailure err_hu_conv = org.ldk.structs.PaymentSendFailure.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -41,7 +41,7 @@ internal Result_ThirtyTwoBytesPaymentSendFailureZ_Err(object _dummy, long ptr) : * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the success state. */ public static Result_ThirtyTwoBytesPaymentSendFailureZ ok(byte[] o) { - long ret = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.CResultThirtyTwoBytesPaymentSendFailureZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesPaymentSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesPaymentSendFailureZ.constr_from_ptr(ret); @@ -52,7 +52,7 @@ public static Result_ThirtyTwoBytesPaymentSendFailureZ ok(byte[] o) { * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the error state. */ public static Result_ThirtyTwoBytesPaymentSendFailureZ err(org.ldk.structs.PaymentSendFailure e) { - long ret = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_err(e.ptr); + long ret = Bindings.CResultThirtyTwoBytesPaymentSendFailureZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesPaymentSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesPaymentSendFailureZ.constr_from_ptr(ret); @@ -64,13 +64,13 @@ public static Result_ThirtyTwoBytesPaymentSendFailureZ err(org.ldk.structs.Payme * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultThirtyTwoBytesPaymentSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesPaymentSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ThirtyTwoBytesPaymentSendFailureZ clone() { - long ret = bindings.CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesPaymentSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesPaymentSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesPaymentSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesRetryableSendFailureZ.cs b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesRetryableSendFailureZ.cs index 3a8da7023..9ed164569 100644 --- a/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesRetryableSendFailureZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_ThirtyTwoBytesRetryableSendFailureZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_ThirtyTwoBytesRetryableSendFailureZ : CommonBase { Result_ThirtyTwoBytesRetryableSendFailureZ(object _dummy, long ptr) : base(ptr) { } ~Result_ThirtyTwoBytesRetryableSendFailureZ() { - if (ptr != 0) { bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_free(ptr); } + if (ptr != 0) { Bindings.CResultThirtyTwoBytesRetryableSendFailureZFree(ptr); } } internal static Result_ThirtyTwoBytesRetryableSendFailureZ constr_from_ptr(long ptr) { - if (bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(ptr)) { + if (Bindings.CResultThirtyTwoBytesRetryableSendFailureZIsOk(ptr)) { return new Result_ThirtyTwoBytesRetryableSendFailureZ_OK(null, ptr); } else { return new Result_ThirtyTwoBytesRetryableSendFailureZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_ThirtyTwoBytesRetryableSendFailureZ constr_from_ptr(long public class Result_ThirtyTwoBytesRetryableSendFailureZ_OK : Result_ThirtyTwoBytesRetryableSendFailureZ { public readonly byte[] res; internal Result_ThirtyTwoBytesRetryableSendFailureZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultThirtyTwoBytesRetryableSendFailureZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -30,7 +30,7 @@ internal Result_ThirtyTwoBytesRetryableSendFailureZ_OK(object _dummy, long ptr) public class Result_ThirtyTwoBytesRetryableSendFailureZ_Err : Result_ThirtyTwoBytesRetryableSendFailureZ { public readonly RetryableSendFailure err; internal Result_ThirtyTwoBytesRetryableSendFailureZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(ptr); + this.err = Bindings.CResultThirtyTwoBytesRetryableSendFailureZGetErr(ptr); } } @@ -38,7 +38,7 @@ internal Result_ThirtyTwoBytesRetryableSendFailureZ_Err(object _dummy, long ptr) * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the success state. */ public static Result_ThirtyTwoBytesRetryableSendFailureZ ok(byte[] o) { - long ret = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(o, 32))); + long ret = Bindings.CResultThirtyTwoBytesRetryableSendFailureZOk(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(o, 32))); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesRetryableSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesRetryableSendFailureZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_ThirtyTwoBytesRetryableSendFailureZ ok(byte[] o) { * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the error state. */ public static Result_ThirtyTwoBytesRetryableSendFailureZ err(RetryableSendFailure e) { - long ret = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_err(e); + long ret = Bindings.CResultThirtyTwoBytesRetryableSendFailureZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesRetryableSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesRetryableSendFailureZ.constr_from_ptr(ret); @@ -60,13 +60,13 @@ public static Result_ThirtyTwoBytesRetryableSendFailureZ err(RetryableSendFailur * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(this.ptr); + bool ret = Bindings.CResultThirtyTwoBytesRetryableSendFailureZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesRetryableSendFailureZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_ThirtyTwoBytesRetryableSendFailureZ clone() { - long ret = bindings.CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(this.ptr); + long ret = Bindings.CResultThirtyTwoBytesRetryableSendFailureZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ThirtyTwoBytesRetryableSendFailureZ ret_hu_conv = Result_ThirtyTwoBytesRetryableSendFailureZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TransactionNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_TransactionNoneZ.cs index 16f65acf4..c9da3a523 100644 --- a/c_sharp/src/org/ldk/structs/Result_TransactionNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TransactionNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TransactionNoneZ : CommonBase { Result_TransactionNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_TransactionNoneZ() { - if (ptr != 0) { bindings.CResult_TransactionNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTransactionNoneZFree(ptr); } } internal static Result_TransactionNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_TransactionNoneZ_is_ok(ptr)) { + if (Bindings.CResultTransactionNoneZIsOk(ptr)) { return new Result_TransactionNoneZ_OK(null, ptr); } else { return new Result_TransactionNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_TransactionNoneZ constr_from_ptr(long ptr) { public class Result_TransactionNoneZ_OK : Result_TransactionNoneZ { public readonly byte[] res; internal Result_TransactionNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TransactionNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultTransactionNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_TransactionNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr * Creates a new CResult_TransactionNoneZ in the success state. */ public static Result_TransactionNoneZ ok(byte[] o) { - long ret = bindings.CResult_TransactionNoneZ_ok(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.CResultTransactionNoneZOk(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionNoneZ ret_hu_conv = Result_TransactionNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_TransactionNoneZ ok(byte[] o) { * Creates a new CResult_TransactionNoneZ in the error state. */ public static Result_TransactionNoneZ err() { - long ret = bindings.CResult_TransactionNoneZ_err(); + long ret = Bindings.CResultTransactionNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionNoneZ ret_hu_conv = Result_TransactionNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_TransactionNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TransactionNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultTransactionNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TransactionNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTransactionNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TransactionNoneZ clone() { - long ret = bindings.CResult_TransactionNoneZ_clone(this.ptr); + long ret = Bindings.CResultTransactionNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionNoneZ ret_hu_conv = Result_TransactionNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedDecodeErrorZ.cs index 56e43b620..42ccd9461 100644 --- a/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TransactionU16LenLimitedDecodeErrorZ : CommonBase { Result_TransactionU16LenLimitedDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TransactionU16LenLimitedDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTransactionU16LenLimitedDecodeErrorZFree(ptr); } } internal static Result_TransactionU16LenLimitedDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTransactionU16LenLimitedDecodeErrorZIsOk(ptr)) { return new Result_TransactionU16LenLimitedDecodeErrorZ_OK(null, ptr); } else { return new Result_TransactionU16LenLimitedDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TransactionU16LenLimitedDecodeErrorZ constr_from_ptr(long public class Result_TransactionU16LenLimitedDecodeErrorZ_OK : Result_TransactionU16LenLimitedDecodeErrorZ { public readonly TransactionU16LenLimited res; internal Result_TransactionU16LenLimitedDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTransactionU16LenLimitedDecodeErrorZGetOk(ptr); org.ldk.structs.TransactionU16LenLimited res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TransactionU16LenLimited(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TransactionU16LenLimitedDecodeErrorZ_OK(object _dummy, long ptr) public class Result_TransactionU16LenLimitedDecodeErrorZ_Err : Result_TransactionU16LenLimitedDecodeErrorZ { public readonly DecodeError err; internal Result_TransactionU16LenLimitedDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTransactionU16LenLimitedDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TransactionU16LenLimitedDecodeErrorZ_Err(object _dummy, long ptr * Creates a new CResult_TransactionU16LenLimitedDecodeErrorZ in the success state. */ public static Result_TransactionU16LenLimitedDecodeErrorZ ok(org.ldk.structs.TransactionU16LenLimited o) { - long ret = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedDecodeErrorZ ret_hu_conv = Result_TransactionU16LenLimitedDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TransactionU16LenLimitedDecodeErrorZ ok(org.ldk.structs.Tra * Creates a new CResult_TransactionU16LenLimitedDecodeErrorZ in the error state. */ public static Result_TransactionU16LenLimitedDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedDecodeErrorZ ret_hu_conv = Result_TransactionU16LenLimitedDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TransactionU16LenLimitedDecodeErrorZ err(org.ldk.structs.De * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTransactionU16LenLimitedDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TransactionU16LenLimitedDecodeErrorZ clone() { - long ret = bindings.CResult_TransactionU16LenLimitedDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedDecodeErrorZ ret_hu_conv = Result_TransactionU16LenLimitedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedNoneZ.cs index 543245c1c..e684486b4 100644 --- a/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TransactionU16LenLimitedNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TransactionU16LenLimitedNoneZ : CommonBase { Result_TransactionU16LenLimitedNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_TransactionU16LenLimitedNoneZ() { - if (ptr != 0) { bindings.CResult_TransactionU16LenLimitedNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTransactionU16LenLimitedNoneZFree(ptr); } } internal static Result_TransactionU16LenLimitedNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_TransactionU16LenLimitedNoneZ_is_ok(ptr)) { + if (Bindings.CResultTransactionU16LenLimitedNoneZIsOk(ptr)) { return new Result_TransactionU16LenLimitedNoneZ_OK(null, ptr); } else { return new Result_TransactionU16LenLimitedNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TransactionU16LenLimitedNoneZ constr_from_ptr(long ptr) { public class Result_TransactionU16LenLimitedNoneZ_OK : Result_TransactionU16LenLimitedNoneZ { public readonly TransactionU16LenLimited res; internal Result_TransactionU16LenLimitedNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TransactionU16LenLimitedNoneZ_get_ok(ptr); + long res = Bindings.CResultTransactionU16LenLimitedNoneZGetOk(ptr); org.ldk.structs.TransactionU16LenLimited res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TransactionU16LenLimited(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_TransactionU16LenLimitedNoneZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_TransactionU16LenLimitedNoneZ in the success state. */ public static Result_TransactionU16LenLimitedNoneZ ok(org.ldk.structs.TransactionU16LenLimited o) { - long ret = bindings.CResult_TransactionU16LenLimitedNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedNoneZ ret_hu_conv = Result_TransactionU16LenLimitedNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_TransactionU16LenLimitedNoneZ ok(org.ldk.structs.Transactio * Creates a new CResult_TransactionU16LenLimitedNoneZ in the error state. */ public static Result_TransactionU16LenLimitedNoneZ err() { - long ret = bindings.CResult_TransactionU16LenLimitedNoneZ_err(); + long ret = Bindings.CResultTransactionU16LenLimitedNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedNoneZ ret_hu_conv = Result_TransactionU16LenLimitedNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_TransactionU16LenLimitedNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TransactionU16LenLimitedNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultTransactionU16LenLimitedNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TransactionU16LenLimitedNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TransactionU16LenLimitedNoneZ clone() { - long ret = bindings.CResult_TransactionU16LenLimitedNoneZ_clone(this.ptr); + long ret = Bindings.CResultTransactionU16LenLimitedNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedNoneZ ret_hu_conv = Result_TransactionU16LenLimitedNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TrustedClosingTransactionNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_TrustedClosingTransactionNoneZ.cs index 3906f2f99..e00d92b7c 100644 --- a/c_sharp/src/org/ldk/structs/Result_TrustedClosingTransactionNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TrustedClosingTransactionNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TrustedClosingTransactionNoneZ : CommonBase { Result_TrustedClosingTransactionNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_TrustedClosingTransactionNoneZ() { - if (ptr != 0) { bindings.CResult_TrustedClosingTransactionNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTrustedClosingTransactionNoneZFree(ptr); } } internal static Result_TrustedClosingTransactionNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_TrustedClosingTransactionNoneZ_is_ok(ptr)) { + if (Bindings.CResultTrustedClosingTransactionNoneZIsOk(ptr)) { return new Result_TrustedClosingTransactionNoneZ_OK(null, ptr); } else { return new Result_TrustedClosingTransactionNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TrustedClosingTransactionNoneZ constr_from_ptr(long ptr) public class Result_TrustedClosingTransactionNoneZ_OK : Result_TrustedClosingTransactionNoneZ { public readonly TrustedClosingTransaction res; internal Result_TrustedClosingTransactionNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TrustedClosingTransactionNoneZ_get_ok(ptr); + long res = Bindings.CResultTrustedClosingTransactionNoneZGetOk(ptr); org.ldk.structs.TrustedClosingTransaction res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TrustedClosingTransaction(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_TrustedClosingTransactionNoneZ_Err(object _dummy, long ptr) : ba * Creates a new CResult_TrustedClosingTransactionNoneZ in the success state. */ public static Result_TrustedClosingTransactionNoneZ ok(org.ldk.structs.TrustedClosingTransaction o) { - long ret = bindings.CResult_TrustedClosingTransactionNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTrustedClosingTransactionNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TrustedClosingTransactionNoneZ ret_hu_conv = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret); @@ -57,7 +57,7 @@ public static Result_TrustedClosingTransactionNoneZ ok(org.ldk.structs.TrustedCl * Creates a new CResult_TrustedClosingTransactionNoneZ in the error state. */ public static Result_TrustedClosingTransactionNoneZ err() { - long ret = bindings.CResult_TrustedClosingTransactionNoneZ_err(); + long ret = Bindings.CResultTrustedClosingTransactionNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_TrustedClosingTransactionNoneZ ret_hu_conv = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -67,7 +67,7 @@ public static Result_TrustedClosingTransactionNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TrustedClosingTransactionNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultTrustedClosingTransactionNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_TrustedCommitmentTransactionNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_TrustedCommitmentTransactionNoneZ.cs index 7a8dca9f8..73e7f67fa 100644 --- a/c_sharp/src/org/ldk/structs/Result_TrustedCommitmentTransactionNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TrustedCommitmentTransactionNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TrustedCommitmentTransactionNoneZ : CommonBase { Result_TrustedCommitmentTransactionNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_TrustedCommitmentTransactionNoneZ() { - if (ptr != 0) { bindings.CResult_TrustedCommitmentTransactionNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTrustedCommitmentTransactionNoneZFree(ptr); } } internal static Result_TrustedCommitmentTransactionNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_TrustedCommitmentTransactionNoneZ_is_ok(ptr)) { + if (Bindings.CResultTrustedCommitmentTransactionNoneZIsOk(ptr)) { return new Result_TrustedCommitmentTransactionNoneZ_OK(null, ptr); } else { return new Result_TrustedCommitmentTransactionNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TrustedCommitmentTransactionNoneZ constr_from_ptr(long pt public class Result_TrustedCommitmentTransactionNoneZ_OK : Result_TrustedCommitmentTransactionNoneZ { public readonly TrustedCommitmentTransaction res; internal Result_TrustedCommitmentTransactionNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TrustedCommitmentTransactionNoneZ_get_ok(ptr); + long res = Bindings.CResultTrustedCommitmentTransactionNoneZGetOk(ptr); org.ldk.structs.TrustedCommitmentTransaction res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TrustedCommitmentTransaction(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_TrustedCommitmentTransactionNoneZ_Err(object _dummy, long ptr) : * Creates a new CResult_TrustedCommitmentTransactionNoneZ in the success state. */ public static Result_TrustedCommitmentTransactionNoneZ ok(org.ldk.structs.TrustedCommitmentTransaction o) { - long ret = bindings.CResult_TrustedCommitmentTransactionNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTrustedCommitmentTransactionNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TrustedCommitmentTransactionNoneZ ret_hu_conv = Result_TrustedCommitmentTransactionNoneZ.constr_from_ptr(ret); @@ -57,7 +57,7 @@ public static Result_TrustedCommitmentTransactionNoneZ ok(org.ldk.structs.Truste * Creates a new CResult_TrustedCommitmentTransactionNoneZ in the error state. */ public static Result_TrustedCommitmentTransactionNoneZ err() { - long ret = bindings.CResult_TrustedCommitmentTransactionNoneZ_err(); + long ret = Bindings.CResultTrustedCommitmentTransactionNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_TrustedCommitmentTransactionNoneZ ret_hu_conv = Result_TrustedCommitmentTransactionNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -67,7 +67,7 @@ public static Result_TrustedCommitmentTransactionNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TrustedCommitmentTransactionNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultTrustedCommitmentTransactionNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Result_TxAbortDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxAbortDecodeErrorZ.cs index ce64c3a60..31e12aa67 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxAbortDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxAbortDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxAbortDecodeErrorZ : CommonBase { Result_TxAbortDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxAbortDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxAbortDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxAbortDecodeErrorZFree(ptr); } } internal static Result_TxAbortDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxAbortDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxAbortDecodeErrorZIsOk(ptr)) { return new Result_TxAbortDecodeErrorZ_OK(null, ptr); } else { return new Result_TxAbortDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxAbortDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxAbortDecodeErrorZ_OK : Result_TxAbortDecodeErrorZ { public readonly TxAbort res; internal Result_TxAbortDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxAbortDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxAbortDecodeErrorZGetOk(ptr); org.ldk.structs.TxAbort res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxAbort(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxAbortDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, p public class Result_TxAbortDecodeErrorZ_Err : Result_TxAbortDecodeErrorZ { public readonly DecodeError err; internal Result_TxAbortDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxAbortDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxAbortDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxAbortDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_TxAbortDecodeErrorZ in the success state. */ public static Result_TxAbortDecodeErrorZ ok(org.ldk.structs.TxAbort o) { - long ret = bindings.CResult_TxAbortDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxAbortDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAbortDecodeErrorZ ret_hu_conv = Result_TxAbortDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxAbortDecodeErrorZ ok(org.ldk.structs.TxAbort o) { * Creates a new CResult_TxAbortDecodeErrorZ in the error state. */ public static Result_TxAbortDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxAbortDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxAbortDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAbortDecodeErrorZ ret_hu_conv = Result_TxAbortDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxAbortDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxAbortDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxAbortDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxAbortDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxAbortDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxAbortDecodeErrorZ clone() { - long ret = bindings.CResult_TxAbortDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxAbortDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAbortDecodeErrorZ ret_hu_conv = Result_TxAbortDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxAckRbfDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxAckRbfDecodeErrorZ.cs index e7bfd3443..91534c644 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxAckRbfDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxAckRbfDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxAckRbfDecodeErrorZ : CommonBase { Result_TxAckRbfDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxAckRbfDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxAckRbfDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxAckRbfDecodeErrorZFree(ptr); } } internal static Result_TxAckRbfDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxAckRbfDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxAckRbfDecodeErrorZIsOk(ptr)) { return new Result_TxAckRbfDecodeErrorZ_OK(null, ptr); } else { return new Result_TxAckRbfDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxAckRbfDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxAckRbfDecodeErrorZ_OK : Result_TxAckRbfDecodeErrorZ { public readonly TxAckRbf res; internal Result_TxAckRbfDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxAckRbfDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxAckRbfDecodeErrorZGetOk(ptr); org.ldk.structs.TxAckRbf res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxAckRbf(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxAckRbfDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_TxAckRbfDecodeErrorZ_Err : Result_TxAckRbfDecodeErrorZ { public readonly DecodeError err; internal Result_TxAckRbfDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxAckRbfDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxAckRbfDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxAckRbfDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_TxAckRbfDecodeErrorZ in the success state. */ public static Result_TxAckRbfDecodeErrorZ ok(org.ldk.structs.TxAckRbf o) { - long ret = bindings.CResult_TxAckRbfDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxAckRbfDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAckRbfDecodeErrorZ ret_hu_conv = Result_TxAckRbfDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxAckRbfDecodeErrorZ ok(org.ldk.structs.TxAckRbf o) { * Creates a new CResult_TxAckRbfDecodeErrorZ in the error state. */ public static Result_TxAckRbfDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxAckRbfDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxAckRbfDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAckRbfDecodeErrorZ ret_hu_conv = Result_TxAckRbfDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxAckRbfDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxAckRbfDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxAckRbfDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxAckRbfDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxAckRbfDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxAckRbfDecodeErrorZ clone() { - long ret = bindings.CResult_TxAckRbfDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxAckRbfDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAckRbfDecodeErrorZ ret_hu_conv = Result_TxAckRbfDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxAddInputDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxAddInputDecodeErrorZ.cs index 12b30f31e..f7830e38e 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxAddInputDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxAddInputDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxAddInputDecodeErrorZ : CommonBase { Result_TxAddInputDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxAddInputDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxAddInputDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxAddInputDecodeErrorZFree(ptr); } } internal static Result_TxAddInputDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxAddInputDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxAddInputDecodeErrorZIsOk(ptr)) { return new Result_TxAddInputDecodeErrorZ_OK(null, ptr); } else { return new Result_TxAddInputDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxAddInputDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxAddInputDecodeErrorZ_OK : Result_TxAddInputDecodeErrorZ { public readonly TxAddInput res; internal Result_TxAddInputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxAddInputDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxAddInputDecodeErrorZGetOk(ptr); org.ldk.structs.TxAddInput res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxAddInput(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxAddInputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy public class Result_TxAddInputDecodeErrorZ_Err : Result_TxAddInputDecodeErrorZ { public readonly DecodeError err; internal Result_TxAddInputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxAddInputDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxAddInputDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxAddInputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_TxAddInputDecodeErrorZ in the success state. */ public static Result_TxAddInputDecodeErrorZ ok(org.ldk.structs.TxAddInput o) { - long ret = bindings.CResult_TxAddInputDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxAddInputDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddInputDecodeErrorZ ret_hu_conv = Result_TxAddInputDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxAddInputDecodeErrorZ ok(org.ldk.structs.TxAddInput o) { * Creates a new CResult_TxAddInputDecodeErrorZ in the error state. */ public static Result_TxAddInputDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxAddInputDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxAddInputDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddInputDecodeErrorZ ret_hu_conv = Result_TxAddInputDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxAddInputDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxAddInputDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxAddInputDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxAddInputDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxAddInputDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxAddInputDecodeErrorZ clone() { - long ret = bindings.CResult_TxAddInputDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxAddInputDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddInputDecodeErrorZ ret_hu_conv = Result_TxAddInputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxAddOutputDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxAddOutputDecodeErrorZ.cs index 90cbe9dca..a1fbc8738 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxAddOutputDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxAddOutputDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxAddOutputDecodeErrorZ : CommonBase { Result_TxAddOutputDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxAddOutputDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxAddOutputDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxAddOutputDecodeErrorZFree(ptr); } } internal static Result_TxAddOutputDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxAddOutputDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxAddOutputDecodeErrorZIsOk(ptr)) { return new Result_TxAddOutputDecodeErrorZ_OK(null, ptr); } else { return new Result_TxAddOutputDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxAddOutputDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxAddOutputDecodeErrorZ_OK : Result_TxAddOutputDecodeErrorZ { public readonly TxAddOutput res; internal Result_TxAddOutputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxAddOutputDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxAddOutputDecodeErrorZGetOk(ptr); org.ldk.structs.TxAddOutput res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxAddOutput(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxAddOutputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dumm public class Result_TxAddOutputDecodeErrorZ_Err : Result_TxAddOutputDecodeErrorZ { public readonly DecodeError err; internal Result_TxAddOutputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxAddOutputDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxAddOutputDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxAddOutputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dum * Creates a new CResult_TxAddOutputDecodeErrorZ in the success state. */ public static Result_TxAddOutputDecodeErrorZ ok(org.ldk.structs.TxAddOutput o) { - long ret = bindings.CResult_TxAddOutputDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxAddOutputDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddOutputDecodeErrorZ ret_hu_conv = Result_TxAddOutputDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxAddOutputDecodeErrorZ ok(org.ldk.structs.TxAddOutput o) { * Creates a new CResult_TxAddOutputDecodeErrorZ in the error state. */ public static Result_TxAddOutputDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxAddOutputDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxAddOutputDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddOutputDecodeErrorZ ret_hu_conv = Result_TxAddOutputDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxAddOutputDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxAddOutputDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxAddOutputDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxAddOutputDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxAddOutputDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxAddOutputDecodeErrorZ clone() { - long ret = bindings.CResult_TxAddOutputDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxAddOutputDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddOutputDecodeErrorZ ret_hu_conv = Result_TxAddOutputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxCompleteDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxCompleteDecodeErrorZ.cs index 1ed6321d8..0a24da344 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxCompleteDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxCompleteDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxCompleteDecodeErrorZ : CommonBase { Result_TxCompleteDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxCompleteDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxCompleteDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxCompleteDecodeErrorZFree(ptr); } } internal static Result_TxCompleteDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxCompleteDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxCompleteDecodeErrorZIsOk(ptr)) { return new Result_TxCompleteDecodeErrorZ_OK(null, ptr); } else { return new Result_TxCompleteDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxCompleteDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxCompleteDecodeErrorZ_OK : Result_TxCompleteDecodeErrorZ { public readonly TxComplete res; internal Result_TxCompleteDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxCompleteDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxCompleteDecodeErrorZGetOk(ptr); org.ldk.structs.TxComplete res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxComplete(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxCompleteDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy public class Result_TxCompleteDecodeErrorZ_Err : Result_TxCompleteDecodeErrorZ { public readonly DecodeError err; internal Result_TxCompleteDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxCompleteDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxCompleteDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxCompleteDecodeErrorZ_Err(object _dummy, long ptr) : base(_dumm * Creates a new CResult_TxCompleteDecodeErrorZ in the success state. */ public static Result_TxCompleteDecodeErrorZ ok(org.ldk.structs.TxComplete o) { - long ret = bindings.CResult_TxCompleteDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxCompleteDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCompleteDecodeErrorZ ret_hu_conv = Result_TxCompleteDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxCompleteDecodeErrorZ ok(org.ldk.structs.TxComplete o) { * Creates a new CResult_TxCompleteDecodeErrorZ in the error state. */ public static Result_TxCompleteDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxCompleteDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxCompleteDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCompleteDecodeErrorZ ret_hu_conv = Result_TxCompleteDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxCompleteDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxCompleteDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxCompleteDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxCompleteDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxCompleteDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxCompleteDecodeErrorZ clone() { - long ret = bindings.CResult_TxCompleteDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxCompleteDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCompleteDecodeErrorZ ret_hu_conv = Result_TxCompleteDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxCreationKeysDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxCreationKeysDecodeErrorZ.cs index 5d7a8153a..b6832c3df 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxCreationKeysDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxCreationKeysDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxCreationKeysDecodeErrorZ : CommonBase { Result_TxCreationKeysDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxCreationKeysDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxCreationKeysDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxCreationKeysDecodeErrorZFree(ptr); } } internal static Result_TxCreationKeysDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxCreationKeysDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxCreationKeysDecodeErrorZIsOk(ptr)) { return new Result_TxCreationKeysDecodeErrorZ_OK(null, ptr); } else { return new Result_TxCreationKeysDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxCreationKeysDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxCreationKeysDecodeErrorZ_OK : Result_TxCreationKeysDecodeErrorZ { public readonly TxCreationKeys res; internal Result_TxCreationKeysDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxCreationKeysDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxCreationKeysDecodeErrorZGetOk(ptr); org.ldk.structs.TxCreationKeys res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxCreationKeys(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxCreationKeysDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_TxCreationKeysDecodeErrorZ_Err : Result_TxCreationKeysDecodeErrorZ { public readonly DecodeError err; internal Result_TxCreationKeysDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxCreationKeysDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxCreationKeysDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxCreationKeysDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_TxCreationKeysDecodeErrorZ in the success state. */ public static Result_TxCreationKeysDecodeErrorZ ok(org.ldk.structs.TxCreationKeys o) { - long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxCreationKeysDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxCreationKeysDecodeErrorZ ok(org.ldk.structs.TxCreationKey * Creates a new CResult_TxCreationKeysDecodeErrorZ in the error state. */ public static Result_TxCreationKeysDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxCreationKeysDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxCreationKeysDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxCreationKeysDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxCreationKeysDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxCreationKeysDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxCreationKeysDecodeErrorZ clone() { - long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxCreationKeysDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxInitRbfDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxInitRbfDecodeErrorZ.cs index 53010fd27..3a6a1dc90 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxInitRbfDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxInitRbfDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxInitRbfDecodeErrorZ : CommonBase { Result_TxInitRbfDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxInitRbfDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxInitRbfDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxInitRbfDecodeErrorZFree(ptr); } } internal static Result_TxInitRbfDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxInitRbfDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxInitRbfDecodeErrorZIsOk(ptr)) { return new Result_TxInitRbfDecodeErrorZ_OK(null, ptr); } else { return new Result_TxInitRbfDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxInitRbfDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxInitRbfDecodeErrorZ_OK : Result_TxInitRbfDecodeErrorZ { public readonly TxInitRbf res; internal Result_TxInitRbfDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxInitRbfDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxInitRbfDecodeErrorZGetOk(ptr); org.ldk.structs.TxInitRbf res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxInitRbf(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxInitRbfDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_TxInitRbfDecodeErrorZ_Err : Result_TxInitRbfDecodeErrorZ { public readonly DecodeError err; internal Result_TxInitRbfDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxInitRbfDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxInitRbfDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxInitRbfDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_TxInitRbfDecodeErrorZ in the success state. */ public static Result_TxInitRbfDecodeErrorZ ok(org.ldk.structs.TxInitRbf o) { - long ret = bindings.CResult_TxInitRbfDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxInitRbfDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxInitRbfDecodeErrorZ ret_hu_conv = Result_TxInitRbfDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxInitRbfDecodeErrorZ ok(org.ldk.structs.TxInitRbf o) { * Creates a new CResult_TxInitRbfDecodeErrorZ in the error state. */ public static Result_TxInitRbfDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxInitRbfDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxInitRbfDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxInitRbfDecodeErrorZ ret_hu_conv = Result_TxInitRbfDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxInitRbfDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxInitRbfDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxInitRbfDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxInitRbfDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxInitRbfDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxInitRbfDecodeErrorZ clone() { - long ret = bindings.CResult_TxInitRbfDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxInitRbfDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxInitRbfDecodeErrorZ ret_hu_conv = Result_TxInitRbfDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxOutUtxoLookupErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxOutUtxoLookupErrorZ.cs index 0d96b9f74..e32aad06c 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxOutUtxoLookupErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxOutUtxoLookupErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxOutUtxoLookupErrorZ : CommonBase { Result_TxOutUtxoLookupErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxOutUtxoLookupErrorZ() { - if (ptr != 0) { bindings.CResult_TxOutUtxoLookupErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxOutUtxoLookupErrorZFree(ptr); } } internal static Result_TxOutUtxoLookupErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxOutUtxoLookupErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxOutUtxoLookupErrorZIsOk(ptr)) { return new Result_TxOutUtxoLookupErrorZ_OK(null, ptr); } else { return new Result_TxOutUtxoLookupErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxOutUtxoLookupErrorZ constr_from_ptr(long ptr) { public class Result_TxOutUtxoLookupErrorZ_OK : Result_TxOutUtxoLookupErrorZ { public readonly TxOut res; internal Result_TxOutUtxoLookupErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxOutUtxoLookupErrorZ_get_ok(ptr); + long res = Bindings.CResultTxOutUtxoLookupErrorZGetOk(ptr); TxOut res_conv = new TxOut(null, res); this.res = res_conv; } @@ -30,7 +30,7 @@ internal Result_TxOutUtxoLookupErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_TxOutUtxoLookupErrorZ_Err : Result_TxOutUtxoLookupErrorZ { public readonly UtxoLookupError err; internal Result_TxOutUtxoLookupErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - this.err = bindings.CResult_TxOutUtxoLookupErrorZ_get_err(ptr); + this.err = Bindings.CResultTxOutUtxoLookupErrorZGetErr(ptr); } } @@ -38,7 +38,7 @@ internal Result_TxOutUtxoLookupErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_TxOutUtxoLookupErrorZ in the success state. */ public static Result_TxOutUtxoLookupErrorZ ok(org.ldk.structs.TxOut o) { - long ret = bindings.CResult_TxOutUtxoLookupErrorZ_ok(o.ptr); + long ret = Bindings.CResultTxOutUtxoLookupErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxOutUtxoLookupErrorZ ret_hu_conv = Result_TxOutUtxoLookupErrorZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_TxOutUtxoLookupErrorZ ok(org.ldk.structs.TxOut o) { * Creates a new CResult_TxOutUtxoLookupErrorZ in the error state. */ public static Result_TxOutUtxoLookupErrorZ err(UtxoLookupError e) { - long ret = bindings.CResult_TxOutUtxoLookupErrorZ_err(e); + long ret = Bindings.CResultTxOutUtxoLookupErrorZErr(e); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxOutUtxoLookupErrorZ ret_hu_conv = Result_TxOutUtxoLookupErrorZ.constr_from_ptr(ret); @@ -60,13 +60,13 @@ public static Result_TxOutUtxoLookupErrorZ err(UtxoLookupError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxOutUtxoLookupErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxOutUtxoLookupErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxOutUtxoLookupErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxOutUtxoLookupErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxOutUtxoLookupErrorZ clone() { - long ret = bindings.CResult_TxOutUtxoLookupErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxOutUtxoLookupErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxOutUtxoLookupErrorZ ret_hu_conv = Result_TxOutUtxoLookupErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxRemoveInputDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxRemoveInputDecodeErrorZ.cs index fd0c46301..5510f3d98 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxRemoveInputDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxRemoveInputDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxRemoveInputDecodeErrorZ : CommonBase { Result_TxRemoveInputDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxRemoveInputDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxRemoveInputDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxRemoveInputDecodeErrorZFree(ptr); } } internal static Result_TxRemoveInputDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxRemoveInputDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxRemoveInputDecodeErrorZIsOk(ptr)) { return new Result_TxRemoveInputDecodeErrorZ_OK(null, ptr); } else { return new Result_TxRemoveInputDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxRemoveInputDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxRemoveInputDecodeErrorZ_OK : Result_TxRemoveInputDecodeErrorZ { public readonly TxRemoveInput res; internal Result_TxRemoveInputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxRemoveInputDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxRemoveInputDecodeErrorZGetOk(ptr); org.ldk.structs.TxRemoveInput res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxRemoveInput(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxRemoveInputDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_TxRemoveInputDecodeErrorZ_Err : Result_TxRemoveInputDecodeErrorZ { public readonly DecodeError err; internal Result_TxRemoveInputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxRemoveInputDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxRemoveInputDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxRemoveInputDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_TxRemoveInputDecodeErrorZ in the success state. */ public static Result_TxRemoveInputDecodeErrorZ ok(org.ldk.structs.TxRemoveInput o) { - long ret = bindings.CResult_TxRemoveInputDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxRemoveInputDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveInputDecodeErrorZ ret_hu_conv = Result_TxRemoveInputDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxRemoveInputDecodeErrorZ ok(org.ldk.structs.TxRemoveInput * Creates a new CResult_TxRemoveInputDecodeErrorZ in the error state. */ public static Result_TxRemoveInputDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxRemoveInputDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxRemoveInputDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveInputDecodeErrorZ ret_hu_conv = Result_TxRemoveInputDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxRemoveInputDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxRemoveInputDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxRemoveInputDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxRemoveInputDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxRemoveInputDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxRemoveInputDecodeErrorZ clone() { - long ret = bindings.CResult_TxRemoveInputDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxRemoveInputDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveInputDecodeErrorZ ret_hu_conv = Result_TxRemoveInputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxRemoveOutputDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxRemoveOutputDecodeErrorZ.cs index 62dcffe77..1f3d74f45 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxRemoveOutputDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxRemoveOutputDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxRemoveOutputDecodeErrorZ : CommonBase { Result_TxRemoveOutputDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxRemoveOutputDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxRemoveOutputDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxRemoveOutputDecodeErrorZFree(ptr); } } internal static Result_TxRemoveOutputDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxRemoveOutputDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxRemoveOutputDecodeErrorZIsOk(ptr)) { return new Result_TxRemoveOutputDecodeErrorZ_OK(null, ptr); } else { return new Result_TxRemoveOutputDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxRemoveOutputDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxRemoveOutputDecodeErrorZ_OK : Result_TxRemoveOutputDecodeErrorZ { public readonly TxRemoveOutput res; internal Result_TxRemoveOutputDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxRemoveOutputDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxRemoveOutputDecodeErrorZGetOk(ptr); org.ldk.structs.TxRemoveOutput res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxRemoveOutput(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxRemoveOutputDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_TxRemoveOutputDecodeErrorZ_Err : Result_TxRemoveOutputDecodeErrorZ { public readonly DecodeError err; internal Result_TxRemoveOutputDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxRemoveOutputDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxRemoveOutputDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxRemoveOutputDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_TxRemoveOutputDecodeErrorZ in the success state. */ public static Result_TxRemoveOutputDecodeErrorZ ok(org.ldk.structs.TxRemoveOutput o) { - long ret = bindings.CResult_TxRemoveOutputDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxRemoveOutputDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveOutputDecodeErrorZ ret_hu_conv = Result_TxRemoveOutputDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxRemoveOutputDecodeErrorZ ok(org.ldk.structs.TxRemoveOutpu * Creates a new CResult_TxRemoveOutputDecodeErrorZ in the error state. */ public static Result_TxRemoveOutputDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxRemoveOutputDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxRemoveOutputDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveOutputDecodeErrorZ ret_hu_conv = Result_TxRemoveOutputDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxRemoveOutputDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxRemoveOutputDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxRemoveOutputDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxRemoveOutputDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxRemoveOutputDecodeErrorZ clone() { - long ret = bindings.CResult_TxRemoveOutputDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxRemoveOutputDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveOutputDecodeErrorZ ret_hu_conv = Result_TxRemoveOutputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_TxSignaturesDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_TxSignaturesDecodeErrorZ.cs index 6f1ae9ee5..b19f58ed7 100644 --- a/c_sharp/src/org/ldk/structs/Result_TxSignaturesDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_TxSignaturesDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_TxSignaturesDecodeErrorZ : CommonBase { Result_TxSignaturesDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_TxSignaturesDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_TxSignaturesDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultTxSignaturesDecodeErrorZFree(ptr); } } internal static Result_TxSignaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_TxSignaturesDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultTxSignaturesDecodeErrorZIsOk(ptr)) { return new Result_TxSignaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_TxSignaturesDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_TxSignaturesDecodeErrorZ constr_from_ptr(long ptr) { public class Result_TxSignaturesDecodeErrorZ_OK : Result_TxSignaturesDecodeErrorZ { public readonly TxSignatures res; internal Result_TxSignaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_TxSignaturesDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultTxSignaturesDecodeErrorZGetOk(ptr); org.ldk.structs.TxSignatures res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.TxSignatures(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_TxSignaturesDecodeErrorZ_OK(object _dummy, long ptr) : base(_dum public class Result_TxSignaturesDecodeErrorZ_Err : Result_TxSignaturesDecodeErrorZ { public readonly DecodeError err; internal Result_TxSignaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_TxSignaturesDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultTxSignaturesDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_TxSignaturesDecodeErrorZ_Err(object _dummy, long ptr) : base(_du * Creates a new CResult_TxSignaturesDecodeErrorZ in the success state. */ public static Result_TxSignaturesDecodeErrorZ ok(org.ldk.structs.TxSignatures o) { - long ret = bindings.CResult_TxSignaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultTxSignaturesDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_TxSignaturesDecodeErrorZ ret_hu_conv = Result_TxSignaturesDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_TxSignaturesDecodeErrorZ ok(org.ldk.structs.TxSignatures o) * Creates a new CResult_TxSignaturesDecodeErrorZ in the error state. */ public static Result_TxSignaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_TxSignaturesDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultTxSignaturesDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_TxSignaturesDecodeErrorZ ret_hu_conv = Result_TxSignaturesDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_TxSignaturesDecodeErrorZ err(org.ldk.structs.DecodeError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_TxSignaturesDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultTxSignaturesDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_TxSignaturesDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultTxSignaturesDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_TxSignaturesDecodeErrorZ clone() { - long ret = bindings.CResult_TxSignaturesDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultTxSignaturesDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_TxSignaturesDecodeErrorZ ret_hu_conv = Result_TxSignaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.cs index 56833d2e1..b5b96842e 100644 --- a/c_sharp/src/org/ldk/structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UnsignedChannelAnnouncementDecodeErrorZ : CommonBase { Result_UnsignedChannelAnnouncementDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UnsignedChannelAnnouncementDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZFree(ptr); } } internal static Result_UnsignedChannelAnnouncementDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZIsOk(ptr)) { return new Result_UnsignedChannelAnnouncementDecodeErrorZ_OK(null, ptr); } else { return new Result_UnsignedChannelAnnouncementDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UnsignedChannelAnnouncementDecodeErrorZ constr_from_ptr(l public class Result_UnsignedChannelAnnouncementDecodeErrorZ_OK : Result_UnsignedChannelAnnouncementDecodeErrorZ { public readonly UnsignedChannelAnnouncement res; internal Result_UnsignedChannelAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZGetOk(ptr); org.ldk.structs.UnsignedChannelAnnouncement res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UnsignedChannelAnnouncementDecodeErrorZ_OK(object _dummy, long p public class Result_UnsignedChannelAnnouncementDecodeErrorZ_Err : Result_UnsignedChannelAnnouncementDecodeErrorZ { public readonly DecodeError err; internal Result_UnsignedChannelAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UnsignedChannelAnnouncementDecodeErrorZ_Err(object _dummy, long * Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the success state. */ public static Result_UnsignedChannelAnnouncementDecodeErrorZ ok(org.ldk.structs.UnsignedChannelAnnouncement o) { - long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UnsignedChannelAnnouncementDecodeErrorZ ok(org.ldk.structs. * Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the error state. */ public static Result_UnsignedChannelAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UnsignedChannelAnnouncementDecodeErrorZ err(org.ldk.structs * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UnsignedChannelAnnouncementDecodeErrorZ clone() { - long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUnsignedChannelAnnouncementDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UnsignedChannelUpdateDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UnsignedChannelUpdateDecodeErrorZ.cs index 664ec9e04..36260c19f 100644 --- a/c_sharp/src/org/ldk/structs/Result_UnsignedChannelUpdateDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UnsignedChannelUpdateDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UnsignedChannelUpdateDecodeErrorZ : CommonBase { Result_UnsignedChannelUpdateDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UnsignedChannelUpdateDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUnsignedChannelUpdateDecodeErrorZFree(ptr); } } internal static Result_UnsignedChannelUpdateDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUnsignedChannelUpdateDecodeErrorZIsOk(ptr)) { return new Result_UnsignedChannelUpdateDecodeErrorZ_OK(null, ptr); } else { return new Result_UnsignedChannelUpdateDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UnsignedChannelUpdateDecodeErrorZ constr_from_ptr(long pt public class Result_UnsignedChannelUpdateDecodeErrorZ_OK : Result_UnsignedChannelUpdateDecodeErrorZ { public readonly UnsignedChannelUpdate res; internal Result_UnsignedChannelUpdateDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUnsignedChannelUpdateDecodeErrorZGetOk(ptr); org.ldk.structs.UnsignedChannelUpdate res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UnsignedChannelUpdate(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UnsignedChannelUpdateDecodeErrorZ_OK(object _dummy, long ptr) : public class Result_UnsignedChannelUpdateDecodeErrorZ_Err : Result_UnsignedChannelUpdateDecodeErrorZ { public readonly DecodeError err; internal Result_UnsignedChannelUpdateDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUnsignedChannelUpdateDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UnsignedChannelUpdateDecodeErrorZ_Err(object _dummy, long ptr) : * Creates a new CResult_UnsignedChannelUpdateDecodeErrorZ in the success state. */ public static Result_UnsignedChannelUpdateDecodeErrorZ ok(org.ldk.structs.UnsignedChannelUpdate o) { - long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUnsignedChannelUpdateDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UnsignedChannelUpdateDecodeErrorZ ok(org.ldk.structs.Unsign * Creates a new CResult_UnsignedChannelUpdateDecodeErrorZ in the error state. */ public static Result_UnsignedChannelUpdateDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUnsignedChannelUpdateDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UnsignedChannelUpdateDecodeErrorZ err(org.ldk.structs.Decod * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUnsignedChannelUpdateDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUnsignedChannelUpdateDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UnsignedChannelUpdateDecodeErrorZ clone() { - long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUnsignedChannelUpdateDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.cs index 608b212df..7fed4d724 100644 --- a/c_sharp/src/org/ldk/structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UnsignedNodeAnnouncementDecodeErrorZ : CommonBase { Result_UnsignedNodeAnnouncementDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UnsignedNodeAnnouncementDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZFree(ptr); } } internal static Result_UnsignedNodeAnnouncementDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZIsOk(ptr)) { return new Result_UnsignedNodeAnnouncementDecodeErrorZ_OK(null, ptr); } else { return new Result_UnsignedNodeAnnouncementDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UnsignedNodeAnnouncementDecodeErrorZ constr_from_ptr(long public class Result_UnsignedNodeAnnouncementDecodeErrorZ_OK : Result_UnsignedNodeAnnouncementDecodeErrorZ { public readonly UnsignedNodeAnnouncement res; internal Result_UnsignedNodeAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZGetOk(ptr); org.ldk.structs.UnsignedNodeAnnouncement res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UnsignedNodeAnnouncement(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UnsignedNodeAnnouncementDecodeErrorZ_OK(object _dummy, long ptr) public class Result_UnsignedNodeAnnouncementDecodeErrorZ_Err : Result_UnsignedNodeAnnouncementDecodeErrorZ { public readonly DecodeError err; internal Result_UnsignedNodeAnnouncementDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UnsignedNodeAnnouncementDecodeErrorZ_Err(object _dummy, long ptr * Creates a new CResult_UnsignedNodeAnnouncementDecodeErrorZ in the success state. */ public static Result_UnsignedNodeAnnouncementDecodeErrorZ ok(org.ldk.structs.UnsignedNodeAnnouncement o) { - long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UnsignedNodeAnnouncementDecodeErrorZ ok(org.ldk.structs.Uns * Creates a new CResult_UnsignedNodeAnnouncementDecodeErrorZ in the error state. */ public static Result_UnsignedNodeAnnouncementDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UnsignedNodeAnnouncementDecodeErrorZ err(org.ldk.structs.De * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UnsignedNodeAnnouncementDecodeErrorZ clone() { - long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUnsignedNodeAnnouncementDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UntrustedStringDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UntrustedStringDecodeErrorZ.cs index e3f2c190e..af5432b59 100644 --- a/c_sharp/src/org/ldk/structs/Result_UntrustedStringDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UntrustedStringDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UntrustedStringDecodeErrorZ : CommonBase { Result_UntrustedStringDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UntrustedStringDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UntrustedStringDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUntrustedStringDecodeErrorZFree(ptr); } } internal static Result_UntrustedStringDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UntrustedStringDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUntrustedStringDecodeErrorZIsOk(ptr)) { return new Result_UntrustedStringDecodeErrorZ_OK(null, ptr); } else { return new Result_UntrustedStringDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UntrustedStringDecodeErrorZ constr_from_ptr(long ptr) { public class Result_UntrustedStringDecodeErrorZ_OK : Result_UntrustedStringDecodeErrorZ { public readonly UntrustedString res; internal Result_UntrustedStringDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UntrustedStringDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUntrustedStringDecodeErrorZGetOk(ptr); org.ldk.structs.UntrustedString res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UntrustedString(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UntrustedStringDecodeErrorZ_OK(object _dummy, long ptr) : base(_ public class Result_UntrustedStringDecodeErrorZ_Err : Result_UntrustedStringDecodeErrorZ { public readonly DecodeError err; internal Result_UntrustedStringDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UntrustedStringDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUntrustedStringDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UntrustedStringDecodeErrorZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_UntrustedStringDecodeErrorZ in the success state. */ public static Result_UntrustedStringDecodeErrorZ ok(org.ldk.structs.UntrustedString o) { - long ret = bindings.CResult_UntrustedStringDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUntrustedStringDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UntrustedStringDecodeErrorZ ret_hu_conv = Result_UntrustedStringDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UntrustedStringDecodeErrorZ ok(org.ldk.structs.UntrustedStr * Creates a new CResult_UntrustedStringDecodeErrorZ in the error state. */ public static Result_UntrustedStringDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UntrustedStringDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUntrustedStringDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UntrustedStringDecodeErrorZ ret_hu_conv = Result_UntrustedStringDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UntrustedStringDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UntrustedStringDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUntrustedStringDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UntrustedStringDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUntrustedStringDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UntrustedStringDecodeErrorZ clone() { - long ret = bindings.CResult_UntrustedStringDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUntrustedStringDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UntrustedStringDecodeErrorZ ret_hu_conv = Result_UntrustedStringDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UpdateAddHTLCDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UpdateAddHTLCDecodeErrorZ.cs index 1dbd98faf..7a7c879d9 100644 --- a/c_sharp/src/org/ldk/structs/Result_UpdateAddHTLCDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UpdateAddHTLCDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UpdateAddHTLCDecodeErrorZ : CommonBase { Result_UpdateAddHTLCDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UpdateAddHTLCDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UpdateAddHTLCDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUpdateAddHTLCDecodeErrorZFree(ptr); } } internal static Result_UpdateAddHTLCDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UpdateAddHTLCDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUpdateAddHTLCDecodeErrorZIsOk(ptr)) { return new Result_UpdateAddHTLCDecodeErrorZ_OK(null, ptr); } else { return new Result_UpdateAddHTLCDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UpdateAddHTLCDecodeErrorZ constr_from_ptr(long ptr) { public class Result_UpdateAddHTLCDecodeErrorZ_OK : Result_UpdateAddHTLCDecodeErrorZ { public readonly UpdateAddHTLC res; internal Result_UpdateAddHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UpdateAddHTLCDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUpdateAddHTLCDecodeErrorZGetOk(ptr); org.ldk.structs.UpdateAddHTLC res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UpdateAddHTLC(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UpdateAddHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_du public class Result_UpdateAddHTLCDecodeErrorZ_Err : Result_UpdateAddHTLCDecodeErrorZ { public readonly DecodeError err; internal Result_UpdateAddHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UpdateAddHTLCDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUpdateAddHTLCDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UpdateAddHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_d * Creates a new CResult_UpdateAddHTLCDecodeErrorZ in the success state. */ public static Result_UpdateAddHTLCDecodeErrorZ ok(org.ldk.structs.UpdateAddHTLC o) { - long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUpdateAddHTLCDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UpdateAddHTLCDecodeErrorZ ok(org.ldk.structs.UpdateAddHTLC * Creates a new CResult_UpdateAddHTLCDecodeErrorZ in the error state. */ public static Result_UpdateAddHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUpdateAddHTLCDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UpdateAddHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUpdateAddHTLCDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUpdateAddHTLCDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UpdateAddHTLCDecodeErrorZ clone() { - long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUpdateAddHTLCDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UpdateFailHTLCDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UpdateFailHTLCDecodeErrorZ.cs index 0aaa9791d..b199ed281 100644 --- a/c_sharp/src/org/ldk/structs/Result_UpdateFailHTLCDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UpdateFailHTLCDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UpdateFailHTLCDecodeErrorZ : CommonBase { Result_UpdateFailHTLCDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UpdateFailHTLCDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UpdateFailHTLCDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUpdateFailHTLCDecodeErrorZFree(ptr); } } internal static Result_UpdateFailHTLCDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UpdateFailHTLCDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUpdateFailHTLCDecodeErrorZIsOk(ptr)) { return new Result_UpdateFailHTLCDecodeErrorZ_OK(null, ptr); } else { return new Result_UpdateFailHTLCDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UpdateFailHTLCDecodeErrorZ constr_from_ptr(long ptr) { public class Result_UpdateFailHTLCDecodeErrorZ_OK : Result_UpdateFailHTLCDecodeErrorZ { public readonly UpdateFailHTLC res; internal Result_UpdateFailHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UpdateFailHTLCDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUpdateFailHTLCDecodeErrorZGetOk(ptr); org.ldk.structs.UpdateFailHTLC res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UpdateFailHTLC(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UpdateFailHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_UpdateFailHTLCDecodeErrorZ_Err : Result_UpdateFailHTLCDecodeErrorZ { public readonly DecodeError err; internal Result_UpdateFailHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UpdateFailHTLCDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUpdateFailHTLCDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UpdateFailHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_UpdateFailHTLCDecodeErrorZ in the success state. */ public static Result_UpdateFailHTLCDecodeErrorZ ok(org.ldk.structs.UpdateFailHTLC o) { - long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUpdateFailHTLCDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UpdateFailHTLCDecodeErrorZ ok(org.ldk.structs.UpdateFailHTL * Creates a new CResult_UpdateFailHTLCDecodeErrorZ in the error state. */ public static Result_UpdateFailHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUpdateFailHTLCDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UpdateFailHTLCDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUpdateFailHTLCDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUpdateFailHTLCDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UpdateFailHTLCDecodeErrorZ clone() { - long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUpdateFailHTLCDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.cs index e94532661..89c27a3a8 100644 --- a/c_sharp/src/org/ldk/structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UpdateFailMalformedHTLCDecodeErrorZ : CommonBase { Result_UpdateFailMalformedHTLCDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UpdateFailMalformedHTLCDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZFree(ptr); } } internal static Result_UpdateFailMalformedHTLCDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZIsOk(ptr)) { return new Result_UpdateFailMalformedHTLCDecodeErrorZ_OK(null, ptr); } else { return new Result_UpdateFailMalformedHTLCDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UpdateFailMalformedHTLCDecodeErrorZ constr_from_ptr(long public class Result_UpdateFailMalformedHTLCDecodeErrorZ_OK : Result_UpdateFailMalformedHTLCDecodeErrorZ { public readonly UpdateFailMalformedHTLC res; internal Result_UpdateFailMalformedHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZGetOk(ptr); org.ldk.structs.UpdateFailMalformedHTLC res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UpdateFailMalformedHTLC(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UpdateFailMalformedHTLCDecodeErrorZ_OK(object _dummy, long ptr) public class Result_UpdateFailMalformedHTLCDecodeErrorZ_Err : Result_UpdateFailMalformedHTLCDecodeErrorZ { public readonly DecodeError err; internal Result_UpdateFailMalformedHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UpdateFailMalformedHTLCDecodeErrorZ_Err(object _dummy, long ptr) * Creates a new CResult_UpdateFailMalformedHTLCDecodeErrorZ in the success state. */ public static Result_UpdateFailMalformedHTLCDecodeErrorZ ok(org.ldk.structs.UpdateFailMalformedHTLC o) { - long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UpdateFailMalformedHTLCDecodeErrorZ ok(org.ldk.structs.Upda * Creates a new CResult_UpdateFailMalformedHTLCDecodeErrorZ in the error state. */ public static Result_UpdateFailMalformedHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UpdateFailMalformedHTLCDecodeErrorZ err(org.ldk.structs.Dec * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UpdateFailMalformedHTLCDecodeErrorZ clone() { - long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUpdateFailMalformedHTLCDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UpdateFeeDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UpdateFeeDecodeErrorZ.cs index b79319529..b087e1e7b 100644 --- a/c_sharp/src/org/ldk/structs/Result_UpdateFeeDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UpdateFeeDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UpdateFeeDecodeErrorZ : CommonBase { Result_UpdateFeeDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UpdateFeeDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UpdateFeeDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUpdateFeeDecodeErrorZFree(ptr); } } internal static Result_UpdateFeeDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UpdateFeeDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUpdateFeeDecodeErrorZIsOk(ptr)) { return new Result_UpdateFeeDecodeErrorZ_OK(null, ptr); } else { return new Result_UpdateFeeDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UpdateFeeDecodeErrorZ constr_from_ptr(long ptr) { public class Result_UpdateFeeDecodeErrorZ_OK : Result_UpdateFeeDecodeErrorZ { public readonly UpdateFee res; internal Result_UpdateFeeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UpdateFeeDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUpdateFeeDecodeErrorZGetOk(ptr); org.ldk.structs.UpdateFee res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UpdateFee(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UpdateFeeDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, public class Result_UpdateFeeDecodeErrorZ_Err : Result_UpdateFeeDecodeErrorZ { public readonly DecodeError err; internal Result_UpdateFeeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UpdateFeeDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUpdateFeeDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UpdateFeeDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy * Creates a new CResult_UpdateFeeDecodeErrorZ in the success state. */ public static Result_UpdateFeeDecodeErrorZ ok(org.ldk.structs.UpdateFee o) { - long ret = bindings.CResult_UpdateFeeDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUpdateFeeDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UpdateFeeDecodeErrorZ ok(org.ldk.structs.UpdateFee o) { * Creates a new CResult_UpdateFeeDecodeErrorZ in the error state. */ public static Result_UpdateFeeDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UpdateFeeDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUpdateFeeDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UpdateFeeDecodeErrorZ err(org.ldk.structs.DecodeError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UpdateFeeDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUpdateFeeDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UpdateFeeDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUpdateFeeDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UpdateFeeDecodeErrorZ clone() { - long ret = bindings.CResult_UpdateFeeDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUpdateFeeDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_UpdateFulfillHTLCDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_UpdateFulfillHTLCDecodeErrorZ.cs index d299d0611..b8cb7631d 100644 --- a/c_sharp/src/org/ldk/structs/Result_UpdateFulfillHTLCDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_UpdateFulfillHTLCDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_UpdateFulfillHTLCDecodeErrorZ : CommonBase { Result_UpdateFulfillHTLCDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_UpdateFulfillHTLCDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultUpdateFulfillHTLCDecodeErrorZFree(ptr); } } internal static Result_UpdateFulfillHTLCDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultUpdateFulfillHTLCDecodeErrorZIsOk(ptr)) { return new Result_UpdateFulfillHTLCDecodeErrorZ_OK(null, ptr); } else { return new Result_UpdateFulfillHTLCDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_UpdateFulfillHTLCDecodeErrorZ constr_from_ptr(long ptr) { public class Result_UpdateFulfillHTLCDecodeErrorZ_OK : Result_UpdateFulfillHTLCDecodeErrorZ { public readonly UpdateFulfillHTLC res; internal Result_UpdateFulfillHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultUpdateFulfillHTLCDecodeErrorZGetOk(ptr); org.ldk.structs.UpdateFulfillHTLC res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_UpdateFulfillHTLCDecodeErrorZ_OK(object _dummy, long ptr) : base public class Result_UpdateFulfillHTLCDecodeErrorZ_Err : Result_UpdateFulfillHTLCDecodeErrorZ { public readonly DecodeError err; internal Result_UpdateFulfillHTLCDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultUpdateFulfillHTLCDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_UpdateFulfillHTLCDecodeErrorZ_Err(object _dummy, long ptr) : bas * Creates a new CResult_UpdateFulfillHTLCDecodeErrorZ in the success state. */ public static Result_UpdateFulfillHTLCDecodeErrorZ ok(org.ldk.structs.UpdateFulfillHTLC o) { - long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultUpdateFulfillHTLCDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_UpdateFulfillHTLCDecodeErrorZ ok(org.ldk.structs.UpdateFulf * Creates a new CResult_UpdateFulfillHTLCDecodeErrorZ in the error state. */ public static Result_UpdateFulfillHTLCDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultUpdateFulfillHTLCDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_UpdateFulfillHTLCDecodeErrorZ err(org.ldk.structs.DecodeErr * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultUpdateFulfillHTLCDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultUpdateFulfillHTLCDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_UpdateFulfillHTLCDecodeErrorZ clone() { - long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultUpdateFulfillHTLCDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_VerifiedInvoiceRequestNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_VerifiedInvoiceRequestNoneZ.cs index b108f124b..94b644865 100644 --- a/c_sharp/src/org/ldk/structs/Result_VerifiedInvoiceRequestNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_VerifiedInvoiceRequestNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_VerifiedInvoiceRequestNoneZ : CommonBase { Result_VerifiedInvoiceRequestNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_VerifiedInvoiceRequestNoneZ() { - if (ptr != 0) { bindings.CResult_VerifiedInvoiceRequestNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultVerifiedInvoiceRequestNoneZFree(ptr); } } internal static Result_VerifiedInvoiceRequestNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_VerifiedInvoiceRequestNoneZ_is_ok(ptr)) { + if (Bindings.CResultVerifiedInvoiceRequestNoneZIsOk(ptr)) { return new Result_VerifiedInvoiceRequestNoneZ_OK(null, ptr); } else { return new Result_VerifiedInvoiceRequestNoneZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_VerifiedInvoiceRequestNoneZ constr_from_ptr(long ptr) { public class Result_VerifiedInvoiceRequestNoneZ_OK : Result_VerifiedInvoiceRequestNoneZ { public readonly VerifiedInvoiceRequest res; internal Result_VerifiedInvoiceRequestNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_VerifiedInvoiceRequestNoneZ_get_ok(ptr); + long res = Bindings.CResultVerifiedInvoiceRequestNoneZGetOk(ptr); org.ldk.structs.VerifiedInvoiceRequest res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.VerifiedInvoiceRequest(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -37,7 +37,7 @@ internal Result_VerifiedInvoiceRequestNoneZ_Err(object _dummy, long ptr) : base( * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the success state. */ public static Result_VerifiedInvoiceRequestNoneZ ok(org.ldk.structs.VerifiedInvoiceRequest o) { - long ret = bindings.CResult_VerifiedInvoiceRequestNoneZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultVerifiedInvoiceRequestNoneZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_VerifiedInvoiceRequestNoneZ ret_hu_conv = Result_VerifiedInvoiceRequestNoneZ.constr_from_ptr(ret); @@ -49,7 +49,7 @@ public static Result_VerifiedInvoiceRequestNoneZ ok(org.ldk.structs.VerifiedInvo * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the error state. */ public static Result_VerifiedInvoiceRequestNoneZ err() { - long ret = bindings.CResult_VerifiedInvoiceRequestNoneZ_err(); + long ret = Bindings.CResultVerifiedInvoiceRequestNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_VerifiedInvoiceRequestNoneZ ret_hu_conv = Result_VerifiedInvoiceRequestNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -59,13 +59,13 @@ public static Result_VerifiedInvoiceRequestNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_VerifiedInvoiceRequestNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultVerifiedInvoiceRequestNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultVerifiedInvoiceRequestNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_VerifiedInvoiceRequestNoneZ clone() { - long ret = bindings.CResult_VerifiedInvoiceRequestNoneZ_clone(this.ptr); + long ret = Bindings.CResultVerifiedInvoiceRequestNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_VerifiedInvoiceRequestNoneZ ret_hu_conv = Result_VerifiedInvoiceRequestNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_WarningMessageDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_WarningMessageDecodeErrorZ.cs index 3d6e34bd2..48bdc008e 100644 --- a/c_sharp/src/org/ldk/structs/Result_WarningMessageDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_WarningMessageDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_WarningMessageDecodeErrorZ : CommonBase { Result_WarningMessageDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_WarningMessageDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_WarningMessageDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultWarningMessageDecodeErrorZFree(ptr); } } internal static Result_WarningMessageDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_WarningMessageDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultWarningMessageDecodeErrorZIsOk(ptr)) { return new Result_WarningMessageDecodeErrorZ_OK(null, ptr); } else { return new Result_WarningMessageDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_WarningMessageDecodeErrorZ constr_from_ptr(long ptr) { public class Result_WarningMessageDecodeErrorZ_OK : Result_WarningMessageDecodeErrorZ { public readonly WarningMessage res; internal Result_WarningMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_WarningMessageDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultWarningMessageDecodeErrorZGetOk(ptr); org.ldk.structs.WarningMessage res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.WarningMessage(null, res); } if (res_hu_conv != null) { res_hu_conv.ptrs_to.AddLast(this); }; this.res = res_hu_conv; @@ -31,7 +31,7 @@ internal Result_WarningMessageDecodeErrorZ_OK(object _dummy, long ptr) : base(_d public class Result_WarningMessageDecodeErrorZ_Err : Result_WarningMessageDecodeErrorZ { public readonly DecodeError err; internal Result_WarningMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_WarningMessageDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultWarningMessageDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_WarningMessageDecodeErrorZ_Err(object _dummy, long ptr) : base(_ * Creates a new CResult_WarningMessageDecodeErrorZ in the success state. */ public static Result_WarningMessageDecodeErrorZ ok(org.ldk.structs.WarningMessage o) { - long ret = bindings.CResult_WarningMessageDecodeErrorZ_ok(o == null ? 0 : o.ptr); + long ret = Bindings.CResultWarningMessageDecodeErrorZOk(o == null ? 0 : o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_WarningMessageDecodeErrorZ ret_hu_conv = Result_WarningMessageDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_WarningMessageDecodeErrorZ ok(org.ldk.structs.WarningMessag * Creates a new CResult_WarningMessageDecodeErrorZ in the error state. */ public static Result_WarningMessageDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_WarningMessageDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultWarningMessageDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_WarningMessageDecodeErrorZ ret_hu_conv = Result_WarningMessageDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_WarningMessageDecodeErrorZ err(org.ldk.structs.DecodeError * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_WarningMessageDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultWarningMessageDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_WarningMessageDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultWarningMessageDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_WarningMessageDecodeErrorZ clone() { - long ret = bindings.CResult_WarningMessageDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultWarningMessageDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_WarningMessageDecodeErrorZ ret_hu_conv = Result_WarningMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_WitnessNoneZ.cs b/c_sharp/src/org/ldk/structs/Result_WitnessNoneZ.cs index fcb0bc36d..af8c56034 100644 --- a/c_sharp/src/org/ldk/structs/Result_WitnessNoneZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_WitnessNoneZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_WitnessNoneZ : CommonBase { Result_WitnessNoneZ(object _dummy, long ptr) : base(ptr) { } ~Result_WitnessNoneZ() { - if (ptr != 0) { bindings.CResult_WitnessNoneZ_free(ptr); } + if (ptr != 0) { Bindings.CResultWitnessNoneZFree(ptr); } } internal static Result_WitnessNoneZ constr_from_ptr(long ptr) { - if (bindings.CResult_WitnessNoneZ_is_ok(ptr)) { + if (Bindings.CResultWitnessNoneZIsOk(ptr)) { return new Result_WitnessNoneZ_OK(null, ptr); } else { return new Result_WitnessNoneZ_Err(null, ptr); @@ -21,8 +21,8 @@ internal static Result_WitnessNoneZ constr_from_ptr(long ptr) { public class Result_WitnessNoneZ_OK : Result_WitnessNoneZ { public readonly byte[] res; internal Result_WitnessNoneZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_WitnessNoneZ_get_ok(ptr); - byte[] res_conv = InternalUtils.decodeUint8Array(res); + long res = Bindings.CResultWitnessNoneZGetOk(ptr); + byte[] res_conv = InternalUtils.DecodeUint8Array(res); this.res = res_conv; } } @@ -36,7 +36,7 @@ internal Result_WitnessNoneZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { * Creates a new CResult_WitnessNoneZ in the success state. */ public static Result_WitnessNoneZ ok(byte[] o) { - long ret = bindings.CResult_WitnessNoneZ_ok(InternalUtils.encodeUint8Array(o)); + long ret = Bindings.CResultWitnessNoneZOk(InternalUtils.EncodeUint8Array(o)); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_WitnessNoneZ ret_hu_conv = Result_WitnessNoneZ.constr_from_ptr(ret); @@ -47,7 +47,7 @@ public static Result_WitnessNoneZ ok(byte[] o) { * Creates a new CResult_WitnessNoneZ in the error state. */ public static Result_WitnessNoneZ err() { - long ret = bindings.CResult_WitnessNoneZ_err(); + long ret = Bindings.CResultWitnessNoneZErr(); if (ret >= 0 && ret <= 4096) { return null; } Result_WitnessNoneZ ret_hu_conv = Result_WitnessNoneZ.constr_from_ptr(ret); return ret_hu_conv; @@ -57,13 +57,13 @@ public static Result_WitnessNoneZ err() { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_WitnessNoneZ_is_ok(this.ptr); + bool ret = Bindings.CResultWitnessNoneZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_WitnessNoneZ_clone_ptr(this.ptr); + long ret = Bindings.CResultWitnessNoneZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_WitnessNoneZ clone() { - long ret = bindings.CResult_WitnessNoneZ_clone(this.ptr); + long ret = Bindings.CResultWitnessNoneZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_WitnessNoneZ ret_hu_conv = Result_WitnessNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.cs index 6c4cb5ca0..d585c1202 100644 --- a/c_sharp/src/org/ldk/structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : CommonBase { Result_WriteableEcdsaChannelSignerDecodeErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_WriteableEcdsaChannelSignerDecodeErrorZ() { - if (ptr != 0) { bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZFree(ptr); } } internal static Result_WriteableEcdsaChannelSignerDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(ptr)) { + if (Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZIsOk(ptr)) { return new Result_WriteableEcdsaChannelSignerDecodeErrorZ_OK(null, ptr); } else { return new Result_WriteableEcdsaChannelSignerDecodeErrorZ_Err(null, ptr); @@ -21,7 +21,7 @@ internal static Result_WriteableEcdsaChannelSignerDecodeErrorZ constr_from_ptr(l public class Result_WriteableEcdsaChannelSignerDecodeErrorZ_OK : Result_WriteableEcdsaChannelSignerDecodeErrorZ { public readonly WriteableEcdsaChannelSigner res; internal Result_WriteableEcdsaChannelSignerDecodeErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - long res = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(ptr); + long res = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZGetOk(ptr); WriteableEcdsaChannelSigner ret_hu_conv = new WriteableEcdsaChannelSigner(null, res); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; this.res = ret_hu_conv; @@ -31,7 +31,7 @@ internal Result_WriteableEcdsaChannelSignerDecodeErrorZ_OK(object _dummy, long p public class Result_WriteableEcdsaChannelSignerDecodeErrorZ_Err : Result_WriteableEcdsaChannelSignerDecodeErrorZ { public readonly DecodeError err; internal Result_WriteableEcdsaChannelSignerDecodeErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(ptr); + long err = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZGetErr(ptr); org.ldk.structs.DecodeError err_hu_conv = org.ldk.structs.DecodeError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -42,7 +42,7 @@ internal Result_WriteableEcdsaChannelSignerDecodeErrorZ_Err(object _dummy, long * Creates a new CResult_WriteableEcdsaChannelSignerDecodeErrorZ in the success state. */ public static Result_WriteableEcdsaChannelSignerDecodeErrorZ ok(org.ldk.structs.WriteableEcdsaChannelSigner o) { - long ret = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(o.ptr); + long ret = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZOk(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_WriteableEcdsaChannelSignerDecodeErrorZ ret_hu_conv = Result_WriteableEcdsaChannelSignerDecodeErrorZ.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public static Result_WriteableEcdsaChannelSignerDecodeErrorZ ok(org.ldk.structs. * Creates a new CResult_WriteableEcdsaChannelSignerDecodeErrorZ in the error state. */ public static Result_WriteableEcdsaChannelSignerDecodeErrorZ err(org.ldk.structs.DecodeError e) { - long ret = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(e.ptr); + long ret = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_WriteableEcdsaChannelSignerDecodeErrorZ ret_hu_conv = Result_WriteableEcdsaChannelSignerDecodeErrorZ.constr_from_ptr(ret); @@ -66,13 +66,13 @@ public static Result_WriteableEcdsaChannelSignerDecodeErrorZ err(org.ldk.structs * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -82,7 +82,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_WriteableEcdsaChannelSignerDecodeErrorZ clone() { - long ret = bindings.CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(this.ptr); + long ret = Bindings.CResultWriteableEcdsaChannelSignerDecodeErrorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_WriteableEcdsaChannelSignerDecodeErrorZ ret_hu_conv = Result_WriteableEcdsaChannelSignerDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_boolLightningErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_boolLightningErrorZ.cs index ef9c4245f..daf9014c3 100644 --- a/c_sharp/src/org/ldk/structs/Result_boolLightningErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_boolLightningErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_boolLightningErrorZ : CommonBase { Result_boolLightningErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_boolLightningErrorZ() { - if (ptr != 0) { bindings.CResult_boolLightningErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBoollightningerrorzFree(ptr); } } internal static Result_boolLightningErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_boolLightningErrorZ_is_ok(ptr)) { + if (Bindings.CResultBoollightningerrorzIsOk(ptr)) { return new Result_boolLightningErrorZ_OK(null, ptr); } else { return new Result_boolLightningErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_boolLightningErrorZ constr_from_ptr(long ptr) { public class Result_boolLightningErrorZ_OK : Result_boolLightningErrorZ { public readonly bool res; internal Result_boolLightningErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_boolLightningErrorZ_get_ok(ptr); + this.res = Bindings.CResultBoollightningerrorzGetOk(ptr); } } public class Result_boolLightningErrorZ_Err : Result_boolLightningErrorZ { public readonly LightningError err; internal Result_boolLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_boolLightningErrorZ_get_err(ptr); + long err = Bindings.CResultBoollightningerrorzGetErr(ptr); org.ldk.structs.LightningError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.LightningError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_boolLightningErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_boolLightningErrorZ in the success state. */ public static Result_boolLightningErrorZ ok(bool o) { - long ret = bindings.CResult_boolLightningErrorZ_ok(o); + long ret = Bindings.CResultBoollightningerrorzOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_boolLightningErrorZ ok(bool o) { * Creates a new CResult_boolLightningErrorZ in the error state. */ public static Result_boolLightningErrorZ err(org.ldk.structs.LightningError e) { - long ret = bindings.CResult_boolLightningErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultBoollightningerrorzErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_boolLightningErrorZ err(org.ldk.structs.LightningError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_boolLightningErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBoollightningerrorzIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_boolLightningErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBoollightningerrorzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_boolLightningErrorZ clone() { - long ret = bindings.CResult_boolLightningErrorZ_clone(this.ptr); + long ret = Bindings.CResultBoollightningerrorzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_boolPeerHandleErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_boolPeerHandleErrorZ.cs index 3af6cb1dc..5d5629712 100644 --- a/c_sharp/src/org/ldk/structs/Result_boolPeerHandleErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_boolPeerHandleErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_boolPeerHandleErrorZ : CommonBase { Result_boolPeerHandleErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_boolPeerHandleErrorZ() { - if (ptr != 0) { bindings.CResult_boolPeerHandleErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultBoolpeerhandleerrorzFree(ptr); } } internal static Result_boolPeerHandleErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_boolPeerHandleErrorZ_is_ok(ptr)) { + if (Bindings.CResultBoolpeerhandleerrorzIsOk(ptr)) { return new Result_boolPeerHandleErrorZ_OK(null, ptr); } else { return new Result_boolPeerHandleErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_boolPeerHandleErrorZ constr_from_ptr(long ptr) { public class Result_boolPeerHandleErrorZ_OK : Result_boolPeerHandleErrorZ { public readonly bool res; internal Result_boolPeerHandleErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_boolPeerHandleErrorZ_get_ok(ptr); + this.res = Bindings.CResultBoolpeerhandleerrorzGetOk(ptr); } } public class Result_boolPeerHandleErrorZ_Err : Result_boolPeerHandleErrorZ { public readonly PeerHandleError err; internal Result_boolPeerHandleErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_boolPeerHandleErrorZ_get_err(ptr); + long err = Bindings.CResultBoolpeerhandleerrorzGetErr(ptr); org.ldk.structs.PeerHandleError err_hu_conv = null; if (err < 0 || err > 4096) { err_hu_conv = new org.ldk.structs.PeerHandleError(null, err); } if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_boolPeerHandleErrorZ_Err(object _dummy, long ptr) : base(_dummy, * Creates a new CResult_boolPeerHandleErrorZ in the success state. */ public static Result_boolPeerHandleErrorZ ok(bool o) { - long ret = bindings.CResult_boolPeerHandleErrorZ_ok(o); + long ret = Bindings.CResultBoolpeerhandleerrorzOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_boolPeerHandleErrorZ ok(bool o) { * Creates a new CResult_boolPeerHandleErrorZ in the error state. */ public static Result_boolPeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) { - long ret = bindings.CResult_boolPeerHandleErrorZ_err(e == null ? 0 : e.ptr); + long ret = Bindings.CResultBoolpeerhandleerrorzErr(e == null ? 0 : e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret); @@ -62,13 +62,13 @@ public static Result_boolPeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_boolPeerHandleErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultBoolpeerhandleerrorzIsOk(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.CResult_boolPeerHandleErrorZ_clone_ptr(this.ptr); + long ret = Bindings.CResultBoolpeerhandleerrorzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public Result_boolPeerHandleErrorZ clone() { - long ret = bindings.CResult_boolPeerHandleErrorZ_clone(this.ptr); + long ret = Bindings.CResultBoolpeerhandleerrorzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Result_u32GraphSyncErrorZ.cs b/c_sharp/src/org/ldk/structs/Result_u32GraphSyncErrorZ.cs index 30e15ca2a..97ef03446 100644 --- a/c_sharp/src/org/ldk/structs/Result_u32GraphSyncErrorZ.cs +++ b/c_sharp/src/org/ldk/structs/Result_u32GraphSyncErrorZ.cs @@ -8,11 +8,11 @@ namespace org { namespace ldk { namespace structs { public class Result_u32GraphSyncErrorZ : CommonBase { Result_u32GraphSyncErrorZ(object _dummy, long ptr) : base(ptr) { } ~Result_u32GraphSyncErrorZ() { - if (ptr != 0) { bindings.CResult_u32GraphSyncErrorZ_free(ptr); } + if (ptr != 0) { Bindings.CResultU32GraphsyncerrorzFree(ptr); } } internal static Result_u32GraphSyncErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_u32GraphSyncErrorZ_is_ok(ptr)) { + if (Bindings.CResultU32GraphsyncerrorzIsOk(ptr)) { return new Result_u32GraphSyncErrorZ_OK(null, ptr); } else { return new Result_u32GraphSyncErrorZ_Err(null, ptr); @@ -21,14 +21,14 @@ internal static Result_u32GraphSyncErrorZ constr_from_ptr(long ptr) { public class Result_u32GraphSyncErrorZ_OK : Result_u32GraphSyncErrorZ { public readonly int res; internal Result_u32GraphSyncErrorZ_OK(object _dummy, long ptr) : base(_dummy, ptr) { - this.res = bindings.CResult_u32GraphSyncErrorZ_get_ok(ptr); + this.res = Bindings.CResultU32GraphsyncerrorzGetOk(ptr); } } public class Result_u32GraphSyncErrorZ_Err : Result_u32GraphSyncErrorZ { public readonly GraphSyncError err; internal Result_u32GraphSyncErrorZ_Err(object _dummy, long ptr) : base(_dummy, ptr) { - long err = bindings.CResult_u32GraphSyncErrorZ_get_err(ptr); + long err = Bindings.CResultU32GraphsyncerrorzGetErr(ptr); org.ldk.structs.GraphSyncError err_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(err); if (err_hu_conv != null) { err_hu_conv.ptrs_to.AddLast(this); }; this.err = err_hu_conv; @@ -39,7 +39,7 @@ internal Result_u32GraphSyncErrorZ_Err(object _dummy, long ptr) : base(_dummy, p * Creates a new CResult_u32GraphSyncErrorZ in the success state. */ public static Result_u32GraphSyncErrorZ ok(int o) { - long ret = bindings.CResult_u32GraphSyncErrorZ_ok(o); + long ret = Bindings.CResultU32GraphsyncerrorzOk(o); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } Result_u32GraphSyncErrorZ ret_hu_conv = Result_u32GraphSyncErrorZ.constr_from_ptr(ret); @@ -50,7 +50,7 @@ public static Result_u32GraphSyncErrorZ ok(int o) { * Creates a new CResult_u32GraphSyncErrorZ in the error state. */ public static Result_u32GraphSyncErrorZ err(org.ldk.structs.GraphSyncError e) { - long ret = bindings.CResult_u32GraphSyncErrorZ_err(e.ptr); + long ret = Bindings.CResultU32GraphsyncerrorzErr(e.ptr); GC.KeepAlive(e); if (ret >= 0 && ret <= 4096) { return null; } Result_u32GraphSyncErrorZ ret_hu_conv = Result_u32GraphSyncErrorZ.constr_from_ptr(ret); @@ -62,7 +62,7 @@ public static Result_u32GraphSyncErrorZ err(org.ldk.structs.GraphSyncError e) { * Checks if the given object is currently in the success state */ public bool is_ok() { - bool ret = bindings.CResult_u32GraphSyncErrorZ_is_ok(this.ptr); + bool ret = Bindings.CResultU32GraphsyncerrorzIsOk(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/Retry.cs b/c_sharp/src/org/ldk/structs/Retry.cs index 9051ae53b..041fb44b9 100644 --- a/c_sharp/src/org/ldk/structs/Retry.cs +++ b/c_sharp/src/org/ldk/structs/Retry.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class Retry : CommonBase { protected Retry(object _dummy, long ptr) : base(ptr) { } ~Retry() { - if (ptr != 0) { bindings.Retry_free(ptr); } + if (ptr != 0) { Bindings.RetryFree(ptr); } } internal static Retry constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKRetry_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKRetryTyFromPtr(ptr); switch (raw_ty) { case 0: return new Retry_Attempts(ptr); case 1: return new Retry_Timeout(ptr); @@ -28,18 +28,18 @@ internal static Retry constr_from_ptr(long ptr) { public class Retry_Attempts : Retry { public int attempts; internal Retry_Attempts(long ptr) : base(null, ptr) { - this.attempts = bindings.LDKRetry_Attempts_get_attempts(ptr); + this.attempts = Bindings.LDKRetryAttemptsGetAttempts(ptr); } } /** A Retry of type Timeout */ public class Retry_Timeout : Retry { public long timeout; internal Retry_Timeout(long ptr) : base(null, ptr) { - this.timeout = bindings.LDKRetry_Timeout_get_timeout(ptr); + this.timeout = Bindings.LDKRetryTimeoutGetTimeout(ptr); } } internal long clone_ptr() { - long ret = bindings.Retry_clone_ptr(this.ptr); + long ret = Bindings.RetryClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ internal long clone_ptr() { * Creates a copy of the Retry */ public Retry clone() { - long ret = bindings.Retry_clone(this.ptr); + long ret = Bindings.RetryClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Retry ret_hu_conv = org.ldk.structs.Retry.constr_from_ptr(ret); @@ -60,7 +60,7 @@ public Retry clone() { * Utility method to constructs a new Attempts-variant Retry */ public static Retry attempts(int a) { - long ret = bindings.Retry_attempts(a); + long ret = Bindings.RetryAttempts(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Retry ret_hu_conv = org.ldk.structs.Retry.constr_from_ptr(ret); @@ -72,7 +72,7 @@ public static Retry attempts(int a) { * Utility method to constructs a new Timeout-variant Retry */ public static Retry timeout(long a) { - long ret = bindings.Retry_timeout(a); + long ret = Bindings.RetryTimeout(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Retry ret_hu_conv = org.ldk.structs.Retry.constr_from_ptr(ret); @@ -85,7 +85,7 @@ public static Retry timeout(long a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.Retry b) { - bool ret = bindings.Retry_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RetryEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -99,7 +99,7 @@ public override bool Equals(object o) { * Generates a non-cryptographic 64-bit hash of the Retry. */ public long hash() { - long ret = bindings.Retry_hash(this.ptr); + long ret = Bindings.RetryHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -111,10 +111,10 @@ public override int GetHashCode() { * Serialize the Retry object into a byte array which can be read by Retry_read */ public byte[] write() { - long ret = bindings.Retry_write(this.ptr); + long ret = Bindings.RetryWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -122,7 +122,7 @@ public byte[] write() { * Read a Retry from a byte array, created by Retry_write */ public static Result_RetryDecodeErrorZ read(byte[] ser) { - long ret = bindings.Retry_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RetryRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RetryDecodeErrorZ ret_hu_conv = Result_RetryDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RevocationBasepoint.cs b/c_sharp/src/org/ldk/structs/RevocationBasepoint.cs index d2254409e..ae6970d6f 100644 --- a/c_sharp/src/org/ldk/structs/RevocationBasepoint.cs +++ b/c_sharp/src/org/ldk/structs/RevocationBasepoint.cs @@ -13,19 +13,19 @@ namespace org { namespace ldk { namespace structs { public class RevocationBasepoint : CommonBase { internal RevocationBasepoint(object _dummy, long ptr) : base(ptr) { } ~RevocationBasepoint() { - if (ptr != 0) { bindings.RevocationBasepoint_free(ptr); } + if (ptr != 0) { Bindings.RevocationBasepointFree(ptr); } } public byte[] get_a() { - long ret = bindings.RevocationBasepoint_get_a(this.ptr); + long ret = Bindings.RevocationBasepointGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.RevocationBasepoint_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RevocationBasepointSetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -34,7 +34,7 @@ public void set_a(byte[] val) { * Constructs a new RevocationBasepoint given each field */ public static RevocationBasepoint of(byte[] a_arg) { - long ret = bindings.RevocationBasepoint_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.RevocationBasepointNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationBasepoint(null, ret); } @@ -48,7 +48,7 @@ public static RevocationBasepoint of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RevocationBasepoint b) { - bool ret = bindings.RevocationBasepoint_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RevocationBasepointEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -60,7 +60,7 @@ public override bool Equals(object o) { return this.eq((RevocationBasepoint)o); } internal long clone_ptr() { - long ret = bindings.RevocationBasepoint_clone_ptr(this.ptr); + long ret = Bindings.RevocationBasepointClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -69,7 +69,7 @@ internal long clone_ptr() { * Creates a copy of the RevocationBasepoint */ public RevocationBasepoint clone() { - long ret = bindings.RevocationBasepoint_clone(this.ptr); + long ret = Bindings.RevocationBasepointClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationBasepoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationBasepoint(null, ret); } @@ -81,7 +81,7 @@ public RevocationBasepoint clone() { * Generates a non-cryptographic 64-bit hash of the RevocationBasepoint. */ public long hash() { - long ret = bindings.RevocationBasepoint_hash(this.ptr); + long ret = Bindings.RevocationBasepointHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -93,10 +93,10 @@ public override int GetHashCode() { * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.RevocationBasepoint_to_public_key(this.ptr); + long ret = Bindings.RevocationBasepointToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -104,10 +104,10 @@ public byte[] to_public_key() { * Serialize the RevocationBasepoint object into a byte array which can be read by RevocationBasepoint_read */ public byte[] write() { - long ret = bindings.RevocationBasepoint_write(this.ptr); + long ret = Bindings.RevocationBasepointWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -115,7 +115,7 @@ public byte[] write() { * Read a RevocationBasepoint from a byte array, created by RevocationBasepoint_write */ public static Result_RevocationBasepointDecodeErrorZ read(byte[] ser) { - long ret = bindings.RevocationBasepoint_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RevocationBasepointRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationBasepointDecodeErrorZ ret_hu_conv = Result_RevocationBasepointDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RevocationKey.cs b/c_sharp/src/org/ldk/structs/RevocationKey.cs index 9fe538dcb..05b6ad07d 100644 --- a/c_sharp/src/org/ldk/structs/RevocationKey.cs +++ b/c_sharp/src/org/ldk/structs/RevocationKey.cs @@ -19,19 +19,19 @@ namespace org { namespace ldk { namespace structs { public class RevocationKey : CommonBase { internal RevocationKey(object _dummy, long ptr) : base(ptr) { } ~RevocationKey() { - if (ptr != 0) { bindings.RevocationKey_free(ptr); } + if (ptr != 0) { Bindings.RevocationKeyFree(ptr); } } public byte[] get_a() { - long ret = bindings.RevocationKey_get_a(this.ptr); + long ret = Bindings.RevocationKeyGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } public void set_a(byte[] val) { - bindings.RevocationKey_set_a(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RevocationKeySetA(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_a(byte[] val) { * Constructs a new RevocationKey given each field */ public static RevocationKey of(byte[] a_arg) { - long ret = bindings.RevocationKey_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a_arg, 33))); + long ret = Bindings.RevocationKeyNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a_arg, 33))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationKey(null, ret); } @@ -54,7 +54,7 @@ public static RevocationKey of(byte[] a_arg) { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RevocationKey b) { - bool ret = bindings.RevocationKey_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RevocationKeyEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -66,7 +66,7 @@ public override bool Equals(object o) { return this.eq((RevocationKey)o); } internal long clone_ptr() { - long ret = bindings.RevocationKey_clone_ptr(this.ptr); + long ret = Bindings.RevocationKeyClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ internal long clone_ptr() { * Creates a copy of the RevocationKey */ public RevocationKey clone() { - long ret = bindings.RevocationKey_clone(this.ptr); + long ret = Bindings.RevocationKeyClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationKey(null, ret); } @@ -87,7 +87,7 @@ public RevocationKey clone() { * Generates a non-cryptographic 64-bit hash of the RevocationKey. */ public long hash() { - long ret = bindings.RevocationKey_hash(this.ptr); + long ret = Bindings.RevocationKeyHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -107,7 +107,7 @@ public override int GetHashCode() { * [`chan_utils::derive_private_revocation_key`]: crate::ln::chan_utils::derive_private_revocation_key */ public static RevocationKey from_basepoint(org.ldk.structs.RevocationBasepoint countersignatory_basepoint, byte[] per_commitment_point) { - long ret = bindings.RevocationKey_from_basepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33))); + long ret = Bindings.RevocationKeyFromBasepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33))); GC.KeepAlive(countersignatory_basepoint); GC.KeepAlive(per_commitment_point); if (ret >= 0 && ret <= 4096) { return null; } @@ -121,10 +121,10 @@ public static RevocationKey from_basepoint(org.ldk.structs.RevocationBasepoint c * Get inner Public Key */ public byte[] to_public_key() { - long ret = bindings.RevocationKey_to_public_key(this.ptr); + long ret = Bindings.RevocationKeyToPublicKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -132,10 +132,10 @@ public byte[] to_public_key() { * Serialize the RevocationKey object into a byte array which can be read by RevocationKey_read */ public byte[] write() { - long ret = bindings.RevocationKey_write(this.ptr); + long ret = Bindings.RevocationKeyWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -143,7 +143,7 @@ public byte[] write() { * Read a RevocationKey from a byte array, created by RevocationKey_write */ public static Result_RevocationKeyDecodeErrorZ read(byte[] ser) { - long ret = bindings.RevocationKey_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RevocationKeyRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RevocationKeyDecodeErrorZ ret_hu_conv = Result_RevocationKeyDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RevokeAndACK.cs b/c_sharp/src/org/ldk/structs/RevokeAndACK.cs index aa9738103..e93855c7c 100644 --- a/c_sharp/src/org/ldk/structs/RevokeAndACK.cs +++ b/c_sharp/src/org/ldk/structs/RevokeAndACK.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class RevokeAndACK : CommonBase { internal RevokeAndACK(object _dummy, long ptr) : base(ptr) { } ~RevokeAndACK() { - if (ptr != 0) { bindings.RevokeAndACK_free(ptr); } + if (ptr != 0) { Bindings.RevokeAndACKFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.RevokeAndACK_get_channel_id(this.ptr); + long ret = Bindings.RevokeAndACKGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.RevokeAndACK_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.RevokeAndACKSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_channel_id(byte[] val) { * The secret corresponding to the per-commitment point */ public byte[] get_per_commitment_secret() { - long ret = bindings.RevokeAndACK_get_per_commitment_secret(this.ptr); + long ret = Bindings.RevokeAndACKGetPerCommitmentSecret(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_per_commitment_secret() { * The secret corresponding to the per-commitment point */ public void set_per_commitment_secret(byte[] val) { - bindings.RevokeAndACK_set_per_commitment_secret(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.RevokeAndACKSetPerCommitmentSecret(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,10 +61,10 @@ public void set_per_commitment_secret(byte[] val) { * The next sender-broadcast commitment transaction's per-commitment point */ public byte[] get_next_per_commitment_point() { - long ret = bindings.RevokeAndACK_get_next_per_commitment_point(this.ptr); + long ret = Bindings.RevokeAndACKGetNextPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -72,7 +72,7 @@ public byte[] get_next_per_commitment_point() { * The next sender-broadcast commitment transaction's per-commitment point */ public void set_next_per_commitment_point(byte[] val) { - bindings.RevokeAndACK_set_next_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RevokeAndACKSetNextPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,7 +81,7 @@ public void set_next_per_commitment_point(byte[] val) { * Constructs a new RevokeAndACK given each field */ public static RevokeAndACK of(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg) { - long ret = bindings.RevokeAndACK_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_secret_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(next_per_commitment_point_arg, 33))); + long ret = Bindings.RevokeAndACKNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_secret_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(next_per_commitment_point_arg, 33))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(per_commitment_secret_arg); GC.KeepAlive(next_per_commitment_point_arg); @@ -92,7 +92,7 @@ public static RevokeAndACK of(byte[] channel_id_arg, byte[] per_commitment_secre } internal long clone_ptr() { - long ret = bindings.RevokeAndACK_clone_ptr(this.ptr); + long ret = Bindings.RevokeAndACKClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -101,7 +101,7 @@ internal long clone_ptr() { * Creates a copy of the RevokeAndACK */ public RevokeAndACK clone() { - long ret = bindings.RevokeAndACK_clone(this.ptr); + long ret = Bindings.RevokeAndACKClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevokeAndACK ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevokeAndACK(null, ret); } @@ -113,7 +113,7 @@ public RevokeAndACK clone() { * Generates a non-cryptographic 64-bit hash of the RevokeAndACK. */ public long hash() { - long ret = bindings.RevokeAndACK_hash(this.ptr); + long ret = Bindings.RevokeAndACKHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -127,7 +127,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RevokeAndACK b) { - bool ret = bindings.RevokeAndACK_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RevokeAndACKEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -142,10 +142,10 @@ public override bool Equals(object o) { * Serialize the RevokeAndACK object into a byte array which can be read by RevokeAndACK_read */ public byte[] write() { - long ret = bindings.RevokeAndACK_write(this.ptr); + long ret = Bindings.RevokeAndACKWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -153,7 +153,7 @@ public byte[] write() { * Read a RevokeAndACK from a byte array, created by RevokeAndACK_write */ public static Result_RevokeAndACKDecodeErrorZ read(byte[] ser) { - long ret = bindings.RevokeAndACK_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RevokeAndACKRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Route.cs b/c_sharp/src/org/ldk/structs/Route.cs index 666b6dfbb..8a574b73e 100644 --- a/c_sharp/src/org/ldk/structs/Route.cs +++ b/c_sharp/src/org/ldk/structs/Route.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class Route : CommonBase { internal Route(object _dummy, long ptr) : base(ptr) { } ~Route() { - if (ptr != 0) { bindings.Route_free(ptr); } + if (ptr != 0) { Bindings.RouteFree(ptr); } } /** @@ -22,18 +22,18 @@ internal Route(object _dummy, long ptr) : base(ptr) { } * the same. */ public Path[] get_paths() { - long ret = bindings.Route_get_paths(this.ptr); + long ret = Bindings.RouteGetPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_6_len = InternalUtils.getArrayLength(ret); + int ret_conv_6_len = InternalUtils.GetArrayLength(ret); Path[] ret_conv_6_arr = new Path[ret_conv_6_len]; for (int g = 0; g < ret_conv_6_len; g++) { - long ret_conv_6 = InternalUtils.getU64ArrayElem(ret, g); + long ret_conv_6 = InternalUtils.GetU64ArrayElem(ret, g); org.ldk.structs.Path ret_conv_6_hu_conv = null; if (ret_conv_6 < 0 || ret_conv_6 > 4096) { ret_conv_6_hu_conv = new org.ldk.structs.Path(null, ret_conv_6); } if (ret_conv_6_hu_conv != null) { ret_conv_6_hu_conv.ptrs_to.AddLast(this); }; ret_conv_6_arr[g] = ret_conv_6_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_6_arr; } @@ -43,7 +43,7 @@ public Path[] get_paths() { * the same. */ public void set_paths(Path[] val) { - bindings.Route_set_paths(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_6 => val_conv_6 == null ? 0 : val_conv_6.ptr))); + Bindings.RouteSetPaths(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_6 => val_conv_6 == null ? 0 : val_conv_6.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (Path val_conv_6 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_6); }; }; @@ -59,7 +59,7 @@ public void set_paths(Path[] val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public RouteParameters get_route_params() { - long ret = bindings.Route_get_route_params(this.ptr); + long ret = Bindings.RouteGetRouteParams(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteParameters(null, ret); } @@ -77,7 +77,7 @@ public RouteParameters get_route_params() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_route_params(org.ldk.structs.RouteParameters val) { - bindings.Route_set_route_params(this.ptr, val == null ? 0 : val.ptr); + Bindings.RouteSetRouteParams(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -89,7 +89,7 @@ public void set_route_params(org.ldk.structs.RouteParameters val) { * Note that route_params_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static Route of(Path[] paths_arg, org.ldk.structs.RouteParameters route_params_arg) { - long ret = bindings.Route_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(paths_arg, paths_arg_conv_6 => paths_arg_conv_6 == null ? 0 : paths_arg_conv_6.ptr)), route_params_arg == null ? 0 : route_params_arg.ptr); + long ret = Bindings.RouteNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(paths_arg, paths_arg_conv_6 => paths_arg_conv_6 == null ? 0 : paths_arg_conv_6.ptr)), route_params_arg == null ? 0 : route_params_arg.ptr); GC.KeepAlive(paths_arg); GC.KeepAlive(route_params_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -101,7 +101,7 @@ public static Route of(Path[] paths_arg, org.ldk.structs.RouteParameters route_p } internal long clone_ptr() { - long ret = bindings.Route_clone_ptr(this.ptr); + long ret = Bindings.RouteClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ internal long clone_ptr() { * Creates a copy of the Route */ public Route clone() { - long ret = bindings.Route_clone(this.ptr); + long ret = Bindings.RouteClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Route ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Route(null, ret); } @@ -122,7 +122,7 @@ public Route clone() { * Generates a non-cryptographic 64-bit hash of the Route. */ public long hash() { - long ret = bindings.Route_hash(this.ptr); + long ret = Bindings.RouteHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -136,7 +136,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Route b) { - bool ret = bindings.Route_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RouteEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -157,7 +157,7 @@ public override bool Equals(object o) { * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ public long get_total_fees() { - long ret = bindings.Route_get_total_fees(this.ptr); + long ret = Bindings.RouteGetTotalFees(this.ptr); GC.KeepAlive(this); return ret; } @@ -171,7 +171,7 @@ public long get_total_fees() { * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ public long get_total_amount() { - long ret = bindings.Route_get_total_amount(this.ptr); + long ret = Bindings.RouteGetTotalAmount(this.ptr); GC.KeepAlive(this); return ret; } @@ -180,10 +180,10 @@ public long get_total_amount() { * Serialize the Route object into a byte array which can be read by Route_read */ public byte[] write() { - long ret = bindings.Route_write(this.ptr); + long ret = Bindings.RouteWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -191,7 +191,7 @@ public byte[] write() { * Read a Route from a byte array, created by Route_write */ public static Result_RouteDecodeErrorZ read(byte[] ser) { - long ret = bindings.Route_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RouteRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RouteHint.cs b/c_sharp/src/org/ldk/structs/RouteHint.cs index d98719d93..f7cdec896 100644 --- a/c_sharp/src/org/ldk/structs/RouteHint.cs +++ b/c_sharp/src/org/ldk/structs/RouteHint.cs @@ -12,27 +12,27 @@ namespace org { namespace ldk { namespace structs { public class RouteHint : CommonBase { internal RouteHint(object _dummy, long ptr) : base(ptr) { } ~RouteHint() { - if (ptr != 0) { bindings.RouteHint_free(ptr); } + if (ptr != 0) { Bindings.RouteHintFree(ptr); } } public RouteHintHop[] get_a() { - long ret = bindings.RouteHint_get_a(this.ptr); + long ret = Bindings.RouteHintGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_14_len = InternalUtils.getArrayLength(ret); + int ret_conv_14_len = InternalUtils.GetArrayLength(ret); RouteHintHop[] ret_conv_14_arr = new RouteHintHop[ret_conv_14_len]; for (int o = 0; o < ret_conv_14_len; o++) { - long ret_conv_14 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_14 = InternalUtils.GetU64ArrayElem(ret, o); org.ldk.structs.RouteHintHop ret_conv_14_hu_conv = null; if (ret_conv_14 < 0 || ret_conv_14 > 4096) { ret_conv_14_hu_conv = new org.ldk.structs.RouteHintHop(null, ret_conv_14); } if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); }; ret_conv_14_arr[o] = ret_conv_14_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_14_arr; } public void set_a(RouteHintHop[] val) { - bindings.RouteHint_set_a(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_14 => val_conv_14 == null ? 0 : val_conv_14.ptr))); + Bindings.RouteHintSetA(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_14 => val_conv_14 == null ? 0 : val_conv_14.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (RouteHintHop val_conv_14 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_14); }; }; @@ -42,7 +42,7 @@ public void set_a(RouteHintHop[] val) { * Constructs a new RouteHint given each field */ public static RouteHint of(RouteHintHop[] a_arg) { - long ret = bindings.RouteHint_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(a_arg, a_arg_conv_14 => a_arg_conv_14 == null ? 0 : a_arg_conv_14.ptr))); + long ret = Bindings.RouteHintNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(a_arg, a_arg_conv_14 => a_arg_conv_14 == null ? 0 : a_arg_conv_14.ptr))); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteHint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHint(null, ret); } @@ -52,7 +52,7 @@ public static RouteHint of(RouteHintHop[] a_arg) { } internal long clone_ptr() { - long ret = bindings.RouteHint_clone_ptr(this.ptr); + long ret = Bindings.RouteHintClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * Creates a copy of the RouteHint */ public RouteHint clone() { - long ret = bindings.RouteHint_clone(this.ptr); + long ret = Bindings.RouteHintClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteHint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHint(null, ret); } @@ -73,7 +73,7 @@ public RouteHint clone() { * Generates a non-cryptographic 64-bit hash of the RouteHint. */ public long hash() { - long ret = bindings.RouteHint_hash(this.ptr); + long ret = Bindings.RouteHintHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -87,7 +87,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RouteHint b) { - bool ret = bindings.RouteHint_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RouteHintEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -102,10 +102,10 @@ public override bool Equals(object o) { * Serialize the RouteHint object into a byte array which can be read by RouteHint_read */ public byte[] write() { - long ret = bindings.RouteHint_write(this.ptr); + long ret = Bindings.RouteHintWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -113,7 +113,7 @@ public byte[] write() { * Read a RouteHint from a byte array, created by RouteHint_write */ public static Result_RouteHintDecodeErrorZ read(byte[] ser) { - long ret = bindings.RouteHint_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RouteHintRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintDecodeErrorZ ret_hu_conv = Result_RouteHintDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RouteHintHop.cs b/c_sharp/src/org/ldk/structs/RouteHintHop.cs index 74f637faf..390949ced 100644 --- a/c_sharp/src/org/ldk/structs/RouteHintHop.cs +++ b/c_sharp/src/org/ldk/structs/RouteHintHop.cs @@ -16,17 +16,17 @@ namespace org { namespace ldk { namespace structs { public class RouteHintHop : CommonBase { internal RouteHintHop(object _dummy, long ptr) : base(ptr) { } ~RouteHintHop() { - if (ptr != 0) { bindings.RouteHintHop_free(ptr); } + if (ptr != 0) { Bindings.RouteHintHopFree(ptr); } } /** * The node_id of the non-target end of the route */ public byte[] get_src_node_id() { - long ret = bindings.RouteHintHop_get_src_node_id(this.ptr); + long ret = Bindings.RouteHintHopGetSrcNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -34,7 +34,7 @@ public byte[] get_src_node_id() { * The node_id of the non-target end of the route */ public void set_src_node_id(byte[] val) { - bindings.RouteHintHop_set_src_node_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RouteHintHopSetSrcNodeId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,7 +43,7 @@ public void set_src_node_id(byte[] val) { * The short_channel_id of this channel */ public long get_short_channel_id() { - long ret = bindings.RouteHintHop_get_short_channel_id(this.ptr); + long ret = Bindings.RouteHintHopGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public long get_short_channel_id() { * The short_channel_id of this channel */ public void set_short_channel_id(long val) { - bindings.RouteHintHop_set_short_channel_id(this.ptr, val); + Bindings.RouteHintHopSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_short_channel_id(long val) { * The fees which must be paid to use this channel */ public RoutingFees get_fees() { - long ret = bindings.RouteHintHop_get_fees(this.ptr); + long ret = Bindings.RouteHintHopGetFees(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); } @@ -73,7 +73,7 @@ public RoutingFees get_fees() { * The fees which must be paid to use this channel */ public void set_fees(org.ldk.structs.RoutingFees val) { - bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr); + Bindings.RouteHintHopSetFees(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -83,7 +83,7 @@ public void set_fees(org.ldk.structs.RoutingFees val) { * The difference in CLTV values between this node and the next node. */ public short get_cltv_expiry_delta() { - short ret = bindings.RouteHintHop_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.RouteHintHopGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,7 +92,7 @@ public short get_cltv_expiry_delta() { * The difference in CLTV values between this node and the next node. */ public void set_cltv_expiry_delta(short val) { - bindings.RouteHintHop_set_cltv_expiry_delta(this.ptr, val); + Bindings.RouteHintHopSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_cltv_expiry_delta(short val) { * The minimum value, in msat, which must be relayed to the next hop. */ public Option_u64Z get_htlc_minimum_msat() { - long ret = bindings.RouteHintHop_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.RouteHintHopGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -113,7 +113,7 @@ public Option_u64Z get_htlc_minimum_msat() { * The minimum value, in msat, which must be relayed to the next hop. */ public void set_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { - bindings.RouteHintHop_set_htlc_minimum_msat(this.ptr, val.ptr); + Bindings.RouteHintHopSetHtlcMinimumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -123,7 +123,7 @@ public void set_htlc_minimum_msat(org.ldk.structs.Option_u64Z val) { * The maximum value in msat available for routing with a single HTLC. */ public Option_u64Z get_htlc_maximum_msat() { - long ret = bindings.RouteHintHop_get_htlc_maximum_msat(this.ptr); + long ret = Bindings.RouteHintHopGetHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -135,7 +135,7 @@ public Option_u64Z get_htlc_maximum_msat() { * The maximum value in msat available for routing with a single HTLC. */ public void set_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { - bindings.RouteHintHop_set_htlc_maximum_msat(this.ptr, val.ptr); + Bindings.RouteHintHopSetHtlcMaximumMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -145,7 +145,7 @@ public void set_htlc_maximum_msat(org.ldk.structs.Option_u64Z val) { * Constructs a new RouteHintHop given each field */ public static RouteHintHop of(byte[] src_node_id_arg, long short_channel_id_arg, org.ldk.structs.RoutingFees fees_arg, short cltv_expiry_delta_arg, org.ldk.structs.Option_u64Z htlc_minimum_msat_arg, org.ldk.structs.Option_u64Z htlc_maximum_msat_arg) { - long ret = bindings.RouteHintHop_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(src_node_id_arg, 33)), short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr); + long ret = Bindings.RouteHintHopNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(src_node_id_arg, 33)), short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr); GC.KeepAlive(src_node_id_arg); GC.KeepAlive(short_channel_id_arg); GC.KeepAlive(fees_arg); @@ -162,7 +162,7 @@ public static RouteHintHop of(byte[] src_node_id_arg, long short_channel_id_arg, } internal long clone_ptr() { - long ret = bindings.RouteHintHop_clone_ptr(this.ptr); + long ret = Bindings.RouteHintHopClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -171,7 +171,7 @@ internal long clone_ptr() { * Creates a copy of the RouteHintHop */ public RouteHintHop clone() { - long ret = bindings.RouteHintHop_clone(this.ptr); + long ret = Bindings.RouteHintHopClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHintHop(null, ret); } @@ -183,7 +183,7 @@ public RouteHintHop clone() { * Generates a non-cryptographic 64-bit hash of the RouteHintHop. */ public long hash() { - long ret = bindings.RouteHintHop_hash(this.ptr); + long ret = Bindings.RouteHintHopHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -197,7 +197,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RouteHintHop b) { - bool ret = bindings.RouteHintHop_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RouteHintHopEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -212,10 +212,10 @@ public override bool Equals(object o) { * Serialize the RouteHintHop object into a byte array which can be read by RouteHintHop_read */ public byte[] write() { - long ret = bindings.RouteHintHop_write(this.ptr); + long ret = Bindings.RouteHintHopWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -223,7 +223,7 @@ public byte[] write() { * Read a RouteHintHop from a byte array, created by RouteHintHop_write */ public static Result_RouteHintHopDecodeErrorZ read(byte[] ser) { - long ret = bindings.RouteHintHop_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RouteHintHopRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RouteHop.cs b/c_sharp/src/org/ldk/structs/RouteHop.cs index b15e8d418..1a4c3863a 100644 --- a/c_sharp/src/org/ldk/structs/RouteHop.cs +++ b/c_sharp/src/org/ldk/structs/RouteHop.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class RouteHop : CommonBase { internal RouteHop(object _dummy, long ptr) : base(ptr) { } ~RouteHop() { - if (ptr != 0) { bindings.RouteHop_free(ptr); } + if (ptr != 0) { Bindings.RouteHopFree(ptr); } } /** * The node_id of the node at this hop. */ public byte[] get_pubkey() { - long ret = bindings.RouteHop_get_pubkey(this.ptr); + long ret = Bindings.RouteHopGetPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_pubkey() { * The node_id of the node at this hop. */ public void set_pubkey(byte[] val) { - bindings.RouteHop_set_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.RouteHopSetPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_pubkey(byte[] val) { * amended to match the features present in the invoice this node generated. */ public NodeFeatures get_node_features() { - long ret = bindings.RouteHop_get_node_features(this.ptr); + long ret = Bindings.RouteHopGetNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -54,7 +54,7 @@ public NodeFeatures get_node_features() { * amended to match the features present in the invoice this node generated. */ public void set_node_features(org.ldk.structs.NodeFeatures val) { - bindings.RouteHop_set_node_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.RouteHopSetNodeFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -64,7 +64,7 @@ public void set_node_features(org.ldk.structs.NodeFeatures val) { * The channel that should be used from the previous hop to reach this node. */ public long get_short_channel_id() { - long ret = bindings.RouteHop_get_short_channel_id(this.ptr); + long ret = Bindings.RouteHopGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ public long get_short_channel_id() { * The channel that should be used from the previous hop to reach this node. */ public void set_short_channel_id(long val) { - bindings.RouteHop_set_short_channel_id(this.ptr, val); + Bindings.RouteHopSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -83,7 +83,7 @@ public void set_short_channel_id(long val) { * to reach this node. */ public ChannelFeatures get_channel_features() { - long ret = bindings.RouteHop_get_channel_features(this.ptr); + long ret = Bindings.RouteHopGetChannelFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } @@ -96,7 +96,7 @@ public ChannelFeatures get_channel_features() { * to reach this node. */ public void set_channel_features(org.ldk.structs.ChannelFeatures val) { - bindings.RouteHop_set_channel_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.RouteHopSetChannelFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -111,7 +111,7 @@ public void set_channel_features(org.ldk.structs.ChannelFeatures val) { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public long get_fee_msat() { - long ret = bindings.RouteHop_get_fee_msat(this.ptr); + long ret = Bindings.RouteHopGetFeeMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -125,7 +125,7 @@ public long get_fee_msat() { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public void set_fee_msat(long val) { - bindings.RouteHop_set_fee_msat(this.ptr, val); + Bindings.RouteHopSetFeeMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -139,7 +139,7 @@ public void set_fee_msat(long val) { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public int get_cltv_expiry_delta() { - int ret = bindings.RouteHop_get_cltv_expiry_delta(this.ptr); + int ret = Bindings.RouteHopGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -153,7 +153,7 @@ public int get_cltv_expiry_delta() { * [`BlindedPath`]: crate::blinded_path::BlindedPath */ public void set_cltv_expiry_delta(int val) { - bindings.RouteHop_set_cltv_expiry_delta(this.ptr, val); + Bindings.RouteHopSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -169,7 +169,7 @@ public void set_cltv_expiry_delta(int val) { * Will be `true` for objects serialized with LDK version 0.0.116 and before. */ public bool get_maybe_announced_channel() { - bool ret = bindings.RouteHop_get_maybe_announced_channel(this.ptr); + bool ret = Bindings.RouteHopGetMaybeAnnouncedChannel(this.ptr); GC.KeepAlive(this); return ret; } @@ -185,7 +185,7 @@ public bool get_maybe_announced_channel() { * Will be `true` for objects serialized with LDK version 0.0.116 and before. */ public void set_maybe_announced_channel(bool val) { - bindings.RouteHop_set_maybe_announced_channel(this.ptr, val); + Bindings.RouteHopSetMaybeAnnouncedChannel(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -194,7 +194,7 @@ public void set_maybe_announced_channel(bool val) { * Constructs a new RouteHop given each field */ public static RouteHop of(byte[] pubkey_arg, org.ldk.structs.NodeFeatures node_features_arg, long short_channel_id_arg, org.ldk.structs.ChannelFeatures channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg, bool maybe_announced_channel_arg) { - long ret = bindings.RouteHop_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pubkey_arg, 33)), node_features_arg == null ? 0 : node_features_arg.ptr, short_channel_id_arg, channel_features_arg == null ? 0 : channel_features_arg.ptr, fee_msat_arg, cltv_expiry_delta_arg, maybe_announced_channel_arg); + long ret = Bindings.RouteHopNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pubkey_arg, 33)), node_features_arg == null ? 0 : node_features_arg.ptr, short_channel_id_arg, channel_features_arg == null ? 0 : channel_features_arg.ptr, fee_msat_arg, cltv_expiry_delta_arg, maybe_announced_channel_arg); GC.KeepAlive(pubkey_arg); GC.KeepAlive(node_features_arg); GC.KeepAlive(short_channel_id_arg); @@ -211,7 +211,7 @@ public static RouteHop of(byte[] pubkey_arg, org.ldk.structs.NodeFeatures node_f } internal long clone_ptr() { - long ret = bindings.RouteHop_clone_ptr(this.ptr); + long ret = Bindings.RouteHopClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -220,7 +220,7 @@ internal long clone_ptr() { * Creates a copy of the RouteHop */ public RouteHop clone() { - long ret = bindings.RouteHop_clone(this.ptr); + long ret = Bindings.RouteHopClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHop(null, ret); } @@ -232,7 +232,7 @@ public RouteHop clone() { * Generates a non-cryptographic 64-bit hash of the RouteHop. */ public long hash() { - long ret = bindings.RouteHop_hash(this.ptr); + long ret = Bindings.RouteHopHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -246,7 +246,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RouteHop b) { - bool ret = bindings.RouteHop_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RouteHopEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -261,10 +261,10 @@ public override bool Equals(object o) { * Serialize the RouteHop object into a byte array which can be read by RouteHop_read */ public byte[] write() { - long ret = bindings.RouteHop_write(this.ptr); + long ret = Bindings.RouteHopWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -272,7 +272,7 @@ public byte[] write() { * Read a RouteHop from a byte array, created by RouteHop_write */ public static Result_RouteHopDecodeErrorZ read(byte[] ser) { - long ret = bindings.RouteHop_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RouteHopRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RouteParameters.cs b/c_sharp/src/org/ldk/structs/RouteParameters.cs index de9e018af..3d9800ff4 100644 --- a/c_sharp/src/org/ldk/structs/RouteParameters.cs +++ b/c_sharp/src/org/ldk/structs/RouteParameters.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class RouteParameters : CommonBase { internal RouteParameters(object _dummy, long ptr) : base(ptr) { } ~RouteParameters() { - if (ptr != 0) { bindings.RouteParameters_free(ptr); } + if (ptr != 0) { Bindings.RouteParametersFree(ptr); } } /** * The parameters of the failed payment path. */ public PaymentParameters get_payment_params() { - long ret = bindings.RouteParameters_get_payment_params(this.ptr); + long ret = Bindings.RouteParametersGetPaymentParams(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PaymentParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PaymentParameters(null, ret); } @@ -33,7 +33,7 @@ public PaymentParameters get_payment_params() { * The parameters of the failed payment path. */ public void set_payment_params(org.ldk.structs.PaymentParameters val) { - bindings.RouteParameters_set_payment_params(this.ptr, val == null ? 0 : val.ptr); + Bindings.RouteParametersSetPaymentParams(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public void set_payment_params(org.ldk.structs.PaymentParameters val) { * The amount in msats sent on the failed payment path. */ public long get_final_value_msat() { - long ret = bindings.RouteParameters_get_final_value_msat(this.ptr); + long ret = Bindings.RouteParametersGetFinalValueMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public long get_final_value_msat() { * The amount in msats sent on the failed payment path. */ public void set_final_value_msat(long val) { - bindings.RouteParameters_set_final_value_msat(this.ptr, val); + Bindings.RouteParametersSetFinalValueMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -66,7 +66,7 @@ public void set_final_value_msat(long val) { * Note that values below a few sats may result in some paths being spuriously ignored. */ public Option_u64Z get_max_total_routing_fee_msat() { - long ret = bindings.RouteParameters_get_max_total_routing_fee_msat(this.ptr); + long ret = Bindings.RouteParametersGetMaxTotalRoutingFeeMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -83,7 +83,7 @@ public Option_u64Z get_max_total_routing_fee_msat() { * Note that values below a few sats may result in some paths being spuriously ignored. */ public void set_max_total_routing_fee_msat(org.ldk.structs.Option_u64Z val) { - bindings.RouteParameters_set_max_total_routing_fee_msat(this.ptr, val.ptr); + Bindings.RouteParametersSetMaxTotalRoutingFeeMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -93,7 +93,7 @@ public void set_max_total_routing_fee_msat(org.ldk.structs.Option_u64Z val) { * Constructs a new RouteParameters given each field */ public static RouteParameters of(org.ldk.structs.PaymentParameters payment_params_arg, long final_value_msat_arg, org.ldk.structs.Option_u64Z max_total_routing_fee_msat_arg) { - long ret = bindings.RouteParameters_new(payment_params_arg == null ? 0 : payment_params_arg.ptr, final_value_msat_arg, max_total_routing_fee_msat_arg.ptr); + long ret = Bindings.RouteParametersNew(payment_params_arg == null ? 0 : payment_params_arg.ptr, final_value_msat_arg, max_total_routing_fee_msat_arg.ptr); GC.KeepAlive(payment_params_arg); GC.KeepAlive(final_value_msat_arg); GC.KeepAlive(max_total_routing_fee_msat_arg); @@ -106,7 +106,7 @@ public static RouteParameters of(org.ldk.structs.PaymentParameters payment_param } internal long clone_ptr() { - long ret = bindings.RouteParameters_clone_ptr(this.ptr); + long ret = Bindings.RouteParametersClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -115,7 +115,7 @@ internal long clone_ptr() { * Creates a copy of the RouteParameters */ public RouteParameters clone() { - long ret = bindings.RouteParameters_clone(this.ptr); + long ret = Bindings.RouteParametersClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteParameters(null, ret); } @@ -127,7 +127,7 @@ public RouteParameters clone() { * Generates a non-cryptographic 64-bit hash of the RouteParameters. */ public long hash() { - long ret = bindings.RouteParameters_hash(this.ptr); + long ret = Bindings.RouteParametersHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -141,7 +141,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RouteParameters b) { - bool ret = bindings.RouteParameters_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RouteParametersEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -158,7 +158,7 @@ public override bool Equals(object o) { * [`Self::max_total_routing_fee_msat`] defaults to 1% of the payment amount + 50 sats */ public static RouteParameters from_payment_params_and_value(org.ldk.structs.PaymentParameters payment_params, long final_value_msat) { - long ret = bindings.RouteParameters_from_payment_params_and_value(payment_params == null ? 0 : payment_params.ptr, final_value_msat); + long ret = Bindings.RouteParametersFromPaymentParamsAndValue(payment_params == null ? 0 : payment_params.ptr, final_value_msat); GC.KeepAlive(payment_params); GC.KeepAlive(final_value_msat); if (ret >= 0 && ret <= 4096) { return null; } @@ -172,10 +172,10 @@ public static RouteParameters from_payment_params_and_value(org.ldk.structs.Paym * Serialize the RouteParameters object into a byte array which can be read by RouteParameters_read */ public byte[] write() { - long ret = bindings.RouteParameters_write(this.ptr); + long ret = Bindings.RouteParametersWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -183,7 +183,7 @@ public byte[] write() { * Read a RouteParameters from a byte array, created by RouteParameters_write */ public static Result_RouteParametersDecodeErrorZ read(byte[] ser) { - long ret = bindings.RouteParameters_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RouteParametersRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RouteParametersDecodeErrorZ ret_hu_conv = Result_RouteParametersDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Router.cs b/c_sharp/src/org/ldk/structs/Router.cs index 4bce41221..8e8d2ed6e 100644 --- a/c_sharp/src/org/ldk/structs/Router.cs +++ b/c_sharp/src/org/ldk/structs/Router.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Router */ -public interface RouterInterface { +public interface IRouter { /**Finds a [`Route`] for a payment between the given `payer` and a payee. * * The `payee` and the payment's value are given in [`RouteParameters::payment_params`] @@ -40,33 +40,33 @@ public interface RouterInterface { * A trait defining behavior for routing a payment. */ public class Router : CommonBase { - internal bindings.LDKRouter bindings_instance; + internal Bindings.LDKRouter bindings_instance; internal long instance_idx; internal Router(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Router() { - if (ptr != 0) { bindings.Router_free(ptr); } + if (ptr != 0) { Bindings.RouterFree(ptr); } } private class LDKRouterHolder { internal Router held; } - private class LDKRouterImpl : bindings.LDKRouter { - internal LDKRouterImpl(RouterInterface arg, LDKRouterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private RouterInterface arg; + private class LDKRouterImpl : Bindings.LDKRouter { + internal LDKRouterImpl(IRouter arg, LDKRouterHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IRouter arg; private LDKRouterHolder impl_holder; - public long find_route(long _payer, long _route_params, long _first_hops, long _inflight_htlcs) { - byte[] _payer_conv = InternalUtils.decodeUint8Array(_payer); + public long FindRoute(long _payer, long _route_params, long _first_hops, long _inflight_htlcs) { + byte[] _payer_conv = InternalUtils.DecodeUint8Array(_payer); org.ldk.structs.RouteParameters _route_params_hu_conv = null; if (_route_params < 0 || _route_params > 4096) { _route_params_hu_conv = new org.ldk.structs.RouteParameters(null, _route_params); } - int _first_hops_conv_16_len = InternalUtils.getArrayLength(_first_hops); + int _first_hops_conv_16_len = InternalUtils.GetArrayLength(_first_hops); ChannelDetails[] _first_hops_conv_16_arr = new ChannelDetails[_first_hops_conv_16_len]; if (_first_hops != null) { for (int q = 0; q < _first_hops_conv_16_len; q++) { - long _first_hops_conv_16 = InternalUtils.getU64ArrayElem(_first_hops, q); + long _first_hops_conv_16 = InternalUtils.GetU64ArrayElem(_first_hops, q); org.ldk.structs.ChannelDetails _first_hops_conv_16_hu_conv = null; if (_first_hops_conv_16 < 0 || _first_hops_conv_16 > 4096) { _first_hops_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, _first_hops_conv_16); } if (_first_hops_conv_16_hu_conv != null) { _first_hops_conv_16_hu_conv.ptrs_to.AddLast(this); }; _first_hops_conv_16_arr[q] = _first_hops_conv_16_hu_conv; } } - bindings.free_buffer(_first_hops); + Bindings.FreeBuffer(_first_hops); org.ldk.structs.InFlightHtlcs _inflight_htlcs_hu_conv = null; if (_inflight_htlcs < 0 || _inflight_htlcs > 4096) { _inflight_htlcs_hu_conv = new org.ldk.structs.InFlightHtlcs(null, _inflight_htlcs); } if (_inflight_htlcs_hu_conv != null) { _inflight_htlcs_hu_conv.ptrs_to.AddLast(this); }; Result_RouteLightningErrorZ ret = arg.find_route(_payer_conv, _route_params_hu_conv, _first_hops_conv_16_arr, _inflight_htlcs_hu_conv); @@ -74,40 +74,40 @@ public long find_route(long _payer, long _route_params, long _first_hops, long _ long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long find_route_with_id(long _payer, long _route_params, long _first_hops, long _inflight_htlcs, long __payment_hash, long __payment_id) { - byte[] _payer_conv = InternalUtils.decodeUint8Array(_payer); + public long FindRouteWithId(long _payer, long _route_params, long _first_hops, long _inflight_htlcs, long __payment_hash, long __payment_id) { + byte[] _payer_conv = InternalUtils.DecodeUint8Array(_payer); org.ldk.structs.RouteParameters _route_params_hu_conv = null; if (_route_params < 0 || _route_params > 4096) { _route_params_hu_conv = new org.ldk.structs.RouteParameters(null, _route_params); } - int _first_hops_conv_16_len = InternalUtils.getArrayLength(_first_hops); + int _first_hops_conv_16_len = InternalUtils.GetArrayLength(_first_hops); ChannelDetails[] _first_hops_conv_16_arr = new ChannelDetails[_first_hops_conv_16_len]; if (_first_hops != null) { for (int q = 0; q < _first_hops_conv_16_len; q++) { - long _first_hops_conv_16 = InternalUtils.getU64ArrayElem(_first_hops, q); + long _first_hops_conv_16 = InternalUtils.GetU64ArrayElem(_first_hops, q); org.ldk.structs.ChannelDetails _first_hops_conv_16_hu_conv = null; if (_first_hops_conv_16 < 0 || _first_hops_conv_16 > 4096) { _first_hops_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, _first_hops_conv_16); } if (_first_hops_conv_16_hu_conv != null) { _first_hops_conv_16_hu_conv.ptrs_to.AddLast(this); }; _first_hops_conv_16_arr[q] = _first_hops_conv_16_hu_conv; } } - bindings.free_buffer(_first_hops); + Bindings.FreeBuffer(_first_hops); org.ldk.structs.InFlightHtlcs _inflight_htlcs_hu_conv = null; if (_inflight_htlcs < 0 || _inflight_htlcs > 4096) { _inflight_htlcs_hu_conv = new org.ldk.structs.InFlightHtlcs(null, _inflight_htlcs); } if (_inflight_htlcs_hu_conv != null) { _inflight_htlcs_hu_conv.ptrs_to.AddLast(this); }; - byte[] __payment_hash_conv = InternalUtils.decodeUint8Array(__payment_hash); - byte[] __payment_id_conv = InternalUtils.decodeUint8Array(__payment_id); + byte[] __payment_hash_conv = InternalUtils.DecodeUint8Array(__payment_hash); + byte[] __payment_id_conv = InternalUtils.DecodeUint8Array(__payment_id); Result_RouteLightningErrorZ ret = arg.find_route_with_id(_payer_conv, _route_params_hu_conv, _first_hops_conv_16_arr, _inflight_htlcs_hu_conv, __payment_hash_conv, __payment_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long create_blinded_payment_paths(long _recipient, long _first_hops, long _tlvs, long _amount_msats) { - byte[] _recipient_conv = InternalUtils.decodeUint8Array(_recipient); - int _first_hops_conv_16_len = InternalUtils.getArrayLength(_first_hops); + public long CreateBlindedPaymentPaths(long _recipient, long _first_hops, long _tlvs, long _amount_msats) { + byte[] _recipient_conv = InternalUtils.DecodeUint8Array(_recipient); + int _first_hops_conv_16_len = InternalUtils.GetArrayLength(_first_hops); ChannelDetails[] _first_hops_conv_16_arr = new ChannelDetails[_first_hops_conv_16_len]; for (int q = 0; q < _first_hops_conv_16_len; q++) { - long _first_hops_conv_16 = InternalUtils.getU64ArrayElem(_first_hops, q); + long _first_hops_conv_16 = InternalUtils.GetU64ArrayElem(_first_hops, q); org.ldk.structs.ChannelDetails _first_hops_conv_16_hu_conv = null; if (_first_hops_conv_16 < 0 || _first_hops_conv_16 > 4096) { _first_hops_conv_16_hu_conv = new org.ldk.structs.ChannelDetails(null, _first_hops_conv_16); } if (_first_hops_conv_16_hu_conv != null) { _first_hops_conv_16_hu_conv.ptrs_to.AddLast(this); }; _first_hops_conv_16_arr[q] = _first_hops_conv_16_hu_conv; } - bindings.free_buffer(_first_hops); + Bindings.FreeBuffer(_first_hops); org.ldk.structs.ReceiveTlvs _tlvs_hu_conv = null; if (_tlvs < 0 || _tlvs > 4096) { _tlvs_hu_conv = new org.ldk.structs.ReceiveTlvs(null, _tlvs); } if (_tlvs_hu_conv != null) { _tlvs_hu_conv.ptrs_to.AddLast(this); }; Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ ret = arg.create_blinded_payment_paths(_recipient_conv, _first_hops_conv_16_arr, _tlvs_hu_conv, _amount_msats); @@ -118,11 +118,11 @@ public long create_blinded_payment_paths(long _recipient, long _first_hops, long } /** Creates a new instance of Router from a given implementation */ - public static Router new_impl(RouterInterface arg, MessageRouterInterface messageRouter_impl) { + public static Router new_impl(IRouter arg, IMessageRouter messageRouter_impl) { LDKRouterHolder impl_holder = new LDKRouterHolder(); LDKRouterImpl impl = new LDKRouterImpl(arg, impl_holder); MessageRouter messageRouter = MessageRouter.new_impl(messageRouter_impl); - long[] ptr_idx = bindings.LDKRouter_new(impl, messageRouter.instance_idx); + long[] ptr_idx = Bindings.LDKRouterNew(impl, messageRouter.instance_idx); impl_holder.held = new Router(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -140,7 +140,7 @@ public static Router new_impl(RouterInterface arg, MessageRouterInterface messag * Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Result_RouteLightningErrorZ find_route(byte[] payer, org.ldk.structs.RouteParameters route_params, ChannelDetails[] first_hops, org.ldk.structs.InFlightHtlcs inflight_htlcs) { - long ret = bindings.Router_find_route(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payer, 33)), route_params == null ? 0 : route_params.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), inflight_htlcs == null ? 0 : inflight_htlcs.ptr); + long ret = Bindings.RouterFindRoute(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payer, 33)), route_params == null ? 0 : route_params.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), inflight_htlcs == null ? 0 : inflight_htlcs.ptr); GC.KeepAlive(this); GC.KeepAlive(payer); GC.KeepAlive(route_params); @@ -166,7 +166,7 @@ public Result_RouteLightningErrorZ find_route(byte[] payer, org.ldk.structs.Rout * Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Result_RouteLightningErrorZ find_route_with_id(byte[] payer, org.ldk.structs.RouteParameters route_params, ChannelDetails[] first_hops, org.ldk.structs.InFlightHtlcs inflight_htlcs, byte[] _payment_hash, byte[] _payment_id) { - long ret = bindings.Router_find_route_with_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payer, 33)), route_params == null ? 0 : route_params.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), inflight_htlcs == null ? 0 : inflight_htlcs.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(_payment_hash, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(_payment_id, 32))); + long ret = Bindings.RouterFindRouteWithId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payer, 33)), route_params == null ? 0 : route_params.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), inflight_htlcs == null ? 0 : inflight_htlcs.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(_payment_hash, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(_payment_id, 32))); GC.KeepAlive(this); GC.KeepAlive(payer); GC.KeepAlive(route_params); @@ -188,7 +188,7 @@ public Result_RouteLightningErrorZ find_route_with_id(byte[] payer, org.ldk.stru * given in `tlvs`. */ public Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ create_blinded_payment_paths(byte[] recipient, ChannelDetails[] first_hops, org.ldk.structs.ReceiveTlvs tlvs, long amount_msats) { - long ret = bindings.Router_create_blinded_payment_paths(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(recipient, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), tlvs == null ? 0 : tlvs.ptr, amount_msats); + long ret = Bindings.RouterCreateBlindedPaymentPaths(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(recipient, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), tlvs == null ? 0 : tlvs.ptr, amount_msats); GC.KeepAlive(this); GC.KeepAlive(recipient); GC.KeepAlive(first_hops); diff --git a/c_sharp/src/org/ldk/structs/RoutingFees.cs b/c_sharp/src/org/ldk/structs/RoutingFees.cs index d296f2851..13ab9c4a3 100644 --- a/c_sharp/src/org/ldk/structs/RoutingFees.cs +++ b/c_sharp/src/org/ldk/structs/RoutingFees.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class RoutingFees : CommonBase { internal RoutingFees(object _dummy, long ptr) : base(ptr) { } ~RoutingFees() { - if (ptr != 0) { bindings.RoutingFees_free(ptr); } + if (ptr != 0) { Bindings.RoutingFeesFree(ptr); } } /** * Flat routing fee in millisatoshis. */ public int get_base_msat() { - int ret = bindings.RoutingFees_get_base_msat(this.ptr); + int ret = Bindings.RoutingFeesGetBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public int get_base_msat() { * Flat routing fee in millisatoshis. */ public void set_base_msat(int val) { - bindings.RoutingFees_set_base_msat(this.ptr, val); + Bindings.RoutingFeesSetBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -38,7 +38,7 @@ public void set_base_msat(int val) { * In other words, 10000 is 1%. */ public int get_proportional_millionths() { - int ret = bindings.RoutingFees_get_proportional_millionths(this.ptr); + int ret = Bindings.RoutingFeesGetProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public int get_proportional_millionths() { * In other words, 10000 is 1%. */ public void set_proportional_millionths(int val) { - bindings.RoutingFees_set_proportional_millionths(this.ptr, val); + Bindings.RoutingFeesSetProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_proportional_millionths(int val) { * Constructs a new RoutingFees given each field */ public static RoutingFees of(int base_msat_arg, int proportional_millionths_arg) { - long ret = bindings.RoutingFees_new(base_msat_arg, proportional_millionths_arg); + long ret = Bindings.RoutingFeesNew(base_msat_arg, proportional_millionths_arg); GC.KeepAlive(base_msat_arg); GC.KeepAlive(proportional_millionths_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -72,7 +72,7 @@ public static RoutingFees of(int base_msat_arg, int proportional_millionths_arg) * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.RoutingFees b) { - bool ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.RoutingFeesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -84,7 +84,7 @@ public override bool Equals(object o) { return this.eq((RoutingFees)o); } internal long clone_ptr() { - long ret = bindings.RoutingFees_clone_ptr(this.ptr); + long ret = Bindings.RoutingFeesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -93,7 +93,7 @@ internal long clone_ptr() { * Creates a copy of the RoutingFees */ public RoutingFees clone() { - long ret = bindings.RoutingFees_clone(this.ptr); + long ret = Bindings.RoutingFeesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); } @@ -105,7 +105,7 @@ public RoutingFees clone() { * Generates a non-cryptographic 64-bit hash of the RoutingFees. */ public long hash() { - long ret = bindings.RoutingFees_hash(this.ptr); + long ret = Bindings.RoutingFeesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -117,10 +117,10 @@ public override int GetHashCode() { * Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read */ public byte[] write() { - long ret = bindings.RoutingFees_write(this.ptr); + long ret = Bindings.RoutingFeesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -128,7 +128,7 @@ public byte[] write() { * Read a RoutingFees from a byte array, created by RoutingFees_write */ public static Result_RoutingFeesDecodeErrorZ read(byte[] ser) { - long ret = bindings.RoutingFees_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.RoutingFeesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/RoutingMessageHandler.cs b/c_sharp/src/org/ldk/structs/RoutingMessageHandler.cs index 278d0881d..92b16099e 100644 --- a/c_sharp/src/org/ldk/structs/RoutingMessageHandler.cs +++ b/c_sharp/src/org/ldk/structs/RoutingMessageHandler.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of RoutingMessageHandler */ -public interface RoutingMessageHandlerInterface { +public interface IRoutingMessageHandler { /**Handle an incoming `node_announcement` message, returning `true` if it should be forwarded on, * `false` or returning an `Err` otherwise. */ @@ -94,48 +94,48 @@ public interface RoutingMessageHandlerInterface { * repeated disk I/O for queries accessing different parts of the network graph. */ public class RoutingMessageHandler : CommonBase { - internal bindings.LDKRoutingMessageHandler bindings_instance; + internal Bindings.LDKRoutingMessageHandler bindings_instance; internal long instance_idx; internal RoutingMessageHandler(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~RoutingMessageHandler() { - if (ptr != 0) { bindings.RoutingMessageHandler_free(ptr); } + if (ptr != 0) { Bindings.RoutingMessageHandlerFree(ptr); } } private class LDKRoutingMessageHandlerHolder { internal RoutingMessageHandler held; } - private class LDKRoutingMessageHandlerImpl : bindings.LDKRoutingMessageHandler { - internal LDKRoutingMessageHandlerImpl(RoutingMessageHandlerInterface arg, LDKRoutingMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private RoutingMessageHandlerInterface arg; + private class LDKRoutingMessageHandlerImpl : Bindings.LDKRoutingMessageHandler { + internal LDKRoutingMessageHandlerImpl(IRoutingMessageHandler arg, LDKRoutingMessageHandlerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IRoutingMessageHandler arg; private LDKRoutingMessageHandlerHolder impl_holder; - public long handle_node_announcement(long _msg) { + public long HandleNodeAnnouncement(long _msg) { org.ldk.structs.NodeAnnouncement _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.NodeAnnouncement(null, _msg); } Result_boolLightningErrorZ ret = arg.handle_node_announcement(_msg_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_channel_announcement(long _msg) { + public long HandleChannelAnnouncement(long _msg) { org.ldk.structs.ChannelAnnouncement _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, _msg); } Result_boolLightningErrorZ ret = arg.handle_channel_announcement(_msg_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_channel_update(long _msg) { + public long HandleChannelUpdate(long _msg) { org.ldk.structs.ChannelUpdate _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ChannelUpdate(null, _msg); } Result_boolLightningErrorZ ret = arg.handle_channel_update(_msg_hu_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_next_channel_announcement(long _starting_point) { + public long GetNextChannelAnnouncement(long _starting_point) { Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ ret = arg.get_next_channel_announcement(_starting_point); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret); }; return result; } - public long get_next_node_announcement(long _starting_point) { + public long GetNextNodeAnnouncement(long _starting_point) { org.ldk.structs.NodeId _starting_point_hu_conv = null; if (_starting_point < 0 || _starting_point > 4096) { _starting_point_hu_conv = new org.ldk.structs.NodeId(null, _starting_point); } if (_starting_point_hu_conv != null) { _starting_point_hu_conv.ptrs_to.AddLast(this); }; NodeAnnouncement ret = arg.get_next_node_announcement(_starting_point_hu_conv); @@ -143,16 +143,16 @@ public long get_next_node_announcement(long _starting_point) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long peer_connected(long _their_node_id, long _init, bool _inbound) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long PeerConnected(long _their_node_id, long _init, bool _inbound) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.Init _init_hu_conv = null; if (_init < 0 || _init > 4096) { _init_hu_conv = new org.ldk.structs.Init(null, _init); } Result_NoneNoneZ ret = arg.peer_connected(_their_node_id_conv, _init_hu_conv, _inbound); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_reply_channel_range(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long HandleReplyChannelRange(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ReplyChannelRange _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ReplyChannelRange(null, _msg); } if (_msg_hu_conv != null) { _msg_hu_conv.ptrs_to.AddLast(this); }; Result_NoneLightningErrorZ ret = arg.handle_reply_channel_range(_their_node_id_conv, _msg_hu_conv); @@ -160,8 +160,8 @@ public long handle_reply_channel_range(long _their_node_id, long _msg) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_reply_short_channel_ids_end(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long HandleReplyShortChannelIdsEnd(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.ReplyShortChannelIdsEnd _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(null, _msg); } if (_msg_hu_conv != null) { _msg_hu_conv.ptrs_to.AddLast(this); }; Result_NoneLightningErrorZ ret = arg.handle_reply_short_channel_ids_end(_their_node_id_conv, _msg_hu_conv); @@ -169,8 +169,8 @@ public long handle_reply_short_channel_ids_end(long _their_node_id, long _msg) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_query_channel_range(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long HandleQueryChannelRange(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.QueryChannelRange _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.QueryChannelRange(null, _msg); } if (_msg_hu_conv != null) { _msg_hu_conv.ptrs_to.AddLast(this); }; Result_NoneLightningErrorZ ret = arg.handle_query_channel_range(_their_node_id_conv, _msg_hu_conv); @@ -178,8 +178,8 @@ public long handle_query_channel_range(long _their_node_id, long _msg) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long handle_query_short_channel_ids(long _their_node_id, long _msg) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long HandleQueryShortChannelIds(long _their_node_id, long _msg) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); org.ldk.structs.QueryShortChannelIds _msg_hu_conv = null; if (_msg < 0 || _msg > 4096) { _msg_hu_conv = new org.ldk.structs.QueryShortChannelIds(null, _msg); } if (_msg_hu_conv != null) { _msg_hu_conv.ptrs_to.AddLast(this); }; Result_NoneLightningErrorZ ret = arg.handle_query_short_channel_ids(_their_node_id_conv, _msg_hu_conv); @@ -187,19 +187,19 @@ public long handle_query_short_channel_ids(long _their_node_id, long _msg) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public bool processing_queue_high() { + public bool ProcessingQueueHigh() { bool ret = arg.processing_queue_high(); GC.KeepAlive(arg); return ret; } - public long provided_node_features() { + public long ProvidedNodeFeatures() { NodeFeatures ret = arg.provided_node_features(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long provided_init_features(long _their_node_id) { - byte[] _their_node_id_conv = InternalUtils.decodeUint8Array(_their_node_id); + public long ProvidedInitFeatures(long _their_node_id) { + byte[] _their_node_id_conv = InternalUtils.DecodeUint8Array(_their_node_id); InitFeatures ret = arg.provided_init_features(_their_node_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -208,11 +208,11 @@ public long provided_init_features(long _their_node_id) { } /** Creates a new instance of RoutingMessageHandler from a given implementation */ - public static RoutingMessageHandler new_impl(RoutingMessageHandlerInterface arg, MessageSendEventsProviderInterface messageSendEventsProvider_impl) { + public static RoutingMessageHandler new_impl(IRoutingMessageHandler arg, IMessageSendEventsProvider messageSendEventsProvider_impl) { LDKRoutingMessageHandlerHolder impl_holder = new LDKRoutingMessageHandlerHolder(); LDKRoutingMessageHandlerImpl impl = new LDKRoutingMessageHandlerImpl(arg, impl_holder); MessageSendEventsProvider messageSendEventsProvider = MessageSendEventsProvider.new_impl(messageSendEventsProvider_impl); - long[] ptr_idx = bindings.LDKRoutingMessageHandler_new(impl, messageSendEventsProvider.instance_idx); + long[] ptr_idx = Bindings.LDKRoutingMessageHandlerNew(impl, messageSendEventsProvider.instance_idx); impl_holder.held = new RoutingMessageHandler(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -226,7 +226,7 @@ public static RoutingMessageHandler new_impl(RoutingMessageHandlerInterface arg, * `false` or returning an `Err` otherwise. */ public Result_boolLightningErrorZ handle_node_announcement(org.ldk.structs.NodeAnnouncement msg) { - long ret = bindings.RoutingMessageHandler_handle_node_announcement(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleNodeAnnouncement(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -240,7 +240,7 @@ public Result_boolLightningErrorZ handle_node_announcement(org.ldk.structs.NodeA * or returning an `Err` otherwise. */ public Result_boolLightningErrorZ handle_channel_announcement(org.ldk.structs.ChannelAnnouncement msg) { - long ret = bindings.RoutingMessageHandler_handle_channel_announcement(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleChannelAnnouncement(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -254,7 +254,7 @@ public Result_boolLightningErrorZ handle_channel_announcement(org.ldk.structs.Ch * `false` or returning an `Err` otherwise. */ public Result_boolLightningErrorZ handle_channel_update(org.ldk.structs.ChannelUpdate msg) { - long ret = bindings.RoutingMessageHandler_handle_channel_update(this.ptr, msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleChannelUpdate(this.ptr, msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } @@ -269,7 +269,7 @@ public Result_boolLightningErrorZ handle_channel_update(org.ldk.structs.ChannelU * for a single channel. */ public Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ get_next_channel_announcement(long starting_point) { - long ret = bindings.RoutingMessageHandler_get_next_channel_announcement(this.ptr, starting_point); + long ret = Bindings.RoutingMessageHandlerGetNextChannelAnnouncement(this.ptr, starting_point); GC.KeepAlive(this); GC.KeepAlive(starting_point); if (ret >= 0 && ret <= 4096) { return null; } @@ -288,7 +288,7 @@ public Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ get_next_c * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public NodeAnnouncement get_next_node_announcement(org.ldk.structs.NodeId starting_point) { - long ret = bindings.RoutingMessageHandler_get_next_node_announcement(this.ptr, starting_point == null ? 0 : starting_point.ptr); + long ret = Bindings.RoutingMessageHandlerGetNextNodeAnnouncement(this.ptr, starting_point == null ? 0 : starting_point.ptr); GC.KeepAlive(this); GC.KeepAlive(starting_point); if (ret >= 0 && ret <= 4096) { return null; } @@ -308,7 +308,7 @@ public NodeAnnouncement get_next_node_announcement(org.ldk.structs.NodeId starti * message handlers may still wish to communicate with this peer. */ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Init init, bool inbound) { - long ret = bindings.RoutingMessageHandler_peer_connected(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), init == null ? 0 : init.ptr, inbound); + long ret = Bindings.RoutingMessageHandlerPeerConnected(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), init == null ? 0 : init.ptr, inbound); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(init); @@ -325,7 +325,7 @@ public Result_NoneNoneZ peer_connected(byte[] their_node_id, org.ldk.structs.Ini * replies to a single query. */ public Result_NoneLightningErrorZ handle_reply_channel_range(byte[] their_node_id, org.ldk.structs.ReplyChannelRange msg) { - long ret = bindings.RoutingMessageHandler_handle_reply_channel_range(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleReplyChannelRange(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -342,7 +342,7 @@ public Result_NoneLightningErrorZ handle_reply_channel_range(byte[] their_node_i * gossip messages. */ public Result_NoneLightningErrorZ handle_reply_short_channel_ids_end(byte[] their_node_id, org.ldk.structs.ReplyShortChannelIdsEnd msg) { - long ret = bindings.RoutingMessageHandler_handle_reply_short_channel_ids_end(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleReplyShortChannelIdsEnd(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -357,7 +357,7 @@ public Result_NoneLightningErrorZ handle_reply_short_channel_ids_end(byte[] thei * for the requested range of blocks. */ public Result_NoneLightningErrorZ handle_query_channel_range(byte[] their_node_id, org.ldk.structs.QueryChannelRange msg) { - long ret = bindings.RoutingMessageHandler_handle_query_channel_range(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleQueryChannelRange(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -372,7 +372,7 @@ public Result_NoneLightningErrorZ handle_query_channel_range(byte[] their_node_i * list of `short_channel_id`s. */ public Result_NoneLightningErrorZ handle_query_short_channel_ids(byte[] their_node_id, org.ldk.structs.QueryShortChannelIds msg) { - long ret = bindings.RoutingMessageHandler_handle_query_short_channel_ids(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33)), msg == null ? 0 : msg.ptr); + long ret = Bindings.RoutingMessageHandlerHandleQueryShortChannelIds(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33)), msg == null ? 0 : msg.ptr); GC.KeepAlive(this); GC.KeepAlive(their_node_id); GC.KeepAlive(msg); @@ -389,7 +389,7 @@ public Result_NoneLightningErrorZ handle_query_short_channel_ids(byte[] their_no * [`ChannelAnnouncement`]s. */ public bool processing_queue_high() { - bool ret = bindings.RoutingMessageHandler_processing_queue_high(this.ptr); + bool ret = Bindings.RoutingMessageHandlerProcessingQueueHigh(this.ptr); GC.KeepAlive(this); return ret; } @@ -400,7 +400,7 @@ public bool processing_queue_high() { * which are broadcasted in our [`NodeAnnouncement`] message. */ public NodeFeatures provided_node_features() { - long ret = bindings.RoutingMessageHandler_provided_node_features(this.ptr); + long ret = Bindings.RoutingMessageHandlerProvidedNodeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -416,7 +416,7 @@ public NodeFeatures provided_node_features() { * Note that this method is called before [`Self::peer_connected`]. */ public InitFeatures provided_init_features(byte[] their_node_id) { - long ret = bindings.RoutingMessageHandler_provided_init_features(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(their_node_id, 33))); + long ret = Bindings.RoutingMessageHandlerProvidedInitFeatures(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(their_node_id, 33))); GC.KeepAlive(this); GC.KeepAlive(their_node_id); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/Score.cs b/c_sharp/src/org/ldk/structs/Score.cs index 467b8f344..d9a05d4d0 100644 --- a/c_sharp/src/org/ldk/structs/Score.cs +++ b/c_sharp/src/org/ldk/structs/Score.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Score */ -public interface ScoreInterface { +public interface IScore { /**Serialize the object into a byte array */ byte[] write(); @@ -24,34 +24,34 @@ public interface ScoreInterface { * Bindings users may need to manually implement this for their custom scoring implementations. */ public class Score : CommonBase { - internal bindings.LDKScore bindings_instance; + internal Bindings.LDKScore bindings_instance; internal long instance_idx; internal Score(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Score() { - if (ptr != 0) { bindings.Score_free(ptr); } + if (ptr != 0) { Bindings.ScoreFree(ptr); } } private class LDKScoreHolder { internal Score held; } - private class LDKScoreImpl : bindings.LDKScore { - internal LDKScoreImpl(ScoreInterface arg, LDKScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ScoreInterface arg; + private class LDKScoreImpl : Bindings.LDKScore { + internal LDKScoreImpl(IScore arg, LDKScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IScore arg; private LDKScoreHolder impl_holder; - public long write() { + public long Write() { byte[] ret = arg.write(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(ret); + long result = InternalUtils.EncodeUint8Array(ret); return result; } } /** Creates a new instance of Score from a given implementation */ - public static Score new_impl(ScoreInterface arg, ScoreLookUpInterface scoreLookUp_impl, ScoreUpdateInterface scoreUpdate_impl) { + public static Score new_impl(IScore arg, IScoreLookUp scoreLookUp_impl, IScoreUpdate scoreUpdate_impl) { LDKScoreHolder impl_holder = new LDKScoreHolder(); LDKScoreImpl impl = new LDKScoreImpl(arg, impl_holder); ScoreLookUp scoreLookUp = ScoreLookUp.new_impl(scoreLookUp_impl); ScoreUpdate scoreUpdate = ScoreUpdate.new_impl(scoreUpdate_impl); - long[] ptr_idx = bindings.LDKScore_new(impl, scoreLookUp.instance_idx, scoreUpdate.instance_idx); + long[] ptr_idx = Bindings.LDKScoreNew(impl, scoreLookUp.instance_idx, scoreUpdate.instance_idx); impl_holder.held = new Score(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -65,10 +65,10 @@ public static Score new_impl(ScoreInterface arg, ScoreLookUpInterface scoreLookU * Serialize the object into a byte array */ public byte[] write() { - long ret = bindings.Score_write(this.ptr); + long ret = Bindings.ScoreWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ScoreLookUp.cs b/c_sharp/src/org/ldk/structs/ScoreLookUp.cs index aefbc190b..67c257cde 100644 --- a/c_sharp/src/org/ldk/structs/ScoreLookUp.cs +++ b/c_sharp/src/org/ldk/structs/ScoreLookUp.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of ScoreLookUp */ -public interface ScoreLookUpInterface { +public interface IScoreLookUp { /**Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the * given channel in the direction from `source` to `target`. * @@ -30,20 +30,20 @@ public interface ScoreLookUpInterface { * Scoring is in terms of fees willing to be paid in order to avoid routing through a channel. */ public class ScoreLookUp : CommonBase { - internal bindings.LDKScoreLookUp bindings_instance; + internal Bindings.LDKScoreLookUp bindings_instance; internal long instance_idx; internal ScoreLookUp(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~ScoreLookUp() { - if (ptr != 0) { bindings.ScoreLookUp_free(ptr); } + if (ptr != 0) { Bindings.ScoreLookUpFree(ptr); } } private class LDKScoreLookUpHolder { internal ScoreLookUp held; } - private class LDKScoreLookUpImpl : bindings.LDKScoreLookUp { - internal LDKScoreLookUpImpl(ScoreLookUpInterface arg, LDKScoreLookUpHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ScoreLookUpInterface arg; + private class LDKScoreLookUpImpl : Bindings.LDKScoreLookUp { + internal LDKScoreLookUpImpl(IScoreLookUp arg, LDKScoreLookUpHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IScoreLookUp arg; private LDKScoreLookUpHolder impl_holder; - public long channel_penalty_msat(long _candidate, long _usage, long _score_params) { + public long ChannelPenaltyMsat(long _candidate, long _usage, long _score_params) { CandidateRouteHop _candidate_hu_conv = CandidateRouteHop.constr_from_ptr(_candidate); org.ldk.structs.ChannelUsage _usage_hu_conv = null; if (_usage < 0 || _usage > 4096) { _usage_hu_conv = new org.ldk.structs.ChannelUsage(null, _usage); } if (_usage_hu_conv != null) { _usage_hu_conv.ptrs_to.AddLast(this); }; @@ -55,10 +55,10 @@ public long channel_penalty_msat(long _candidate, long _usage, long _score_param } /** Creates a new instance of ScoreLookUp from a given implementation */ - public static ScoreLookUp new_impl(ScoreLookUpInterface arg) { + public static ScoreLookUp new_impl(IScoreLookUp arg) { LDKScoreLookUpHolder impl_holder = new LDKScoreLookUpHolder(); LDKScoreLookUpImpl impl = new LDKScoreLookUpImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKScoreLookUp_new(impl); + long[] ptr_idx = Bindings.LDKScoreLookUpNew(impl); impl_holder.held = new ScoreLookUp(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -77,7 +77,7 @@ public static ScoreLookUp new_impl(ScoreLookUpInterface arg) { * Thus, implementations should be overflow-safe. */ public long channel_penalty_msat(org.ldk.structs.CandidateRouteHop candidate, org.ldk.structs.ChannelUsage usage, org.ldk.structs.ProbabilisticScoringFeeParameters score_params) { - long ret = bindings.ScoreLookUp_channel_penalty_msat(this.ptr, candidate == null ? 0 : candidate.ptr, usage == null ? 0 : usage.ptr, score_params == null ? 0 : score_params.ptr); + long ret = Bindings.ScoreLookUpChannelPenaltyMsat(this.ptr, candidate == null ? 0 : candidate.ptr, usage == null ? 0 : usage.ptr, score_params == null ? 0 : score_params.ptr); GC.KeepAlive(this); GC.KeepAlive(candidate); GC.KeepAlive(usage); diff --git a/c_sharp/src/org/ldk/structs/ScoreUpdate.cs b/c_sharp/src/org/ldk/structs/ScoreUpdate.cs index 5785e40de..19bc15860 100644 --- a/c_sharp/src/org/ldk/structs/ScoreUpdate.cs +++ b/c_sharp/src/org/ldk/structs/ScoreUpdate.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of ScoreUpdate */ -public interface ScoreUpdateInterface { +public interface IScoreUpdate { /**Handles updating channel penalties after failing to route through a channel. */ void payment_path_failed(Path path, long short_channel_id, long duration_since_epoch); @@ -34,50 +34,50 @@ public interface ScoreUpdateInterface { * `ScoreUpdate` is used to update the scorer's internal state after a payment attempt. */ public class ScoreUpdate : CommonBase { - internal bindings.LDKScoreUpdate bindings_instance; + internal Bindings.LDKScoreUpdate bindings_instance; internal long instance_idx; internal ScoreUpdate(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~ScoreUpdate() { - if (ptr != 0) { bindings.ScoreUpdate_free(ptr); } + if (ptr != 0) { Bindings.ScoreUpdateFree(ptr); } } private class LDKScoreUpdateHolder { internal ScoreUpdate held; } - private class LDKScoreUpdateImpl : bindings.LDKScoreUpdate { - internal LDKScoreUpdateImpl(ScoreUpdateInterface arg, LDKScoreUpdateHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private ScoreUpdateInterface arg; + private class LDKScoreUpdateImpl : Bindings.LDKScoreUpdate { + internal LDKScoreUpdateImpl(IScoreUpdate arg, LDKScoreUpdateHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IScoreUpdate arg; private LDKScoreUpdateHolder impl_holder; - public void payment_path_failed(long _path, long _short_channel_id, long _duration_since_epoch) { + public void PaymentPathFailed(long _path, long _short_channel_id, long _duration_since_epoch) { org.ldk.structs.Path _path_hu_conv = null; if (_path < 0 || _path > 4096) { _path_hu_conv = new org.ldk.structs.Path(null, _path); } arg.payment_path_failed(_path_hu_conv, _short_channel_id, _duration_since_epoch); GC.KeepAlive(arg); } - public void payment_path_successful(long _path, long _duration_since_epoch) { + public void PaymentPathSuccessful(long _path, long _duration_since_epoch) { org.ldk.structs.Path _path_hu_conv = null; if (_path < 0 || _path > 4096) { _path_hu_conv = new org.ldk.structs.Path(null, _path); } arg.payment_path_successful(_path_hu_conv, _duration_since_epoch); GC.KeepAlive(arg); } - public void probe_failed(long _path, long _short_channel_id, long _duration_since_epoch) { + public void ProbeFailed(long _path, long _short_channel_id, long _duration_since_epoch) { org.ldk.structs.Path _path_hu_conv = null; if (_path < 0 || _path > 4096) { _path_hu_conv = new org.ldk.structs.Path(null, _path); } arg.probe_failed(_path_hu_conv, _short_channel_id, _duration_since_epoch); GC.KeepAlive(arg); } - public void probe_successful(long _path, long _duration_since_epoch) { + public void ProbeSuccessful(long _path, long _duration_since_epoch) { org.ldk.structs.Path _path_hu_conv = null; if (_path < 0 || _path > 4096) { _path_hu_conv = new org.ldk.structs.Path(null, _path); } arg.probe_successful(_path_hu_conv, _duration_since_epoch); GC.KeepAlive(arg); } - public void time_passed(long _duration_since_epoch) { + public void TimePassed(long _duration_since_epoch) { arg.time_passed(_duration_since_epoch); GC.KeepAlive(arg); } } /** Creates a new instance of ScoreUpdate from a given implementation */ - public static ScoreUpdate new_impl(ScoreUpdateInterface arg) { + public static ScoreUpdate new_impl(IScoreUpdate arg) { LDKScoreUpdateHolder impl_holder = new LDKScoreUpdateHolder(); LDKScoreUpdateImpl impl = new LDKScoreUpdateImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKScoreUpdate_new(impl); + long[] ptr_idx = Bindings.LDKScoreUpdateNew(impl); impl_holder.held = new ScoreUpdate(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -89,7 +89,7 @@ public static ScoreUpdate new_impl(ScoreUpdateInterface arg) { * Handles updating channel penalties after failing to route through a channel. */ public void payment_path_failed(org.ldk.structs.Path path, long short_channel_id, long duration_since_epoch) { - bindings.ScoreUpdate_payment_path_failed(this.ptr, path == null ? 0 : path.ptr, short_channel_id, duration_since_epoch); + Bindings.ScoreUpdatePaymentPathFailed(this.ptr, path == null ? 0 : path.ptr, short_channel_id, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(path); GC.KeepAlive(short_channel_id); @@ -101,7 +101,7 @@ public void payment_path_failed(org.ldk.structs.Path path, long short_channel_id * Handles updating channel penalties after successfully routing along a path. */ public void payment_path_successful(org.ldk.structs.Path path, long duration_since_epoch) { - bindings.ScoreUpdate_payment_path_successful(this.ptr, path == null ? 0 : path.ptr, duration_since_epoch); + Bindings.ScoreUpdatePaymentPathSuccessful(this.ptr, path == null ? 0 : path.ptr, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(path); GC.KeepAlive(duration_since_epoch); @@ -112,7 +112,7 @@ public void payment_path_successful(org.ldk.structs.Path path, long duration_sin * Handles updating channel penalties after a probe over the given path failed. */ public void probe_failed(org.ldk.structs.Path path, long short_channel_id, long duration_since_epoch) { - bindings.ScoreUpdate_probe_failed(this.ptr, path == null ? 0 : path.ptr, short_channel_id, duration_since_epoch); + Bindings.ScoreUpdateProbeFailed(this.ptr, path == null ? 0 : path.ptr, short_channel_id, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(path); GC.KeepAlive(short_channel_id); @@ -124,7 +124,7 @@ public void probe_failed(org.ldk.structs.Path path, long short_channel_id, long * Handles updating channel penalties after a probe over the given path succeeded. */ public void probe_successful(org.ldk.structs.Path path, long duration_since_epoch) { - bindings.ScoreUpdate_probe_successful(this.ptr, path == null ? 0 : path.ptr, duration_since_epoch); + Bindings.ScoreUpdateProbeSuccessful(this.ptr, path == null ? 0 : path.ptr, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(path); GC.KeepAlive(duration_since_epoch); @@ -138,7 +138,7 @@ public void probe_successful(org.ldk.structs.Path path, long duration_since_epoc * `lightning-background-processor` crate). */ public void time_passed(long duration_since_epoch) { - bindings.ScoreUpdate_time_passed(this.ptr, duration_since_epoch); + Bindings.ScoreUpdateTimePassed(this.ptr, duration_since_epoch); GC.KeepAlive(this); GC.KeepAlive(duration_since_epoch); } diff --git a/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs b/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs index add28b368..c32f7b809 100644 --- a/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs +++ b/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs @@ -17,14 +17,14 @@ namespace org { namespace ldk { namespace structs { public class ScorerAccountingForInFlightHtlcs : CommonBase { internal ScorerAccountingForInFlightHtlcs(object _dummy, long ptr) : base(ptr) { } ~ScorerAccountingForInFlightHtlcs() { - if (ptr != 0) { bindings.ScorerAccountingForInFlightHtlcs_free(ptr); } + if (ptr != 0) { Bindings.ScorerAccountingForInFlightHtlcsFree(ptr); } } /** * Initialize a new `ScorerAccountingForInFlightHtlcs`. */ public static ScorerAccountingForInFlightHtlcs of(org.ldk.structs.ScoreLookUp scorer, org.ldk.structs.InFlightHtlcs inflight_htlcs) { - long ret = bindings.ScorerAccountingForInFlightHtlcs_new(scorer.ptr, inflight_htlcs == null ? 0 : inflight_htlcs.ptr); + long ret = Bindings.ScorerAccountingForInFlightHtlcsNew(scorer.ptr, inflight_htlcs == null ? 0 : inflight_htlcs.ptr); GC.KeepAlive(scorer); GC.KeepAlive(inflight_htlcs); if (ret >= 0 && ret <= 4096) { return null; } @@ -40,7 +40,7 @@ public static ScorerAccountingForInFlightHtlcs of(org.ldk.structs.ScoreLookUp sc * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ public ScoreLookUp as_ScoreLookUp() { - long ret = bindings.ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(this.ptr); + long ret = Bindings.ScorerAccountingForInFlightHtlcsAsScoreLookUp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); diff --git a/c_sharp/src/org/ldk/structs/SendError.cs b/c_sharp/src/org/ldk/structs/SendError.cs index c20659b38..dd4be891c 100644 --- a/c_sharp/src/org/ldk/structs/SendError.cs +++ b/c_sharp/src/org/ldk/structs/SendError.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class SendError : CommonBase { protected SendError(object _dummy, long ptr) : base(ptr) { } ~SendError() { - if (ptr != 0) { bindings.SendError_free(ptr); } + if (ptr != 0) { Bindings.SendErrorFree(ptr); } } internal static SendError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKSendError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKSendErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new SendError_Secp256k1(ptr); case 1: return new SendError_TooBigPacket(ptr); @@ -37,7 +37,7 @@ internal static SendError constr_from_ptr(long ptr) { public class SendError_Secp256k1 : SendError { public Secp256k1Error secp256k1; internal SendError_Secp256k1(long ptr) : base(null, ptr) { - this.secp256k1 = bindings.LDKSendError_Secp256k1_get_secp256k1(ptr); + this.secp256k1 = Bindings.LDKSendErrorSecp256k1GetSecp256K1(ptr); } } /** A SendError of type TooBigPacket */ @@ -54,8 +54,8 @@ internal SendError_TooFewBlindedHops(long ptr) : base(null, ptr) { public class SendError_InvalidFirstHop : SendError { public byte[] invalid_first_hop; internal SendError_InvalidFirstHop(long ptr) : base(null, ptr) { - long invalid_first_hop = bindings.LDKSendError_InvalidFirstHop_get_invalid_first_hop(ptr); - byte[] invalid_first_hop_conv = InternalUtils.decodeUint8Array(invalid_first_hop); + long invalid_first_hop = Bindings.LDKSendErrorInvalidFirstHopGetInvalidFirstHop(ptr); + byte[] invalid_first_hop_conv = InternalUtils.DecodeUint8Array(invalid_first_hop); this.invalid_first_hop = invalid_first_hop_conv; } } @@ -85,7 +85,7 @@ internal SendError_BlindedPathAdvanceFailed(long ptr) : base(null, ptr) { } } internal long clone_ptr() { - long ret = bindings.SendError_clone_ptr(this.ptr); + long ret = Bindings.SendErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,7 +94,7 @@ internal long clone_ptr() { * Creates a copy of the SendError */ public SendError clone() { - long ret = bindings.SendError_clone(this.ptr); + long ret = Bindings.SendErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); @@ -106,7 +106,7 @@ public SendError clone() { * Utility method to constructs a new Secp256k1-variant SendError */ public static SendError secp256k1(Secp256k1Error a) { - long ret = bindings.SendError_secp256k1(a); + long ret = Bindings.SendErrorSecp256K1(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); @@ -118,7 +118,7 @@ public static SendError secp256k1(Secp256k1Error a) { * Utility method to constructs a new TooBigPacket-variant SendError */ public static SendError too_big_packet() { - long ret = bindings.SendError_too_big_packet(); + long ret = Bindings.SendErrorTooBigPacket(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -129,7 +129,7 @@ public static SendError too_big_packet() { * Utility method to constructs a new TooFewBlindedHops-variant SendError */ public static SendError too_few_blinded_hops() { - long ret = bindings.SendError_too_few_blinded_hops(); + long ret = Bindings.SendErrorTooFewBlindedHops(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -140,7 +140,7 @@ public static SendError too_few_blinded_hops() { * Utility method to constructs a new InvalidFirstHop-variant SendError */ public static SendError invalid_first_hop(byte[] a) { - long ret = bindings.SendError_invalid_first_hop(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33))); + long ret = Bindings.SendErrorInvalidFirstHop(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); @@ -152,7 +152,7 @@ public static SendError invalid_first_hop(byte[] a) { * Utility method to constructs a new PathNotFound-variant SendError */ public static SendError path_not_found() { - long ret = bindings.SendError_path_not_found(); + long ret = Bindings.SendErrorPathNotFound(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -163,7 +163,7 @@ public static SendError path_not_found() { * Utility method to constructs a new InvalidMessage-variant SendError */ public static SendError invalid_message() { - long ret = bindings.SendError_invalid_message(); + long ret = Bindings.SendErrorInvalidMessage(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -174,7 +174,7 @@ public static SendError invalid_message() { * Utility method to constructs a new BufferFull-variant SendError */ public static SendError buffer_full() { - long ret = bindings.SendError_buffer_full(); + long ret = Bindings.SendErrorBufferFull(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -185,7 +185,7 @@ public static SendError buffer_full() { * Utility method to constructs a new GetNodeIdFailed-variant SendError */ public static SendError get_node_id_failed() { - long ret = bindings.SendError_get_node_id_failed(); + long ret = Bindings.SendErrorGetNodeIdFailed(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -196,7 +196,7 @@ public static SendError get_node_id_failed() { * Utility method to constructs a new BlindedPathAdvanceFailed-variant SendError */ public static SendError blinded_path_advance_failed() { - long ret = bindings.SendError_blinded_path_advance_failed(); + long ret = Bindings.SendErrorBlindedPathAdvanceFailed(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendError ret_hu_conv = org.ldk.structs.SendError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -208,7 +208,7 @@ public static SendError blinded_path_advance_failed() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.SendError b) { - bool ret = bindings.SendError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SendErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/SendSuccess.cs b/c_sharp/src/org/ldk/structs/SendSuccess.cs index 4ddb4c962..c76687ef9 100644 --- a/c_sharp/src/org/ldk/structs/SendSuccess.cs +++ b/c_sharp/src/org/ldk/structs/SendSuccess.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class SendSuccess : CommonBase { protected SendSuccess(object _dummy, long ptr) : base(ptr) { } ~SendSuccess() { - if (ptr != 0) { bindings.SendSuccess_free(ptr); } + if (ptr != 0) { Bindings.SendSuccessFree(ptr); } } internal static SendSuccess constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKSendSuccess_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKSendSuccessTyFromPtr(ptr); switch (raw_ty) { case 0: return new SendSuccess_Buffered(ptr); case 1: return new SendSuccess_BufferedAwaitingConnection(ptr); @@ -35,13 +35,13 @@ internal SendSuccess_Buffered(long ptr) : base(null, ptr) { public class SendSuccess_BufferedAwaitingConnection : SendSuccess { public byte[] buffered_awaiting_connection; internal SendSuccess_BufferedAwaitingConnection(long ptr) : base(null, ptr) { - long buffered_awaiting_connection = bindings.LDKSendSuccess_BufferedAwaitingConnection_get_buffered_awaiting_connection(ptr); - byte[] buffered_awaiting_connection_conv = InternalUtils.decodeUint8Array(buffered_awaiting_connection); + long buffered_awaiting_connection = Bindings.LDKSendSuccessBufferedAwaitingConnectionGetBufferedAwaitingConnection(ptr); + byte[] buffered_awaiting_connection_conv = InternalUtils.DecodeUint8Array(buffered_awaiting_connection); this.buffered_awaiting_connection = buffered_awaiting_connection_conv; } } internal long clone_ptr() { - long ret = bindings.SendSuccess_clone_ptr(this.ptr); + long ret = Bindings.SendSuccessClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ internal long clone_ptr() { * Creates a copy of the SendSuccess */ public SendSuccess clone() { - long ret = bindings.SendSuccess_clone(this.ptr); + long ret = Bindings.SendSuccessClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendSuccess ret_hu_conv = org.ldk.structs.SendSuccess.constr_from_ptr(ret); @@ -62,7 +62,7 @@ public SendSuccess clone() { * Utility method to constructs a new Buffered-variant SendSuccess */ public static SendSuccess buffered() { - long ret = bindings.SendSuccess_buffered(); + long ret = Bindings.SendSuccessBuffered(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendSuccess ret_hu_conv = org.ldk.structs.SendSuccess.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -73,7 +73,7 @@ public static SendSuccess buffered() { * Utility method to constructs a new BufferedAwaitingConnection-variant SendSuccess */ public static SendSuccess buffered_awaiting_connection(byte[] a) { - long ret = bindings.SendSuccess_buffered_awaiting_connection(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33))); + long ret = Bindings.SendSuccessBufferedAwaitingConnection(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SendSuccess ret_hu_conv = org.ldk.structs.SendSuccess.constr_from_ptr(ret); @@ -86,7 +86,7 @@ public static SendSuccess buffered_awaiting_connection(byte[] a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.SendSuccess b) { - bool ret = bindings.SendSuccess_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SendSuccessEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; diff --git a/c_sharp/src/org/ldk/structs/Sha256.cs b/c_sharp/src/org/ldk/structs/Sha256.cs index 48cbe06ea..3a101ad38 100644 --- a/c_sharp/src/org/ldk/structs/Sha256.cs +++ b/c_sharp/src/org/ldk/structs/Sha256.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class Sha256 : CommonBase { internal Sha256(object _dummy, long ptr) : base(ptr) { } ~Sha256() { - if (ptr != 0) { bindings.Sha256_free(ptr); } + if (ptr != 0) { Bindings.Sha256Free(ptr); } } internal long clone_ptr() { - long ret = bindings.Sha256_clone_ptr(this.ptr); + long ret = Bindings.Sha256ClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -25,7 +25,7 @@ internal long clone_ptr() { * Creates a copy of the Sha256 */ public Sha256 clone() { - long ret = bindings.Sha256_clone(this.ptr); + long ret = Bindings.Sha256Clone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sha256 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sha256(null, ret); } @@ -37,7 +37,7 @@ public Sha256 clone() { * Generates a non-cryptographic 64-bit hash of the Sha256. */ public long hash() { - long ret = bindings.Sha256_hash(this.ptr); + long ret = Bindings.Sha256Hash(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Sha256 b) { - bool ret = bindings.Sha256_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.Sha256Eq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -67,7 +67,7 @@ public override bool Equals(object o) { * single sha256 hash. */ public static Sha256 from_bytes(byte[] bytes) { - long ret = bindings.Sha256_from_bytes(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(bytes, 32))); + long ret = Bindings.Sha256FromBytes(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(bytes, 32))); GC.KeepAlive(bytes); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sha256 ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sha256(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/Shutdown.cs b/c_sharp/src/org/ldk/structs/Shutdown.cs index 142d8fdf9..1853eec5d 100644 --- a/c_sharp/src/org/ldk/structs/Shutdown.cs +++ b/c_sharp/src/org/ldk/structs/Shutdown.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class Shutdown : CommonBase { internal Shutdown(object _dummy, long ptr) : base(ptr) { } ~Shutdown() { - if (ptr != 0) { bindings.Shutdown_free(ptr); } + if (ptr != 0) { Bindings.ShutdownFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.Shutdown_get_channel_id(this.ptr); + long ret = Bindings.ShutdownGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.Shutdown_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.ShutdownSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -43,10 +43,10 @@ public void set_channel_id(byte[] val) { * Must be in one of these forms: P2PKH, P2SH, P2WPKH, P2WSH, P2TR. */ public byte[] get_scriptpubkey() { - long ret = bindings.Shutdown_get_scriptpubkey(this.ptr); + long ret = Bindings.ShutdownGetScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -56,7 +56,7 @@ public byte[] get_scriptpubkey() { * Must be in one of these forms: P2PKH, P2SH, P2WPKH, P2WSH, P2TR. */ public void set_scriptpubkey(byte[] val) { - bindings.Shutdown_set_scriptpubkey(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.ShutdownSetScriptpubkey(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -65,7 +65,7 @@ public void set_scriptpubkey(byte[] val) { * Constructs a new Shutdown given each field */ public static Shutdown of(byte[] channel_id_arg, byte[] scriptpubkey_arg) { - long ret = bindings.Shutdown_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(scriptpubkey_arg)); + long ret = Bindings.ShutdownNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(scriptpubkey_arg)); GC.KeepAlive(channel_id_arg); GC.KeepAlive(scriptpubkey_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -75,7 +75,7 @@ public static Shutdown of(byte[] channel_id_arg, byte[] scriptpubkey_arg) { } internal long clone_ptr() { - long ret = bindings.Shutdown_clone_ptr(this.ptr); + long ret = Bindings.ShutdownClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ internal long clone_ptr() { * Creates a copy of the Shutdown */ public Shutdown clone() { - long ret = bindings.Shutdown_clone(this.ptr); + long ret = Bindings.ShutdownClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Shutdown ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Shutdown(null, ret); } @@ -96,7 +96,7 @@ public Shutdown clone() { * Generates a non-cryptographic 64-bit hash of the Shutdown. */ public long hash() { - long ret = bindings.Shutdown_hash(this.ptr); + long ret = Bindings.ShutdownHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Shutdown b) { - bool ret = bindings.Shutdown_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ShutdownEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -125,10 +125,10 @@ public override bool Equals(object o) { * Serialize the Shutdown object into a byte array which can be read by Shutdown_read */ public byte[] write() { - long ret = bindings.Shutdown_write(this.ptr); + long ret = Bindings.ShutdownWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -136,7 +136,7 @@ public byte[] write() { * Read a Shutdown from a byte array, created by Shutdown_write */ public static Result_ShutdownDecodeErrorZ read(byte[] ser) { - long ret = bindings.Shutdown_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ShutdownRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/ShutdownScript.cs b/c_sharp/src/org/ldk/structs/ShutdownScript.cs index cb9709f2f..5afb32fd6 100644 --- a/c_sharp/src/org/ldk/structs/ShutdownScript.cs +++ b/c_sharp/src/org/ldk/structs/ShutdownScript.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class ShutdownScript : CommonBase { internal ShutdownScript(object _dummy, long ptr) : base(ptr) { } ~ShutdownScript() { - if (ptr != 0) { bindings.ShutdownScript_free(ptr); } + if (ptr != 0) { Bindings.ShutdownScriptFree(ptr); } } internal long clone_ptr() { - long ret = bindings.ShutdownScript_clone_ptr(this.ptr); + long ret = Bindings.ShutdownScriptClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -27,7 +27,7 @@ internal long clone_ptr() { * Creates a copy of the ShutdownScript */ public ShutdownScript clone() { - long ret = bindings.ShutdownScript_clone(this.ptr); + long ret = Bindings.ShutdownScriptClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(null, ret); } @@ -41,7 +41,7 @@ public ShutdownScript clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.ShutdownScript b) { - bool ret = bindings.ShutdownScript_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.ShutdownScriptEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -56,10 +56,10 @@ public override bool Equals(object o) { * Serialize the ShutdownScript object into a byte array which can be read by ShutdownScript_read */ public byte[] write() { - long ret = bindings.ShutdownScript_write(this.ptr); + long ret = Bindings.ShutdownScriptWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -67,7 +67,7 @@ public byte[] write() { * Read a ShutdownScript from a byte array, created by ShutdownScript_write */ public static Result_ShutdownScriptDecodeErrorZ read(byte[] ser) { - long ret = bindings.ShutdownScript_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ShutdownScriptRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret); @@ -78,7 +78,7 @@ public static Result_ShutdownScriptDecodeErrorZ read(byte[] ser) { * Generates a P2WPKH script pubkey from the given [`WPubkeyHash`]. */ public static ShutdownScript new_p2wpkh(byte[] pubkey_hash) { - long ret = bindings.ShutdownScript_new_p2wpkh(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pubkey_hash, 20))); + long ret = Bindings.ShutdownScriptNewP2Wpkh(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pubkey_hash, 20))); GC.KeepAlive(pubkey_hash); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(null, ret); } @@ -90,7 +90,7 @@ public static ShutdownScript new_p2wpkh(byte[] pubkey_hash) { * Generates a P2WSH script pubkey from the given [`WScriptHash`]. */ public static ShutdownScript new_p2wsh(byte[] script_hash) { - long ret = bindings.ShutdownScript_new_p2wsh(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(script_hash, 32))); + long ret = Bindings.ShutdownScriptNewP2Wsh(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(script_hash, 32))); GC.KeepAlive(script_hash); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(null, ret); } @@ -109,7 +109,7 @@ public static ShutdownScript new_p2wsh(byte[] script_hash) { * This function may return an error if `program` is invalid for the segwit `version`. */ public static Result_ShutdownScriptInvalidShutdownScriptZ new_witness_program(org.ldk.structs.WitnessProgram witness_program) { - long ret = bindings.ShutdownScript_new_witness_program(witness_program.ptr); + long ret = Bindings.ShutdownScriptNewWitnessProgram(witness_program.ptr); GC.KeepAlive(witness_program); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret); @@ -120,10 +120,10 @@ public static Result_ShutdownScriptInvalidShutdownScriptZ new_witness_program(or * Converts the shutdown script into the underlying [`ScriptBuf`]. */ public byte[] into_inner() { - long ret = bindings.ShutdownScript_into_inner(this.ptr); + long ret = Bindings.ShutdownScriptIntoInner(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); if (this != null) { this.ptrs_to.AddLast(this); }; return ret_conv; } @@ -134,10 +134,10 @@ public byte[] into_inner() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] as_legacy_pubkey() { - long ret = bindings.ShutdownScript_as_legacy_pubkey(this.ptr); + long ret = Bindings.ShutdownScriptAsLegacyPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -147,7 +147,7 @@ public byte[] as_legacy_pubkey() { * Specifically, checks for compliance with feature `option_shutdown_anysegwit`. */ public bool is_compatible(org.ldk.structs.InitFeatures features) { - bool ret = bindings.ShutdownScript_is_compatible(this.ptr, features == null ? 0 : features.ptr); + bool ret = Bindings.ShutdownScriptIsCompatible(this.ptr, features == null ? 0 : features.ptr); GC.KeepAlive(this); GC.KeepAlive(features); if (this != null) { this.ptrs_to.AddLast(features); }; diff --git a/c_sharp/src/org/ldk/structs/SignOrCreationError.cs b/c_sharp/src/org/ldk/structs/SignOrCreationError.cs index f030d2dda..0fde4bfd9 100644 --- a/c_sharp/src/org/ldk/structs/SignOrCreationError.cs +++ b/c_sharp/src/org/ldk/structs/SignOrCreationError.cs @@ -12,11 +12,11 @@ namespace org { namespace ldk { namespace structs { public class SignOrCreationError : CommonBase { protected SignOrCreationError(object _dummy, long ptr) : base(ptr) { } ~SignOrCreationError() { - if (ptr != 0) { bindings.SignOrCreationError_free(ptr); } + if (ptr != 0) { Bindings.SignOrCreationErrorFree(ptr); } } internal static SignOrCreationError constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKSignOrCreationError_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKSignOrCreationErrorTyFromPtr(ptr); switch (raw_ty) { case 0: return new SignOrCreationError_SignError(ptr); case 1: return new SignOrCreationError_CreationError(ptr); @@ -34,11 +34,11 @@ internal SignOrCreationError_SignError(long ptr) : base(null, ptr) { public class SignOrCreationError_CreationError : SignOrCreationError { public CreationError creation_error; internal SignOrCreationError_CreationError(long ptr) : base(null, ptr) { - this.creation_error = bindings.LDKSignOrCreationError_CreationError_get_creation_error(ptr); + this.creation_error = Bindings.LDKSignOrCreationErrorCreationErrorGetCreationError(ptr); } } internal long clone_ptr() { - long ret = bindings.SignOrCreationError_clone_ptr(this.ptr); + long ret = Bindings.SignOrCreationErrorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -47,7 +47,7 @@ internal long clone_ptr() { * Creates a copy of the SignOrCreationError */ public SignOrCreationError clone() { - long ret = bindings.SignOrCreationError_clone(this.ptr); + long ret = Bindings.SignOrCreationErrorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.constr_from_ptr(ret); @@ -59,7 +59,7 @@ public SignOrCreationError clone() { * Utility method to constructs a new SignError-variant SignOrCreationError */ public static SignOrCreationError sign_error() { - long ret = bindings.SignOrCreationError_sign_error(); + long ret = Bindings.SignOrCreationErrorSignError(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -70,7 +70,7 @@ public static SignOrCreationError sign_error() { * Utility method to constructs a new CreationError-variant SignOrCreationError */ public static SignOrCreationError creation_error(CreationError a) { - long ret = bindings.SignOrCreationError_creation_error(a); + long ret = Bindings.SignOrCreationErrorCreationError(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.constr_from_ptr(ret); @@ -83,7 +83,7 @@ public static SignOrCreationError creation_error(CreationError a) { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.SignOrCreationError b) { - bool ret = bindings.SignOrCreationError_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SignOrCreationErrorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -97,10 +97,10 @@ public override bool Equals(object o) { * Get the string representation of a SignOrCreationError object */ public string to_str() { - long ret = bindings.SignOrCreationError_to_str(this.ptr); + long ret = Bindings.SignOrCreationErrorToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/SignedRawBolt11Invoice.cs b/c_sharp/src/org/ldk/structs/SignedRawBolt11Invoice.cs index ad14e6b2d..5727302ca 100644 --- a/c_sharp/src/org/ldk/structs/SignedRawBolt11Invoice.cs +++ b/c_sharp/src/org/ldk/structs/SignedRawBolt11Invoice.cs @@ -16,7 +16,7 @@ namespace org { namespace ldk { namespace structs { public class SignedRawBolt11Invoice : CommonBase { internal SignedRawBolt11Invoice(object _dummy, long ptr) : base(ptr) { } ~SignedRawBolt11Invoice() { - if (ptr != 0) { bindings.SignedRawBolt11Invoice_free(ptr); } + if (ptr != 0) { Bindings.SignedRawBolt11InvoiceFree(ptr); } } /** @@ -25,7 +25,7 @@ internal SignedRawBolt11Invoice(object _dummy, long ptr) : base(ptr) { } * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.SignedRawBolt11Invoice b) { - bool ret = bindings.SignedRawBolt11Invoice_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SignedRawBolt11InvoiceEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -37,7 +37,7 @@ public override bool Equals(object o) { return this.eq((SignedRawBolt11Invoice)o); } internal long clone_ptr() { - long ret = bindings.SignedRawBolt11Invoice_clone_ptr(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * Creates a copy of the SignedRawBolt11Invoice */ public SignedRawBolt11Invoice clone() { - long ret = bindings.SignedRawBolt11Invoice_clone(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SignedRawBolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.SignedRawBolt11Invoice(null, ret); } @@ -58,7 +58,7 @@ public SignedRawBolt11Invoice clone() { * Generates a non-cryptographic 64-bit hash of the SignedRawBolt11Invoice. */ public long hash() { - long ret = bindings.SignedRawBolt11Invoice_hash(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -73,7 +73,7 @@ public override int GetHashCode() { * 3. signature */ public ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ into_parts() { - long ret = bindings.SignedRawBolt11Invoice_into_parts(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceIntoParts(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ(null, ret); @@ -86,7 +86,7 @@ public ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ into_parts() { * The [`RawBolt11Invoice`] which was signed. */ public RawBolt11Invoice raw_invoice() { - long ret = bindings.SignedRawBolt11Invoice_raw_invoice(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceRawInvoice(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RawBolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RawBolt11Invoice(null, ret); } @@ -98,10 +98,10 @@ public RawBolt11Invoice raw_invoice() { * The hash of the [`RawBolt11Invoice`] that was signed. */ public byte[] signable_hash() { - long ret = bindings.SignedRawBolt11Invoice_signable_hash(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceSignableHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -109,7 +109,7 @@ public byte[] signable_hash() { * Signature for the invoice. */ public Bolt11InvoiceSignature signature() { - long ret = bindings.SignedRawBolt11Invoice_signature(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceSignature(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceSignature(null, ret); } @@ -121,7 +121,7 @@ public Bolt11InvoiceSignature signature() { * Recovers the public key used for signing the invoice from the recoverable signature. */ public Result_PayeePubKeySecp256k1ErrorZ recover_payee_pub_key() { - long ret = bindings.SignedRawBolt11Invoice_recover_payee_pub_key(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceRecoverPayeePubKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_PayeePubKeySecp256k1ErrorZ ret_hu_conv = Result_PayeePubKeySecp256k1ErrorZ.constr_from_ptr(ret); @@ -133,7 +133,7 @@ public Result_PayeePubKeySecp256k1ErrorZ recover_payee_pub_key() { * valid for the recovered signature (which should always be true?). */ public bool check_signature() { - bool ret = bindings.SignedRawBolt11Invoice_check_signature(this.ptr); + bool ret = Bindings.SignedRawBolt11InvoiceCheckSignature(this.ptr); GC.KeepAlive(this); return ret; } @@ -142,7 +142,7 @@ public bool check_signature() { * Read a SignedRawBolt11Invoice object from a string */ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ from_str(string s) { - long ret = bindings.SignedRawBolt11Invoice_from_str(InternalUtils.encodeString(s)); + long ret = Bindings.SignedRawBolt11InvoiceFromStr(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } Result_SignedRawBolt11InvoiceBolt11ParseErrorZ ret_hu_conv = Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.constr_from_ptr(ret); @@ -153,10 +153,10 @@ public static Result_SignedRawBolt11InvoiceBolt11ParseErrorZ from_str(string s) * Get the string representation of a SignedRawBolt11Invoice object */ public string to_str() { - long ret = bindings.SignedRawBolt11Invoice_to_str(this.ptr); + long ret = Bindings.SignedRawBolt11InvoiceToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/SignerProvider.cs b/c_sharp/src/org/ldk/structs/SignerProvider.cs index 440e60ac4..084d29e39 100644 --- a/c_sharp/src/org/ldk/structs/SignerProvider.cs +++ b/c_sharp/src/org/ldk/structs/SignerProvider.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of SignerProvider */ -public interface SignerProviderInterface { +public interface ISignerProvider { /**Generates a unique `channel_keys_id` that can be used to obtain a [`Self::EcdsaSigner`] through * [`SignerProvider::derive_channel_signer`]. The `user_channel_id` is provided to allow * implementations of [`SignerProvider`] to maintain a mapping between itself and the generated @@ -66,49 +66,49 @@ public interface SignerProviderInterface { * A trait that can return signer instances for individual channels. */ public class SignerProvider : CommonBase { - internal bindings.LDKSignerProvider bindings_instance; + internal Bindings.LDKSignerProvider bindings_instance; internal long instance_idx; internal SignerProvider(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~SignerProvider() { - if (ptr != 0) { bindings.SignerProvider_free(ptr); } + if (ptr != 0) { Bindings.SignerProviderFree(ptr); } } private class LDKSignerProviderHolder { internal SignerProvider held; } - private class LDKSignerProviderImpl : bindings.LDKSignerProvider { - internal LDKSignerProviderImpl(SignerProviderInterface arg, LDKSignerProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private SignerProviderInterface arg; + private class LDKSignerProviderImpl : Bindings.LDKSignerProvider { + internal LDKSignerProviderImpl(ISignerProvider arg, LDKSignerProviderHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ISignerProvider arg; private LDKSignerProviderHolder impl_holder; - public long generate_channel_keys_id(bool _inbound, long _channel_value_satoshis, long _user_channel_id) { + public long GenerateChannelKeysId(bool _inbound, long _channel_value_satoshis, long _user_channel_id) { org.ldk.util.UInt128 _user_channel_id_conv = new org.ldk.util.UInt128(_user_channel_id); byte[] ret = arg.generate_channel_keys_id(_inbound, _channel_value_satoshis, _user_channel_id_conv); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ret, 32)); + long result = InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ret, 32)); return result; } - public long derive_channel_signer(long _channel_value_satoshis, long _channel_keys_id) { - byte[] _channel_keys_id_conv = InternalUtils.decodeUint8Array(_channel_keys_id); + public long DeriveChannelSigner(long _channel_value_satoshis, long _channel_keys_id) { + byte[] _channel_keys_id_conv = InternalUtils.DecodeUint8Array(_channel_keys_id); WriteableEcdsaChannelSigner ret = arg.derive_channel_signer(_channel_value_satoshis, _channel_keys_id_conv); GC.KeepAlive(arg); long result = ret.clone_ptr(); if (impl_holder.held != null) { impl_holder.held.ptrs_to.AddLast(ret); }; return result; } - public long read_chan_signer(long _reader) { - byte[] _reader_conv = InternalUtils.decodeUint8Array(_reader); + public long ReadChanSigner(long _reader) { + byte[] _reader_conv = InternalUtils.DecodeUint8Array(_reader); Result_WriteableEcdsaChannelSignerDecodeErrorZ ret = arg.read_chan_signer(_reader_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_destination_script(long _channel_keys_id) { - byte[] _channel_keys_id_conv = InternalUtils.decodeUint8Array(_channel_keys_id); + public long GetDestinationScript(long _channel_keys_id) { + byte[] _channel_keys_id_conv = InternalUtils.DecodeUint8Array(_channel_keys_id); Result_CVec_u8ZNoneZ ret = arg.get_destination_script(_channel_keys_id_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_shutdown_scriptpubkey() { + public long GetShutdownScriptpubkey() { Result_ShutdownScriptNoneZ ret = arg.get_shutdown_scriptpubkey(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -117,10 +117,10 @@ public long get_shutdown_scriptpubkey() { } /** Creates a new instance of SignerProvider from a given implementation */ - public static SignerProvider new_impl(SignerProviderInterface arg) { + public static SignerProvider new_impl(ISignerProvider arg) { LDKSignerProviderHolder impl_holder = new LDKSignerProviderHolder(); LDKSignerProviderImpl impl = new LDKSignerProviderImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKSignerProvider_new(impl); + long[] ptr_idx = Bindings.LDKSignerProviderNew(impl); impl_holder.held = new SignerProvider(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -137,13 +137,13 @@ public static SignerProvider new_impl(SignerProviderInterface arg) { * This method must return a different value each time it is called. */ public byte[] generate_channel_keys_id(bool inbound, long channel_value_satoshis, org.ldk.util.UInt128 user_channel_id) { - long ret = bindings.SignerProvider_generate_channel_keys_id(this.ptr, inbound, channel_value_satoshis, InternalUtils.encodeUint8Array(user_channel_id.getLEBytes())); + long ret = Bindings.SignerProviderGenerateChannelKeysId(this.ptr, inbound, channel_value_satoshis, InternalUtils.EncodeUint8Array(user_channel_id.getLEBytes())); GC.KeepAlive(this); GC.KeepAlive(inbound); GC.KeepAlive(channel_value_satoshis); GC.KeepAlive(user_channel_id); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -156,7 +156,7 @@ public byte[] generate_channel_keys_id(bool inbound, long channel_value_satoshis * [`ChannelSigner::channel_keys_id`]. */ public WriteableEcdsaChannelSigner derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id) { - long ret = bindings.SignerProvider_derive_channel_signer(this.ptr, channel_value_satoshis, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id, 32))); + long ret = Bindings.SignerProviderDeriveChannelSigner(this.ptr, channel_value_satoshis, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id, 32))); GC.KeepAlive(this); GC.KeepAlive(channel_value_satoshis); GC.KeepAlive(channel_keys_id); @@ -182,7 +182,7 @@ public WriteableEcdsaChannelSigner derive_channel_signer(long channel_value_sato * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public Result_WriteableEcdsaChannelSignerDecodeErrorZ read_chan_signer(byte[] reader) { - long ret = bindings.SignerProvider_read_chan_signer(this.ptr, InternalUtils.encodeUint8Array(reader)); + long ret = Bindings.SignerProviderReadChanSigner(this.ptr, InternalUtils.EncodeUint8Array(reader)); GC.KeepAlive(this); GC.KeepAlive(reader); if (ret >= 0 && ret <= 4096) { return null; } @@ -200,7 +200,7 @@ public Result_WriteableEcdsaChannelSignerDecodeErrorZ read_chan_signer(byte[] re * used to derive a unique value for each channel. */ public Result_CVec_u8ZNoneZ get_destination_script(byte[] channel_keys_id) { - long ret = bindings.SignerProvider_get_destination_script(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id, 32))); + long ret = Bindings.SignerProviderGetDestinationScript(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id, 32))); GC.KeepAlive(this); GC.KeepAlive(channel_keys_id); if (ret >= 0 && ret <= 4096) { return null; } @@ -219,7 +219,7 @@ public Result_CVec_u8ZNoneZ get_destination_script(byte[] channel_keys_id) { * on-chain funds across channels as controlled to the same user. */ public Result_ShutdownScriptNoneZ get_shutdown_scriptpubkey() { - long ret = bindings.SignerProvider_get_shutdown_scriptpubkey(this.ptr); + long ret = Bindings.SignerProviderGetShutdownScriptpubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_ShutdownScriptNoneZ ret_hu_conv = Result_ShutdownScriptNoneZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Sleeper.cs b/c_sharp/src/org/ldk/structs/Sleeper.cs index ae04a4b07..dcb5ae22a 100644 --- a/c_sharp/src/org/ldk/structs/Sleeper.cs +++ b/c_sharp/src/org/ldk/structs/Sleeper.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class Sleeper : CommonBase { internal Sleeper(object _dummy, long ptr) : base(ptr) { } ~Sleeper() { - if (ptr != 0) { bindings.Sleeper_free(ptr); } + if (ptr != 0) { Bindings.SleeperFree(ptr); } } /** * Constructs a new sleeper from one future, allowing blocking on it. */ public static Sleeper from_single_future(org.ldk.structs.Future future) { - long ret = bindings.Sleeper_from_single_future(future == null ? 0 : future.ptr); + long ret = Bindings.SleeperFromSingleFuture(future == null ? 0 : future.ptr); GC.KeepAlive(future); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sleeper ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sleeper(null, ret); } @@ -33,7 +33,7 @@ public static Sleeper from_single_future(org.ldk.structs.Future future) { * Constructs a new sleeper from two futures, allowing blocking on both at once. */ public static Sleeper from_two_futures(org.ldk.structs.Future fut_a, org.ldk.structs.Future fut_b) { - long ret = bindings.Sleeper_from_two_futures(fut_a == null ? 0 : fut_a.ptr, fut_b == null ? 0 : fut_b.ptr); + long ret = Bindings.SleeperFromTwoFutures(fut_a == null ? 0 : fut_a.ptr, fut_b == null ? 0 : fut_b.ptr); GC.KeepAlive(fut_a); GC.KeepAlive(fut_b); if (ret >= 0 && ret <= 4096) { return null; } @@ -48,7 +48,7 @@ public static Sleeper from_two_futures(org.ldk.structs.Future fut_a, org.ldk.str * Constructs a new sleeper on many futures, allowing blocking on all at once. */ public static Sleeper of(Future[] futures) { - long ret = bindings.Sleeper_new(InternalUtils.encodeUint64Array(InternalUtils.mapArray(futures, futures_conv_8 => futures_conv_8 == null ? 0 : futures_conv_8.ptr))); + long ret = Bindings.SleeperNew(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(futures, futures_conv_8 => futures_conv_8 == null ? 0 : futures_conv_8.ptr))); GC.KeepAlive(futures); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Sleeper ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Sleeper(null, ret); } @@ -61,7 +61,7 @@ public static Sleeper of(Future[] futures) { * Wait until one of the [`Future`]s registered with this [`Sleeper`] has completed. */ public void wait() { - bindings.Sleeper_wait(this.ptr); + Bindings.SleeperWait(this.ptr); GC.KeepAlive(this); } @@ -71,7 +71,7 @@ public void wait() { * elapsed. */ public bool wait_timeout(long max_wait) { - bool ret = bindings.Sleeper_wait_timeout(this.ptr, max_wait); + bool ret = Bindings.SleeperWaitTimeout(this.ptr, max_wait); GC.KeepAlive(this); GC.KeepAlive(max_wait); return ret; diff --git a/c_sharp/src/org/ldk/structs/SocketAddress.cs b/c_sharp/src/org/ldk/structs/SocketAddress.cs index 096f79f65..f6e25896a 100644 --- a/c_sharp/src/org/ldk/structs/SocketAddress.cs +++ b/c_sharp/src/org/ldk/structs/SocketAddress.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class SocketAddress : CommonBase { protected SocketAddress(object _dummy, long ptr) : base(ptr) { } ~SocketAddress() { - if (ptr != 0) { bindings.SocketAddress_free(ptr); } + if (ptr != 0) { Bindings.SocketAddressFree(ptr); } } internal static SocketAddress constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKSocketAddress_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKSocketAddressTyFromPtr(ptr); switch (raw_ty) { case 0: return new SocketAddress_TcpIpV4(ptr); case 1: return new SocketAddress_TcpIpV6(ptr); @@ -38,10 +38,10 @@ public class SocketAddress_TcpIpV4 : SocketAddress { */ public short port; internal SocketAddress_TcpIpV4(long ptr) : base(null, ptr) { - long addr = bindings.LDKSocketAddress_TcpIpV4_get_addr(ptr); - byte[] addr_conv = InternalUtils.decodeUint8Array(addr); + long addr = Bindings.LDKSocketAddressTcpIpV4GetAddr(ptr); + byte[] addr_conv = InternalUtils.DecodeUint8Array(addr); this.addr = addr_conv; - this.port = bindings.LDKSocketAddress_TcpIpV4_get_port(ptr); + this.port = Bindings.LDKSocketAddressTcpIpV4GetPort(ptr); } } /** A SocketAddress of type TcpIpV6 */ @@ -55,18 +55,18 @@ public class SocketAddress_TcpIpV6 : SocketAddress { */ public short port; internal SocketAddress_TcpIpV6(long ptr) : base(null, ptr) { - long addr = bindings.LDKSocketAddress_TcpIpV6_get_addr(ptr); - byte[] addr_conv = InternalUtils.decodeUint8Array(addr); + long addr = Bindings.LDKSocketAddressTcpIpV6GetAddr(ptr); + byte[] addr_conv = InternalUtils.DecodeUint8Array(addr); this.addr = addr_conv; - this.port = bindings.LDKSocketAddress_TcpIpV6_get_port(ptr); + this.port = Bindings.LDKSocketAddressTcpIpV6GetPort(ptr); } } /** A SocketAddress of type OnionV2 */ public class SocketAddress_OnionV2 : SocketAddress { public byte[] onion_v2; internal SocketAddress_OnionV2(long ptr) : base(null, ptr) { - long onion_v2 = bindings.LDKSocketAddress_OnionV2_get_onion_v2(ptr); - byte[] onion_v2_conv = InternalUtils.decodeUint8Array(onion_v2); + long onion_v2 = Bindings.LDKSocketAddressOnionV2GetOnionV2(ptr); + byte[] onion_v2_conv = InternalUtils.DecodeUint8Array(onion_v2); this.onion_v2 = onion_v2_conv; } } @@ -89,12 +89,12 @@ public class SocketAddress_OnionV3 : SocketAddress { */ public short port; internal SocketAddress_OnionV3(long ptr) : base(null, ptr) { - long ed25519_pubkey = bindings.LDKSocketAddress_OnionV3_get_ed25519_pubkey(ptr); - byte[] ed25519_pubkey_conv = InternalUtils.decodeUint8Array(ed25519_pubkey); + long ed25519_pubkey = Bindings.LDKSocketAddressOnionV3GetEd25519Pubkey(ptr); + byte[] ed25519_pubkey_conv = InternalUtils.DecodeUint8Array(ed25519_pubkey); this.ed25519_pubkey = ed25519_pubkey_conv; - this.checksum = bindings.LDKSocketAddress_OnionV3_get_checksum(ptr); - this.version = bindings.LDKSocketAddress_OnionV3_get_version(ptr); - this.port = bindings.LDKSocketAddress_OnionV3_get_port(ptr); + this.checksum = Bindings.LDKSocketAddressOnionV3GetChecksum(ptr); + this.version = Bindings.LDKSocketAddressOnionV3GetVersion(ptr); + this.port = Bindings.LDKSocketAddressOnionV3GetPort(ptr); } } /** A SocketAddress of type Hostname */ @@ -108,15 +108,15 @@ public class SocketAddress_Hostname : SocketAddress { */ public short port; internal SocketAddress_Hostname(long ptr) : base(null, ptr) { - long hostname = bindings.LDKSocketAddress_Hostname_get_hostname(ptr); + long hostname = Bindings.LDKSocketAddressHostnameGetHostname(ptr); org.ldk.structs.Hostname hostname_hu_conv = null; if (hostname < 0 || hostname > 4096) { hostname_hu_conv = new org.ldk.structs.Hostname(null, hostname); } if (hostname_hu_conv != null) { hostname_hu_conv.ptrs_to.AddLast(this); }; this.hostname = hostname_hu_conv; - this.port = bindings.LDKSocketAddress_Hostname_get_port(ptr); + this.port = Bindings.LDKSocketAddressHostnameGetPort(ptr); } } internal long clone_ptr() { - long ret = bindings.SocketAddress_clone_ptr(this.ptr); + long ret = Bindings.SocketAddressClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -125,7 +125,7 @@ internal long clone_ptr() { * Creates a copy of the SocketAddress */ public SocketAddress clone() { - long ret = bindings.SocketAddress_clone(this.ptr); + long ret = Bindings.SocketAddressClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SocketAddress ret_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret); @@ -137,7 +137,7 @@ public SocketAddress clone() { * Utility method to constructs a new TcpIpV4-variant SocketAddress */ public static SocketAddress tcp_ip_v4(byte[] addr, short port) { - long ret = bindings.SocketAddress_tcp_ip_v4(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(addr, 4)), port); + long ret = Bindings.SocketAddressTcpIpV4(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(addr, 4)), port); GC.KeepAlive(addr); GC.KeepAlive(port); if (ret >= 0 && ret <= 4096) { return null; } @@ -150,7 +150,7 @@ public static SocketAddress tcp_ip_v4(byte[] addr, short port) { * Utility method to constructs a new TcpIpV6-variant SocketAddress */ public static SocketAddress tcp_ip_v6(byte[] addr, short port) { - long ret = bindings.SocketAddress_tcp_ip_v6(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(addr, 16)), port); + long ret = Bindings.SocketAddressTcpIpV6(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(addr, 16)), port); GC.KeepAlive(addr); GC.KeepAlive(port); if (ret >= 0 && ret <= 4096) { return null; } @@ -163,7 +163,7 @@ public static SocketAddress tcp_ip_v6(byte[] addr, short port) { * Utility method to constructs a new OnionV2-variant SocketAddress */ public static SocketAddress onion_v2(byte[] a) { - long ret = bindings.SocketAddress_onion_v2(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 12))); + long ret = Bindings.SocketAddressOnionV2(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 12))); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SocketAddress ret_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret); @@ -175,7 +175,7 @@ public static SocketAddress onion_v2(byte[] a) { * Utility method to constructs a new OnionV3-variant SocketAddress */ public static SocketAddress onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port) { - long ret = bindings.SocketAddress_onion_v3(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(ed25519_pubkey, 32)), checksum, version, port); + long ret = Bindings.SocketAddressOnionV3(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(ed25519_pubkey, 32)), checksum, version, port); GC.KeepAlive(ed25519_pubkey); GC.KeepAlive(checksum); GC.KeepAlive(version); @@ -190,7 +190,7 @@ public static SocketAddress onion_v3(byte[] ed25519_pubkey, short checksum, byte * Utility method to constructs a new Hostname-variant SocketAddress */ public static SocketAddress hostname(org.ldk.structs.Hostname hostname, short port) { - long ret = bindings.SocketAddress_hostname(hostname == null ? 0 : hostname.ptr, port); + long ret = Bindings.SocketAddressHostname(hostname == null ? 0 : hostname.ptr, port); GC.KeepAlive(hostname); GC.KeepAlive(port); if (ret >= 0 && ret <= 4096) { return null; } @@ -204,7 +204,7 @@ public static SocketAddress hostname(org.ldk.structs.Hostname hostname, short po * Generates a non-cryptographic 64-bit hash of the SocketAddress. */ public long hash() { - long ret = bindings.SocketAddress_hash(this.ptr); + long ret = Bindings.SocketAddressHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -217,7 +217,7 @@ public override int GetHashCode() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.SocketAddress b) { - bool ret = bindings.SocketAddress_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SocketAddressEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -231,10 +231,10 @@ public override bool Equals(object o) { * Serialize the SocketAddress object into a byte array which can be read by SocketAddress_read */ public byte[] write() { - long ret = bindings.SocketAddress_write(this.ptr); + long ret = Bindings.SocketAddressWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -242,7 +242,7 @@ public byte[] write() { * Read a SocketAddress from a byte array, created by SocketAddress_write */ public static Result_SocketAddressDecodeErrorZ read(byte[] ser) { - long ret = bindings.SocketAddress_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.SocketAddressRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressDecodeErrorZ ret_hu_conv = Result_SocketAddressDecodeErrorZ.constr_from_ptr(ret); @@ -253,10 +253,10 @@ public static Result_SocketAddressDecodeErrorZ read(byte[] ser) { * Get the string representation of a SocketAddress object */ public string to_str() { - long ret = bindings.SocketAddress_to_str(this.ptr); + long ret = Bindings.SocketAddressToStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -264,7 +264,7 @@ public string to_str() { * Read a SocketAddress object from a string */ public static Result_SocketAddressSocketAddressParseErrorZ from_str(string s) { - long ret = bindings.SocketAddress_from_str(InternalUtils.encodeString(s)); + long ret = Bindings.SocketAddressFromStr(InternalUtils.EncodeString(s)); GC.KeepAlive(s); if (ret >= 0 && ret <= 4096) { return null; } Result_SocketAddressSocketAddressParseErrorZ ret_hu_conv = Result_SocketAddressSocketAddressParseErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/SocketDescriptor.cs b/c_sharp/src/org/ldk/structs/SocketDescriptor.cs index 76549b18a..d1097d3ac 100644 --- a/c_sharp/src/org/ldk/structs/SocketDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/SocketDescriptor.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of SocketDescriptor */ -public interface SocketDescriptorInterface { +public interface ISocketDescriptor { /**Attempts to send some data from the given slice to the peer. * * Returns the amount of data which was sent, possibly 0 if the socket has since disconnected. @@ -59,37 +59,37 @@ public interface SocketDescriptorInterface { * to simply use another value which is guaranteed to be globally unique instead. */ public class SocketDescriptor : CommonBase { - internal bindings.LDKSocketDescriptor bindings_instance; + internal Bindings.LDKSocketDescriptor bindings_instance; internal long instance_idx; internal SocketDescriptor(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~SocketDescriptor() { - if (ptr != 0) { bindings.SocketDescriptor_free(ptr); } + if (ptr != 0) { Bindings.SocketDescriptorFree(ptr); } } private class LDKSocketDescriptorHolder { internal SocketDescriptor held; } - private class LDKSocketDescriptorImpl : bindings.LDKSocketDescriptor { - internal LDKSocketDescriptorImpl(SocketDescriptorInterface arg, LDKSocketDescriptorHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private SocketDescriptorInterface arg; + private class LDKSocketDescriptorImpl : Bindings.LDKSocketDescriptor { + internal LDKSocketDescriptorImpl(ISocketDescriptor arg, LDKSocketDescriptorHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private ISocketDescriptor arg; private LDKSocketDescriptorHolder impl_holder; - public long send_data(long _data, bool _resume_read) { - byte[] _data_conv = InternalUtils.decodeUint8Array(_data); + public long SendData(long _data, bool _resume_read) { + byte[] _data_conv = InternalUtils.DecodeUint8Array(_data); long ret = arg.send_data(_data_conv, _resume_read); GC.KeepAlive(arg); return ret; } - public void disconnect_socket() { + public void DisconnectSocket() { arg.disconnect_socket(); GC.KeepAlive(arg); } - public bool eq(long _other_arg) { + public bool Eq(long _other_arg) { SocketDescriptor ret_hu_conv = new SocketDescriptor(null, _other_arg); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; bool ret = arg.eq(ret_hu_conv); GC.KeepAlive(arg); return ret; } - public long hash() { + public long Hash() { long ret = arg.hash(); GC.KeepAlive(arg); return ret; @@ -97,10 +97,10 @@ public long hash() { } /** Creates a new instance of SocketDescriptor from a given implementation */ - public static SocketDescriptor new_impl(SocketDescriptorInterface arg) { + public static SocketDescriptor new_impl(ISocketDescriptor arg) { LDKSocketDescriptorHolder impl_holder = new LDKSocketDescriptorHolder(); LDKSocketDescriptorImpl impl = new LDKSocketDescriptorImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKSocketDescriptor_new(impl); + long[] ptr_idx = Bindings.LDKSocketDescriptorNew(impl); impl_holder.held = new SocketDescriptor(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -128,7 +128,7 @@ public static SocketDescriptor new_impl(SocketDescriptorInterface arg) { * `resume_read` of false carries no meaning, and should not cause any action. */ public long send_data(byte[] data, bool resume_read) { - long ret = bindings.SocketDescriptor_send_data(this.ptr, InternalUtils.encodeUint8Array(data), resume_read); + long ret = Bindings.SocketDescriptorSendData(this.ptr, InternalUtils.EncodeUint8Array(data), resume_read); GC.KeepAlive(this); GC.KeepAlive(data); GC.KeepAlive(resume_read); @@ -142,7 +142,7 @@ public long send_data(byte[] data, bool resume_read) { * call (doing so is a noop). */ public void disconnect_socket() { - bindings.SocketDescriptor_disconnect_socket(this.ptr); + Bindings.SocketDescriptorDisconnectSocket(this.ptr); GC.KeepAlive(this); } @@ -151,7 +151,7 @@ public void disconnect_socket() { * This is used, for example, for inclusion of this object in a hash map. */ public long hash() { - long ret = bindings.SocketDescriptor_hash(this.ptr); + long ret = Bindings.SocketDescriptorHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -160,7 +160,7 @@ public override int GetHashCode() { return (int)this.hash(); } internal long clone_ptr() { - long ret = bindings.SocketDescriptor_clone_ptr(this.ptr); + long ret = Bindings.SocketDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -169,7 +169,7 @@ internal long clone_ptr() { * Creates a copy of a SocketDescriptor */ public SocketDescriptor clone() { - long ret = bindings.SocketDescriptor_clone(this.ptr); + long ret = Bindings.SocketDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } SocketDescriptor ret_hu_conv = new SocketDescriptor(null, ret); diff --git a/c_sharp/src/org/ldk/structs/SpendableOutputDescriptor.cs b/c_sharp/src/org/ldk/structs/SpendableOutputDescriptor.cs index b6ffa08e2..dd9b0582c 100644 --- a/c_sharp/src/org/ldk/structs/SpendableOutputDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/SpendableOutputDescriptor.cs @@ -19,11 +19,11 @@ namespace org { namespace ldk { namespace structs { public class SpendableOutputDescriptor : CommonBase { protected SpendableOutputDescriptor(object _dummy, long ptr) : base(ptr) { } ~SpendableOutputDescriptor() { - if (ptr != 0) { bindings.SpendableOutputDescriptor_free(ptr); } + if (ptr != 0) { Bindings.SpendableOutputDescriptorFree(ptr); } } internal static SpendableOutputDescriptor constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKSpendableOutputDescriptor_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKSpendableOutputDescriptorTyFromPtr(ptr); switch (raw_ty) { case 0: return new SpendableOutputDescriptor_StaticOutput(ptr); case 1: return new SpendableOutputDescriptor_DelayedPaymentOutput(ptr); @@ -57,15 +57,15 @@ public class SpendableOutputDescriptor_StaticOutput : SpendableOutputDescriptor */ public byte[] channel_keys_id; internal SpendableOutputDescriptor_StaticOutput(long ptr) : base(null, ptr) { - long outpoint = bindings.LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr); + long outpoint = Bindings.LDKSpendableOutputDescriptorStaticOutputGetOutpoint(ptr); org.ldk.structs.OutPoint outpoint_hu_conv = null; if (outpoint < 0 || outpoint > 4096) { outpoint_hu_conv = new org.ldk.structs.OutPoint(null, outpoint); } if (outpoint_hu_conv != null) { outpoint_hu_conv.ptrs_to.AddLast(this); }; this.outpoint = outpoint_hu_conv; - long output = bindings.LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr); + long output = Bindings.LDKSpendableOutputDescriptorStaticOutputGetOutput(ptr); TxOut output_conv = new TxOut(null, output); this.output = output_conv; - long channel_keys_id = bindings.LDKSpendableOutputDescriptor_StaticOutput_get_channel_keys_id(ptr); - byte[] channel_keys_id_conv = InternalUtils.decodeUint8Array(channel_keys_id); + long channel_keys_id = Bindings.LDKSpendableOutputDescriptorStaticOutputGetChannelKeysId(ptr); + byte[] channel_keys_id_conv = InternalUtils.DecodeUint8Array(channel_keys_id); this.channel_keys_id = channel_keys_id_conv; } } @@ -73,7 +73,7 @@ internal SpendableOutputDescriptor_StaticOutput(long ptr) : base(null, ptr) { public class SpendableOutputDescriptor_DelayedPaymentOutput : SpendableOutputDescriptor { public DelayedPaymentOutputDescriptor delayed_payment_output; internal SpendableOutputDescriptor_DelayedPaymentOutput(long ptr) : base(null, ptr) { - long delayed_payment_output = bindings.LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr); + long delayed_payment_output = Bindings.LDKSpendableOutputDescriptorDelayedPaymentOutputGetDelayedPaymentOutput(ptr); org.ldk.structs.DelayedPaymentOutputDescriptor delayed_payment_output_hu_conv = null; if (delayed_payment_output < 0 || delayed_payment_output > 4096) { delayed_payment_output_hu_conv = new org.ldk.structs.DelayedPaymentOutputDescriptor(null, delayed_payment_output); } if (delayed_payment_output_hu_conv != null) { delayed_payment_output_hu_conv.ptrs_to.AddLast(this); }; this.delayed_payment_output = delayed_payment_output_hu_conv; @@ -83,14 +83,14 @@ internal SpendableOutputDescriptor_DelayedPaymentOutput(long ptr) : base(null, p public class SpendableOutputDescriptor_StaticPaymentOutput : SpendableOutputDescriptor { public StaticPaymentOutputDescriptor static_payment_output; internal SpendableOutputDescriptor_StaticPaymentOutput(long ptr) : base(null, ptr) { - long static_payment_output = bindings.LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr); + long static_payment_output = Bindings.LDKSpendableOutputDescriptorStaticPaymentOutputGetStaticPaymentOutput(ptr); org.ldk.structs.StaticPaymentOutputDescriptor static_payment_output_hu_conv = null; if (static_payment_output < 0 || static_payment_output > 4096) { static_payment_output_hu_conv = new org.ldk.structs.StaticPaymentOutputDescriptor(null, static_payment_output); } if (static_payment_output_hu_conv != null) { static_payment_output_hu_conv.ptrs_to.AddLast(this); }; this.static_payment_output = static_payment_output_hu_conv; } } internal long clone_ptr() { - long ret = bindings.SpendableOutputDescriptor_clone_ptr(this.ptr); + long ret = Bindings.SpendableOutputDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -99,7 +99,7 @@ internal long clone_ptr() { * Creates a copy of the SpendableOutputDescriptor */ public SpendableOutputDescriptor clone() { - long ret = bindings.SpendableOutputDescriptor_clone(this.ptr); + long ret = Bindings.SpendableOutputDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret); @@ -111,7 +111,7 @@ public SpendableOutputDescriptor clone() { * Utility method to constructs a new StaticOutput-variant SpendableOutputDescriptor */ public static SpendableOutputDescriptor static_output(org.ldk.structs.OutPoint outpoint, org.ldk.structs.TxOut output, byte[] channel_keys_id) { - long ret = bindings.SpendableOutputDescriptor_static_output(outpoint == null ? 0 : outpoint.ptr, output.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id, 32))); + long ret = Bindings.SpendableOutputDescriptorStaticOutput(outpoint == null ? 0 : outpoint.ptr, output.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id, 32))); GC.KeepAlive(outpoint); GC.KeepAlive(output); GC.KeepAlive(channel_keys_id); @@ -126,7 +126,7 @@ public static SpendableOutputDescriptor static_output(org.ldk.structs.OutPoint o * Utility method to constructs a new DelayedPaymentOutput-variant SpendableOutputDescriptor */ public static SpendableOutputDescriptor delayed_payment_output(org.ldk.structs.DelayedPaymentOutputDescriptor a) { - long ret = bindings.SpendableOutputDescriptor_delayed_payment_output(a == null ? 0 : a.ptr); + long ret = Bindings.SpendableOutputDescriptorDelayedPaymentOutput(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret); @@ -139,7 +139,7 @@ public static SpendableOutputDescriptor delayed_payment_output(org.ldk.structs.D * Utility method to constructs a new StaticPaymentOutput-variant SpendableOutputDescriptor */ public static SpendableOutputDescriptor static_payment_output(org.ldk.structs.StaticPaymentOutputDescriptor a) { - long ret = bindings.SpendableOutputDescriptor_static_payment_output(a == null ? 0 : a.ptr); + long ret = Bindings.SpendableOutputDescriptorStaticPaymentOutput(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret); @@ -152,7 +152,7 @@ public static SpendableOutputDescriptor static_payment_output(org.ldk.structs.St * Generates a non-cryptographic 64-bit hash of the SpendableOutputDescriptor. */ public long hash() { - long ret = bindings.SpendableOutputDescriptor_hash(this.ptr); + long ret = Bindings.SpendableOutputDescriptorHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -165,7 +165,7 @@ public override int GetHashCode() { * This ignores pointers and is_owned flags and looks at the values in fields. */ public bool eq(org.ldk.structs.SpendableOutputDescriptor b) { - bool ret = bindings.SpendableOutputDescriptor_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SpendableOutputDescriptorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); return ret; @@ -179,10 +179,10 @@ public override bool Equals(object o) { * Serialize the SpendableOutputDescriptor object into a byte array which can be read by SpendableOutputDescriptor_read */ public byte[] write() { - long ret = bindings.SpendableOutputDescriptor_write(this.ptr); + long ret = Bindings.SpendableOutputDescriptorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -190,7 +190,7 @@ public byte[] write() { * Read a SpendableOutputDescriptor from a byte array, created by SpendableOutputDescriptor_write */ public static Result_SpendableOutputDescriptorDecodeErrorZ read(byte[] ser) { - long ret = bindings.SpendableOutputDescriptor_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.SpendableOutputDescriptorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Splice.cs b/c_sharp/src/org/ldk/structs/Splice.cs index b5912ea96..43e96056b 100644 --- a/c_sharp/src/org/ldk/structs/Splice.cs +++ b/c_sharp/src/org/ldk/structs/Splice.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class Splice : CommonBase { internal Splice(object _dummy, long ptr) : base(ptr) { } ~Splice() { - if (ptr != 0) { bindings.Splice_free(ptr); } + if (ptr != 0) { Bindings.SpliceFree(ptr); } } /** * The channel ID where splicing is intended */ public byte[] get_channel_id() { - long ret = bindings.Splice_get_channel_id(this.ptr); + long ret = Bindings.SpliceGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID where splicing is intended */ public void set_channel_id(byte[] val) { - bindings.Splice_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.SpliceSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,10 +39,10 @@ public void set_channel_id(byte[] val) { * The genesis hash of the blockchain where the channel is intended to be spliced */ public byte[] get_chain_hash() { - long ret = bindings.Splice_get_chain_hash(this.ptr); + long ret = Bindings.SpliceGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -50,7 +50,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is intended to be spliced */ public void set_chain_hash(byte[] val) { - bindings.Splice_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.SpliceSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -60,7 +60,7 @@ public void set_chain_hash(byte[] val) { * or removed (negative value) by the sender (splice initiator) by splicing into/from the channel. */ public long get_relative_satoshis() { - long ret = bindings.Splice_get_relative_satoshis(this.ptr); + long ret = Bindings.SpliceGetRelativeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public long get_relative_satoshis() { * or removed (negative value) by the sender (splice initiator) by splicing into/from the channel. */ public void set_relative_satoshis(long val) { - bindings.Splice_set_relative_satoshis(this.ptr, val); + Bindings.SpliceSetRelativeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_relative_satoshis(long val) { * The feerate for the new funding transaction, set by the splice initiator */ public int get_funding_feerate_perkw() { - int ret = bindings.Splice_get_funding_feerate_perkw(this.ptr); + int ret = Bindings.SpliceGetFundingFeeratePerkw(this.ptr); GC.KeepAlive(this); return ret; } @@ -88,7 +88,7 @@ public int get_funding_feerate_perkw() { * The feerate for the new funding transaction, set by the splice initiator */ public void set_funding_feerate_perkw(int val) { - bindings.Splice_set_funding_feerate_perkw(this.ptr, val); + Bindings.SpliceSetFundingFeeratePerkw(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_funding_feerate_perkw(int val) { * The locktime for the new funding transaction */ public int get_locktime() { - int ret = bindings.Splice_get_locktime(this.ptr); + int ret = Bindings.SpliceGetLocktime(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public int get_locktime() { * The locktime for the new funding transaction */ public void set_locktime(int val) { - bindings.Splice_set_locktime(this.ptr, val); + Bindings.SpliceSetLocktime(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -115,10 +115,10 @@ public void set_locktime(int val) { * The key of the sender (splice initiator) controlling the new funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.Splice_get_funding_pubkey(this.ptr); + long ret = Bindings.SpliceGetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -126,7 +126,7 @@ public byte[] get_funding_pubkey() { * The key of the sender (splice initiator) controlling the new funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.Splice_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.SpliceSetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -135,7 +135,7 @@ public void set_funding_pubkey(byte[] val) { * Constructs a new Splice given each field */ public static Splice of(byte[] channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, int funding_feerate_perkw_arg, int locktime_arg, byte[] funding_pubkey_arg) { - long ret = bindings.Splice_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), relative_satoshis_arg, funding_feerate_perkw_arg, locktime_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33))); + long ret = Bindings.SpliceNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), relative_satoshis_arg, funding_feerate_perkw_arg, locktime_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(relative_satoshis_arg); @@ -149,7 +149,7 @@ public static Splice of(byte[] channel_id_arg, byte[] chain_hash_arg, long relat } internal long clone_ptr() { - long ret = bindings.Splice_clone_ptr(this.ptr); + long ret = Bindings.SpliceClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -158,7 +158,7 @@ internal long clone_ptr() { * Creates a copy of the Splice */ public Splice clone() { - long ret = bindings.Splice_clone(this.ptr); + long ret = Bindings.SpliceClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Splice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Splice(null, ret); } @@ -172,7 +172,7 @@ public Splice clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Splice b) { - bool ret = bindings.Splice_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SpliceEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -187,10 +187,10 @@ public override bool Equals(object o) { * Serialize the Splice object into a byte array which can be read by Splice_read */ public byte[] write() { - long ret = bindings.Splice_write(this.ptr); + long ret = Bindings.SpliceWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -198,7 +198,7 @@ public byte[] write() { * Read a Splice from a byte array, created by Splice_write */ public static Result_SpliceDecodeErrorZ read(byte[] ser) { - long ret = bindings.Splice_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.SpliceRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceDecodeErrorZ ret_hu_conv = Result_SpliceDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/SpliceAck.cs b/c_sharp/src/org/ldk/structs/SpliceAck.cs index cfd8f5abd..b6eed7caf 100644 --- a/c_sharp/src/org/ldk/structs/SpliceAck.cs +++ b/c_sharp/src/org/ldk/structs/SpliceAck.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class SpliceAck : CommonBase { internal SpliceAck(object _dummy, long ptr) : base(ptr) { } ~SpliceAck() { - if (ptr != 0) { bindings.SpliceAck_free(ptr); } + if (ptr != 0) { Bindings.SpliceAckFree(ptr); } } /** * The channel ID where splicing is intended */ public byte[] get_channel_id() { - long ret = bindings.SpliceAck_get_channel_id(this.ptr); + long ret = Bindings.SpliceAckGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID where splicing is intended */ public void set_channel_id(byte[] val) { - bindings.SpliceAck_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.SpliceAckSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,10 +39,10 @@ public void set_channel_id(byte[] val) { * The genesis hash of the blockchain where the channel is intended to be spliced */ public byte[] get_chain_hash() { - long ret = bindings.SpliceAck_get_chain_hash(this.ptr); + long ret = Bindings.SpliceAckGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -50,7 +50,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is intended to be spliced */ public void set_chain_hash(byte[] val) { - bindings.SpliceAck_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.SpliceAckSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -60,7 +60,7 @@ public void set_chain_hash(byte[] val) { * or removed (negative value) by the sender (splice acceptor) by splicing into/from the channel. */ public long get_relative_satoshis() { - long ret = bindings.SpliceAck_get_relative_satoshis(this.ptr); + long ret = Bindings.SpliceAckGetRelativeSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -70,7 +70,7 @@ public long get_relative_satoshis() { * or removed (negative value) by the sender (splice acceptor) by splicing into/from the channel. */ public void set_relative_satoshis(long val) { - bindings.SpliceAck_set_relative_satoshis(this.ptr, val); + Bindings.SpliceAckSetRelativeSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,10 +79,10 @@ public void set_relative_satoshis(long val) { * The key of the sender (splice acceptor) controlling the new funding transaction */ public byte[] get_funding_pubkey() { - long ret = bindings.SpliceAck_get_funding_pubkey(this.ptr); + long ret = Bindings.SpliceAckGetFundingPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -90,7 +90,7 @@ public byte[] get_funding_pubkey() { * The key of the sender (splice acceptor) controlling the new funding transaction */ public void set_funding_pubkey(byte[] val) { - bindings.SpliceAck_set_funding_pubkey(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.SpliceAckSetFundingPubkey(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -99,7 +99,7 @@ public void set_funding_pubkey(byte[] val) { * Constructs a new SpliceAck given each field */ public static SpliceAck of(byte[] channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, byte[] funding_pubkey_arg) { - long ret = bindings.SpliceAck_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), relative_satoshis_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey_arg, 33))); + long ret = Bindings.SpliceAckNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), relative_satoshis_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey_arg, 33))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(relative_satoshis_arg); @@ -111,7 +111,7 @@ public static SpliceAck of(byte[] channel_id_arg, byte[] chain_hash_arg, long re } internal long clone_ptr() { - long ret = bindings.SpliceAck_clone_ptr(this.ptr); + long ret = Bindings.SpliceAckClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -120,7 +120,7 @@ internal long clone_ptr() { * Creates a copy of the SpliceAck */ public SpliceAck clone() { - long ret = bindings.SpliceAck_clone(this.ptr); + long ret = Bindings.SpliceAckClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpliceAck ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.SpliceAck(null, ret); } @@ -134,7 +134,7 @@ public SpliceAck clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.SpliceAck b) { - bool ret = bindings.SpliceAck_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SpliceAckEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -149,10 +149,10 @@ public override bool Equals(object o) { * Serialize the SpliceAck object into a byte array which can be read by SpliceAck_read */ public byte[] write() { - long ret = bindings.SpliceAck_write(this.ptr); + long ret = Bindings.SpliceAckWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -160,7 +160,7 @@ public byte[] write() { * Read a SpliceAck from a byte array, created by SpliceAck_write */ public static Result_SpliceAckDecodeErrorZ read(byte[] ser) { - long ret = bindings.SpliceAck_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.SpliceAckRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceAckDecodeErrorZ ret_hu_conv = Result_SpliceAckDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/SpliceLocked.cs b/c_sharp/src/org/ldk/structs/SpliceLocked.cs index 17bbcd125..9dcb82c25 100644 --- a/c_sharp/src/org/ldk/structs/SpliceLocked.cs +++ b/c_sharp/src/org/ldk/structs/SpliceLocked.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class SpliceLocked : CommonBase { internal SpliceLocked(object _dummy, long ptr) : base(ptr) { } ~SpliceLocked() { - if (ptr != 0) { bindings.SpliceLocked_free(ptr); } + if (ptr != 0) { Bindings.SpliceLockedFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.SpliceLocked_get_channel_id(this.ptr); + long ret = Bindings.SpliceLockedGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.SpliceLocked_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.SpliceLockedSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_channel_id(byte[] val) { * Constructs a new SpliceLocked given each field */ public static SpliceLocked of(byte[] channel_id_arg) { - long ret = bindings.SpliceLocked_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32))); + long ret = Bindings.SpliceLockedNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32))); GC.KeepAlive(channel_id_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpliceLocked ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.SpliceLocked(null, ret); } @@ -48,7 +48,7 @@ public static SpliceLocked of(byte[] channel_id_arg) { } internal long clone_ptr() { - long ret = bindings.SpliceLocked_clone_ptr(this.ptr); + long ret = Bindings.SpliceLockedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -57,7 +57,7 @@ internal long clone_ptr() { * Creates a copy of the SpliceLocked */ public SpliceLocked clone() { - long ret = bindings.SpliceLocked_clone(this.ptr); + long ret = Bindings.SpliceLockedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.SpliceLocked ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.SpliceLocked(null, ret); } @@ -71,7 +71,7 @@ public SpliceLocked clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.SpliceLocked b) { - bool ret = bindings.SpliceLocked_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.SpliceLockedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -86,10 +86,10 @@ public override bool Equals(object o) { * Serialize the SpliceLocked object into a byte array which can be read by SpliceLocked_read */ public byte[] write() { - long ret = bindings.SpliceLocked_write(this.ptr); + long ret = Bindings.SpliceLockedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -97,7 +97,7 @@ public byte[] write() { * Read a SpliceLocked from a byte array, created by SpliceLocked_write */ public static Result_SpliceLockedDecodeErrorZ read(byte[] ser) { - long ret = bindings.SpliceLocked_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.SpliceLockedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_SpliceLockedDecodeErrorZ ret_hu_conv = Result_SpliceLockedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/StaticPaymentOutputDescriptor.cs b/c_sharp/src/org/ldk/structs/StaticPaymentOutputDescriptor.cs index e1bf73597..211d88157 100644 --- a/c_sharp/src/org/ldk/structs/StaticPaymentOutputDescriptor.cs +++ b/c_sharp/src/org/ldk/structs/StaticPaymentOutputDescriptor.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class StaticPaymentOutputDescriptor : CommonBase { internal StaticPaymentOutputDescriptor(object _dummy, long ptr) : base(ptr) { } ~StaticPaymentOutputDescriptor() { - if (ptr != 0) { bindings.StaticPaymentOutputDescriptor_free(ptr); } + if (ptr != 0) { Bindings.StaticPaymentOutputDescriptorFree(ptr); } } /** * The outpoint which is spendable. */ public OutPoint get_outpoint() { - long ret = bindings.StaticPaymentOutputDescriptor_get_outpoint(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -33,7 +33,7 @@ public OutPoint get_outpoint() { * The outpoint which is spendable. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.StaticPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.StaticPaymentOutputDescriptorSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * The output which is referenced by the given outpoint. */ public TxOut get_output() { - long ret = bindings.StaticPaymentOutputDescriptor_get_output(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorGetOutput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -54,7 +54,7 @@ public TxOut get_output() { * The output which is referenced by the given outpoint. */ public void set_output(org.ldk.structs.TxOut val) { - bindings.StaticPaymentOutputDescriptor_set_output(this.ptr, val.ptr); + Bindings.StaticPaymentOutputDescriptorSetOutput(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,10 +64,10 @@ public void set_output(org.ldk.structs.TxOut val) { * This may be useful in re-deriving keys used in the channel to spend the output. */ public byte[] get_channel_keys_id() { - long ret = bindings.StaticPaymentOutputDescriptor_get_channel_keys_id(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorGetChannelKeysId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -76,7 +76,7 @@ public byte[] get_channel_keys_id() { * This may be useful in re-deriving keys used in the channel to spend the output. */ public void set_channel_keys_id(byte[] val) { - bindings.StaticPaymentOutputDescriptor_set_channel_keys_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.StaticPaymentOutputDescriptorSetChannelKeysId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -85,7 +85,7 @@ public void set_channel_keys_id(byte[] val) { * The value of the channel which this transactions spends. */ public long get_channel_value_satoshis() { - long ret = bindings.StaticPaymentOutputDescriptor_get_channel_value_satoshis(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorGetChannelValueSatoshis(this.ptr); GC.KeepAlive(this); return ret; } @@ -94,7 +94,7 @@ public long get_channel_value_satoshis() { * The value of the channel which this transactions spends. */ public void set_channel_value_satoshis(long val) { - bindings.StaticPaymentOutputDescriptor_set_channel_value_satoshis(this.ptr, val); + Bindings.StaticPaymentOutputDescriptorSetChannelValueSatoshis(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -108,7 +108,7 @@ public void set_channel_value_satoshis(long val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public ChannelTransactionParameters get_channel_transaction_parameters() { - long ret = bindings.StaticPaymentOutputDescriptor_get_channel_transaction_parameters(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorGetChannelTransactionParameters(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTransactionParameters(null, ret); } @@ -125,7 +125,7 @@ public ChannelTransactionParameters get_channel_transaction_parameters() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_channel_transaction_parameters(org.ldk.structs.ChannelTransactionParameters val) { - bindings.StaticPaymentOutputDescriptor_set_channel_transaction_parameters(this.ptr, val == null ? 0 : val.ptr); + Bindings.StaticPaymentOutputDescriptorSetChannelTransactionParameters(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -137,7 +137,7 @@ public void set_channel_transaction_parameters(org.ldk.structs.ChannelTransactio * Note that channel_transaction_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static StaticPaymentOutputDescriptor of(org.ldk.structs.OutPoint outpoint_arg, org.ldk.structs.TxOut output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg, org.ldk.structs.ChannelTransactionParameters channel_transaction_parameters_arg) { - long ret = bindings.StaticPaymentOutputDescriptor_new(outpoint_arg == null ? 0 : outpoint_arg.ptr, output_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_keys_id_arg, 32)), channel_value_satoshis_arg, channel_transaction_parameters_arg == null ? 0 : channel_transaction_parameters_arg.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorNew(outpoint_arg == null ? 0 : outpoint_arg.ptr, output_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_keys_id_arg, 32)), channel_value_satoshis_arg, channel_transaction_parameters_arg == null ? 0 : channel_transaction_parameters_arg.ptr); GC.KeepAlive(outpoint_arg); GC.KeepAlive(output_arg); GC.KeepAlive(channel_keys_id_arg); @@ -152,7 +152,7 @@ public static StaticPaymentOutputDescriptor of(org.ldk.structs.OutPoint outpoint } internal long clone_ptr() { - long ret = bindings.StaticPaymentOutputDescriptor_clone_ptr(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -161,7 +161,7 @@ internal long clone_ptr() { * Creates a copy of the StaticPaymentOutputDescriptor */ public StaticPaymentOutputDescriptor clone() { - long ret = bindings.StaticPaymentOutputDescriptor_clone(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.StaticPaymentOutputDescriptor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.StaticPaymentOutputDescriptor(null, ret); } @@ -173,7 +173,7 @@ public StaticPaymentOutputDescriptor clone() { * Generates a non-cryptographic 64-bit hash of the StaticPaymentOutputDescriptor. */ public long hash() { - long ret = bindings.StaticPaymentOutputDescriptor_hash(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -187,7 +187,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.StaticPaymentOutputDescriptor b) { - bool ret = bindings.StaticPaymentOutputDescriptor_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.StaticPaymentOutputDescriptorEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -205,7 +205,7 @@ public override bool Equals(object o) { * originated from an anchor outputs channel, as they take the form of a P2WSH script. */ public Option_CVec_u8ZZ witness_script() { - long ret = bindings.StaticPaymentOutputDescriptor_witness_script(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorWitnessScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -219,7 +219,7 @@ public Option_CVec_u8ZZ witness_script() { * shorter. */ public long max_witness_length() { - long ret = bindings.StaticPaymentOutputDescriptor_max_witness_length(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorMaxWitnessLength(this.ptr); GC.KeepAlive(this); return ret; } @@ -228,10 +228,10 @@ public long max_witness_length() { * Serialize the StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read */ public byte[] write() { - long ret = bindings.StaticPaymentOutputDescriptor_write(this.ptr); + long ret = Bindings.StaticPaymentOutputDescriptorWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -239,7 +239,7 @@ public byte[] write() { * Read a StaticPaymentOutputDescriptor from a byte array, created by StaticPaymentOutputDescriptor_write */ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ read(byte[] ser) { - long ret = bindings.StaticPaymentOutputDescriptor_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.StaticPaymentOutputDescriptorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Stfu.cs b/c_sharp/src/org/ldk/structs/Stfu.cs index f37468709..b6023a05e 100644 --- a/c_sharp/src/org/ldk/structs/Stfu.cs +++ b/c_sharp/src/org/ldk/structs/Stfu.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class Stfu : CommonBase { internal Stfu(object _dummy, long ptr) : base(ptr) { } ~Stfu() { - if (ptr != 0) { bindings.Stfu_free(ptr); } + if (ptr != 0) { Bindings.StfuFree(ptr); } } /** * The channel ID where quiescence is intended */ public byte[] get_channel_id() { - long ret = bindings.Stfu_get_channel_id(this.ptr); + long ret = Bindings.StfuGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID where quiescence is intended */ public void set_channel_id(byte[] val) { - bindings.Stfu_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.StfuSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_channel_id(byte[] val) { * Initiator flag, 1 if initiating, 0 if replying to an stfu. */ public byte get_initiator() { - byte ret = bindings.Stfu_get_initiator(this.ptr); + byte ret = Bindings.StfuGetInitiator(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public byte get_initiator() { * Initiator flag, 1 if initiating, 0 if replying to an stfu. */ public void set_initiator(byte val) { - bindings.Stfu_set_initiator(this.ptr, val); + Bindings.StfuSetInitiator(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_initiator(byte val) { * Constructs a new Stfu given each field */ public static Stfu of(byte[] channel_id_arg, byte initiator_arg) { - long ret = bindings.Stfu_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), initiator_arg); + long ret = Bindings.StfuNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), initiator_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(initiator_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -67,7 +67,7 @@ public static Stfu of(byte[] channel_id_arg, byte initiator_arg) { } internal long clone_ptr() { - long ret = bindings.Stfu_clone_ptr(this.ptr); + long ret = Bindings.StfuClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the Stfu */ public Stfu clone() { - long ret = bindings.Stfu_clone(this.ptr); + long ret = Bindings.StfuClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Stfu ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Stfu(null, ret); } @@ -90,7 +90,7 @@ public Stfu clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Stfu b) { - bool ret = bindings.Stfu_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.StfuEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -105,10 +105,10 @@ public override bool Equals(object o) { * Serialize the Stfu object into a byte array which can be read by Stfu_read */ public byte[] write() { - long ret = bindings.Stfu_write(this.ptr); + long ret = Bindings.StfuWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -116,7 +116,7 @@ public byte[] write() { * Read a Stfu from a byte array, created by Stfu_write */ public static Result_StfuDecodeErrorZ read(byte[] ser) { - long ret = bindings.Stfu_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.StfuRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_StfuDecodeErrorZ ret_hu_conv = Result_StfuDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TaggedHash.cs b/c_sharp/src/org/ldk/structs/TaggedHash.cs index 30e237cc3..f3ad95649 100644 --- a/c_sharp/src/org/ldk/structs/TaggedHash.cs +++ b/c_sharp/src/org/ldk/structs/TaggedHash.cs @@ -16,11 +16,11 @@ namespace org { namespace ldk { namespace structs { public class TaggedHash : CommonBase { internal TaggedHash(object _dummy, long ptr) : base(ptr) { } ~TaggedHash() { - if (ptr != 0) { bindings.TaggedHash_free(ptr); } + if (ptr != 0) { Bindings.TaggedHashFree(ptr); } } internal long clone_ptr() { - long ret = bindings.TaggedHash_clone_ptr(this.ptr); + long ret = Bindings.TaggedHashClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -29,7 +29,7 @@ internal long clone_ptr() { * Creates a copy of the TaggedHash */ public TaggedHash clone() { - long ret = bindings.TaggedHash_clone(this.ptr); + long ret = Bindings.TaggedHashClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TaggedHash ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TaggedHash(null, ret); } @@ -41,10 +41,10 @@ public TaggedHash clone() { * Returns the digest to sign. */ public byte[] as_digest() { - long ret = bindings.TaggedHash_as_digest(this.ptr); + long ret = Bindings.TaggedHashAsDigest(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,10 +52,10 @@ public byte[] as_digest() { * Returns the tag used in the tagged hash. */ public string tag() { - long ret = bindings.TaggedHash_tag(this.ptr); + long ret = Bindings.TaggedHashTag(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -63,10 +63,10 @@ public string tag() { * Returns the merkle root used in the tagged hash. */ public byte[] merkle_root() { - long ret = bindings.TaggedHash_merkle_root(this.ptr); + long ret = Bindings.TaggedHashMerkleRoot(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.cs index c7be6380a..5b78f805f 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ : CommonBase { internal ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ() { - if (ptr != 0) { bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZFree(ptr); } } /** * */ public ChannelAnnouncement get_a() { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(this.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelAnnouncement(null, ret); } @@ -31,7 +31,7 @@ public ChannelAnnouncement get_a() { * */ public ChannelUpdate get_b() { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(this.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdate(null, ret); } @@ -43,7 +43,7 @@ public ChannelUpdate get_b() { * */ public ChannelUpdate get_c() { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(this.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUpdate(null, ret); } @@ -52,7 +52,7 @@ public ChannelUpdate get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -62,7 +62,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ clone() { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(this.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ ret_hu_conv = new ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ(null, ret); @@ -74,7 +74,7 @@ public ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ clone() { * Creates a new C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ from the contained elements. */ public static ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ of(org.ldk.structs.ChannelAnnouncement a, org.ldk.structs.ChannelUpdate b, org.ldk.structs.ChannelUpdate c) { - long ret = bindings.C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a == null ? 0 : a.ptr, b == null ? 0 : b.ptr, c == null ? 0 : c.ptr); + long ret = Bindings.C3TupleChannelAnnouncementChannelUpdateChannelUpdateZNew(a == null ? 0 : a.ptr, b == null ? 0 : b.ptr, c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.cs index 8882a93f9..3b7bdfd00 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_OffersMessageDestinationBlindedPathZ : CommonBase { internal ThreeTuple_OffersMessageDestinationBlindedPathZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_OffersMessageDestinationBlindedPathZ() { - if (ptr != 0) { bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleOffersMessageDestinationBlindedPathZFree(ptr); } } /** * */ public OffersMessage get_a() { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(this.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret); @@ -31,7 +31,7 @@ public OffersMessage get_a() { * */ public Destination get_b() { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(this.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); @@ -43,7 +43,7 @@ public Destination get_b() { * */ public BlindedPath get_c() { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(this.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); } @@ -52,7 +52,7 @@ public BlindedPath get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -62,7 +62,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_OffersMessageDestinationBlindedPathZ clone() { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_clone(this.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_OffersMessageDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OffersMessageDestinationBlindedPathZ(null, ret); @@ -74,7 +74,7 @@ public ThreeTuple_OffersMessageDestinationBlindedPathZ clone() { * Creates a new C3Tuple_OffersMessageDestinationBlindedPathZ from the contained elements. */ public static ThreeTuple_OffersMessageDestinationBlindedPathZ of(org.ldk.structs.OffersMessage a, org.ldk.structs.Destination b, org.ldk.structs.BlindedPath c) { - long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_new(a.ptr, b.ptr, c == null ? 0 : c.ptr); + long ret = Bindings.C3TupleOffersMessageDestinationBlindedPathZNew(a.ptr, b.ptr, c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.cs index 5365c8662..292f6f1e3 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_OnionMessageContentsDestinationBlindedPathZ : CommonBase { internal ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_OnionMessageContentsDestinationBlindedPathZ() { - if (ptr != 0) { bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZFree(ptr); } } /** * */ public OnionMessageContents get_a() { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(this.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } OnionMessageContents ret_hu_conv = new OnionMessageContents(null, ret); @@ -31,7 +31,7 @@ public OnionMessageContents get_a() { * */ public Destination get_b() { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(this.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret); @@ -43,7 +43,7 @@ public Destination get_b() { * */ public BlindedPath get_c() { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(this.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); } @@ -52,7 +52,7 @@ public BlindedPath get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -62,7 +62,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_OnionMessageContentsDestinationBlindedPathZ clone() { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(this.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret); @@ -74,7 +74,7 @@ public ThreeTuple_OnionMessageContentsDestinationBlindedPathZ clone() { * Creates a new C3Tuple_OnionMessageContentsDestinationBlindedPathZ from the contained elements. */ public static ThreeTuple_OnionMessageContentsDestinationBlindedPathZ of(org.ldk.structs.OnionMessageContents a, org.ldk.structs.Destination b, org.ldk.structs.BlindedPath c) { - long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(a.ptr, b.ptr, c == null ? 0 : c.ptr); + long ret = Bindings.C3TupleOnionMessageContentsDestinationBlindedPathZNew(a.ptr, b.ptr, c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.cs index c747b1590..ac2c551ad 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ : CommonBase { internal ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ() { - if (ptr != 0) { bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZFree(ptr); } } /** * */ public OutPoint get_a() { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(this.ptr); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -31,18 +31,18 @@ public OutPoint get_a() { * */ public MonitorEvent[] get_b() { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(this.ptr); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_14_len = InternalUtils.getArrayLength(ret); + int ret_conv_14_len = InternalUtils.GetArrayLength(ret); MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret_conv_14_len]; for (int o = 0; o < ret_conv_14_len; o++) { - long ret_conv_14 = InternalUtils.getU64ArrayElem(ret, o); + long ret_conv_14 = InternalUtils.GetU64ArrayElem(ret, o); org.ldk.structs.MonitorEvent ret_conv_14_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret_conv_14); if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); }; ret_conv_14_arr[o] = ret_conv_14_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_14_arr; } @@ -50,15 +50,15 @@ public MonitorEvent[] get_b() { * */ public byte[] get_c() { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(this.ptr); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ clone() { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(this.ptr); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret); @@ -80,7 +80,7 @@ public ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ clone() { * Creates a new C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ from the contained elements. */ public static ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ of(org.ldk.structs.OutPoint a, MonitorEvent[] b, byte[] c) { - long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0 : a.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_14 => b_conv_14.ptr)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(c, 33))); + long ret = Bindings.C3TupleOutPointCVecMonitorEventZPublicKeyZNew(a == null ? 0 : a.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_14 => b_conv_14.ptr)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(c, 33))); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.cs index 9b770b006..92b9bd08c 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ : CommonBase { internal ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ() { - if (ptr != 0) { bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(ptr); } + if (ptr != 0) { Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(this.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public OnionMessage get_b() { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(this.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OnionMessage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OnionMessage(null, ret); } @@ -42,7 +42,7 @@ public OnionMessage get_b() { * */ public Option_CVec_SocketAddressZZ get_c() { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(this.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_SocketAddressZZ ret_hu_conv = org.ldk.structs.Option_CVec_SocketAddressZZ.constr_from_ptr(ret); @@ -51,7 +51,7 @@ public Option_CVec_SocketAddressZZ get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(this.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ clone() { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(this.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ ret_hu_conv = new ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ(null, ret); @@ -73,7 +73,7 @@ public ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ clone() { * Creates a new C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ from the contained elements. */ public static ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ of(byte[] a, org.ldk.structs.OnionMessage b, org.ldk.structs.Option_CVec_SocketAddressZZ c) { - long ret = bindings.C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), b == null ? 0 : b.ptr, c.ptr); + long ret = Bindings.C3TuplePublicKeyOnionMessageCOptionCVecSocketAddressZZZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33)), b == null ? 0 : b.ptr, c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.cs index d05692096..ef60aa3ea 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ : CommonBase { internal ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ() { - if (ptr != 0) { bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezFree(ptr); } } /** * */ public RawBolt11Invoice get_a() { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(this.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RawBolt11Invoice ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RawBolt11Invoice(null, ret); } @@ -31,10 +31,10 @@ public RawBolt11Invoice get_a() { * */ public byte[] get_b() { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(this.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -42,7 +42,7 @@ public byte[] get_b() { * */ public Bolt11InvoiceSignature get_c() { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(this.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt11InvoiceSignature ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt11InvoiceSignature(null, ret); } @@ -51,7 +51,7 @@ public Bolt11InvoiceSignature get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ clone() { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(this.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ(null, ret); @@ -73,7 +73,7 @@ public ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ clone() { * Creates a new C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ from the contained elements. */ public static ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ of(org.ldk.structs.RawBolt11Invoice a, byte[] b, org.ldk.structs.Bolt11InvoiceSignature c) { - long ret = bindings.C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(a == null ? 0 : a.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b, 32)), c == null ? 0 : c.ptr); + long ret = Bindings.C3TupleRawBolt11InvoiceU832Bolt11InvoicesignaturezNew(a == null ? 0 : a.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(b, 32)), c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.cs index 7ca3d489f..5adaa4a54 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ : CommonBase { internal ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ() { - if (ptr != 0) { bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public RecipientOnionFields get_b() { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RecipientOnionFields ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RecipientOnionFields(null, ret); } @@ -42,7 +42,7 @@ public RecipientOnionFields get_b() { * */ public RouteParameters get_c() { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RouteParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteParameters(null, ret); } @@ -51,7 +51,7 @@ public RouteParameters get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -61,7 +61,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ clone() { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ ret_hu_conv = new ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ(null, ret); @@ -73,7 +73,7 @@ public ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ clone() { * Creates a new C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ from the contained elements. */ public static ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ of(byte[] a, org.ldk.structs.RecipientOnionFields b, org.ldk.structs.RouteParameters c) { - long ret = bindings.C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), b == null ? 0 : b.ptr, c == null ? 0 : c.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesRecipientOnionFieldsRouteParametersZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), b == null ? 0 : b.ptr, c == null ? 0 : c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.cs b/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.cs index 2fd402ad6..f8e9e0953 100644 --- a/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.cs +++ b/c_sharp/src/org/ldk/structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ : CommonBase { internal ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ(object _dummy, long ptr) : base(ptr) { } ~ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ() { - if (ptr != 0) { bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(ptr); } + if (ptr != 0) { Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public int get_b() { - int ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(this.ptr); + int ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetB(this.ptr); GC.KeepAlive(this); return ret; } @@ -39,7 +39,7 @@ public int get_b() { * */ public Option_ThirtyTwoBytesZ get_c() { - long ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZGetC(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -48,7 +48,7 @@ public Option_ThirtyTwoBytesZ get_c() { } internal long clone_ptr() { - long ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -58,7 +58,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ clone() { - long ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(this.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ ret_hu_conv = new ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ(null, ret); @@ -70,7 +70,7 @@ public ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ clone() { * Creates a new C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ from the contained elements. */ public static ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ of(byte[] a, int b, org.ldk.structs.Option_ThirtyTwoBytesZ c) { - long ret = bindings.C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), b, c.ptr); + long ret = Bindings.C3TupleThirtyTwoBytesu32COptionThirtyTwoBytesZZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), b, c.ptr); GC.KeepAlive(a); GC.KeepAlive(b); GC.KeepAlive(c); diff --git a/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs b/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs index bf3c9eccb..734d5cb18 100644 --- a/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs +++ b/c_sharp/src/org/ldk/structs/TransactionU16LenLimited.cs @@ -15,11 +15,11 @@ namespace org { namespace ldk { namespace structs { public class TransactionU16LenLimited : CommonBase { internal TransactionU16LenLimited(object _dummy, long ptr) : base(ptr) { } ~TransactionU16LenLimited() { - if (ptr != 0) { bindings.TransactionU16LenLimited_free(ptr); } + if (ptr != 0) { Bindings.TransactionU16LenLimitedFree(ptr); } } internal long clone_ptr() { - long ret = bindings.TransactionU16LenLimited_clone_ptr(this.ptr); + long ret = Bindings.TransactionU16LenLimitedClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ internal long clone_ptr() { * Creates a copy of the TransactionU16LenLimited */ public TransactionU16LenLimited clone() { - long ret = bindings.TransactionU16LenLimited_clone(this.ptr); + long ret = Bindings.TransactionU16LenLimitedClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TransactionU16LenLimited ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TransactionU16LenLimited(null, ret); } @@ -40,7 +40,7 @@ public TransactionU16LenLimited clone() { * Generates a non-cryptographic 64-bit hash of the TransactionU16LenLimited. */ public long hash() { - long ret = bindings.TransactionU16LenLimited_hash(this.ptr); + long ret = Bindings.TransactionU16LenLimitedHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -54,7 +54,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TransactionU16LenLimited b) { - bool ret = bindings.TransactionU16LenLimited_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TransactionU16LenLimitedEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -70,7 +70,7 @@ public override bool Equals(object o) { * serialized length is <= u16::MAX. */ public static Result_TransactionU16LenLimitedNoneZ of(byte[] transaction) { - long ret = bindings.TransactionU16LenLimited_new(InternalUtils.encodeUint8Array(transaction)); + long ret = Bindings.TransactionU16LenLimitedNew(InternalUtils.EncodeUint8Array(transaction)); GC.KeepAlive(transaction); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedNoneZ ret_hu_conv = Result_TransactionU16LenLimitedNoneZ.constr_from_ptr(ret); @@ -81,10 +81,10 @@ public static Result_TransactionU16LenLimitedNoneZ of(byte[] transaction) { * Consumes this `TransactionU16LenLimited` and returns its contained `Transaction`. */ public byte[] into_transaction() { - long ret = bindings.TransactionU16LenLimited_into_transaction(this.ptr); + long ret = Bindings.TransactionU16LenLimitedIntoTransaction(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); if (this != null) { this.ptrs_to.AddLast(this); }; return ret_conv; } @@ -93,10 +93,10 @@ public byte[] into_transaction() { * Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read */ public byte[] write() { - long ret = bindings.TransactionU16LenLimited_write(this.ptr); + long ret = Bindings.TransactionU16LenLimitedWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -104,7 +104,7 @@ public byte[] write() { * Read a TransactionU16LenLimited from a byte array, created by TransactionU16LenLimited_write */ public static Result_TransactionU16LenLimitedDecodeErrorZ read(byte[] ser) { - long ret = bindings.TransactionU16LenLimited_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TransactionU16LenLimitedRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TransactionU16LenLimitedDecodeErrorZ ret_hu_conv = Result_TransactionU16LenLimitedDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TrustedClosingTransaction.cs b/c_sharp/src/org/ldk/structs/TrustedClosingTransaction.cs index 3cdf82c73..448f7a2d2 100644 --- a/c_sharp/src/org/ldk/structs/TrustedClosingTransaction.cs +++ b/c_sharp/src/org/ldk/structs/TrustedClosingTransaction.cs @@ -17,17 +17,17 @@ namespace org { namespace ldk { namespace structs { public class TrustedClosingTransaction : CommonBase { internal TrustedClosingTransaction(object _dummy, long ptr) : base(ptr) { } ~TrustedClosingTransaction() { - if (ptr != 0) { bindings.TrustedClosingTransaction_free(ptr); } + if (ptr != 0) { Bindings.TrustedClosingTransactionFree(ptr); } } /** * The pre-built Bitcoin commitment transaction */ public byte[] built_transaction() { - long ret = bindings.TrustedClosingTransaction_built_transaction(this.ptr); + long ret = Bindings.TrustedClosingTransactionBuiltTransaction(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -37,12 +37,12 @@ public byte[] built_transaction() { * This can be used to verify a signature. */ public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_satoshis) { - long ret = bindings.TrustedClosingTransaction_get_sighash_all(this.ptr, InternalUtils.encodeUint8Array(funding_redeemscript), channel_value_satoshis); + long ret = Bindings.TrustedClosingTransactionGetSighashAll(this.ptr, InternalUtils.EncodeUint8Array(funding_redeemscript), channel_value_satoshis); GC.KeepAlive(this); GC.KeepAlive(funding_redeemscript); GC.KeepAlive(channel_value_satoshis); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -51,13 +51,13 @@ public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_sa * because we are about to broadcast a holder transaction. */ public byte[] sign(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis) { - long ret = bindings.TrustedClosingTransaction_sign(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_key, 32)), InternalUtils.encodeUint8Array(funding_redeemscript), channel_value_satoshis); + long ret = Bindings.TrustedClosingTransactionSign(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_key, 32)), InternalUtils.EncodeUint8Array(funding_redeemscript), channel_value_satoshis); GC.KeepAlive(this); GC.KeepAlive(funding_key); GC.KeepAlive(funding_redeemscript); GC.KeepAlive(channel_value_satoshis); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/TrustedCommitmentTransaction.cs b/c_sharp/src/org/ldk/structs/TrustedCommitmentTransaction.cs index 0f81c2fea..f3f06d813 100644 --- a/c_sharp/src/org/ldk/structs/TrustedCommitmentTransaction.cs +++ b/c_sharp/src/org/ldk/structs/TrustedCommitmentTransaction.cs @@ -17,17 +17,17 @@ namespace org { namespace ldk { namespace structs { public class TrustedCommitmentTransaction : CommonBase { internal TrustedCommitmentTransaction(object _dummy, long ptr) : base(ptr) { } ~TrustedCommitmentTransaction() { - if (ptr != 0) { bindings.TrustedCommitmentTransaction_free(ptr); } + if (ptr != 0) { Bindings.TrustedCommitmentTransactionFree(ptr); } } /** * The transaction ID of the built Bitcoin transaction */ public byte[] txid() { - long ret = bindings.TrustedCommitmentTransaction_txid(this.ptr); + long ret = Bindings.TrustedCommitmentTransactionTxid(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -35,7 +35,7 @@ public byte[] txid() { * The pre-built Bitcoin commitment transaction */ public BuiltCommitmentTransaction built_transaction() { - long ret = bindings.TrustedCommitmentTransaction_built_transaction(this.ptr); + long ret = Bindings.TrustedCommitmentTransactionBuiltTransaction(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BuiltCommitmentTransaction ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BuiltCommitmentTransaction(null, ret); } @@ -47,7 +47,7 @@ public BuiltCommitmentTransaction built_transaction() { * The pre-calculated transaction creation public keys. */ public TxCreationKeys keys() { - long ret = bindings.TrustedCommitmentTransaction_keys(this.ptr); + long ret = Bindings.TrustedCommitmentTransactionKeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxCreationKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxCreationKeys(null, ret); } @@ -59,7 +59,7 @@ public TxCreationKeys keys() { * Should anchors be used. */ public ChannelTypeFeatures channel_type_features() { - long ret = bindings.TrustedCommitmentTransaction_channel_type_features(this.ptr); + long ret = Bindings.TrustedCommitmentTransactionChannelTypeFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelTypeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelTypeFeatures(null, ret); } @@ -76,7 +76,7 @@ public ChannelTypeFeatures channel_type_features() { * This function is only valid in the holder commitment context, it always uses EcdsaSighashType::All. */ public Result_CVec_ECDSASignatureZNoneZ get_htlc_sigs(byte[] htlc_base_key, org.ldk.structs.DirectedChannelTransactionParameters channel_parameters, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.TrustedCommitmentTransaction_get_htlc_sigs(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(htlc_base_key, 32)), channel_parameters == null ? 0 : channel_parameters.ptr, entropy_source.ptr); + long ret = Bindings.TrustedCommitmentTransactionGetHtlcSigs(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(htlc_base_key, 32)), channel_parameters == null ? 0 : channel_parameters.ptr, entropy_source.ptr); GC.KeepAlive(this); GC.KeepAlive(htlc_base_key); GC.KeepAlive(channel_parameters); @@ -100,7 +100,7 @@ public Result_CVec_ECDSASignatureZNoneZ get_htlc_sigs(byte[] htlc_base_key, org. * revokeable output. */ public Option_usizeZ revokeable_output_index() { - long ret = bindings.TrustedCommitmentTransaction_revokeable_output_index(this.ptr); + long ret = Bindings.TrustedCommitmentTransactionRevokeableOutputIndex(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_usizeZ ret_hu_conv = org.ldk.structs.Option_usizeZ.constr_from_ptr(ret); @@ -122,7 +122,7 @@ public Option_usizeZ revokeable_output_index() { * fee rates may be built. */ public Result_TransactionNoneZ build_to_local_justice_tx(long feerate_per_kw, byte[] destination_script) { - long ret = bindings.TrustedCommitmentTransaction_build_to_local_justice_tx(this.ptr, feerate_per_kw, InternalUtils.encodeUint8Array(destination_script)); + long ret = Bindings.TrustedCommitmentTransactionBuildToLocalJusticeTx(this.ptr, feerate_per_kw, InternalUtils.EncodeUint8Array(destination_script)); GC.KeepAlive(this); GC.KeepAlive(feerate_per_kw); GC.KeepAlive(destination_script); diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_BlindedPayInfoBlindedPathZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_BlindedPayInfoBlindedPathZ.cs index 45bce5287..396b5c6d5 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_BlindedPayInfoBlindedPathZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_BlindedPayInfoBlindedPathZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_BlindedPayInfoBlindedPathZ : CommonBase { internal TwoTuple_BlindedPayInfoBlindedPathZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_BlindedPayInfoBlindedPathZ() { - if (ptr != 0) { bindings.C2Tuple_BlindedPayInfoBlindedPathZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleBlindedPayInfoBlindedPathZFree(ptr); } } /** * */ public BlindedPayInfo get_a() { - long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_get_a(this.ptr); + long ret = Bindings.C2TupleBlindedPayInfoBlindedPathZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPayInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPayInfo(null, ret); } @@ -31,7 +31,7 @@ public BlindedPayInfo get_a() { * */ public BlindedPath get_b() { - long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_get_b(this.ptr); + long ret = Bindings.C2TupleBlindedPayInfoBlindedPathZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); } @@ -40,7 +40,7 @@ public BlindedPath get_b() { } internal long clone_ptr() { - long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleBlindedPayInfoBlindedPathZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_BlindedPayInfoBlindedPathZ clone() { - long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_clone(this.ptr); + long ret = Bindings.C2TupleBlindedPayInfoBlindedPathZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_BlindedPayInfoBlindedPathZ ret_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, ret); @@ -62,7 +62,7 @@ public TwoTuple_BlindedPayInfoBlindedPathZ clone() { * Creates a new C2Tuple_BlindedPayInfoBlindedPathZ from the contained elements. */ public static TwoTuple_BlindedPayInfoBlindedPathZ of(org.ldk.structs.BlindedPayInfo a, org.ldk.structs.BlindedPath b) { - long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_new(a == null ? 0 : a.ptr, b == null ? 0 : b.ptr); + long ret = Bindings.C2TupleBlindedPayInfoBlindedPathZNew(a == null ? 0 : a.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_CVec_u8Zu64Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple_CVec_u8Zu64Z.cs index 978bb6191..d6c3fb42c 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_CVec_u8Zu64Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_CVec_u8Zu64Z.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_CVec_u8Zu64Z : CommonBase { internal TwoTuple_CVec_u8Zu64Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_CVec_u8Zu64Z() { - if (ptr != 0) { bindings.C2Tuple_CVec_u8Zu64Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleCVecU8Zu64ZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_a(this.ptr); + long ret = Bindings.C2TupleCVecU8Zu64ZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,13 +30,13 @@ public byte[] get_a() { * */ public long get_b() { - long ret = bindings.C2Tuple_CVec_u8Zu64Z_get_b(this.ptr); + long ret = Bindings.C2TupleCVecU8Zu64ZGetB(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.C2Tuple_CVec_u8Zu64Z_clone_ptr(this.ptr); + long ret = Bindings.C2TupleCVecU8Zu64ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_CVec_u8Zu64Z clone() { - long ret = bindings.C2Tuple_CVec_u8Zu64Z_clone(this.ptr); + long ret = Bindings.C2TupleCVecU8Zu64ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_CVec_u8Zu64Z ret_hu_conv = new TwoTuple_CVec_u8Zu64Z(null, ret); @@ -58,7 +58,7 @@ public TwoTuple_CVec_u8Zu64Z clone() { * Creates a new C2Tuple_CVec_u8Zu64Z from the contained elements. */ public static TwoTuple_CVec_u8Zu64Z of(byte[] a, long b) { - long ret = bindings.C2Tuple_CVec_u8Zu64Z_new(InternalUtils.encodeUint8Array(a), b); + long ret = Bindings.C2TupleCVecU8Zu64ZNew(InternalUtils.EncodeUint8Array(a), b); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.cs index 85092ab51..acfd98735 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ : CommonBase { internal TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ() { - if (ptr != 0) { bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleECDSASignatureCVecECDSASignatureZZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(this.ptr); + long ret = Bindings.C2TupleECDSASignatureCVecECDSASignatureZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,22 +30,22 @@ public byte[] get_a() { * */ public byte[][] get_b() { - long ret = bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(this.ptr); + long ret = Bindings.C2TupleECDSASignatureCVecECDSASignatureZZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } internal long clone_ptr() { - long ret = bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleECDSASignatureCVecECDSASignatureZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -55,7 +55,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ clone() { - long ret = bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(this.ptr); + long ret = Bindings.C2TupleECDSASignatureCVecECDSASignatureZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ ret_hu_conv = new TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ(null, ret); @@ -67,7 +67,7 @@ public TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ clone() { * Creates a new C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ from the contained elements. */ public static TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ of(byte[] a, byte[][] b) { - long ret = bindings.C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 64)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b_conv_8, 64))))); + long ret = Bindings.C2TupleECDSASignatureCVecECDSASignatureZZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 64)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(b_conv_8, 64))))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs index 55915cda3..3cb740e11 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_OutPointCVec_MonitorUpdateIdZZ : CommonBase { internal TwoTuple_OutPointCVec_MonitorUpdateIdZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_OutPointCVec_MonitorUpdateIdZZ() { - if (ptr != 0) { bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleOutPointCVecMonitorUpdateIdZZFree(ptr); } } /** * */ public OutPoint get_a() { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(this.ptr); + long ret = Bindings.C2TupleOutPointCVecMonitorUpdateIdZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -31,23 +31,23 @@ public OutPoint get_a() { * */ public MonitorUpdateId[] get_b() { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(this.ptr); + long ret = Bindings.C2TupleOutPointCVecMonitorUpdateIdZZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_17_len = InternalUtils.getArrayLength(ret); + int ret_conv_17_len = InternalUtils.GetArrayLength(ret); MonitorUpdateId[] ret_conv_17_arr = new MonitorUpdateId[ret_conv_17_len]; for (int r = 0; r < ret_conv_17_len; r++) { - long ret_conv_17 = InternalUtils.getU64ArrayElem(ret, r); + long ret_conv_17 = InternalUtils.GetU64ArrayElem(ret, r); org.ldk.structs.MonitorUpdateId ret_conv_17_hu_conv = null; if (ret_conv_17 < 0 || ret_conv_17 > 4096) { ret_conv_17_hu_conv = new org.ldk.structs.MonitorUpdateId(null, ret_conv_17); } if (ret_conv_17_hu_conv != null) { ret_conv_17_hu_conv.ptrs_to.AddLast(this); }; ret_conv_17_arr[r] = ret_conv_17_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_17_arr; } internal long clone_ptr() { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleOutPointCVecMonitorUpdateIdZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -57,7 +57,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_OutPointCVec_MonitorUpdateIdZZ clone() { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(this.ptr); + long ret = Bindings.C2TupleOutPointCVecMonitorUpdateIdZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_OutPointCVec_MonitorUpdateIdZZ ret_hu_conv = new TwoTuple_OutPointCVec_MonitorUpdateIdZZ(null, ret); @@ -69,7 +69,7 @@ public TwoTuple_OutPointCVec_MonitorUpdateIdZZ clone() { * Creates a new C2Tuple_OutPointCVec_MonitorUpdateIdZZ from the contained elements. */ public static TwoTuple_OutPointCVec_MonitorUpdateIdZZ of(org.ldk.structs.OutPoint a, MonitorUpdateId[] b) { - long ret = bindings.C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a == null ? 0 : a.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_17 => b_conv_17 == null ? 0 : b_conv_17.ptr))); + long ret = Bindings.C2TupleOutPointCVecMonitorUpdateIdZZNew(a == null ? 0 : a.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_17 => b_conv_17 == null ? 0 : b_conv_17.ptr))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_u8ZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_u8ZZ.cs index 38f599a06..866b1a298 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_u8ZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_OutPointCVec_u8ZZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_OutPointCVec_u8ZZ : CommonBase { internal TwoTuple_OutPointCVec_u8ZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_OutPointCVec_u8ZZ() { - if (ptr != 0) { bindings.C2Tuple_OutPointCVec_u8ZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleOutPointCVecU8ZzFree(ptr); } } /** * */ public OutPoint get_a() { - long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_get_a(this.ptr); + long ret = Bindings.C2TupleOutPointCVecU8ZzGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -31,15 +31,15 @@ public OutPoint get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_get_b(this.ptr); + long ret = Bindings.C2TupleOutPointCVecU8ZzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleOutPointCVecU8ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_OutPointCVec_u8ZZ clone() { - long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_clone(this.ptr); + long ret = Bindings.C2TupleOutPointCVecU8ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_OutPointCVec_u8ZZ ret_hu_conv = new TwoTuple_OutPointCVec_u8ZZ(null, ret); @@ -61,7 +61,7 @@ public TwoTuple_OutPointCVec_u8ZZ clone() { * Creates a new C2Tuple_OutPointCVec_u8ZZ from the contained elements. */ public static TwoTuple_OutPointCVec_u8ZZ of(org.ldk.structs.OutPoint a, byte[] b) { - long ret = bindings.C2Tuple_OutPointCVec_u8ZZ_new(a == null ? 0 : a.ptr, InternalUtils.encodeUint8Array(b)); + long ret = Bindings.C2TupleOutPointCVecU8ZzNew(a == null ? 0 : a.ptr, InternalUtils.EncodeUint8Array(b)); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCOption_SocketAddressZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCOption_SocketAddressZZ.cs index 213544aa4..af37ffcbd 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCOption_SocketAddressZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCOption_SocketAddressZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_PublicKeyCOption_SocketAddressZZ : CommonBase { internal TwoTuple_PublicKeyCOption_SocketAddressZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_PublicKeyCOption_SocketAddressZZ() { - if (ptr != 0) { bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TuplePublicKeyCOptionSocketAddressZZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(this.ptr); + long ret = Bindings.C2TuplePublicKeyCOptionSocketAddressZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public Option_SocketAddressZ get_b() { - long ret = bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(this.ptr); + long ret = Bindings.C2TuplePublicKeyCOptionSocketAddressZZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SocketAddressZ ret_hu_conv = org.ldk.structs.Option_SocketAddressZ.constr_from_ptr(ret); @@ -39,7 +39,7 @@ public Option_SocketAddressZ get_b() { } internal long clone_ptr() { - long ret = bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TuplePublicKeyCOptionSocketAddressZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_PublicKeyCOption_SocketAddressZZ clone() { - long ret = bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(this.ptr); + long ret = Bindings.C2TuplePublicKeyCOptionSocketAddressZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_PublicKeyCOption_SocketAddressZZ ret_hu_conv = new TwoTuple_PublicKeyCOption_SocketAddressZZ(null, ret); @@ -61,7 +61,7 @@ public TwoTuple_PublicKeyCOption_SocketAddressZZ clone() { * Creates a new C2Tuple_PublicKeyCOption_SocketAddressZZ from the contained elements. */ public static TwoTuple_PublicKeyCOption_SocketAddressZZ of(byte[] a, org.ldk.structs.Option_SocketAddressZ b) { - long ret = bindings.C2Tuple_PublicKeyCOption_SocketAddressZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), b.ptr); + long ret = Bindings.C2TuplePublicKeyCOptionSocketAddressZZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33)), b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.cs index a6060a838..7ff0b3d39 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_PublicKeyCVec_SocketAddressZZ : CommonBase { internal TwoTuple_PublicKeyCVec_SocketAddressZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_PublicKeyCVec_SocketAddressZZ() { - if (ptr != 0) { bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TuplePublicKeyCVecSocketAddressZZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(this.ptr); + long ret = Bindings.C2TuplePublicKeyCVecSocketAddressZZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,23 +30,23 @@ public byte[] get_a() { * */ public SocketAddress[] get_b() { - long ret = bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(this.ptr); + long ret = Bindings.C2TuplePublicKeyCVecSocketAddressZZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_15_len = InternalUtils.getArrayLength(ret); + int ret_conv_15_len = InternalUtils.GetArrayLength(ret); SocketAddress[] ret_conv_15_arr = new SocketAddress[ret_conv_15_len]; for (int p = 0; p < ret_conv_15_len; p++) { - long ret_conv_15 = InternalUtils.getU64ArrayElem(ret, p); + long ret_conv_15 = InternalUtils.GetU64ArrayElem(ret, p); org.ldk.structs.SocketAddress ret_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret_conv_15); if (ret_conv_15_hu_conv != null) { ret_conv_15_hu_conv.ptrs_to.AddLast(this); }; ret_conv_15_arr[p] = ret_conv_15_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_15_arr; } internal long clone_ptr() { - long ret = bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TuplePublicKeyCVecSocketAddressZZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -56,7 +56,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_PublicKeyCVec_SocketAddressZZ clone() { - long ret = bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(this.ptr); + long ret = Bindings.C2TuplePublicKeyCVecSocketAddressZZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_PublicKeyCVec_SocketAddressZZ ret_hu_conv = new TwoTuple_PublicKeyCVec_SocketAddressZZ(null, ret); @@ -68,7 +68,7 @@ public TwoTuple_PublicKeyCVec_SocketAddressZZ clone() { * Creates a new C2Tuple_PublicKeyCVec_SocketAddressZZ from the contained elements. */ public static TwoTuple_PublicKeyCVec_SocketAddressZZ of(byte[] a, SocketAddress[] b) { - long ret = bindings.C2Tuple_PublicKeyCVec_SocketAddressZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_15 => b_conv_15.ptr))); + long ret = Bindings.C2TuplePublicKeyCVecSocketAddressZZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_15 => b_conv_15.ptr))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs index 812bfe86f..f4144bacd 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_PublicKeyTypeZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_PublicKeyTypeZ : CommonBase { internal TwoTuple_PublicKeyTypeZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_PublicKeyTypeZ() { - if (ptr != 0) { bindings.C2Tuple_PublicKeyTypeZ_free(ptr); } + if (ptr != 0) { Bindings.C2TuplePublicKeyTypeZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr); + long ret = Bindings.C2TuplePublicKeyTypeZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public Type get_b() { - long ret = bindings.C2Tuple_PublicKeyTypeZ_get_b(this.ptr); + long ret = Bindings.C2TuplePublicKeyTypeZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Type ret_hu_conv = new Type(null, ret); @@ -39,7 +39,7 @@ public Type get_b() { } internal long clone_ptr() { - long ret = bindings.C2Tuple_PublicKeyTypeZ_clone_ptr(this.ptr); + long ret = Bindings.C2TuplePublicKeyTypeZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_PublicKeyTypeZ clone() { - long ret = bindings.C2Tuple_PublicKeyTypeZ_clone(this.ptr); + long ret = Bindings.C2TuplePublicKeyTypeZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret); @@ -61,7 +61,7 @@ public TwoTuple_PublicKeyTypeZ clone() { * Creates a new C2Tuple_PublicKeyTypeZ from the contained elements. */ public static TwoTuple_PublicKeyTypeZ of(byte[] a, org.ldk.structs.Type b) { - long ret = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 33)), b.ptr); + long ret = Bindings.C2TuplePublicKeyTypeZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 33)), b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.cs index 7eddc362c..18b8c4213 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ : CommonBase { internal TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,23 +30,23 @@ public byte[] get_a() { * */ public TwoTuple_u32CVec_u8ZZ[] get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_23_len = InternalUtils.getArrayLength(ret); + int ret_conv_23_len = InternalUtils.GetArrayLength(ret); TwoTuple_u32CVec_u8ZZ[] ret_conv_23_arr = new TwoTuple_u32CVec_u8ZZ[ret_conv_23_len]; for (int x = 0; x < ret_conv_23_len; x++) { - long ret_conv_23 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_23 = InternalUtils.GetU64ArrayElem(ret, x); TwoTuple_u32CVec_u8ZZ ret_conv_23_hu_conv = new TwoTuple_u32CVec_u8ZZ(null, ret_conv_23); if (ret_conv_23_hu_conv != null) { ret_conv_23_hu_conv.ptrs_to.AddLast(this); }; ret_conv_23_arr[x] = ret_conv_23_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_23_arr; } internal long clone_ptr() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -56,7 +56,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ clone() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ(null, ret); @@ -68,7 +68,7 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ clone() { * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ of(byte[] a, TwoTuple_u32CVec_u8ZZ[] b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_23 => b_conv_23 != null ? b_conv_23.ptr : 0))); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32CvecU8ZzzzNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_23 => b_conv_23 != null ? b_conv_23.ptr : 0))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.cs index 60bdb6bcd..a1978dd01 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ : CommonBase { internal TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,23 +30,23 @@ public byte[] get_a() { * */ public TwoTuple_u32TxOutZ[] get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_20_len = InternalUtils.getArrayLength(ret); + int ret_conv_20_len = InternalUtils.GetArrayLength(ret); TwoTuple_u32TxOutZ[] ret_conv_20_arr = new TwoTuple_u32TxOutZ[ret_conv_20_len]; for (int u = 0; u < ret_conv_20_len; u++) { - long ret_conv_20 = InternalUtils.getU64ArrayElem(ret, u); + long ret_conv_20 = InternalUtils.GetU64ArrayElem(ret, u); TwoTuple_u32TxOutZ ret_conv_20_hu_conv = new TwoTuple_u32TxOutZ(null, ret_conv_20); if (ret_conv_20_hu_conv != null) { ret_conv_20_hu_conv.ptrs_to.AddLast(this); }; ret_conv_20_arr[u] = ret_conv_20_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_20_arr; } internal long clone_ptr() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -56,7 +56,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ clone() { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ(null, ret); @@ -68,7 +68,7 @@ public TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ clone() { * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ of(byte[] a, TwoTuple_u32TxOutZ[] b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(b, b_conv_20 => b_conv_20 != null ? b_conv_20.ptr : 0))); + long ret = Bindings.C2TupleThirtyTwoBytesCVecC2TupleU32TxoutzzzNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(b, b_conv_20 => b_conv_20 != null ? b_conv_20.ptr : 0))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.cs index 9a04bb1c9..d935b45f1 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesChannelManagerZ : CommonBase { internal TwoTuple_ThirtyTwoBytesChannelManagerZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesChannelManagerZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesChannelManagerZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesChannelManagerZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelManagerZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public ChannelManager get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelManagerZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelManager ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelManager(null, ret); } @@ -42,7 +42,7 @@ public ChannelManager get_b() { * Creates a new C2Tuple_ThirtyTwoBytesChannelManagerZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesChannelManagerZ of(byte[] a, FeeEstimator b_fee_est, Watch b_chain_monitor, BroadcasterInterface b_tx_broadcaster, Router b_router, Logger b_logger, EntropySource b_entropy_source, NodeSigner b_node_signer, SignerProvider b_signer_provider, UserConfig b_config, ChainParameters b_params, int b_current_timestamp) { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelManagerZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), bindings.ChannelManager_new(b_fee_est.ptr, b_chain_monitor.ptr, b_tx_broadcaster.ptr, b_router.ptr, b_logger.ptr, b_entropy_source.ptr, b_node_signer.ptr, b_signer_provider.ptr, b_config == null ? 0 : b_config.ptr, b_params == null ? 0 : b_params.ptr, b_current_timestamp)); + long ret = Bindings.C2TupleThirtyTwoBytesChannelManagerZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), Bindings.ChannelManagerNew(b_fee_est.ptr, b_chain_monitor.ptr, b_tx_broadcaster.ptr, b_router.ptr, b_logger.ptr, b_entropy_source.ptr, b_node_signer.ptr, b_signer_provider.ptr, b_config == null ? 0 : b_config.ptr, b_params == null ? 0 : b_params.ptr, b_current_timestamp)); GC.KeepAlive(a); GC.KeepAlive(b_fee_est); GC.KeepAlive(b_chain_monitor); diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.cs index 822a90b91..0ee13e142 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesChannelMonitorZ : CommonBase { internal TwoTuple_ThirtyTwoBytesChannelMonitorZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesChannelMonitorZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesChannelMonitorZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_a() { * */ public ChannelMonitor get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelMonitor ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelMonitor(null, ret); } @@ -39,7 +39,7 @@ public ChannelMonitor get_b() { } internal long clone_ptr() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ThirtyTwoBytesChannelMonitorZ clone() { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ThirtyTwoBytesChannelMonitorZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesChannelMonitorZ(null, ret); @@ -61,7 +61,7 @@ public TwoTuple_ThirtyTwoBytesChannelMonitorZ clone() { * Creates a new C2Tuple_ThirtyTwoBytesChannelMonitorZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesChannelMonitorZ of(byte[] a, org.ldk.structs.ChannelMonitor b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), b == null ? 0 : b.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), b == null ? 0 : b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.cs index b7874e4ac..03b43ad36 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesPublicKeyZ : CommonBase { internal TwoTuple_ThirtyTwoBytesPublicKeyZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesPublicKeyZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesPublicKeyZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesPublicKeyZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,15 +30,15 @@ public byte[] get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesPublicKeyZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesPublicKeyZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ThirtyTwoBytesPublicKeyZ clone() { - long ret = bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesPublicKeyZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ThirtyTwoBytesPublicKeyZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesPublicKeyZ(null, ret); @@ -60,7 +60,7 @@ public TwoTuple_ThirtyTwoBytesPublicKeyZ clone() { * Creates a new C2Tuple_ThirtyTwoBytesPublicKeyZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesPublicKeyZ of(byte[] a, byte[] b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesPublicKeyZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b, 33))); + long ret = Bindings.C2TupleThirtyTwoBytesPublicKeyZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(b, 33))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.cs index 8c7076ee8..933a2049a 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ : CommonBase { internal TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ() { - if (ptr != 0) { bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,15 +30,15 @@ public byte[] get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ clone() { - long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(this.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ ret_hu_conv = new TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ(null, ret); @@ -60,7 +60,7 @@ public TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ clone() { * Creates a new C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ from the contained elements. */ public static TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ of(byte[] a, byte[] b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(b, 32))); + long ret = Bindings.C2TupleThirtyTwoBytesThirtyTwoBytesZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(b, 32))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple_Z.cs index 692cc2009..780ab0444 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_Z.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_Z : CommonBase { internal TwoTuple_Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_Z() { - if (ptr != 0) { bindings.C2Tuple_Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleZFree(ptr); } } /** * */ public short[] get_a() { - long ret = bindings.C2Tuple_Z_get_a(this.ptr); + long ret = Bindings.C2TupleZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - short[] ret_conv = InternalUtils.decodeUint16Array(ret); + short[] ret_conv = InternalUtils.DecodeUint16Array(ret); return ret_conv; } @@ -30,10 +30,10 @@ public short[] get_a() { * */ public short[] get_b() { - long ret = bindings.C2Tuple_Z_get_b(this.ptr); + long ret = Bindings.C2TupleZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - short[] ret_conv = InternalUtils.decodeUint16Array(ret); + short[] ret_conv = InternalUtils.DecodeUint16Array(ret); return ret_conv; } @@ -41,7 +41,7 @@ public short[] get_b() { * Creates a new C2Tuple_Z from the contained elements. */ public static TwoTuple_Z of(short[] a, short[] b) { - long ret = bindings.C2Tuple_Z_new(InternalUtils.encodeUint16Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint16Array(InternalUtils.check_arr_len(b, 32))); + long ret = Bindings.C2TupleZNew(InternalUtils.EncodeUint16Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint16Array(InternalUtils.CheckArrLen(b, 32))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple__u1632_u1632Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple__u1632_u1632Z.cs index e9237b774..376f868b7 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple__u1632_u1632Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple__u1632_u1632Z.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple__u1632_u1632Z : CommonBase { internal TwoTuple__u1632_u1632Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple__u1632_u1632Z() { - if (ptr != 0) { bindings.C2Tuple__u1632_u1632Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU1632U1632ZFree(ptr); } } /** * */ public short[] get_a() { - long ret = bindings.C2Tuple__u1632_u1632Z_get_a(this.ptr); + long ret = Bindings.C2TupleU1632U1632ZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - short[] ret_conv = InternalUtils.decodeUint16Array(ret); + short[] ret_conv = InternalUtils.DecodeUint16Array(ret); return ret_conv; } @@ -30,10 +30,10 @@ public short[] get_a() { * */ public short[] get_b() { - long ret = bindings.C2Tuple__u1632_u1632Z_get_b(this.ptr); + long ret = Bindings.C2TupleU1632U1632ZGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - short[] ret_conv = InternalUtils.decodeUint16Array(ret); + short[] ret_conv = InternalUtils.DecodeUint16Array(ret); return ret_conv; } @@ -41,7 +41,7 @@ public short[] get_b() { * Creates a new C2Tuple__u1632_u1632Z from the contained elements. */ public static TwoTuple__u1632_u1632Z of(short[] a, short[] b) { - long ret = bindings.C2Tuple__u1632_u1632Z_new(InternalUtils.encodeUint16Array(InternalUtils.check_arr_len(a, 32)), InternalUtils.encodeUint16Array(InternalUtils.check_arr_len(b, 32))); + long ret = Bindings.C2TupleU1632U1632ZNew(InternalUtils.EncodeUint16Array(InternalUtils.CheckArrLen(a, 32)), InternalUtils.EncodeUint16Array(InternalUtils.CheckArrLen(b, 32))); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple__u832u16Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple__u832u16Z.cs index 1c1598e7e..80e5d929e 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple__u832u16Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple__u832u16Z.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple__u832u16Z : CommonBase { internal TwoTuple__u832u16Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple__u832u16Z() { - if (ptr != 0) { bindings.C2Tuple__u832u16Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU832U16ZFree(ptr); } } /** * */ public byte[] get_a() { - long ret = bindings.C2Tuple__u832u16Z_get_a(this.ptr); + long ret = Bindings.C2TupleU832U16ZGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,13 +30,13 @@ public byte[] get_a() { * */ public short get_b() { - short ret = bindings.C2Tuple__u832u16Z_get_b(this.ptr); + short ret = Bindings.C2TupleU832U16ZGetB(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.C2Tuple__u832u16Z_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU832U16ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple__u832u16Z clone() { - long ret = bindings.C2Tuple__u832u16Z_clone(this.ptr); + long ret = Bindings.C2TupleU832U16ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple__u832u16Z ret_hu_conv = new TwoTuple__u832u16Z(null, ret); @@ -58,7 +58,7 @@ public TwoTuple__u832u16Z clone() { * Creates a new C2Tuple__u832u16Z from the contained elements. */ public static TwoTuple__u832u16Z of(byte[] a, short b) { - long ret = bindings.C2Tuple__u832u16Z_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(a, 32)), b); + long ret = Bindings.C2TupleU832U16ZNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(a, 32)), b); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_u32CVec_u8ZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_u32CVec_u8ZZ.cs index 02d0eda3c..c86cfc42f 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_u32CVec_u8ZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_u32CVec_u8ZZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_u32CVec_u8ZZ : CommonBase { internal TwoTuple_u32CVec_u8ZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_u32CVec_u8ZZ() { - if (ptr != 0) { bindings.C2Tuple_u32CVec_u8ZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU32CvecU8ZzFree(ptr); } } /** * */ public int get_a() { - int ret = bindings.C2Tuple_u32CVec_u8ZZ_get_a(this.ptr); + int ret = Bindings.C2TupleU32CvecU8ZzGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,15 +28,15 @@ public int get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_u32CVec_u8ZZ_get_b(this.ptr); + long ret = Bindings.C2TupleU32CvecU8ZzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_u32CVec_u8ZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU32CvecU8ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_u32CVec_u8ZZ clone() { - long ret = bindings.C2Tuple_u32CVec_u8ZZ_clone(this.ptr); + long ret = Bindings.C2TupleU32CvecU8ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_u32CVec_u8ZZ ret_hu_conv = new TwoTuple_u32CVec_u8ZZ(null, ret); @@ -58,7 +58,7 @@ public TwoTuple_u32CVec_u8ZZ clone() { * Creates a new C2Tuple_u32CVec_u8ZZ from the contained elements. */ public static TwoTuple_u32CVec_u8ZZ of(int a, byte[] b) { - long ret = bindings.C2Tuple_u32CVec_u8ZZ_new(a, InternalUtils.encodeUint8Array(b)); + long ret = Bindings.C2TupleU32CvecU8ZzNew(a, InternalUtils.EncodeUint8Array(b)); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_u32TxOutZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_u32TxOutZ.cs index 2489e65e9..ba4d42b6c 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_u32TxOutZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_u32TxOutZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_u32TxOutZ : CommonBase { internal TwoTuple_u32TxOutZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_u32TxOutZ() { - if (ptr != 0) { bindings.C2Tuple_u32TxOutZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU32TxoutzFree(ptr); } } /** * */ public int get_a() { - int ret = bindings.C2Tuple_u32TxOutZ_get_a(this.ptr); + int ret = Bindings.C2TupleU32TxoutzGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,7 +28,7 @@ public int get_a() { * */ public TxOut get_b() { - long ret = bindings.C2Tuple_u32TxOutZ_get_b(this.ptr); + long ret = Bindings.C2TupleU32TxoutzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -36,7 +36,7 @@ public TxOut get_b() { } internal long clone_ptr() { - long ret = bindings.C2Tuple_u32TxOutZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU32TxoutzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_u32TxOutZ clone() { - long ret = bindings.C2Tuple_u32TxOutZ_clone(this.ptr); + long ret = Bindings.C2TupleU32TxoutzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret); @@ -58,7 +58,7 @@ public TwoTuple_u32TxOutZ clone() { * Creates a new C2Tuple_u32TxOutZ from the contained elements. */ public static TwoTuple_u32TxOutZ of(int a, org.ldk.structs.TxOut b) { - long ret = bindings.C2Tuple_u32TxOutZ_new(a, b.ptr); + long ret = Bindings.C2TupleU32TxoutzNew(a, b.ptr); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_u64CVec_u8ZZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_u64CVec_u8ZZ.cs index 89da18d6a..694047c9c 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_u64CVec_u8ZZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_u64CVec_u8ZZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_u64CVec_u8ZZ : CommonBase { internal TwoTuple_u64CVec_u8ZZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_u64CVec_u8ZZ() { - if (ptr != 0) { bindings.C2Tuple_u64CVec_u8ZZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU64CvecU8ZzFree(ptr); } } /** * */ public long get_a() { - long ret = bindings.C2Tuple_u64CVec_u8ZZ_get_a(this.ptr); + long ret = Bindings.C2TupleU64CvecU8ZzGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,15 +28,15 @@ public long get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_u64CVec_u8ZZ_get_b(this.ptr); + long ret = Bindings.C2TupleU64CvecU8ZzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_u64CVec_u8ZZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU64CvecU8ZzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_u64CVec_u8ZZ clone() { - long ret = bindings.C2Tuple_u64CVec_u8ZZ_clone(this.ptr); + long ret = Bindings.C2TupleU64CvecU8ZzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_u64CVec_u8ZZ ret_hu_conv = new TwoTuple_u64CVec_u8ZZ(null, ret); @@ -58,7 +58,7 @@ public TwoTuple_u64CVec_u8ZZ clone() { * Creates a new C2Tuple_u64CVec_u8ZZ from the contained elements. */ public static TwoTuple_u64CVec_u8ZZ of(long a, byte[] b) { - long ret = bindings.C2Tuple_u64CVec_u8ZZ_new(a, InternalUtils.encodeUint8Array(b)); + long ret = Bindings.C2TupleU64CvecU8ZzNew(a, InternalUtils.EncodeUint8Array(b)); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_u64u16Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple_u64u16Z.cs index d227a010f..657887dbe 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_u64u16Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_u64u16Z.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_u64u16Z : CommonBase { internal TwoTuple_u64u16Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_u64u16Z() { - if (ptr != 0) { bindings.C2Tuple_u64u16Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU64U16ZFree(ptr); } } /** * */ public long get_a() { - long ret = bindings.C2Tuple_u64u16Z_get_a(this.ptr); + long ret = Bindings.C2TupleU64U16ZGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,13 +28,13 @@ public long get_a() { * */ public short get_b() { - short ret = bindings.C2Tuple_u64u16Z_get_b(this.ptr); + short ret = Bindings.C2TupleU64U16ZGetB(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.C2Tuple_u64u16Z_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU64U16ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -44,7 +44,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_u64u16Z clone() { - long ret = bindings.C2Tuple_u64u16Z_clone(this.ptr); + long ret = Bindings.C2TupleU64U16ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_u64u16Z ret_hu_conv = new TwoTuple_u64u16Z(null, ret); @@ -56,7 +56,7 @@ public TwoTuple_u64u16Z clone() { * Creates a new C2Tuple_u64u16Z from the contained elements. */ public static TwoTuple_u64u16Z of(long a, short b) { - long ret = bindings.C2Tuple_u64u16Z_new(a, b); + long ret = Bindings.C2TupleU64U16ZNew(a, b); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_u64u64Z.cs b/c_sharp/src/org/ldk/structs/TwoTuple_u64u64Z.cs index 1ceaaa94f..dada2f002 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_u64u64Z.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_u64u64Z.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_u64u64Z : CommonBase { internal TwoTuple_u64u64Z(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_u64u64Z() { - if (ptr != 0) { bindings.C2Tuple_u64u64Z_free(ptr); } + if (ptr != 0) { Bindings.C2TupleU64U64ZFree(ptr); } } /** * */ public long get_a() { - long ret = bindings.C2Tuple_u64u64Z_get_a(this.ptr); + long ret = Bindings.C2TupleU64U64ZGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,13 +28,13 @@ public long get_a() { * */ public long get_b() { - long ret = bindings.C2Tuple_u64u64Z_get_b(this.ptr); + long ret = Bindings.C2TupleU64U64ZGetB(this.ptr); GC.KeepAlive(this); return ret; } internal long clone_ptr() { - long ret = bindings.C2Tuple_u64u64Z_clone_ptr(this.ptr); + long ret = Bindings.C2TupleU64U64ZClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -44,7 +44,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_u64u64Z clone() { - long ret = bindings.C2Tuple_u64u64Z_clone(this.ptr); + long ret = Bindings.C2TupleU64U64ZClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_u64u64Z ret_hu_conv = new TwoTuple_u64u64Z(null, ret); @@ -56,7 +56,7 @@ public TwoTuple_u64u64Z clone() { * Creates a new C2Tuple_u64u64Z from the contained elements. */ public static TwoTuple_u64u64Z of(long a, long b) { - long ret = bindings.C2Tuple_u64u64Z_new(a, b); + long ret = Bindings.C2TupleU64U64ZNew(a, b); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_usizeTransactionZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_usizeTransactionZ.cs index 5ca0200e5..8d65ce114 100644 --- a/c_sharp/src/org/ldk/structs/TwoTuple_usizeTransactionZ.cs +++ b/c_sharp/src/org/ldk/structs/TwoTuple_usizeTransactionZ.cs @@ -12,14 +12,14 @@ namespace org { namespace ldk { namespace structs { public class TwoTuple_usizeTransactionZ : CommonBase { internal TwoTuple_usizeTransactionZ(object _dummy, long ptr) : base(ptr) { } ~TwoTuple_usizeTransactionZ() { - if (ptr != 0) { bindings.C2Tuple_usizeTransactionZ_free(ptr); } + if (ptr != 0) { Bindings.C2TupleUsizetransactionzFree(ptr); } } /** * */ public long get_a() { - long ret = bindings.C2Tuple_usizeTransactionZ_get_a(this.ptr); + long ret = Bindings.C2TupleUsizetransactionzGetA(this.ptr); GC.KeepAlive(this); return ret; } @@ -28,15 +28,15 @@ public long get_a() { * */ public byte[] get_b() { - long ret = bindings.C2Tuple_usizeTransactionZ_get_b(this.ptr); + long ret = Bindings.C2TupleUsizetransactionzGetB(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.C2Tuple_usizeTransactionZ_clone_ptr(this.ptr); + long ret = Bindings.C2TupleUsizetransactionzClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -46,7 +46,7 @@ internal long clone_ptr() { * but with all dynamically-allocated buffers duplicated in new buffers. */ public TwoTuple_usizeTransactionZ clone() { - long ret = bindings.C2Tuple_usizeTransactionZ_clone(this.ptr); + long ret = Bindings.C2TupleUsizetransactionzClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TwoTuple_usizeTransactionZ ret_hu_conv = new TwoTuple_usizeTransactionZ(null, ret); @@ -58,7 +58,7 @@ public TwoTuple_usizeTransactionZ clone() { * Creates a new C2Tuple_usizeTransactionZ from the contained elements. */ public static TwoTuple_usizeTransactionZ of(long a, byte[] b) { - long ret = bindings.C2Tuple_usizeTransactionZ_new(a, InternalUtils.encodeUint8Array(b)); + long ret = Bindings.C2TupleUsizetransactionzNew(a, InternalUtils.EncodeUint8Array(b)); GC.KeepAlive(a); GC.KeepAlive(b); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/TxAbort.cs b/c_sharp/src/org/ldk/structs/TxAbort.cs index 47f24a72a..a52c15eb3 100644 --- a/c_sharp/src/org/ldk/structs/TxAbort.cs +++ b/c_sharp/src/org/ldk/structs/TxAbort.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TxAbort : CommonBase { internal TxAbort(object _dummy, long ptr) : base(ptr) { } ~TxAbort() { - if (ptr != 0) { bindings.TxAbort_free(ptr); } + if (ptr != 0) { Bindings.TxAbortFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxAbort_get_channel_id(this.ptr); + long ret = Bindings.TxAbortGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxAbort_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxAbortSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,10 +41,10 @@ public void set_channel_id(byte[] val) { * Returns a copy of the field. */ public byte[] get_data() { - long ret = bindings.TxAbort_get_data(this.ptr); + long ret = Bindings.TxAbortGetData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -52,7 +52,7 @@ public byte[] get_data() { * Message data */ public void set_data(byte[] val) { - bindings.TxAbort_set_data(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.TxAbortSetData(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -61,7 +61,7 @@ public void set_data(byte[] val) { * Constructs a new TxAbort given each field */ public static TxAbort of(byte[] channel_id_arg, byte[] data_arg) { - long ret = bindings.TxAbort_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(data_arg)); + long ret = Bindings.TxAbortNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(data_arg)); GC.KeepAlive(channel_id_arg); GC.KeepAlive(data_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -71,7 +71,7 @@ public static TxAbort of(byte[] channel_id_arg, byte[] data_arg) { } internal long clone_ptr() { - long ret = bindings.TxAbort_clone_ptr(this.ptr); + long ret = Bindings.TxAbortClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -80,7 +80,7 @@ internal long clone_ptr() { * Creates a copy of the TxAbort */ public TxAbort clone() { - long ret = bindings.TxAbort_clone(this.ptr); + long ret = Bindings.TxAbortClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxAbort ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxAbort(null, ret); } @@ -92,7 +92,7 @@ public TxAbort clone() { * Generates a non-cryptographic 64-bit hash of the TxAbort. */ public long hash() { - long ret = bindings.TxAbort_hash(this.ptr); + long ret = Bindings.TxAbortHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxAbort b) { - bool ret = bindings.TxAbort_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxAbortEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -121,10 +121,10 @@ public override bool Equals(object o) { * Serialize the TxAbort object into a byte array which can be read by TxAbort_read */ public byte[] write() { - long ret = bindings.TxAbort_write(this.ptr); + long ret = Bindings.TxAbortWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -132,7 +132,7 @@ public byte[] write() { * Read a TxAbort from a byte array, created by TxAbort_write */ public static Result_TxAbortDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxAbort_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxAbortRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAbortDecodeErrorZ ret_hu_conv = Result_TxAbortDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxAckRbf.cs b/c_sharp/src/org/ldk/structs/TxAckRbf.cs index 43dec5a54..12aa006a3 100644 --- a/c_sharp/src/org/ldk/structs/TxAckRbf.cs +++ b/c_sharp/src/org/ldk/structs/TxAckRbf.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class TxAckRbf : CommonBase { internal TxAckRbf(object _dummy, long ptr) : base(ptr) { } ~TxAckRbf() { - if (ptr != 0) { bindings.TxAckRbf_free(ptr); } + if (ptr != 0) { Bindings.TxAckRbfFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxAckRbf_get_channel_id(this.ptr); + long ret = Bindings.TxAckRbfGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxAckRbf_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxAckRbfSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * (e.g. splice-out) the funding output of the transaction */ public Option_i64Z get_funding_output_contribution() { - long ret = bindings.TxAckRbf_get_funding_output_contribution(this.ptr); + long ret = Bindings.TxAckRbfGetFundingOutputContribution(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_i64Z ret_hu_conv = org.ldk.structs.Option_i64Z.constr_from_ptr(ret); @@ -54,7 +54,7 @@ public Option_i64Z get_funding_output_contribution() { * (e.g. splice-out) the funding output of the transaction */ public void set_funding_output_contribution(org.ldk.structs.Option_i64Z val) { - bindings.TxAckRbf_set_funding_output_contribution(this.ptr, val.ptr); + Bindings.TxAckRbfSetFundingOutputContribution(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -64,7 +64,7 @@ public void set_funding_output_contribution(org.ldk.structs.Option_i64Z val) { * Constructs a new TxAckRbf given each field */ public static TxAckRbf of(byte[] channel_id_arg, org.ldk.structs.Option_i64Z funding_output_contribution_arg) { - long ret = bindings.TxAckRbf_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), funding_output_contribution_arg.ptr); + long ret = Bindings.TxAckRbfNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), funding_output_contribution_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(funding_output_contribution_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -75,7 +75,7 @@ public static TxAckRbf of(byte[] channel_id_arg, org.ldk.structs.Option_i64Z fun } internal long clone_ptr() { - long ret = bindings.TxAckRbf_clone_ptr(this.ptr); + long ret = Bindings.TxAckRbfClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ internal long clone_ptr() { * Creates a copy of the TxAckRbf */ public TxAckRbf clone() { - long ret = bindings.TxAckRbf_clone(this.ptr); + long ret = Bindings.TxAckRbfClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxAckRbf ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxAckRbf(null, ret); } @@ -96,7 +96,7 @@ public TxAckRbf clone() { * Generates a non-cryptographic 64-bit hash of the TxAckRbf. */ public long hash() { - long ret = bindings.TxAckRbf_hash(this.ptr); + long ret = Bindings.TxAckRbfHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxAckRbf b) { - bool ret = bindings.TxAckRbf_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxAckRbfEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -125,10 +125,10 @@ public override bool Equals(object o) { * Serialize the TxAckRbf object into a byte array which can be read by TxAckRbf_read */ public byte[] write() { - long ret = bindings.TxAckRbf_write(this.ptr); + long ret = Bindings.TxAckRbfWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -136,7 +136,7 @@ public byte[] write() { * Read a TxAckRbf from a byte array, created by TxAckRbf_write */ public static Result_TxAckRbfDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxAckRbf_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxAckRbfRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAckRbfDecodeErrorZ ret_hu_conv = Result_TxAckRbfDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxAddInput.cs b/c_sharp/src/org/ldk/structs/TxAddInput.cs index 338a04a76..ca7310ef4 100644 --- a/c_sharp/src/org/ldk/structs/TxAddInput.cs +++ b/c_sharp/src/org/ldk/structs/TxAddInput.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TxAddInput : CommonBase { internal TxAddInput(object _dummy, long ptr) : base(ptr) { } ~TxAddInput() { - if (ptr != 0) { bindings.TxAddInput_free(ptr); } + if (ptr != 0) { Bindings.TxAddInputFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxAddInput_get_channel_id(this.ptr); + long ret = Bindings.TxAddInputGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxAddInput_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxAddInputSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_channel_id(byte[] val) { * non-initiators. */ public long get_serial_id() { - long ret = bindings.TxAddInput_get_serial_id(this.ptr); + long ret = Bindings.TxAddInputGetSerialId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_serial_id() { * non-initiators. */ public void set_serial_id(long val) { - bindings.TxAddInput_set_serial_id(this.ptr, val); + Bindings.TxAddInputSetSerialId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -60,7 +60,7 @@ public void set_serial_id(long val) { * malleable. */ public TransactionU16LenLimited get_prevtx() { - long ret = bindings.TxAddInput_get_prevtx(this.ptr); + long ret = Bindings.TxAddInputGetPrevtx(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TransactionU16LenLimited ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TransactionU16LenLimited(null, ret); } @@ -73,7 +73,7 @@ public TransactionU16LenLimited get_prevtx() { * malleable. */ public void set_prevtx(org.ldk.structs.TransactionU16LenLimited val) { - bindings.TxAddInput_set_prevtx(this.ptr, val == null ? 0 : val.ptr); + Bindings.TxAddInputSetPrevtx(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -83,7 +83,7 @@ public void set_prevtx(org.ldk.structs.TransactionU16LenLimited val) { * The index of the output being spent */ public int get_prevtx_out() { - int ret = bindings.TxAddInput_get_prevtx_out(this.ptr); + int ret = Bindings.TxAddInputGetPrevtxOut(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,7 +92,7 @@ public int get_prevtx_out() { * The index of the output being spent */ public void set_prevtx_out(int val) { - bindings.TxAddInput_set_prevtx_out(this.ptr, val); + Bindings.TxAddInputSetPrevtxOut(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -101,7 +101,7 @@ public void set_prevtx_out(int val) { * The sequence number of this input */ public int get_sequence() { - int ret = bindings.TxAddInput_get_sequence(this.ptr); + int ret = Bindings.TxAddInputGetSequence(this.ptr); GC.KeepAlive(this); return ret; } @@ -110,7 +110,7 @@ public int get_sequence() { * The sequence number of this input */ public void set_sequence(int val) { - bindings.TxAddInput_set_sequence(this.ptr, val); + Bindings.TxAddInputSetSequence(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -119,7 +119,7 @@ public void set_sequence(int val) { * Constructs a new TxAddInput given each field */ public static TxAddInput of(byte[] channel_id_arg, long serial_id_arg, org.ldk.structs.TransactionU16LenLimited prevtx_arg, int prevtx_out_arg, int sequence_arg) { - long ret = bindings.TxAddInput_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), serial_id_arg, prevtx_arg == null ? 0 : prevtx_arg.ptr, prevtx_out_arg, sequence_arg); + long ret = Bindings.TxAddInputNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), serial_id_arg, prevtx_arg == null ? 0 : prevtx_arg.ptr, prevtx_out_arg, sequence_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(serial_id_arg); GC.KeepAlive(prevtx_arg); @@ -133,7 +133,7 @@ public static TxAddInput of(byte[] channel_id_arg, long serial_id_arg, org.ldk.s } internal long clone_ptr() { - long ret = bindings.TxAddInput_clone_ptr(this.ptr); + long ret = Bindings.TxAddInputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -142,7 +142,7 @@ internal long clone_ptr() { * Creates a copy of the TxAddInput */ public TxAddInput clone() { - long ret = bindings.TxAddInput_clone(this.ptr); + long ret = Bindings.TxAddInputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxAddInput ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxAddInput(null, ret); } @@ -154,7 +154,7 @@ public TxAddInput clone() { * Generates a non-cryptographic 64-bit hash of the TxAddInput. */ public long hash() { - long ret = bindings.TxAddInput_hash(this.ptr); + long ret = Bindings.TxAddInputHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -168,7 +168,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxAddInput b) { - bool ret = bindings.TxAddInput_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxAddInputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -183,10 +183,10 @@ public override bool Equals(object o) { * Serialize the TxAddInput object into a byte array which can be read by TxAddInput_read */ public byte[] write() { - long ret = bindings.TxAddInput_write(this.ptr); + long ret = Bindings.TxAddInputWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -194,7 +194,7 @@ public byte[] write() { * Read a TxAddInput from a byte array, created by TxAddInput_write */ public static Result_TxAddInputDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxAddInput_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxAddInputRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddInputDecodeErrorZ ret_hu_conv = Result_TxAddInputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxAddOutput.cs b/c_sharp/src/org/ldk/structs/TxAddOutput.cs index 01d0d9473..33ab98522 100644 --- a/c_sharp/src/org/ldk/structs/TxAddOutput.cs +++ b/c_sharp/src/org/ldk/structs/TxAddOutput.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TxAddOutput : CommonBase { internal TxAddOutput(object _dummy, long ptr) : base(ptr) { } ~TxAddOutput() { - if (ptr != 0) { bindings.TxAddOutput_free(ptr); } + if (ptr != 0) { Bindings.TxAddOutputFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxAddOutput_get_channel_id(this.ptr); + long ret = Bindings.TxAddOutputGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxAddOutput_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxAddOutputSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_channel_id(byte[] val) { * non-initiators. */ public long get_serial_id() { - long ret = bindings.TxAddOutput_get_serial_id(this.ptr); + long ret = Bindings.TxAddOutputGetSerialId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_serial_id() { * non-initiators. */ public void set_serial_id(long val) { - bindings.TxAddOutput_set_serial_id(this.ptr, val); + Bindings.TxAddOutputSetSerialId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_serial_id(long val) { * The satoshi value of the output */ public long get_sats() { - long ret = bindings.TxAddOutput_get_sats(this.ptr); + long ret = Bindings.TxAddOutputGetSats(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public long get_sats() { * The satoshi value of the output */ public void set_sats(long val) { - bindings.TxAddOutput_set_sats(this.ptr, val); + Bindings.TxAddOutputSetSats(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,10 +77,10 @@ public void set_sats(long val) { * The scriptPubKey for the output */ public byte[] get_script() { - long ret = bindings.TxAddOutput_get_script(this.ptr); + long ret = Bindings.TxAddOutputGetScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -88,7 +88,7 @@ public byte[] get_script() { * The scriptPubKey for the output */ public void set_script(byte[] val) { - bindings.TxAddOutput_set_script(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.TxAddOutputSetScript(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_script(byte[] val) { * Constructs a new TxAddOutput given each field */ public static TxAddOutput of(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg) { - long ret = bindings.TxAddOutput_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), serial_id_arg, sats_arg, InternalUtils.encodeUint8Array(script_arg)); + long ret = Bindings.TxAddOutputNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), serial_id_arg, sats_arg, InternalUtils.EncodeUint8Array(script_arg)); GC.KeepAlive(channel_id_arg); GC.KeepAlive(serial_id_arg); GC.KeepAlive(sats_arg); @@ -109,7 +109,7 @@ public static TxAddOutput of(byte[] channel_id_arg, long serial_id_arg, long sat } internal long clone_ptr() { - long ret = bindings.TxAddOutput_clone_ptr(this.ptr); + long ret = Bindings.TxAddOutputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -118,7 +118,7 @@ internal long clone_ptr() { * Creates a copy of the TxAddOutput */ public TxAddOutput clone() { - long ret = bindings.TxAddOutput_clone(this.ptr); + long ret = Bindings.TxAddOutputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxAddOutput ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxAddOutput(null, ret); } @@ -130,7 +130,7 @@ public TxAddOutput clone() { * Generates a non-cryptographic 64-bit hash of the TxAddOutput. */ public long hash() { - long ret = bindings.TxAddOutput_hash(this.ptr); + long ret = Bindings.TxAddOutputHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -144,7 +144,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxAddOutput b) { - bool ret = bindings.TxAddOutput_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxAddOutputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -159,10 +159,10 @@ public override bool Equals(object o) { * Serialize the TxAddOutput object into a byte array which can be read by TxAddOutput_read */ public byte[] write() { - long ret = bindings.TxAddOutput_write(this.ptr); + long ret = Bindings.TxAddOutputWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -170,7 +170,7 @@ public byte[] write() { * Read a TxAddOutput from a byte array, created by TxAddOutput_write */ public static Result_TxAddOutputDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxAddOutput_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxAddOutputRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxAddOutputDecodeErrorZ ret_hu_conv = Result_TxAddOutputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxComplete.cs b/c_sharp/src/org/ldk/structs/TxComplete.cs index 783ef5552..94054cc7b 100644 --- a/c_sharp/src/org/ldk/structs/TxComplete.cs +++ b/c_sharp/src/org/ldk/structs/TxComplete.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class TxComplete : CommonBase { internal TxComplete(object _dummy, long ptr) : base(ptr) { } ~TxComplete() { - if (ptr != 0) { bindings.TxComplete_free(ptr); } + if (ptr != 0) { Bindings.TxCompleteFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxComplete_get_channel_id(this.ptr); + long ret = Bindings.TxCompleteGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxComplete_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxCompleteSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_channel_id(byte[] val) { * Constructs a new TxComplete given each field */ public static TxComplete of(byte[] channel_id_arg) { - long ret = bindings.TxComplete_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32))); + long ret = Bindings.TxCompleteNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32))); GC.KeepAlive(channel_id_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxComplete ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxComplete(null, ret); } @@ -49,7 +49,7 @@ public static TxComplete of(byte[] channel_id_arg) { } internal long clone_ptr() { - long ret = bindings.TxComplete_clone_ptr(this.ptr); + long ret = Bindings.TxCompleteClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -58,7 +58,7 @@ internal long clone_ptr() { * Creates a copy of the TxComplete */ public TxComplete clone() { - long ret = bindings.TxComplete_clone(this.ptr); + long ret = Bindings.TxCompleteClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxComplete ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxComplete(null, ret); } @@ -70,7 +70,7 @@ public TxComplete clone() { * Generates a non-cryptographic 64-bit hash of the TxComplete. */ public long hash() { - long ret = bindings.TxComplete_hash(this.ptr); + long ret = Bindings.TxCompleteHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,7 +84,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxComplete b) { - bool ret = bindings.TxComplete_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxCompleteEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -99,10 +99,10 @@ public override bool Equals(object o) { * Serialize the TxComplete object into a byte array which can be read by TxComplete_read */ public byte[] write() { - long ret = bindings.TxComplete_write(this.ptr); + long ret = Bindings.TxCompleteWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -110,7 +110,7 @@ public byte[] write() { * Read a TxComplete from a byte array, created by TxComplete_write */ public static Result_TxCompleteDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxComplete_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxCompleteRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCompleteDecodeErrorZ ret_hu_conv = Result_TxCompleteDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxCreationKeys.cs b/c_sharp/src/org/ldk/structs/TxCreationKeys.cs index 58b6f6ab3..21d473201 100644 --- a/c_sharp/src/org/ldk/structs/TxCreationKeys.cs +++ b/c_sharp/src/org/ldk/structs/TxCreationKeys.cs @@ -22,17 +22,17 @@ namespace org { namespace ldk { namespace structs { public class TxCreationKeys : CommonBase { internal TxCreationKeys(object _dummy, long ptr) : base(ptr) { } ~TxCreationKeys() { - if (ptr != 0) { bindings.TxCreationKeys_free(ptr); } + if (ptr != 0) { Bindings.TxCreationKeysFree(ptr); } } /** * The broadcaster's per-commitment public key which was used to derive the other keys. */ public byte[] get_per_commitment_point() { - long ret = bindings.TxCreationKeys_get_per_commitment_point(this.ptr); + long ret = Bindings.TxCreationKeysGetPerCommitmentPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -40,7 +40,7 @@ public byte[] get_per_commitment_point() { * The broadcaster's per-commitment public key which was used to derive the other keys. */ public void set_per_commitment_point(byte[] val) { - bindings.TxCreationKeys_set_per_commitment_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.TxCreationKeysSetPerCommitmentPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -51,7 +51,7 @@ public void set_per_commitment_point(byte[] val) { * an old state. */ public RevocationKey get_revocation_key() { - long ret = bindings.TxCreationKeys_get_revocation_key(this.ptr); + long ret = Bindings.TxCreationKeysGetRevocationKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.RevocationKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RevocationKey(null, ret); } @@ -65,7 +65,7 @@ public RevocationKey get_revocation_key() { * an old state. */ public void set_revocation_key(org.ldk.structs.RevocationKey val) { - bindings.TxCreationKeys_set_revocation_key(this.ptr, val == null ? 0 : val.ptr); + Bindings.TxCreationKeysSetRevocationKey(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -75,7 +75,7 @@ public void set_revocation_key(org.ldk.structs.RevocationKey val) { * Broadcaster's HTLC Key */ public HtlcKey get_broadcaster_htlc_key() { - long ret = bindings.TxCreationKeys_get_broadcaster_htlc_key(this.ptr); + long ret = Bindings.TxCreationKeysGetBroadcasterHtlcKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcKey(null, ret); } @@ -87,7 +87,7 @@ public HtlcKey get_broadcaster_htlc_key() { * Broadcaster's HTLC Key */ public void set_broadcaster_htlc_key(org.ldk.structs.HtlcKey val) { - bindings.TxCreationKeys_set_broadcaster_htlc_key(this.ptr, val == null ? 0 : val.ptr); + Bindings.TxCreationKeysSetBroadcasterHtlcKey(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -97,7 +97,7 @@ public void set_broadcaster_htlc_key(org.ldk.structs.HtlcKey val) { * Countersignatory's HTLC Key */ public HtlcKey get_countersignatory_htlc_key() { - long ret = bindings.TxCreationKeys_get_countersignatory_htlc_key(this.ptr); + long ret = Bindings.TxCreationKeysGetCountersignatoryHtlcKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.HtlcKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.HtlcKey(null, ret); } @@ -109,7 +109,7 @@ public HtlcKey get_countersignatory_htlc_key() { * Countersignatory's HTLC Key */ public void set_countersignatory_htlc_key(org.ldk.structs.HtlcKey val) { - bindings.TxCreationKeys_set_countersignatory_htlc_key(this.ptr, val == null ? 0 : val.ptr); + Bindings.TxCreationKeysSetCountersignatoryHtlcKey(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -119,7 +119,7 @@ public void set_countersignatory_htlc_key(org.ldk.structs.HtlcKey val) { * Broadcaster's Payment Key (which isn't allowed to be spent from for some delay) */ public DelayedPaymentKey get_broadcaster_delayed_payment_key() { - long ret = bindings.TxCreationKeys_get_broadcaster_delayed_payment_key(this.ptr); + long ret = Bindings.TxCreationKeysGetBroadcasterDelayedPaymentKey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.DelayedPaymentKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DelayedPaymentKey(null, ret); } @@ -131,7 +131,7 @@ public DelayedPaymentKey get_broadcaster_delayed_payment_key() { * Broadcaster's Payment Key (which isn't allowed to be spent from for some delay) */ public void set_broadcaster_delayed_payment_key(org.ldk.structs.DelayedPaymentKey val) { - bindings.TxCreationKeys_set_broadcaster_delayed_payment_key(this.ptr, val == null ? 0 : val.ptr); + Bindings.TxCreationKeysSetBroadcasterDelayedPaymentKey(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -141,7 +141,7 @@ public void set_broadcaster_delayed_payment_key(org.ldk.structs.DelayedPaymentKe * Constructs a new TxCreationKeys given each field */ public static TxCreationKeys of(byte[] per_commitment_point_arg, org.ldk.structs.RevocationKey revocation_key_arg, org.ldk.structs.HtlcKey broadcaster_htlc_key_arg, org.ldk.structs.HtlcKey countersignatory_htlc_key_arg, org.ldk.structs.DelayedPaymentKey broadcaster_delayed_payment_key_arg) { - long ret = bindings.TxCreationKeys_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point_arg, 33)), revocation_key_arg == null ? 0 : revocation_key_arg.ptr, broadcaster_htlc_key_arg == null ? 0 : broadcaster_htlc_key_arg.ptr, countersignatory_htlc_key_arg == null ? 0 : countersignatory_htlc_key_arg.ptr, broadcaster_delayed_payment_key_arg == null ? 0 : broadcaster_delayed_payment_key_arg.ptr); + long ret = Bindings.TxCreationKeysNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point_arg, 33)), revocation_key_arg == null ? 0 : revocation_key_arg.ptr, broadcaster_htlc_key_arg == null ? 0 : broadcaster_htlc_key_arg.ptr, countersignatory_htlc_key_arg == null ? 0 : countersignatory_htlc_key_arg.ptr, broadcaster_delayed_payment_key_arg == null ? 0 : broadcaster_delayed_payment_key_arg.ptr); GC.KeepAlive(per_commitment_point_arg); GC.KeepAlive(revocation_key_arg); GC.KeepAlive(broadcaster_htlc_key_arg); @@ -163,7 +163,7 @@ public static TxCreationKeys of(byte[] per_commitment_point_arg, org.ldk.structs * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxCreationKeys b) { - bool ret = bindings.TxCreationKeys_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxCreationKeysEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -175,7 +175,7 @@ public override bool Equals(object o) { return this.eq((TxCreationKeys)o); } internal long clone_ptr() { - long ret = bindings.TxCreationKeys_clone_ptr(this.ptr); + long ret = Bindings.TxCreationKeysClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -184,7 +184,7 @@ internal long clone_ptr() { * Creates a copy of the TxCreationKeys */ public TxCreationKeys clone() { - long ret = bindings.TxCreationKeys_clone(this.ptr); + long ret = Bindings.TxCreationKeysClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxCreationKeys ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxCreationKeys(null, ret); } @@ -196,10 +196,10 @@ public TxCreationKeys clone() { * Serialize the TxCreationKeys object into a byte array which can be read by TxCreationKeys_read */ public byte[] write() { - long ret = bindings.TxCreationKeys_write(this.ptr); + long ret = Bindings.TxCreationKeysWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -207,7 +207,7 @@ public byte[] write() { * Read a TxCreationKeys from a byte array, created by TxCreationKeys_write */ public static Result_TxCreationKeysDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxCreationKeys_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxCreationKeysRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret); @@ -219,7 +219,7 @@ public static Result_TxCreationKeysDecodeErrorZ read(byte[] ser) { * Key set is asymmetric and can't be used as part of counter-signatory set of transactions. */ public static TxCreationKeys derive_new(byte[] per_commitment_point, org.ldk.structs.DelayedPaymentBasepoint broadcaster_delayed_payment_base, org.ldk.structs.HtlcBasepoint broadcaster_htlc_base, org.ldk.structs.RevocationBasepoint countersignatory_revocation_base, org.ldk.structs.HtlcBasepoint countersignatory_htlc_base) { - long ret = bindings.TxCreationKeys_derive_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)), broadcaster_delayed_payment_base == null ? 0 : broadcaster_delayed_payment_base.ptr, broadcaster_htlc_base == null ? 0 : broadcaster_htlc_base.ptr, countersignatory_revocation_base == null ? 0 : countersignatory_revocation_base.ptr, countersignatory_htlc_base == null ? 0 : countersignatory_htlc_base.ptr); + long ret = Bindings.TxCreationKeysDeriveNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33)), broadcaster_delayed_payment_base == null ? 0 : broadcaster_delayed_payment_base.ptr, broadcaster_htlc_base == null ? 0 : broadcaster_htlc_base.ptr, countersignatory_revocation_base == null ? 0 : countersignatory_revocation_base.ptr, countersignatory_htlc_base == null ? 0 : countersignatory_htlc_base.ptr); GC.KeepAlive(per_commitment_point); GC.KeepAlive(broadcaster_delayed_payment_base); GC.KeepAlive(broadcaster_htlc_base); @@ -240,7 +240,7 @@ public static TxCreationKeys derive_new(byte[] per_commitment_point, org.ldk.str * Key set is asymmetric and can't be used as part of counter-signatory set of transactions. */ public static TxCreationKeys from_channel_static_keys(byte[] per_commitment_point, org.ldk.structs.ChannelPublicKeys broadcaster_keys, org.ldk.structs.ChannelPublicKeys countersignatory_keys) { - long ret = bindings.TxCreationKeys_from_channel_static_keys(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)), broadcaster_keys == null ? 0 : broadcaster_keys.ptr, countersignatory_keys == null ? 0 : countersignatory_keys.ptr); + long ret = Bindings.TxCreationKeysFromChannelStaticKeys(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33)), broadcaster_keys == null ? 0 : broadcaster_keys.ptr, countersignatory_keys == null ? 0 : countersignatory_keys.ptr); GC.KeepAlive(per_commitment_point); GC.KeepAlive(broadcaster_keys); GC.KeepAlive(countersignatory_keys); diff --git a/c_sharp/src/org/ldk/structs/TxIn.cs b/c_sharp/src/org/ldk/structs/TxIn.cs index 604c428f5..6ac6ac7fa 100644 --- a/c_sharp/src/org/ldk/structs/TxIn.cs +++ b/c_sharp/src/org/ldk/structs/TxIn.cs @@ -18,16 +18,16 @@ public class TxIn : CommonBase { public readonly int previous_vout; internal TxIn(object _dummy, long ptr) : base(ptr) { - this.witness = InternalUtils.decodeUint8Array(bindings.TxIn_get_witness(ptr)); - this.script_sig = InternalUtils.decodeUint8Array(bindings.TxIn_get_script_sig(ptr)); - this.sequence = bindings.TxIn_get_sequence(ptr); - this.previous_txid = InternalUtils.decodeUint8Array(bindings.TxIn_get_previous_txid(ptr)); - this.previous_vout = bindings.TxIn_get_previous_vout(ptr); + this.witness = InternalUtils.DecodeUint8Array(Bindings.TxInGetWitness(ptr)); + this.script_sig = InternalUtils.DecodeUint8Array(Bindings.TxInGetScriptSig(ptr)); + this.sequence = Bindings.TxInGetSequence(ptr); + this.previous_txid = InternalUtils.DecodeUint8Array(Bindings.TxInGetPreviousTxid(ptr)); + this.previous_vout = Bindings.TxInGetPreviousVout(ptr); } public TxIn(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout) - : this(null, bindings.TxIn_new(InternalUtils.encodeUint8Array(witness), InternalUtils.encodeUint8Array(script_sig), sequence, InternalUtils.encodeUint8Array(previous_txid), previous_vout)) {} + : this(null, Bindings.TxInNew(InternalUtils.EncodeUint8Array(witness), InternalUtils.EncodeUint8Array(script_sig), sequence, InternalUtils.EncodeUint8Array(previous_txid), previous_vout)) {} ~TxIn() { - if (ptr != 0) { bindings.TxIn_free(ptr); } + if (ptr != 0) { Bindings.TxInFree(ptr); } } }} } } diff --git a/c_sharp/src/org/ldk/structs/TxInitRbf.cs b/c_sharp/src/org/ldk/structs/TxInitRbf.cs index 7e930f3ee..782a06b1f 100644 --- a/c_sharp/src/org/ldk/structs/TxInitRbf.cs +++ b/c_sharp/src/org/ldk/structs/TxInitRbf.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class TxInitRbf : CommonBase { internal TxInitRbf(object _dummy, long ptr) : base(ptr) { } ~TxInitRbf() { - if (ptr != 0) { bindings.TxInitRbf_free(ptr); } + if (ptr != 0) { Bindings.TxInitRbfFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxInitRbf_get_channel_id(this.ptr); + long ret = Bindings.TxInitRbfGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxInitRbf_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxInitRbfSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,7 +40,7 @@ public void set_channel_id(byte[] val) { * The locktime of the transaction */ public int get_locktime() { - int ret = bindings.TxInitRbf_get_locktime(this.ptr); + int ret = Bindings.TxInitRbfGetLocktime(this.ptr); GC.KeepAlive(this); return ret; } @@ -49,7 +49,7 @@ public int get_locktime() { * The locktime of the transaction */ public void set_locktime(int val) { - bindings.TxInitRbf_set_locktime(this.ptr, val); + Bindings.TxInitRbfSetLocktime(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -58,7 +58,7 @@ public void set_locktime(int val) { * The feerate of the transaction */ public int get_feerate_sat_per_1000_weight() { - int ret = bindings.TxInitRbf_get_feerate_sat_per_1000_weight(this.ptr); + int ret = Bindings.TxInitRbfGetFeerateSatPer1000Weight(this.ptr); GC.KeepAlive(this); return ret; } @@ -67,7 +67,7 @@ public int get_feerate_sat_per_1000_weight() { * The feerate of the transaction */ public void set_feerate_sat_per_1000_weight(int val) { - bindings.TxInitRbf_set_feerate_sat_per_1000_weight(this.ptr, val); + Bindings.TxInitRbfSetFeerateSatPer1000Weight(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,7 +77,7 @@ public void set_feerate_sat_per_1000_weight(int val) { * (e.g. splice-out) the funding output of the transaction */ public Option_i64Z get_funding_output_contribution() { - long ret = bindings.TxInitRbf_get_funding_output_contribution(this.ptr); + long ret = Bindings.TxInitRbfGetFundingOutputContribution(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_i64Z ret_hu_conv = org.ldk.structs.Option_i64Z.constr_from_ptr(ret); @@ -90,7 +90,7 @@ public Option_i64Z get_funding_output_contribution() { * (e.g. splice-out) the funding output of the transaction */ public void set_funding_output_contribution(org.ldk.structs.Option_i64Z val) { - bindings.TxInitRbf_set_funding_output_contribution(this.ptr, val.ptr); + Bindings.TxInitRbfSetFundingOutputContribution(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -100,7 +100,7 @@ public void set_funding_output_contribution(org.ldk.structs.Option_i64Z val) { * Constructs a new TxInitRbf given each field */ public static TxInitRbf of(byte[] channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, org.ldk.structs.Option_i64Z funding_output_contribution_arg) { - long ret = bindings.TxInitRbf_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), locktime_arg, feerate_sat_per_1000_weight_arg, funding_output_contribution_arg.ptr); + long ret = Bindings.TxInitRbfNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), locktime_arg, feerate_sat_per_1000_weight_arg, funding_output_contribution_arg.ptr); GC.KeepAlive(channel_id_arg); GC.KeepAlive(locktime_arg); GC.KeepAlive(feerate_sat_per_1000_weight_arg); @@ -113,7 +113,7 @@ public static TxInitRbf of(byte[] channel_id_arg, int locktime_arg, int feerate_ } internal long clone_ptr() { - long ret = bindings.TxInitRbf_clone_ptr(this.ptr); + long ret = Bindings.TxInitRbfClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -122,7 +122,7 @@ internal long clone_ptr() { * Creates a copy of the TxInitRbf */ public TxInitRbf clone() { - long ret = bindings.TxInitRbf_clone(this.ptr); + long ret = Bindings.TxInitRbfClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxInitRbf ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxInitRbf(null, ret); } @@ -134,7 +134,7 @@ public TxInitRbf clone() { * Generates a non-cryptographic 64-bit hash of the TxInitRbf. */ public long hash() { - long ret = bindings.TxInitRbf_hash(this.ptr); + long ret = Bindings.TxInitRbfHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -148,7 +148,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxInitRbf b) { - bool ret = bindings.TxInitRbf_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxInitRbfEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -163,10 +163,10 @@ public override bool Equals(object o) { * Serialize the TxInitRbf object into a byte array which can be read by TxInitRbf_read */ public byte[] write() { - long ret = bindings.TxInitRbf_write(this.ptr); + long ret = Bindings.TxInitRbfWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -174,7 +174,7 @@ public byte[] write() { * Read a TxInitRbf from a byte array, created by TxInitRbf_write */ public static Result_TxInitRbfDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxInitRbf_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxInitRbfRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxInitRbfDecodeErrorZ ret_hu_conv = Result_TxInitRbfDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxOut.cs b/c_sharp/src/org/ldk/structs/TxOut.cs index bafa5ae43..5b4c223e1 100644 --- a/c_sharp/src/org/ldk/structs/TxOut.cs +++ b/c_sharp/src/org/ldk/structs/TxOut.cs @@ -12,12 +12,12 @@ public class TxOut : CommonBase { public readonly long value; internal TxOut(object _dummy, long ptr) : base(ptr) { - this.script_pubkey = InternalUtils.decodeUint8Array(bindings.TxOut_get_script_pubkey(ptr)); - this.value = bindings.TxOut_get_value(ptr); + this.script_pubkey = InternalUtils.DecodeUint8Array(Bindings.TxOutGetScriptPubkey(ptr)); + this.value = Bindings.TxOutGetValue(ptr); } - public TxOut(long value, byte[] script_pubkey) : this(null, bindings.TxOut_new(InternalUtils.encodeUint8Array(script_pubkey), value)) {} + public TxOut(long value, byte[] script_pubkey) : this(null, Bindings.TxOutNew(InternalUtils.EncodeUint8Array(script_pubkey), value)) {} ~TxOut() { - if (ptr != 0) { bindings.TxOut_free(ptr); } + if (ptr != 0) { Bindings.TxOutFree(ptr); } } }} } } diff --git a/c_sharp/src/org/ldk/structs/TxRemoveInput.cs b/c_sharp/src/org/ldk/structs/TxRemoveInput.cs index 18d4b5504..47c82887c 100644 --- a/c_sharp/src/org/ldk/structs/TxRemoveInput.cs +++ b/c_sharp/src/org/ldk/structs/TxRemoveInput.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TxRemoveInput : CommonBase { internal TxRemoveInput(object _dummy, long ptr) : base(ptr) { } ~TxRemoveInput() { - if (ptr != 0) { bindings.TxRemoveInput_free(ptr); } + if (ptr != 0) { Bindings.TxRemoveInputFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxRemoveInput_get_channel_id(this.ptr); + long ret = Bindings.TxRemoveInputGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxRemoveInput_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxRemoveInputSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_channel_id(byte[] val) { * The serial ID of the input to be removed */ public long get_serial_id() { - long ret = bindings.TxRemoveInput_get_serial_id(this.ptr); + long ret = Bindings.TxRemoveInputGetSerialId(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public long get_serial_id() { * The serial ID of the input to be removed */ public void set_serial_id(long val) { - bindings.TxRemoveInput_set_serial_id(this.ptr, val); + Bindings.TxRemoveInputSetSerialId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_serial_id(long val) { * Constructs a new TxRemoveInput given each field */ public static TxRemoveInput of(byte[] channel_id_arg, long serial_id_arg) { - long ret = bindings.TxRemoveInput_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), serial_id_arg); + long ret = Bindings.TxRemoveInputNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), serial_id_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(serial_id_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -67,7 +67,7 @@ public static TxRemoveInput of(byte[] channel_id_arg, long serial_id_arg) { } internal long clone_ptr() { - long ret = bindings.TxRemoveInput_clone_ptr(this.ptr); + long ret = Bindings.TxRemoveInputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the TxRemoveInput */ public TxRemoveInput clone() { - long ret = bindings.TxRemoveInput_clone(this.ptr); + long ret = Bindings.TxRemoveInputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxRemoveInput ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxRemoveInput(null, ret); } @@ -88,7 +88,7 @@ public TxRemoveInput clone() { * Generates a non-cryptographic 64-bit hash of the TxRemoveInput. */ public long hash() { - long ret = bindings.TxRemoveInput_hash(this.ptr); + long ret = Bindings.TxRemoveInputHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxRemoveInput b) { - bool ret = bindings.TxRemoveInput_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxRemoveInputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -117,10 +117,10 @@ public override bool Equals(object o) { * Serialize the TxRemoveInput object into a byte array which can be read by TxRemoveInput_read */ public byte[] write() { - long ret = bindings.TxRemoveInput_write(this.ptr); + long ret = Bindings.TxRemoveInputWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -128,7 +128,7 @@ public byte[] write() { * Read a TxRemoveInput from a byte array, created by TxRemoveInput_write */ public static Result_TxRemoveInputDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxRemoveInput_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxRemoveInputRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveInputDecodeErrorZ ret_hu_conv = Result_TxRemoveInputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs b/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs index b5d15bf67..ae8340d9a 100644 --- a/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs +++ b/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs @@ -12,17 +12,17 @@ namespace org { namespace ldk { namespace structs { public class TxRemoveOutput : CommonBase { internal TxRemoveOutput(object _dummy, long ptr) : base(ptr) { } ~TxRemoveOutput() { - if (ptr != 0) { bindings.TxRemoveOutput_free(ptr); } + if (ptr != 0) { Bindings.TxRemoveOutputFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxRemoveOutput_get_channel_id(this.ptr); + long ret = Bindings.TxRemoveOutputGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -30,7 +30,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxRemoveOutput_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxRemoveOutputSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -39,7 +39,7 @@ public void set_channel_id(byte[] val) { * The serial ID of the output to be removed */ public long get_serial_id() { - long ret = bindings.TxRemoveOutput_get_serial_id(this.ptr); + long ret = Bindings.TxRemoveOutputGetSerialId(this.ptr); GC.KeepAlive(this); return ret; } @@ -48,7 +48,7 @@ public long get_serial_id() { * The serial ID of the output to be removed */ public void set_serial_id(long val) { - bindings.TxRemoveOutput_set_serial_id(this.ptr, val); + Bindings.TxRemoveOutputSetSerialId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -57,7 +57,7 @@ public void set_serial_id(long val) { * Constructs a new TxRemoveOutput given each field */ public static TxRemoveOutput of(byte[] channel_id_arg, long serial_id_arg) { - long ret = bindings.TxRemoveOutput_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), serial_id_arg); + long ret = Bindings.TxRemoveOutputNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), serial_id_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(serial_id_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -67,7 +67,7 @@ public static TxRemoveOutput of(byte[] channel_id_arg, long serial_id_arg) { } internal long clone_ptr() { - long ret = bindings.TxRemoveOutput_clone_ptr(this.ptr); + long ret = Bindings.TxRemoveOutputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -76,7 +76,7 @@ internal long clone_ptr() { * Creates a copy of the TxRemoveOutput */ public TxRemoveOutput clone() { - long ret = bindings.TxRemoveOutput_clone(this.ptr); + long ret = Bindings.TxRemoveOutputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxRemoveOutput ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxRemoveOutput(null, ret); } @@ -88,7 +88,7 @@ public TxRemoveOutput clone() { * Generates a non-cryptographic 64-bit hash of the TxRemoveOutput. */ public long hash() { - long ret = bindings.TxRemoveOutput_hash(this.ptr); + long ret = Bindings.TxRemoveOutputHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -102,7 +102,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxRemoveOutput b) { - bool ret = bindings.TxRemoveOutput_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxRemoveOutputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -117,10 +117,10 @@ public override bool Equals(object o) { * Serialize the TxRemoveOutput object into a byte array which can be read by TxRemoveOutput_read */ public byte[] write() { - long ret = bindings.TxRemoveOutput_write(this.ptr); + long ret = Bindings.TxRemoveOutputWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -128,7 +128,7 @@ public byte[] write() { * Read a TxRemoveOutput from a byte array, created by TxRemoveOutput_write */ public static Result_TxRemoveOutputDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxRemoveOutput_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxRemoveOutputRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxRemoveOutputDecodeErrorZ ret_hu_conv = Result_TxRemoveOutputDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/TxSignatures.cs b/c_sharp/src/org/ldk/structs/TxSignatures.cs index 43a524104..3b99eff44 100644 --- a/c_sharp/src/org/ldk/structs/TxSignatures.cs +++ b/c_sharp/src/org/ldk/structs/TxSignatures.cs @@ -13,17 +13,17 @@ namespace org { namespace ldk { namespace structs { public class TxSignatures : CommonBase { internal TxSignatures(object _dummy, long ptr) : base(ptr) { } ~TxSignatures() { - if (ptr != 0) { bindings.TxSignatures_free(ptr); } + if (ptr != 0) { Bindings.TxSignaturesFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.TxSignatures_get_channel_id(this.ptr); + long ret = Bindings.TxSignaturesGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -31,7 +31,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.TxSignatures_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxSignaturesSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -40,10 +40,10 @@ public void set_channel_id(byte[] val) { * The TXID */ public byte[] get_tx_hash() { - long ret = bindings.TxSignatures_get_tx_hash(this.ptr); + long ret = Bindings.TxSignaturesGetTxHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -51,7 +51,7 @@ public byte[] get_tx_hash() { * The TXID */ public void set_tx_hash(byte[] val) { - bindings.TxSignatures_set_tx_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.TxSignaturesSetTxHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -62,17 +62,17 @@ public void set_tx_hash(byte[] val) { * Returns a copy of the field. */ public byte[][] get_witnesses() { - long ret = bindings.TxSignatures_get_witnesses(this.ptr); + long ret = Bindings.TxSignaturesGetWitnesses(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -80,7 +80,7 @@ public byte[][] get_witnesses() { * The list of witnesses */ public void set_witnesses(byte[][] val) { - bindings.TxSignatures_set_witnesses(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_8 => InternalUtils.encodeUint8Array(val_conv_8)))); + Bindings.TxSignaturesSetWitnesses(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_8 => InternalUtils.EncodeUint8Array(val_conv_8)))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -89,7 +89,7 @@ public void set_witnesses(byte[][] val) { * Constructs a new TxSignatures given each field */ public static TxSignatures of(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg) { - long ret = bindings.TxSignatures_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(tx_hash_arg, 32)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(witnesses_arg, witnesses_arg_conv_8 => InternalUtils.encodeUint8Array(witnesses_arg_conv_8)))); + long ret = Bindings.TxSignaturesNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(tx_hash_arg, 32)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(witnesses_arg, witnesses_arg_conv_8 => InternalUtils.EncodeUint8Array(witnesses_arg_conv_8)))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(tx_hash_arg); GC.KeepAlive(witnesses_arg); @@ -100,7 +100,7 @@ public static TxSignatures of(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][ } internal long clone_ptr() { - long ret = bindings.TxSignatures_clone_ptr(this.ptr); + long ret = Bindings.TxSignaturesClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -109,7 +109,7 @@ internal long clone_ptr() { * Creates a copy of the TxSignatures */ public TxSignatures clone() { - long ret = bindings.TxSignatures_clone(this.ptr); + long ret = Bindings.TxSignaturesClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TxSignatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TxSignatures(null, ret); } @@ -121,7 +121,7 @@ public TxSignatures clone() { * Generates a non-cryptographic 64-bit hash of the TxSignatures. */ public long hash() { - long ret = bindings.TxSignatures_hash(this.ptr); + long ret = Bindings.TxSignaturesHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -135,7 +135,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.TxSignatures b) { - bool ret = bindings.TxSignatures_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.TxSignaturesEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -150,10 +150,10 @@ public override bool Equals(object o) { * Serialize the TxSignatures object into a byte array which can be read by TxSignatures_read */ public byte[] write() { - long ret = bindings.TxSignatures_write(this.ptr); + long ret = Bindings.TxSignaturesWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -161,7 +161,7 @@ public byte[] write() { * Read a TxSignatures from a byte array, created by TxSignatures_write */ public static Result_TxSignaturesDecodeErrorZ read(byte[] ser) { - long ret = bindings.TxSignatures_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.TxSignaturesRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_TxSignaturesDecodeErrorZ ret_hu_conv = Result_TxSignaturesDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Type.cs b/c_sharp/src/org/ldk/structs/Type.cs index c4769c098..9c85a5436 100644 --- a/c_sharp/src/org/ldk/structs/Type.cs +++ b/c_sharp/src/org/ldk/structs/Type.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Type */ -public interface TypeInterface { +public interface IType { /**Returns the type identifying the message payload. */ short type_id(); @@ -27,43 +27,43 @@ public interface TypeInterface { * Messages implementing this trait specify a type and must be [`Writeable`]. */ public class Type : CommonBase { - internal bindings.LDKType bindings_instance; + internal Bindings.LDKType bindings_instance; internal long instance_idx; internal Type(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Type() { - if (ptr != 0) { bindings.Type_free(ptr); } + if (ptr != 0) { Bindings.TypeFree(ptr); } } private class LDKTypeHolder { internal Type held; } - private class LDKTypeImpl : bindings.LDKType { - internal LDKTypeImpl(TypeInterface arg, LDKTypeHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private TypeInterface arg; + private class LDKTypeImpl : Bindings.LDKType { + internal LDKTypeImpl(IType arg, LDKTypeHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IType arg; private LDKTypeHolder impl_holder; - public short type_id() { + public short TypeId() { short ret = arg.type_id(); GC.KeepAlive(arg); return ret; } - public long debug_str() { + public long DebugStr() { string ret = arg.debug_str(); GC.KeepAlive(arg); - long result = InternalUtils.encodeString(ret); + long result = InternalUtils.EncodeString(ret); return result; } - public long write() { + public long Write() { byte[] ret = arg.write(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(ret); + long result = InternalUtils.EncodeUint8Array(ret); return result; } } /** Creates a new instance of Type from a given implementation */ - public static Type new_impl(TypeInterface arg) { + public static Type new_impl(IType arg) { LDKTypeHolder impl_holder = new LDKTypeHolder(); LDKTypeImpl impl = new LDKTypeImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKType_new(impl); + long[] ptr_idx = Bindings.LDKTypeNew(impl); impl_holder.held = new Type(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -75,7 +75,7 @@ public static Type new_impl(TypeInterface arg) { * Returns the type identifying the message payload. */ public short type_id() { - short ret = bindings.Type_type_id(this.ptr); + short ret = Bindings.TypeTypeId(this.ptr); GC.KeepAlive(this); return ret; } @@ -84,10 +84,10 @@ public short type_id() { * Return a human-readable "debug" string describing this object */ public string debug_str() { - long ret = bindings.Type_debug_str(this.ptr); + long ret = Bindings.TypeDebugStr(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -95,15 +95,15 @@ public string debug_str() { * Serialize the object into a byte array */ public byte[] write() { - long ret = bindings.Type_write(this.ptr); + long ret = Bindings.TypeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.Type_clone_ptr(this.ptr); + long ret = Bindings.TypeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -112,7 +112,7 @@ internal long clone_ptr() { * Creates a copy of a Type */ public Type clone() { - long ret = bindings.Type_clone(this.ptr); + long ret = Bindings.TypeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Type ret_hu_conv = new Type(null, ret); diff --git a/c_sharp/src/org/ldk/structs/UnsignedBolt12Invoice.cs b/c_sharp/src/org/ldk/structs/UnsignedBolt12Invoice.cs index 7e653a62d..a5a2a699f 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedBolt12Invoice.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedBolt12Invoice.cs @@ -17,14 +17,14 @@ namespace org { namespace ldk { namespace structs { public class UnsignedBolt12Invoice : CommonBase { internal UnsignedBolt12Invoice(object _dummy, long ptr) : base(ptr) { } ~UnsignedBolt12Invoice() { - if (ptr != 0) { bindings.UnsignedBolt12Invoice_free(ptr); } + if (ptr != 0) { Bindings.UnsignedBolt12InvoiceFree(ptr); } } /** * Returns the [`TaggedHash`] of the invoice to sign. */ public TaggedHash tagged_hash() { - long ret = bindings.UnsignedBolt12Invoice_tagged_hash(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceTaggedHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TaggedHash ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TaggedHash(null, ret); } @@ -40,7 +40,7 @@ public TaggedHash tagged_hash() { * [`Offer::chains`]: crate::offers::offer::Offer::chains */ public Option_CVec_ThirtyTwoBytesZZ offer_chains() { - long ret = bindings.UnsignedBolt12Invoice_offer_chains(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceOfferChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ ret_hu_conv = org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ.constr_from_ptr(ret); @@ -58,10 +58,10 @@ public Option_CVec_ThirtyTwoBytesZZ offer_chains() { * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain */ public byte[] chain() { - long ret = bindings.UnsignedBolt12Invoice_chain(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -75,7 +75,7 @@ public byte[] chain() { * [`Offer::metadata`]: crate::offers::offer::Offer::metadata */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.UnsignedBolt12Invoice_metadata(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -95,7 +95,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.UnsignedBolt12Invoice_amount(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -115,7 +115,7 @@ public Amount amount() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public OfferFeatures offer_features() { - long ret = bindings.UnsignedBolt12Invoice_offer_features(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -131,7 +131,7 @@ public OfferFeatures offer_features() { * [`Offer::description`]: crate::offers::offer::Offer::description */ public PrintableString description() { - long ret = bindings.UnsignedBolt12Invoice_description(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -147,7 +147,7 @@ public PrintableString description() { * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry */ public Option_u64Z absolute_expiry() { - long ret = bindings.UnsignedBolt12Invoice_absolute_expiry(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -165,7 +165,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.UnsignedBolt12Invoice_issuer(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -181,18 +181,18 @@ public PrintableString issuer() { * [`Offer::paths`]: crate::offers::offer::Offer::paths */ public BlindedPath[] message_paths() { - long ret = bindings.UnsignedBolt12Invoice_message_paths(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceMessagePaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -207,7 +207,7 @@ public BlindedPath[] message_paths() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Quantity supported_quantity() { - long ret = bindings.UnsignedBolt12Invoice_supported_quantity(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -221,10 +221,10 @@ public Quantity supported_quantity() { * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. */ public byte[] payer_metadata() { - long ret = bindings.UnsignedBolt12Invoice_payer_metadata(this.ptr); + long ret = Bindings.UnsignedBolt12InvoicePayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -234,7 +234,7 @@ public byte[] payer_metadata() { * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. */ public InvoiceRequestFeatures invoice_request_features() { - long ret = bindings.UnsignedBolt12Invoice_invoice_request_features(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceInvoiceRequestFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -248,7 +248,7 @@ public InvoiceRequestFeatures invoice_request_features() { * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. */ public Option_u64Z quantity() { - long ret = bindings.UnsignedBolt12Invoice_quantity(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -263,10 +263,10 @@ public Option_u64Z quantity() { * [`message_paths`]: Self::message_paths */ public byte[] payer_id() { - long ret = bindings.UnsignedBolt12Invoice_payer_id(this.ptr); + long ret = Bindings.UnsignedBolt12InvoicePayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -278,7 +278,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.UnsignedBolt12Invoice_payer_note(this.ptr); + long ret = Bindings.UnsignedBolt12InvoicePayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -290,7 +290,7 @@ public PrintableString payer_note() { * Duration since the Unix epoch when the invoice was created. */ public long created_at() { - long ret = bindings.UnsignedBolt12Invoice_created_at(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceCreatedAt(this.ptr); GC.KeepAlive(this); return ret; } @@ -300,7 +300,7 @@ public long created_at() { * should no longer be paid. */ public long relative_expiry() { - long ret = bindings.UnsignedBolt12Invoice_relative_expiry(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceRelativeExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -309,7 +309,7 @@ public long relative_expiry() { * Whether the invoice has expired. */ public bool is_expired() { - bool ret = bindings.UnsignedBolt12Invoice_is_expired(this.ptr); + bool ret = Bindings.UnsignedBolt12InvoiceIsExpired(this.ptr); GC.KeepAlive(this); return ret; } @@ -318,10 +318,10 @@ public bool is_expired() { * SHA256 hash of the payment preimage that will be given in return for paying the invoice. */ public byte[] payment_hash() { - long ret = bindings.UnsignedBolt12Invoice_payment_hash(this.ptr); + long ret = Bindings.UnsignedBolt12InvoicePaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -329,7 +329,7 @@ public byte[] payment_hash() { * The minimum amount required for a successful payment of the invoice. */ public long amount_msats() { - long ret = bindings.UnsignedBolt12Invoice_amount_msats(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceAmountMsats(this.ptr); GC.KeepAlive(this); return ret; } @@ -338,7 +338,7 @@ public long amount_msats() { * Features pertaining to paying an invoice. */ public Bolt12InvoiceFeatures invoice_features() { - long ret = bindings.UnsignedBolt12Invoice_invoice_features(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceInvoiceFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Bolt12InvoiceFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Bolt12InvoiceFeatures(null, ret); } @@ -350,10 +350,10 @@ public Bolt12InvoiceFeatures invoice_features() { * The public key corresponding to the key used to sign the invoice. */ public byte[] signing_pubkey() { - long ret = bindings.UnsignedBolt12Invoice_signing_pubkey(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -361,10 +361,10 @@ public byte[] signing_pubkey() { * Serialize the UnsignedBolt12Invoice object into a byte array which can be read by UnsignedBolt12Invoice_read */ public byte[] write() { - long ret = bindings.UnsignedBolt12Invoice_write(this.ptr); + long ret = Bindings.UnsignedBolt12InvoiceWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/UnsignedChannelAnnouncement.cs b/c_sharp/src/org/ldk/structs/UnsignedChannelAnnouncement.cs index 98303e3b2..9d805de19 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedChannelAnnouncement.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedChannelAnnouncement.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class UnsignedChannelAnnouncement : CommonBase { internal UnsignedChannelAnnouncement(object _dummy, long ptr) : base(ptr) { } ~UnsignedChannelAnnouncement() { - if (ptr != 0) { bindings.UnsignedChannelAnnouncement_free(ptr); } + if (ptr != 0) { Bindings.UnsignedChannelAnnouncementFree(ptr); } } /** * The advertised channel features */ public ChannelFeatures get_features() { - long ret = bindings.UnsignedChannelAnnouncement_get_features(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelFeatures(null, ret); } @@ -33,7 +33,7 @@ public ChannelFeatures get_features() { * The advertised channel features */ public void set_features(org.ldk.structs.ChannelFeatures val) { - bindings.UnsignedChannelAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedChannelAnnouncementSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,10 +43,10 @@ public void set_features(org.ldk.structs.ChannelFeatures val) { * The genesis hash of the blockchain where the channel is to be opened */ public byte[] get_chain_hash() { - long ret = bindings.UnsignedChannelAnnouncement_get_chain_hash(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -54,7 +54,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is to be opened */ public void set_chain_hash(byte[] val) { - bindings.UnsignedChannelAnnouncement_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UnsignedChannelAnnouncementSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -63,7 +63,7 @@ public void set_chain_hash(byte[] val) { * The short channel ID */ public long get_short_channel_id() { - long ret = bindings.UnsignedChannelAnnouncement_get_short_channel_id(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -72,7 +72,7 @@ public long get_short_channel_id() { * The short channel ID */ public void set_short_channel_id(long val) { - bindings.UnsignedChannelAnnouncement_set_short_channel_id(this.ptr, val); + Bindings.UnsignedChannelAnnouncementSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -81,7 +81,7 @@ public void set_short_channel_id(long val) { * One of the two `node_id`s which are endpoints of this channel */ public NodeId get_node_id_1() { - long ret = bindings.UnsignedChannelAnnouncement_get_node_id_1(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetNodeId1(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -93,7 +93,7 @@ public NodeId get_node_id_1() { * One of the two `node_id`s which are endpoints of this channel */ public void set_node_id_1(org.ldk.structs.NodeId val) { - bindings.UnsignedChannelAnnouncement_set_node_id_1(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedChannelAnnouncementSetNodeId1(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -103,7 +103,7 @@ public void set_node_id_1(org.ldk.structs.NodeId val) { * The other of the two `node_id`s which are endpoints of this channel */ public NodeId get_node_id_2() { - long ret = bindings.UnsignedChannelAnnouncement_get_node_id_2(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetNodeId2(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -115,7 +115,7 @@ public NodeId get_node_id_2() { * The other of the two `node_id`s which are endpoints of this channel */ public void set_node_id_2(org.ldk.structs.NodeId val) { - bindings.UnsignedChannelAnnouncement_set_node_id_2(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedChannelAnnouncementSetNodeId2(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -125,7 +125,7 @@ public void set_node_id_2(org.ldk.structs.NodeId val) { * The funding key for the first node */ public NodeId get_bitcoin_key_1() { - long ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_1(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetBitcoinKey1(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -137,7 +137,7 @@ public NodeId get_bitcoin_key_1() { * The funding key for the first node */ public void set_bitcoin_key_1(org.ldk.structs.NodeId val) { - bindings.UnsignedChannelAnnouncement_set_bitcoin_key_1(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedChannelAnnouncementSetBitcoinKey1(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -147,7 +147,7 @@ public void set_bitcoin_key_1(org.ldk.structs.NodeId val) { * The funding key for the second node */ public NodeId get_bitcoin_key_2() { - long ret = bindings.UnsignedChannelAnnouncement_get_bitcoin_key_2(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetBitcoinKey2(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -159,7 +159,7 @@ public NodeId get_bitcoin_key_2() { * The funding key for the second node */ public void set_bitcoin_key_2(org.ldk.structs.NodeId val) { - bindings.UnsignedChannelAnnouncement_set_bitcoin_key_2(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedChannelAnnouncementSetBitcoinKey2(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -174,10 +174,10 @@ public void set_bitcoin_key_2(org.ldk.structs.NodeId val) { * Returns a copy of the field. */ public byte[] get_excess_data() { - long ret = bindings.UnsignedChannelAnnouncement_get_excess_data(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementGetExcessData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -188,7 +188,7 @@ public byte[] get_excess_data() { * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. */ public void set_excess_data(byte[] val) { - bindings.UnsignedChannelAnnouncement_set_excess_data(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.UnsignedChannelAnnouncementSetExcessData(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -197,7 +197,7 @@ public void set_excess_data(byte[] val) { * Constructs a new UnsignedChannelAnnouncement given each field */ public static UnsignedChannelAnnouncement of(org.ldk.structs.ChannelFeatures features_arg, byte[] chain_hash_arg, long short_channel_id_arg, org.ldk.structs.NodeId node_id_1_arg, org.ldk.structs.NodeId node_id_2_arg, org.ldk.structs.NodeId bitcoin_key_1_arg, org.ldk.structs.NodeId bitcoin_key_2_arg, byte[] excess_data_arg) { - long ret = bindings.UnsignedChannelAnnouncement_new(features_arg == null ? 0 : features_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), short_channel_id_arg, node_id_1_arg == null ? 0 : node_id_1_arg.ptr, node_id_2_arg == null ? 0 : node_id_2_arg.ptr, bitcoin_key_1_arg == null ? 0 : bitcoin_key_1_arg.ptr, bitcoin_key_2_arg == null ? 0 : bitcoin_key_2_arg.ptr, InternalUtils.encodeUint8Array(excess_data_arg)); + long ret = Bindings.UnsignedChannelAnnouncementNew(features_arg == null ? 0 : features_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), short_channel_id_arg, node_id_1_arg == null ? 0 : node_id_1_arg.ptr, node_id_2_arg == null ? 0 : node_id_2_arg.ptr, bitcoin_key_1_arg == null ? 0 : bitcoin_key_1_arg.ptr, bitcoin_key_2_arg == null ? 0 : bitcoin_key_2_arg.ptr, InternalUtils.EncodeUint8Array(excess_data_arg)); GC.KeepAlive(features_arg); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(short_channel_id_arg); @@ -218,7 +218,7 @@ public static UnsignedChannelAnnouncement of(org.ldk.structs.ChannelFeatures fea } internal long clone_ptr() { - long ret = bindings.UnsignedChannelAnnouncement_clone_ptr(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -227,7 +227,7 @@ internal long clone_ptr() { * Creates a copy of the UnsignedChannelAnnouncement */ public UnsignedChannelAnnouncement clone() { - long ret = bindings.UnsignedChannelAnnouncement_clone(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, ret); } @@ -239,7 +239,7 @@ public UnsignedChannelAnnouncement clone() { * Generates a non-cryptographic 64-bit hash of the UnsignedChannelAnnouncement. */ public long hash() { - long ret = bindings.UnsignedChannelAnnouncement_hash(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -253,7 +253,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UnsignedChannelAnnouncement b) { - bool ret = bindings.UnsignedChannelAnnouncement_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UnsignedChannelAnnouncementEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -268,10 +268,10 @@ public override bool Equals(object o) { * Serialize the UnsignedChannelAnnouncement object into a byte array which can be read by UnsignedChannelAnnouncement_read */ public byte[] write() { - long ret = bindings.UnsignedChannelAnnouncement_write(this.ptr); + long ret = Bindings.UnsignedChannelAnnouncementWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -279,7 +279,7 @@ public byte[] write() { * Read a UnsignedChannelAnnouncement from a byte array, created by UnsignedChannelAnnouncement_write */ public static Result_UnsignedChannelAnnouncementDecodeErrorZ read(byte[] ser) { - long ret = bindings.UnsignedChannelAnnouncement_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UnsignedChannelAnnouncementRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UnsignedChannelUpdate.cs b/c_sharp/src/org/ldk/structs/UnsignedChannelUpdate.cs index 48dd7bd25..807ce1134 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedChannelUpdate.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedChannelUpdate.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UnsignedChannelUpdate : CommonBase { internal UnsignedChannelUpdate(object _dummy, long ptr) : base(ptr) { } ~UnsignedChannelUpdate() { - if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); } + if (ptr != 0) { Bindings.UnsignedChannelUpdateFree(ptr); } } /** * The genesis hash of the blockchain where the channel is to be opened */ public byte[] get_chain_hash() { - long ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr); + long ret = Bindings.UnsignedChannelUpdateGetChainHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_chain_hash() { * The genesis hash of the blockchain where the channel is to be opened */ public void set_chain_hash(byte[] val) { - bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UnsignedChannelUpdateSetChainHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_chain_hash(byte[] val) { * The short channel ID */ public long get_short_channel_id() { - long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr); + long ret = Bindings.UnsignedChannelUpdateGetShortChannelId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_short_channel_id() { * The short channel ID */ public void set_short_channel_id(long val) { - bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val); + Bindings.UnsignedChannelUpdateSetShortChannelId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_short_channel_id(long val) { * A strictly monotonic announcement counter, with gaps allowed, specific to this channel */ public int get_timestamp() { - int ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr); + int ret = Bindings.UnsignedChannelUpdateGetTimestamp(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public int get_timestamp() { * A strictly monotonic announcement counter, with gaps allowed, specific to this channel */ public void set_timestamp(int val) { - bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val); + Bindings.UnsignedChannelUpdateSetTimestamp(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,7 +77,7 @@ public void set_timestamp(int val) { * Channel flags */ public byte get_flags() { - byte ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr); + byte ret = Bindings.UnsignedChannelUpdateGetFlags(this.ptr); GC.KeepAlive(this); return ret; } @@ -86,7 +86,7 @@ public byte get_flags() { * Channel flags */ public void set_flags(byte val) { - bindings.UnsignedChannelUpdate_set_flags(this.ptr, val); + Bindings.UnsignedChannelUpdateSetFlags(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -102,7 +102,7 @@ public void set_flags(byte val) { * constructing the route. */ public short get_cltv_expiry_delta() { - short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr); + short ret = Bindings.UnsignedChannelUpdateGetCltvExpiryDelta(this.ptr); GC.KeepAlive(this); return ret; } @@ -118,7 +118,7 @@ public short get_cltv_expiry_delta() { * constructing the route. */ public void set_cltv_expiry_delta(short val) { - bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val); + Bindings.UnsignedChannelUpdateSetCltvExpiryDelta(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -127,7 +127,7 @@ public void set_cltv_expiry_delta(short val) { * The minimum HTLC size incoming to sender, in milli-satoshi */ public long get_htlc_minimum_msat() { - long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr); + long ret = Bindings.UnsignedChannelUpdateGetHtlcMinimumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -136,7 +136,7 @@ public long get_htlc_minimum_msat() { * The minimum HTLC size incoming to sender, in milli-satoshi */ public void set_htlc_minimum_msat(long val) { - bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val); + Bindings.UnsignedChannelUpdateSetHtlcMinimumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -147,7 +147,7 @@ public void set_htlc_minimum_msat(long val) { * This used to be optional. */ public long get_htlc_maximum_msat() { - long ret = bindings.UnsignedChannelUpdate_get_htlc_maximum_msat(this.ptr); + long ret = Bindings.UnsignedChannelUpdateGetHtlcMaximumMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -158,7 +158,7 @@ public long get_htlc_maximum_msat() { * This used to be optional. */ public void set_htlc_maximum_msat(long val) { - bindings.UnsignedChannelUpdate_set_htlc_maximum_msat(this.ptr, val); + Bindings.UnsignedChannelUpdateSetHtlcMaximumMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -167,7 +167,7 @@ public void set_htlc_maximum_msat(long val) { * The base HTLC fee charged by sender, in milli-satoshi */ public int get_fee_base_msat() { - int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr); + int ret = Bindings.UnsignedChannelUpdateGetFeeBaseMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -176,7 +176,7 @@ public int get_fee_base_msat() { * The base HTLC fee charged by sender, in milli-satoshi */ public void set_fee_base_msat(int val) { - bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val); + Bindings.UnsignedChannelUpdateSetFeeBaseMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -185,7 +185,7 @@ public void set_fee_base_msat(int val) { * The amount to fee multiplier, in micro-satoshi */ public int get_fee_proportional_millionths() { - int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr); + int ret = Bindings.UnsignedChannelUpdateGetFeeProportionalMillionths(this.ptr); GC.KeepAlive(this); return ret; } @@ -194,7 +194,7 @@ public int get_fee_proportional_millionths() { * The amount to fee multiplier, in micro-satoshi */ public void set_fee_proportional_millionths(int val) { - bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val); + Bindings.UnsignedChannelUpdateSetFeeProportionalMillionths(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -208,10 +208,10 @@ public void set_fee_proportional_millionths(int val) { * Returns a copy of the field. */ public byte[] get_excess_data() { - long ret = bindings.UnsignedChannelUpdate_get_excess_data(this.ptr); + long ret = Bindings.UnsignedChannelUpdateGetExcessData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -222,7 +222,7 @@ public byte[] get_excess_data() { * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. */ public void set_excess_data(byte[] val) { - bindings.UnsignedChannelUpdate_set_excess_data(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.UnsignedChannelUpdateSetExcessData(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -231,7 +231,7 @@ public void set_excess_data(byte[] val) { * Constructs a new UnsignedChannelUpdate given each field */ public static UnsignedChannelUpdate of(byte[] chain_hash_arg, long short_channel_id_arg, int timestamp_arg, byte flags_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg, int fee_base_msat_arg, int fee_proportional_millionths_arg, byte[] excess_data_arg) { - long ret = bindings.UnsignedChannelUpdate_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), short_channel_id_arg, timestamp_arg, flags_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fee_base_msat_arg, fee_proportional_millionths_arg, InternalUtils.encodeUint8Array(excess_data_arg)); + long ret = Bindings.UnsignedChannelUpdateNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash_arg, 32)), short_channel_id_arg, timestamp_arg, flags_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fee_base_msat_arg, fee_proportional_millionths_arg, InternalUtils.EncodeUint8Array(excess_data_arg)); GC.KeepAlive(chain_hash_arg); GC.KeepAlive(short_channel_id_arg); GC.KeepAlive(timestamp_arg); @@ -249,7 +249,7 @@ public static UnsignedChannelUpdate of(byte[] chain_hash_arg, long short_channel } internal long clone_ptr() { - long ret = bindings.UnsignedChannelUpdate_clone_ptr(this.ptr); + long ret = Bindings.UnsignedChannelUpdateClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -258,7 +258,7 @@ internal long clone_ptr() { * Creates a copy of the UnsignedChannelUpdate */ public UnsignedChannelUpdate clone() { - long ret = bindings.UnsignedChannelUpdate_clone(this.ptr); + long ret = Bindings.UnsignedChannelUpdateClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedChannelUpdate(null, ret); } @@ -270,7 +270,7 @@ public UnsignedChannelUpdate clone() { * Generates a non-cryptographic 64-bit hash of the UnsignedChannelUpdate. */ public long hash() { - long ret = bindings.UnsignedChannelUpdate_hash(this.ptr); + long ret = Bindings.UnsignedChannelUpdateHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -284,7 +284,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UnsignedChannelUpdate b) { - bool ret = bindings.UnsignedChannelUpdate_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UnsignedChannelUpdateEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -299,10 +299,10 @@ public override bool Equals(object o) { * Serialize the UnsignedChannelUpdate object into a byte array which can be read by UnsignedChannelUpdate_read */ public byte[] write() { - long ret = bindings.UnsignedChannelUpdate_write(this.ptr); + long ret = Bindings.UnsignedChannelUpdateWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -310,7 +310,7 @@ public byte[] write() { * Read a UnsignedChannelUpdate from a byte array, created by UnsignedChannelUpdate_write */ public static Result_UnsignedChannelUpdateDecodeErrorZ read(byte[] ser) { - long ret = bindings.UnsignedChannelUpdate_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UnsignedChannelUpdateRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UnsignedGossipMessage.cs b/c_sharp/src/org/ldk/structs/UnsignedGossipMessage.cs index ff59a12d1..14158b283 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedGossipMessage.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedGossipMessage.cs @@ -11,11 +11,11 @@ namespace org { namespace ldk { namespace structs { public class UnsignedGossipMessage : CommonBase { protected UnsignedGossipMessage(object _dummy, long ptr) : base(ptr) { } ~UnsignedGossipMessage() { - if (ptr != 0) { bindings.UnsignedGossipMessage_free(ptr); } + if (ptr != 0) { Bindings.UnsignedGossipMessageFree(ptr); } } internal static UnsignedGossipMessage constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKUnsignedGossipMessage_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKUnsignedGossipMessageTyFromPtr(ptr); switch (raw_ty) { case 0: return new UnsignedGossipMessage_ChannelAnnouncement(ptr); case 1: return new UnsignedGossipMessage_ChannelUpdate(ptr); @@ -29,7 +29,7 @@ internal static UnsignedGossipMessage constr_from_ptr(long ptr) { public class UnsignedGossipMessage_ChannelAnnouncement : UnsignedGossipMessage { public UnsignedChannelAnnouncement channel_announcement; internal UnsignedGossipMessage_ChannelAnnouncement(long ptr) : base(null, ptr) { - long channel_announcement = bindings.LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement(ptr); + long channel_announcement = Bindings.LDKUnsignedGossipMessageChannelAnnouncementGetChannelAnnouncement(ptr); org.ldk.structs.UnsignedChannelAnnouncement channel_announcement_hu_conv = null; if (channel_announcement < 0 || channel_announcement > 4096) { channel_announcement_hu_conv = new org.ldk.structs.UnsignedChannelAnnouncement(null, channel_announcement); } if (channel_announcement_hu_conv != null) { channel_announcement_hu_conv.ptrs_to.AddLast(this); }; this.channel_announcement = channel_announcement_hu_conv; @@ -39,7 +39,7 @@ internal UnsignedGossipMessage_ChannelAnnouncement(long ptr) : base(null, ptr) { public class UnsignedGossipMessage_ChannelUpdate : UnsignedGossipMessage { public UnsignedChannelUpdate channel_update; internal UnsignedGossipMessage_ChannelUpdate(long ptr) : base(null, ptr) { - long channel_update = bindings.LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update(ptr); + long channel_update = Bindings.LDKUnsignedGossipMessageChannelUpdateGetChannelUpdate(ptr); org.ldk.structs.UnsignedChannelUpdate channel_update_hu_conv = null; if (channel_update < 0 || channel_update > 4096) { channel_update_hu_conv = new org.ldk.structs.UnsignedChannelUpdate(null, channel_update); } if (channel_update_hu_conv != null) { channel_update_hu_conv.ptrs_to.AddLast(this); }; this.channel_update = channel_update_hu_conv; @@ -49,14 +49,14 @@ internal UnsignedGossipMessage_ChannelUpdate(long ptr) : base(null, ptr) { public class UnsignedGossipMessage_NodeAnnouncement : UnsignedGossipMessage { public UnsignedNodeAnnouncement node_announcement; internal UnsignedGossipMessage_NodeAnnouncement(long ptr) : base(null, ptr) { - long node_announcement = bindings.LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement(ptr); + long node_announcement = Bindings.LDKUnsignedGossipMessageNodeAnnouncementGetNodeAnnouncement(ptr); org.ldk.structs.UnsignedNodeAnnouncement node_announcement_hu_conv = null; if (node_announcement < 0 || node_announcement > 4096) { node_announcement_hu_conv = new org.ldk.structs.UnsignedNodeAnnouncement(null, node_announcement); } if (node_announcement_hu_conv != null) { node_announcement_hu_conv.ptrs_to.AddLast(this); }; this.node_announcement = node_announcement_hu_conv; } } internal long clone_ptr() { - long ret = bindings.UnsignedGossipMessage_clone_ptr(this.ptr); + long ret = Bindings.UnsignedGossipMessageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -65,7 +65,7 @@ internal long clone_ptr() { * Creates a copy of the UnsignedGossipMessage */ public UnsignedGossipMessage clone() { - long ret = bindings.UnsignedGossipMessage_clone(this.ptr); + long ret = Bindings.UnsignedGossipMessageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedGossipMessage ret_hu_conv = org.ldk.structs.UnsignedGossipMessage.constr_from_ptr(ret); @@ -77,7 +77,7 @@ public UnsignedGossipMessage clone() { * Utility method to constructs a new ChannelAnnouncement-variant UnsignedGossipMessage */ public static UnsignedGossipMessage channel_announcement(org.ldk.structs.UnsignedChannelAnnouncement a) { - long ret = bindings.UnsignedGossipMessage_channel_announcement(a == null ? 0 : a.ptr); + long ret = Bindings.UnsignedGossipMessageChannelAnnouncement(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedGossipMessage ret_hu_conv = org.ldk.structs.UnsignedGossipMessage.constr_from_ptr(ret); @@ -90,7 +90,7 @@ public static UnsignedGossipMessage channel_announcement(org.ldk.structs.Unsigne * Utility method to constructs a new ChannelUpdate-variant UnsignedGossipMessage */ public static UnsignedGossipMessage channel_update(org.ldk.structs.UnsignedChannelUpdate a) { - long ret = bindings.UnsignedGossipMessage_channel_update(a == null ? 0 : a.ptr); + long ret = Bindings.UnsignedGossipMessageChannelUpdate(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedGossipMessage ret_hu_conv = org.ldk.structs.UnsignedGossipMessage.constr_from_ptr(ret); @@ -103,7 +103,7 @@ public static UnsignedGossipMessage channel_update(org.ldk.structs.UnsignedChann * Utility method to constructs a new NodeAnnouncement-variant UnsignedGossipMessage */ public static UnsignedGossipMessage node_announcement(org.ldk.structs.UnsignedNodeAnnouncement a) { - long ret = bindings.UnsignedGossipMessage_node_announcement(a == null ? 0 : a.ptr); + long ret = Bindings.UnsignedGossipMessageNodeAnnouncement(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedGossipMessage ret_hu_conv = org.ldk.structs.UnsignedGossipMessage.constr_from_ptr(ret); @@ -116,10 +116,10 @@ public static UnsignedGossipMessage node_announcement(org.ldk.structs.UnsignedNo * Serialize the UnsignedGossipMessage object into a byte array which can be read by UnsignedGossipMessage_read */ public byte[] write() { - long ret = bindings.UnsignedGossipMessage_write(this.ptr); + long ret = Bindings.UnsignedGossipMessageWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/UnsignedInvoiceRequest.cs b/c_sharp/src/org/ldk/structs/UnsignedInvoiceRequest.cs index 1c33d54da..a8cd19ca8 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedInvoiceRequest.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedInvoiceRequest.cs @@ -17,14 +17,14 @@ namespace org { namespace ldk { namespace structs { public class UnsignedInvoiceRequest : CommonBase { internal UnsignedInvoiceRequest(object _dummy, long ptr) : base(ptr) { } ~UnsignedInvoiceRequest() { - if (ptr != 0) { bindings.UnsignedInvoiceRequest_free(ptr); } + if (ptr != 0) { Bindings.UnsignedInvoiceRequestFree(ptr); } } /** * Returns the [`TaggedHash`] of the invoice to sign. */ public TaggedHash tagged_hash() { - long ret = bindings.UnsignedInvoiceRequest_tagged_hash(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestTaggedHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.TaggedHash ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.TaggedHash(null, ret); } @@ -38,17 +38,17 @@ public TaggedHash tagged_hash() { * for the selected chain. */ public byte[][] chains() { - long ret = bindings.UnsignedInvoiceRequest_chains(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -57,7 +57,7 @@ public byte[][] chains() { * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.UnsignedInvoiceRequest_metadata(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -71,7 +71,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.UnsignedInvoiceRequest_amount(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -84,7 +84,7 @@ public Amount amount() { * but with the caveat that it has not been verified in any way. */ public PrintableString description() { - long ret = bindings.UnsignedInvoiceRequest_description(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -96,7 +96,7 @@ public PrintableString description() { * Features pertaining to the offer. */ public OfferFeatures offer_features() { - long ret = bindings.UnsignedInvoiceRequest_offer_features(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -110,7 +110,7 @@ public OfferFeatures offer_features() { * If `None`, the offer does not expire. */ public Option_u64Z absolute_expiry() { - long ret = bindings.UnsignedInvoiceRequest_absolute_expiry(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -125,7 +125,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.UnsignedInvoiceRequest_issuer(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -138,18 +138,18 @@ public PrintableString issuer() { * recipient privacy by obfuscating its node id. */ public BlindedPath[] paths() { - long ret = bindings.UnsignedInvoiceRequest_paths(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -157,7 +157,7 @@ public BlindedPath[] paths() { * The quantity of items supported. */ public Quantity supported_quantity() { - long ret = bindings.UnsignedInvoiceRequest_supported_quantity(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -169,10 +169,10 @@ public Quantity supported_quantity() { * The public key used by the recipient to sign invoices. */ public byte[] signing_pubkey() { - long ret = bindings.UnsignedInvoiceRequest_signing_pubkey(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -183,10 +183,10 @@ public byte[] signing_pubkey() { * [`payer_id`]: Self::payer_id */ public byte[] payer_metadata() { - long ret = bindings.UnsignedInvoiceRequest_payer_metadata(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestPayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -194,10 +194,10 @@ public byte[] payer_metadata() { * A chain from [`Offer::chains`] that the offer is valid for. */ public byte[] chain() { - long ret = bindings.UnsignedInvoiceRequest_chain(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -208,7 +208,7 @@ public byte[] chain() { * [`chain`]: Self::chain */ public Option_u64Z amount_msats() { - long ret = bindings.UnsignedInvoiceRequest_amount_msats(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestAmountMsats(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -220,7 +220,7 @@ public Option_u64Z amount_msats() { * Features pertaining to requesting an invoice. */ public InvoiceRequestFeatures invoice_request_features() { - long ret = bindings.UnsignedInvoiceRequest_invoice_request_features(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestInvoiceRequestFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -232,7 +232,7 @@ public InvoiceRequestFeatures invoice_request_features() { * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. */ public Option_u64Z quantity() { - long ret = bindings.UnsignedInvoiceRequest_quantity(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -244,10 +244,10 @@ public Option_u64Z quantity() { * A possibly transient pubkey used to sign the invoice request. */ public byte[] payer_id() { - long ret = bindings.UnsignedInvoiceRequest_payer_id(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestPayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -258,7 +258,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.UnsignedInvoiceRequest_payer_note(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestPayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -270,10 +270,10 @@ public PrintableString payer_note() { * Serialize the UnsignedInvoiceRequest object into a byte array which can be read by UnsignedInvoiceRequest_read */ public byte[] write() { - long ret = bindings.UnsignedInvoiceRequest_write(this.ptr); + long ret = Bindings.UnsignedInvoiceRequestWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } diff --git a/c_sharp/src/org/ldk/structs/UnsignedNodeAnnouncement.cs b/c_sharp/src/org/ldk/structs/UnsignedNodeAnnouncement.cs index c2ed14b33..6f6b04c1c 100644 --- a/c_sharp/src/org/ldk/structs/UnsignedNodeAnnouncement.cs +++ b/c_sharp/src/org/ldk/structs/UnsignedNodeAnnouncement.cs @@ -14,14 +14,14 @@ namespace org { namespace ldk { namespace structs { public class UnsignedNodeAnnouncement : CommonBase { internal UnsignedNodeAnnouncement(object _dummy, long ptr) : base(ptr) { } ~UnsignedNodeAnnouncement() { - if (ptr != 0) { bindings.UnsignedNodeAnnouncement_free(ptr); } + if (ptr != 0) { Bindings.UnsignedNodeAnnouncementFree(ptr); } } /** * The advertised features */ public NodeFeatures get_features() { - long ret = bindings.UnsignedNodeAnnouncement_get_features(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementGetFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); } @@ -33,7 +33,7 @@ public NodeFeatures get_features() { * The advertised features */ public void set_features(org.ldk.structs.NodeFeatures val) { - bindings.UnsignedNodeAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedNodeAnnouncementSetFeatures(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -43,7 +43,7 @@ public void set_features(org.ldk.structs.NodeFeatures val) { * A strictly monotonic announcement counter, with gaps allowed */ public int get_timestamp() { - int ret = bindings.UnsignedNodeAnnouncement_get_timestamp(this.ptr); + int ret = Bindings.UnsignedNodeAnnouncementGetTimestamp(this.ptr); GC.KeepAlive(this); return ret; } @@ -52,7 +52,7 @@ public int get_timestamp() { * A strictly monotonic announcement counter, with gaps allowed */ public void set_timestamp(int val) { - bindings.UnsignedNodeAnnouncement_set_timestamp(this.ptr, val); + Bindings.UnsignedNodeAnnouncementSetTimestamp(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -62,7 +62,7 @@ public void set_timestamp(int val) { * to this node). */ public NodeId get_node_id() { - long ret = bindings.UnsignedNodeAnnouncement_get_node_id(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementGetNodeId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); } @@ -75,7 +75,7 @@ public NodeId get_node_id() { * to this node). */ public void set_node_id(org.ldk.structs.NodeId val) { - bindings.UnsignedNodeAnnouncement_set_node_id(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedNodeAnnouncementSetNodeId(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -85,10 +85,10 @@ public void set_node_id(org.ldk.structs.NodeId val) { * An RGB color for UI purposes */ public byte[] get_rgb() { - long ret = bindings.UnsignedNodeAnnouncement_get_rgb(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementGetRgb(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -96,7 +96,7 @@ public byte[] get_rgb() { * An RGB color for UI purposes */ public void set_rgb(byte[] val) { - bindings.UnsignedNodeAnnouncement_set_rgb(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 3))); + Bindings.UnsignedNodeAnnouncementSetRgb(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 3))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -107,7 +107,7 @@ public void set_rgb(byte[] val) { * This should be sanitized before use. There is no guarantee of uniqueness. */ public NodeAlias get_alias() { - long ret = bindings.UnsignedNodeAnnouncement_get_alias(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementGetAlias(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.NodeAlias ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeAlias(null, ret); } @@ -121,7 +121,7 @@ public NodeAlias get_alias() { * This should be sanitized before use. There is no guarantee of uniqueness. */ public void set_alias(org.ldk.structs.NodeAlias val) { - bindings.UnsignedNodeAnnouncement_set_alias(this.ptr, val == null ? 0 : val.ptr); + Bindings.UnsignedNodeAnnouncementSetAlias(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -133,18 +133,18 @@ public void set_alias(org.ldk.structs.NodeAlias val) { * Returns a copy of the field. */ public SocketAddress[] get_addresses() { - long ret = bindings.UnsignedNodeAnnouncement_get_addresses(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementGetAddresses(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_15_len = InternalUtils.getArrayLength(ret); + int ret_conv_15_len = InternalUtils.GetArrayLength(ret); SocketAddress[] ret_conv_15_arr = new SocketAddress[ret_conv_15_len]; for (int p = 0; p < ret_conv_15_len; p++) { - long ret_conv_15 = InternalUtils.getU64ArrayElem(ret, p); + long ret_conv_15 = InternalUtils.GetU64ArrayElem(ret, p); org.ldk.structs.SocketAddress ret_conv_15_hu_conv = org.ldk.structs.SocketAddress.constr_from_ptr(ret_conv_15); if (ret_conv_15_hu_conv != null) { ret_conv_15_hu_conv.ptrs_to.AddLast(this); }; ret_conv_15_arr[p] = ret_conv_15_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_15_arr; } @@ -152,14 +152,14 @@ public SocketAddress[] get_addresses() { * List of addresses on which this node is reachable */ public void set_addresses(SocketAddress[] val) { - bindings.UnsignedNodeAnnouncement_set_addresses(this.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(val, val_conv_15 => val_conv_15.ptr))); + Bindings.UnsignedNodeAnnouncementSetAddresses(this.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(val, val_conv_15 => val_conv_15.ptr))); GC.KeepAlive(this); GC.KeepAlive(val); foreach (SocketAddress val_conv_15 in val) { if (this != null) { this.ptrs_to.AddLast(val_conv_15); }; }; } internal long clone_ptr() { - long ret = bindings.UnsignedNodeAnnouncement_clone_ptr(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -168,7 +168,7 @@ internal long clone_ptr() { * Creates a copy of the UnsignedNodeAnnouncement */ public UnsignedNodeAnnouncement clone() { - long ret = bindings.UnsignedNodeAnnouncement_clone(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UnsignedNodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedNodeAnnouncement(null, ret); } @@ -180,7 +180,7 @@ public UnsignedNodeAnnouncement clone() { * Generates a non-cryptographic 64-bit hash of the UnsignedNodeAnnouncement. */ public long hash() { - long ret = bindings.UnsignedNodeAnnouncement_hash(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -194,7 +194,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UnsignedNodeAnnouncement b) { - bool ret = bindings.UnsignedNodeAnnouncement_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UnsignedNodeAnnouncementEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -209,10 +209,10 @@ public override bool Equals(object o) { * Serialize the UnsignedNodeAnnouncement object into a byte array which can be read by UnsignedNodeAnnouncement_read */ public byte[] write() { - long ret = bindings.UnsignedNodeAnnouncement_write(this.ptr); + long ret = Bindings.UnsignedNodeAnnouncementWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -220,7 +220,7 @@ public byte[] write() { * Read a UnsignedNodeAnnouncement from a byte array, created by UnsignedNodeAnnouncement_write */ public static Result_UnsignedNodeAnnouncementDecodeErrorZ read(byte[] ser) { - long ret = bindings.UnsignedNodeAnnouncement_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UnsignedNodeAnnouncementRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UntrustedString.cs b/c_sharp/src/org/ldk/structs/UntrustedString.cs index e2d653780..1606fece2 100644 --- a/c_sharp/src/org/ldk/structs/UntrustedString.cs +++ b/c_sharp/src/org/ldk/structs/UntrustedString.cs @@ -12,19 +12,19 @@ namespace org { namespace ldk { namespace structs { public class UntrustedString : CommonBase { internal UntrustedString(object _dummy, long ptr) : base(ptr) { } ~UntrustedString() { - if (ptr != 0) { bindings.UntrustedString_free(ptr); } + if (ptr != 0) { Bindings.UntrustedStringFree(ptr); } } public string get_a() { - long ret = bindings.UntrustedString_get_a(this.ptr); + long ret = Bindings.UntrustedStringGetA(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } public void set_a(string val) { - bindings.UntrustedString_set_a(this.ptr, InternalUtils.encodeString(val)); + Bindings.UntrustedStringSetA(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -33,7 +33,7 @@ public void set_a(string val) { * Constructs a new UntrustedString given each field */ public static UntrustedString of(string a_arg) { - long ret = bindings.UntrustedString_new(InternalUtils.encodeString(a_arg)); + long ret = Bindings.UntrustedStringNew(InternalUtils.EncodeString(a_arg)); GC.KeepAlive(a_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UntrustedString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UntrustedString(null, ret); } @@ -42,7 +42,7 @@ public static UntrustedString of(string a_arg) { } internal long clone_ptr() { - long ret = bindings.UntrustedString_clone_ptr(this.ptr); + long ret = Bindings.UntrustedStringClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -51,7 +51,7 @@ internal long clone_ptr() { * Creates a copy of the UntrustedString */ public UntrustedString clone() { - long ret = bindings.UntrustedString_clone(this.ptr); + long ret = Bindings.UntrustedStringClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UntrustedString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UntrustedString(null, ret); } @@ -65,7 +65,7 @@ public UntrustedString clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UntrustedString b) { - bool ret = bindings.UntrustedString_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UntrustedStringEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -80,7 +80,7 @@ public override bool Equals(object o) { * Generates a non-cryptographic 64-bit hash of the UntrustedString. */ public long hash() { - long ret = bindings.UntrustedString_hash(this.ptr); + long ret = Bindings.UntrustedStringHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,10 +92,10 @@ public override int GetHashCode() { * Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read */ public byte[] write() { - long ret = bindings.UntrustedString_write(this.ptr); + long ret = Bindings.UntrustedStringWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -103,7 +103,7 @@ public byte[] write() { * Read a UntrustedString from a byte array, created by UntrustedString_write */ public static Result_UntrustedStringDecodeErrorZ read(byte[] ser) { - long ret = bindings.UntrustedString_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UntrustedStringRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UntrustedStringDecodeErrorZ ret_hu_conv = Result_UntrustedStringDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UpdateAddHTLC.cs b/c_sharp/src/org/ldk/structs/UpdateAddHTLC.cs index 343346eb8..45cfa3b1b 100644 --- a/c_sharp/src/org/ldk/structs/UpdateAddHTLC.cs +++ b/c_sharp/src/org/ldk/structs/UpdateAddHTLC.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UpdateAddHTLC : CommonBase { internal UpdateAddHTLC(object _dummy, long ptr) : base(ptr) { } ~UpdateAddHTLC() { - if (ptr != 0) { bindings.UpdateAddHTLC_free(ptr); } + if (ptr != 0) { Bindings.UpdateAddHTLCFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.UpdateAddHTLC_get_channel_id(this.ptr); + long ret = Bindings.UpdateAddHTLCGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.UpdateAddHTLC_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateAddHTLCSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The HTLC ID */ public long get_htlc_id() { - long ret = bindings.UpdateAddHTLC_get_htlc_id(this.ptr); + long ret = Bindings.UpdateAddHTLCGetHtlcId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_htlc_id() { * The HTLC ID */ public void set_htlc_id(long val) { - bindings.UpdateAddHTLC_set_htlc_id(this.ptr, val); + Bindings.UpdateAddHTLCSetHtlcId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_htlc_id(long val) { * The HTLC value in milli-satoshi */ public long get_amount_msat() { - long ret = bindings.UpdateAddHTLC_get_amount_msat(this.ptr); + long ret = Bindings.UpdateAddHTLCGetAmountMsat(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,7 +68,7 @@ public long get_amount_msat() { * The HTLC value in milli-satoshi */ public void set_amount_msat(long val) { - bindings.UpdateAddHTLC_set_amount_msat(this.ptr, val); + Bindings.UpdateAddHTLCSetAmountMsat(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -77,10 +77,10 @@ public void set_amount_msat(long val) { * The payment hash, the pre-image of which controls HTLC redemption */ public byte[] get_payment_hash() { - long ret = bindings.UpdateAddHTLC_get_payment_hash(this.ptr); + long ret = Bindings.UpdateAddHTLCGetPaymentHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -88,7 +88,7 @@ public byte[] get_payment_hash() { * The payment hash, the pre-image of which controls HTLC redemption */ public void set_payment_hash(byte[] val) { - bindings.UpdateAddHTLC_set_payment_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateAddHTLCSetPaymentHash(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -97,7 +97,7 @@ public void set_payment_hash(byte[] val) { * The expiry height of the HTLC */ public int get_cltv_expiry() { - int ret = bindings.UpdateAddHTLC_get_cltv_expiry(this.ptr); + int ret = Bindings.UpdateAddHTLCGetCltvExpiry(this.ptr); GC.KeepAlive(this); return ret; } @@ -106,7 +106,7 @@ public int get_cltv_expiry() { * The expiry height of the HTLC */ public void set_cltv_expiry(int val) { - bindings.UpdateAddHTLC_set_cltv_expiry(this.ptr, val); + Bindings.UpdateAddHTLCSetCltvExpiry(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -118,7 +118,7 @@ public void set_cltv_expiry(int val) { * [`ChannelConfig::accept_underpaying_htlcs`]: crate::util::config::ChannelConfig::accept_underpaying_htlcs */ public Option_u64Z get_skimmed_fee_msat() { - long ret = bindings.UpdateAddHTLC_get_skimmed_fee_msat(this.ptr); + long ret = Bindings.UpdateAddHTLCGetSkimmedFeeMsat(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -133,7 +133,7 @@ public Option_u64Z get_skimmed_fee_msat() { * [`ChannelConfig::accept_underpaying_htlcs`]: crate::util::config::ChannelConfig::accept_underpaying_htlcs */ public void set_skimmed_fee_msat(org.ldk.structs.Option_u64Z val) { - bindings.UpdateAddHTLC_set_skimmed_fee_msat(this.ptr, val.ptr); + Bindings.UpdateAddHTLCSetSkimmedFeeMsat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -143,7 +143,7 @@ public void set_skimmed_fee_msat(org.ldk.structs.Option_u64Z val) { * The onion routing packet with encrypted data for the next hop. */ public OnionPacket get_onion_routing_packet() { - long ret = bindings.UpdateAddHTLC_get_onion_routing_packet(this.ptr); + long ret = Bindings.UpdateAddHTLCGetOnionRoutingPacket(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OnionPacket ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OnionPacket(null, ret); } @@ -155,7 +155,7 @@ public OnionPacket get_onion_routing_packet() { * The onion routing packet with encrypted data for the next hop. */ public void set_onion_routing_packet(org.ldk.structs.OnionPacket val) { - bindings.UpdateAddHTLC_set_onion_routing_packet(this.ptr, val == null ? 0 : val.ptr); + Bindings.UpdateAddHTLCSetOnionRoutingPacket(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -168,10 +168,10 @@ public void set_onion_routing_packet(org.ldk.structs.OnionPacket val) { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public byte[] get_blinding_point() { - long ret = bindings.UpdateAddHTLC_get_blinding_point(this.ptr); + long ret = Bindings.UpdateAddHTLCGetBlindingPoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -182,7 +182,7 @@ public byte[] get_blinding_point() { * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ public void set_blinding_point(byte[] val) { - bindings.UpdateAddHTLC_set_blinding_point(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 33))); + Bindings.UpdateAddHTLCSetBlindingPoint(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 33))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -193,7 +193,7 @@ public void set_blinding_point(byte[] val) { * Note that blinding_point_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static UpdateAddHTLC of(byte[] channel_id_arg, long htlc_id_arg, long amount_msat_arg, byte[] payment_hash_arg, int cltv_expiry_arg, org.ldk.structs.Option_u64Z skimmed_fee_msat_arg, org.ldk.structs.OnionPacket onion_routing_packet_arg, byte[] blinding_point_arg) { - long ret = bindings.UpdateAddHTLC_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), htlc_id_arg, amount_msat_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash_arg, 32)), cltv_expiry_arg, skimmed_fee_msat_arg.ptr, onion_routing_packet_arg == null ? 0 : onion_routing_packet_arg.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(blinding_point_arg, 33))); + long ret = Bindings.UpdateAddHTLCNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), htlc_id_arg, amount_msat_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash_arg, 32)), cltv_expiry_arg, skimmed_fee_msat_arg.ptr, onion_routing_packet_arg == null ? 0 : onion_routing_packet_arg.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(blinding_point_arg, 33))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(htlc_id_arg); GC.KeepAlive(amount_msat_arg); @@ -211,7 +211,7 @@ public static UpdateAddHTLC of(byte[] channel_id_arg, long htlc_id_arg, long amo } internal long clone_ptr() { - long ret = bindings.UpdateAddHTLC_clone_ptr(this.ptr); + long ret = Bindings.UpdateAddHTLCClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -220,7 +220,7 @@ internal long clone_ptr() { * Creates a copy of the UpdateAddHTLC */ public UpdateAddHTLC clone() { - long ret = bindings.UpdateAddHTLC_clone(this.ptr); + long ret = Bindings.UpdateAddHTLCClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateAddHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateAddHTLC(null, ret); } @@ -232,7 +232,7 @@ public UpdateAddHTLC clone() { * Generates a non-cryptographic 64-bit hash of the UpdateAddHTLC. */ public long hash() { - long ret = bindings.UpdateAddHTLC_hash(this.ptr); + long ret = Bindings.UpdateAddHTLCHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -246,7 +246,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UpdateAddHTLC b) { - bool ret = bindings.UpdateAddHTLC_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UpdateAddHTLCEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -261,10 +261,10 @@ public override bool Equals(object o) { * Serialize the UpdateAddHTLC object into a byte array which can be read by UpdateAddHTLC_read */ public byte[] write() { - long ret = bindings.UpdateAddHTLC_write(this.ptr); + long ret = Bindings.UpdateAddHTLCWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -272,7 +272,7 @@ public byte[] write() { * Read a UpdateAddHTLC from a byte array, created by UpdateAddHTLC_write */ public static Result_UpdateAddHTLCDecodeErrorZ read(byte[] ser) { - long ret = bindings.UpdateAddHTLC_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UpdateAddHTLCRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UpdateFailHTLC.cs b/c_sharp/src/org/ldk/structs/UpdateFailHTLC.cs index e4ba14962..726d39ca5 100644 --- a/c_sharp/src/org/ldk/structs/UpdateFailHTLC.cs +++ b/c_sharp/src/org/ldk/structs/UpdateFailHTLC.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UpdateFailHTLC : CommonBase { internal UpdateFailHTLC(object _dummy, long ptr) : base(ptr) { } ~UpdateFailHTLC() { - if (ptr != 0) { bindings.UpdateFailHTLC_free(ptr); } + if (ptr != 0) { Bindings.UpdateFailHTLCFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.UpdateFailHTLC_get_channel_id(this.ptr); + long ret = Bindings.UpdateFailHTLCGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.UpdateFailHTLC_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateFailHTLCSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The HTLC ID */ public long get_htlc_id() { - long ret = bindings.UpdateFailHTLC_get_htlc_id(this.ptr); + long ret = Bindings.UpdateFailHTLCGetHtlcId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,13 +50,13 @@ public long get_htlc_id() { * The HTLC ID */ public void set_htlc_id(long val) { - bindings.UpdateFailHTLC_set_htlc_id(this.ptr, val); + Bindings.UpdateFailHTLCSetHtlcId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.UpdateFailHTLC_clone_ptr(this.ptr); + long ret = Bindings.UpdateFailHTLCClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -65,7 +65,7 @@ internal long clone_ptr() { * Creates a copy of the UpdateFailHTLC */ public UpdateFailHTLC clone() { - long ret = bindings.UpdateFailHTLC_clone(this.ptr); + long ret = Bindings.UpdateFailHTLCClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateFailHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFailHTLC(null, ret); } @@ -77,7 +77,7 @@ public UpdateFailHTLC clone() { * Generates a non-cryptographic 64-bit hash of the UpdateFailHTLC. */ public long hash() { - long ret = bindings.UpdateFailHTLC_hash(this.ptr); + long ret = Bindings.UpdateFailHTLCHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -91,7 +91,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UpdateFailHTLC b) { - bool ret = bindings.UpdateFailHTLC_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UpdateFailHTLCEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -106,10 +106,10 @@ public override bool Equals(object o) { * Serialize the UpdateFailHTLC object into a byte array which can be read by UpdateFailHTLC_read */ public byte[] write() { - long ret = bindings.UpdateFailHTLC_write(this.ptr); + long ret = Bindings.UpdateFailHTLCWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -117,7 +117,7 @@ public byte[] write() { * Read a UpdateFailHTLC from a byte array, created by UpdateFailHTLC_write */ public static Result_UpdateFailHTLCDecodeErrorZ read(byte[] ser) { - long ret = bindings.UpdateFailHTLC_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UpdateFailHTLCRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UpdateFailMalformedHTLC.cs b/c_sharp/src/org/ldk/structs/UpdateFailMalformedHTLC.cs index 8d26d4646..b90f56636 100644 --- a/c_sharp/src/org/ldk/structs/UpdateFailMalformedHTLC.cs +++ b/c_sharp/src/org/ldk/structs/UpdateFailMalformedHTLC.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UpdateFailMalformedHTLC : CommonBase { internal UpdateFailMalformedHTLC(object _dummy, long ptr) : base(ptr) { } ~UpdateFailMalformedHTLC() { - if (ptr != 0) { bindings.UpdateFailMalformedHTLC_free(ptr); } + if (ptr != 0) { Bindings.UpdateFailMalformedHTLCFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.UpdateFailMalformedHTLC_get_channel_id(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.UpdateFailMalformedHTLC_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateFailMalformedHTLCSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The HTLC ID */ public long get_htlc_id() { - long ret = bindings.UpdateFailMalformedHTLC_get_htlc_id(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCGetHtlcId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_htlc_id() { * The HTLC ID */ public void set_htlc_id(long val) { - bindings.UpdateFailMalformedHTLC_set_htlc_id(this.ptr, val); + Bindings.UpdateFailMalformedHTLCSetHtlcId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_htlc_id(long val) { * The failure code */ public short get_failure_code() { - short ret = bindings.UpdateFailMalformedHTLC_get_failure_code(this.ptr); + short ret = Bindings.UpdateFailMalformedHTLCGetFailureCode(this.ptr); GC.KeepAlive(this); return ret; } @@ -68,13 +68,13 @@ public short get_failure_code() { * The failure code */ public void set_failure_code(short val) { - bindings.UpdateFailMalformedHTLC_set_failure_code(this.ptr, val); + Bindings.UpdateFailMalformedHTLCSetFailureCode(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } internal long clone_ptr() { - long ret = bindings.UpdateFailMalformedHTLC_clone_ptr(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * Creates a copy of the UpdateFailMalformedHTLC */ public UpdateFailMalformedHTLC clone() { - long ret = bindings.UpdateFailMalformedHTLC_clone(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateFailMalformedHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFailMalformedHTLC(null, ret); } @@ -95,7 +95,7 @@ public UpdateFailMalformedHTLC clone() { * Generates a non-cryptographic 64-bit hash of the UpdateFailMalformedHTLC. */ public long hash() { - long ret = bindings.UpdateFailMalformedHTLC_hash(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -109,7 +109,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UpdateFailMalformedHTLC b) { - bool ret = bindings.UpdateFailMalformedHTLC_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UpdateFailMalformedHTLCEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -124,10 +124,10 @@ public override bool Equals(object o) { * Serialize the UpdateFailMalformedHTLC object into a byte array which can be read by UpdateFailMalformedHTLC_read */ public byte[] write() { - long ret = bindings.UpdateFailMalformedHTLC_write(this.ptr); + long ret = Bindings.UpdateFailMalformedHTLCWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -135,7 +135,7 @@ public byte[] write() { * Read a UpdateFailMalformedHTLC from a byte array, created by UpdateFailMalformedHTLC_write */ public static Result_UpdateFailMalformedHTLCDecodeErrorZ read(byte[] ser) { - long ret = bindings.UpdateFailMalformedHTLC_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UpdateFailMalformedHTLCRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UpdateFee.cs b/c_sharp/src/org/ldk/structs/UpdateFee.cs index 90b0817a1..c92c93331 100644 --- a/c_sharp/src/org/ldk/structs/UpdateFee.cs +++ b/c_sharp/src/org/ldk/structs/UpdateFee.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UpdateFee : CommonBase { internal UpdateFee(object _dummy, long ptr) : base(ptr) { } ~UpdateFee() { - if (ptr != 0) { bindings.UpdateFee_free(ptr); } + if (ptr != 0) { Bindings.UpdateFeeFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.UpdateFee_get_channel_id(this.ptr); + long ret = Bindings.UpdateFeeGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.UpdateFee_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateFeeSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * Fee rate per 1000-weight of the transaction */ public int get_feerate_per_kw() { - int ret = bindings.UpdateFee_get_feerate_per_kw(this.ptr); + int ret = Bindings.UpdateFeeGetFeeratePerKw(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public int get_feerate_per_kw() { * Fee rate per 1000-weight of the transaction */ public void set_feerate_per_kw(int val) { - bindings.UpdateFee_set_feerate_per_kw(this.ptr, val); + Bindings.UpdateFeeSetFeeratePerKw(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,7 +59,7 @@ public void set_feerate_per_kw(int val) { * Constructs a new UpdateFee given each field */ public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg) { - long ret = bindings.UpdateFee_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), feerate_per_kw_arg); + long ret = Bindings.UpdateFeeNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), feerate_per_kw_arg); GC.KeepAlive(channel_id_arg); GC.KeepAlive(feerate_per_kw_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -69,7 +69,7 @@ public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg) { } internal long clone_ptr() { - long ret = bindings.UpdateFee_clone_ptr(this.ptr); + long ret = Bindings.UpdateFeeClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -78,7 +78,7 @@ internal long clone_ptr() { * Creates a copy of the UpdateFee */ public UpdateFee clone() { - long ret = bindings.UpdateFee_clone(this.ptr); + long ret = Bindings.UpdateFeeClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateFee ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFee(null, ret); } @@ -90,7 +90,7 @@ public UpdateFee clone() { * Generates a non-cryptographic 64-bit hash of the UpdateFee. */ public long hash() { - long ret = bindings.UpdateFee_hash(this.ptr); + long ret = Bindings.UpdateFeeHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -104,7 +104,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UpdateFee b) { - bool ret = bindings.UpdateFee_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UpdateFeeEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -119,10 +119,10 @@ public override bool Equals(object o) { * Serialize the UpdateFee object into a byte array which can be read by UpdateFee_read */ public byte[] write() { - long ret = bindings.UpdateFee_write(this.ptr); + long ret = Bindings.UpdateFeeWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -130,7 +130,7 @@ public byte[] write() { * Read a UpdateFee from a byte array, created by UpdateFee_write */ public static Result_UpdateFeeDecodeErrorZ read(byte[] ser) { - long ret = bindings.UpdateFee_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UpdateFeeRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UpdateFulfillHTLC.cs b/c_sharp/src/org/ldk/structs/UpdateFulfillHTLC.cs index d7c10a6b9..5eeb40701 100644 --- a/c_sharp/src/org/ldk/structs/UpdateFulfillHTLC.cs +++ b/c_sharp/src/org/ldk/structs/UpdateFulfillHTLC.cs @@ -14,17 +14,17 @@ namespace org { namespace ldk { namespace structs { public class UpdateFulfillHTLC : CommonBase { internal UpdateFulfillHTLC(object _dummy, long ptr) : base(ptr) { } ~UpdateFulfillHTLC() { - if (ptr != 0) { bindings.UpdateFulfillHTLC_free(ptr); } + if (ptr != 0) { Bindings.UpdateFulfillHTLCFree(ptr); } } /** * The channel ID */ public byte[] get_channel_id() { - long ret = bindings.UpdateFulfillHTLC_get_channel_id(this.ptr); + long ret = Bindings.UpdateFulfillHTLCGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -32,7 +32,7 @@ public byte[] get_channel_id() { * The channel ID */ public void set_channel_id(byte[] val) { - bindings.UpdateFulfillHTLC_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateFulfillHTLCSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -41,7 +41,7 @@ public void set_channel_id(byte[] val) { * The HTLC ID */ public long get_htlc_id() { - long ret = bindings.UpdateFulfillHTLC_get_htlc_id(this.ptr); + long ret = Bindings.UpdateFulfillHTLCGetHtlcId(this.ptr); GC.KeepAlive(this); return ret; } @@ -50,7 +50,7 @@ public long get_htlc_id() { * The HTLC ID */ public void set_htlc_id(long val) { - bindings.UpdateFulfillHTLC_set_htlc_id(this.ptr, val); + Bindings.UpdateFulfillHTLCSetHtlcId(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -59,10 +59,10 @@ public void set_htlc_id(long val) { * The pre-image of the payment hash, allowing HTLC redemption */ public byte[] get_payment_preimage() { - long ret = bindings.UpdateFulfillHTLC_get_payment_preimage(this.ptr); + long ret = Bindings.UpdateFulfillHTLCGetPaymentPreimage(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -70,7 +70,7 @@ public byte[] get_payment_preimage() { * The pre-image of the payment hash, allowing HTLC redemption */ public void set_payment_preimage(byte[] val) { - bindings.UpdateFulfillHTLC_set_payment_preimage(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.UpdateFulfillHTLCSetPaymentPreimage(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -79,7 +79,7 @@ public void set_payment_preimage(byte[] val) { * Constructs a new UpdateFulfillHTLC given each field */ public static UpdateFulfillHTLC of(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg) { - long ret = bindings.UpdateFulfillHTLC_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), htlc_id_arg, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_preimage_arg, 32))); + long ret = Bindings.UpdateFulfillHTLCNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), htlc_id_arg, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_preimage_arg, 32))); GC.KeepAlive(channel_id_arg); GC.KeepAlive(htlc_id_arg); GC.KeepAlive(payment_preimage_arg); @@ -90,7 +90,7 @@ public static UpdateFulfillHTLC of(byte[] channel_id_arg, long htlc_id_arg, byte } internal long clone_ptr() { - long ret = bindings.UpdateFulfillHTLC_clone_ptr(this.ptr); + long ret = Bindings.UpdateFulfillHTLCClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -99,7 +99,7 @@ internal long clone_ptr() { * Creates a copy of the UpdateFulfillHTLC */ public UpdateFulfillHTLC clone() { - long ret = bindings.UpdateFulfillHTLC_clone(this.ptr); + long ret = Bindings.UpdateFulfillHTLCClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UpdateFulfillHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UpdateFulfillHTLC(null, ret); } @@ -111,7 +111,7 @@ public UpdateFulfillHTLC clone() { * Generates a non-cryptographic 64-bit hash of the UpdateFulfillHTLC. */ public long hash() { - long ret = bindings.UpdateFulfillHTLC_hash(this.ptr); + long ret = Bindings.UpdateFulfillHTLCHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -125,7 +125,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.UpdateFulfillHTLC b) { - bool ret = bindings.UpdateFulfillHTLC_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UpdateFulfillHTLCEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -140,10 +140,10 @@ public override bool Equals(object o) { * Serialize the UpdateFulfillHTLC object into a byte array which can be read by UpdateFulfillHTLC_read */ public byte[] write() { - long ret = bindings.UpdateFulfillHTLC_write(this.ptr); + long ret = Bindings.UpdateFulfillHTLCWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -151,7 +151,7 @@ public byte[] write() { * Read a UpdateFulfillHTLC from a byte array, created by UpdateFulfillHTLC_write */ public static Result_UpdateFulfillHTLCDecodeErrorZ read(byte[] ser) { - long ret = bindings.UpdateFulfillHTLC_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.UpdateFulfillHTLCRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/UserConfig.cs b/c_sharp/src/org/ldk/structs/UserConfig.cs index 345d5d350..d0746a0d9 100644 --- a/c_sharp/src/org/ldk/structs/UserConfig.cs +++ b/c_sharp/src/org/ldk/structs/UserConfig.cs @@ -15,14 +15,14 @@ namespace org { namespace ldk { namespace structs { public class UserConfig : CommonBase { internal UserConfig(object _dummy, long ptr) : base(ptr) { } ~UserConfig() { - if (ptr != 0) { bindings.UserConfig_free(ptr); } + if (ptr != 0) { Bindings.UserConfigFree(ptr); } } /** * Channel handshake config that we propose to our counterparty. */ public ChannelHandshakeConfig get_channel_handshake_config() { - long ret = bindings.UserConfig_get_channel_handshake_config(this.ptr); + long ret = Bindings.UserConfigGetChannelHandshakeConfig(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeConfig(null, ret); } @@ -34,7 +34,7 @@ public ChannelHandshakeConfig get_channel_handshake_config() { * Channel handshake config that we propose to our counterparty. */ public void set_channel_handshake_config(org.ldk.structs.ChannelHandshakeConfig val) { - bindings.UserConfig_set_channel_handshake_config(this.ptr, val == null ? 0 : val.ptr); + Bindings.UserConfigSetChannelHandshakeConfig(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -44,7 +44,7 @@ public void set_channel_handshake_config(org.ldk.structs.ChannelHandshakeConfig * Limits applied to our counterparty's proposed channel handshake config settings. */ public ChannelHandshakeLimits get_channel_handshake_limits() { - long ret = bindings.UserConfig_get_channel_handshake_limits(this.ptr); + long ret = Bindings.UserConfigGetChannelHandshakeLimits(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelHandshakeLimits ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelHandshakeLimits(null, ret); } @@ -56,7 +56,7 @@ public ChannelHandshakeLimits get_channel_handshake_limits() { * Limits applied to our counterparty's proposed channel handshake config settings. */ public void set_channel_handshake_limits(org.ldk.structs.ChannelHandshakeLimits val) { - bindings.UserConfig_set_channel_handshake_limits(this.ptr, val == null ? 0 : val.ptr); + Bindings.UserConfigSetChannelHandshakeLimits(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -66,7 +66,7 @@ public void set_channel_handshake_limits(org.ldk.structs.ChannelHandshakeLimits * Channel config which affects behavior during channel lifetime. */ public ChannelConfig get_channel_config() { - long ret = bindings.UserConfig_get_channel_config(this.ptr); + long ret = Bindings.UserConfigGetChannelConfig(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ChannelConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelConfig(null, ret); } @@ -78,7 +78,7 @@ public ChannelConfig get_channel_config() { * Channel config which affects behavior during channel lifetime. */ public void set_channel_config(org.ldk.structs.ChannelConfig val) { - bindings.UserConfig_set_channel_config(this.ptr, val == null ? 0 : val.ptr); + Bindings.UserConfigSetChannelConfig(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -103,7 +103,7 @@ public void set_channel_config(org.ldk.structs.ChannelConfig val) { * Default value: false. */ public bool get_accept_forwards_to_priv_channels() { - bool ret = bindings.UserConfig_get_accept_forwards_to_priv_channels(this.ptr); + bool ret = Bindings.UserConfigGetAcceptForwardsToPrivChannels(this.ptr); GC.KeepAlive(this); return ret; } @@ -127,7 +127,7 @@ public bool get_accept_forwards_to_priv_channels() { * Default value: false. */ public void set_accept_forwards_to_priv_channels(bool val) { - bindings.UserConfig_set_accept_forwards_to_priv_channels(this.ptr, val); + Bindings.UserConfigSetAcceptForwardsToPrivChannels(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -137,7 +137,7 @@ public void set_accept_forwards_to_priv_channels(bool val) { * Default value: true. */ public bool get_accept_inbound_channels() { - bool ret = bindings.UserConfig_get_accept_inbound_channels(this.ptr); + bool ret = Bindings.UserConfigGetAcceptInboundChannels(this.ptr); GC.KeepAlive(this); return ret; } @@ -147,7 +147,7 @@ public bool get_accept_inbound_channels() { * Default value: true. */ public void set_accept_inbound_channels(bool val) { - bindings.UserConfig_set_accept_inbound_channels(this.ptr, val); + Bindings.UserConfigSetAcceptInboundChannels(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -168,7 +168,7 @@ public void set_accept_inbound_channels(bool val) { * [`msgs::AcceptChannel`]: crate::ln::msgs::AcceptChannel */ public bool get_manually_accept_inbound_channels() { - bool ret = bindings.UserConfig_get_manually_accept_inbound_channels(this.ptr); + bool ret = Bindings.UserConfigGetManuallyAcceptInboundChannels(this.ptr); GC.KeepAlive(this); return ret; } @@ -189,7 +189,7 @@ public bool get_manually_accept_inbound_channels() { * [`msgs::AcceptChannel`]: crate::ln::msgs::AcceptChannel */ public void set_manually_accept_inbound_channels(bool val) { - bindings.UserConfig_set_manually_accept_inbound_channels(this.ptr, val); + Bindings.UserConfigSetManuallyAcceptInboundChannels(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -207,7 +207,7 @@ public void set_manually_accept_inbound_channels(bool val) { * [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted */ public bool get_accept_intercept_htlcs() { - bool ret = bindings.UserConfig_get_accept_intercept_htlcs(this.ptr); + bool ret = Bindings.UserConfigGetAcceptInterceptHtlcs(this.ptr); GC.KeepAlive(this); return ret; } @@ -225,7 +225,7 @@ public bool get_accept_intercept_htlcs() { * [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted */ public void set_accept_intercept_htlcs(bool val) { - bindings.UserConfig_set_accept_intercept_htlcs(this.ptr, val); + Bindings.UserConfigSetAcceptInterceptHtlcs(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -243,7 +243,7 @@ public void set_accept_intercept_htlcs(bool val) { * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public bool get_accept_mpp_keysend() { - bool ret = bindings.UserConfig_get_accept_mpp_keysend(this.ptr); + bool ret = Bindings.UserConfigGetAcceptMppKeysend(this.ptr); GC.KeepAlive(this); return ret; } @@ -261,7 +261,7 @@ public bool get_accept_mpp_keysend() { * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public void set_accept_mpp_keysend(bool val) { - bindings.UserConfig_set_accept_mpp_keysend(this.ptr, val); + Bindings.UserConfigSetAcceptMppKeysend(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -270,7 +270,7 @@ public void set_accept_mpp_keysend(bool val) { * Constructs a new UserConfig given each field */ 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, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_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, accept_mpp_keysend_arg); + long ret = Bindings.UserConfigNew(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, accept_mpp_keysend_arg); GC.KeepAlive(channel_handshake_config_arg); GC.KeepAlive(channel_handshake_limits_arg); GC.KeepAlive(channel_config_arg); @@ -289,7 +289,7 @@ public static UserConfig of(org.ldk.structs.ChannelHandshakeConfig channel_hands } internal long clone_ptr() { - long ret = bindings.UserConfig_clone_ptr(this.ptr); + long ret = Bindings.UserConfigClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -298,7 +298,7 @@ internal long clone_ptr() { * Creates a copy of the UserConfig */ public UserConfig clone() { - long ret = bindings.UserConfig_clone(this.ptr); + long ret = Bindings.UserConfigClone(this.ptr); GC.KeepAlive(this); 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); } @@ -310,7 +310,7 @@ public UserConfig clone() { * Creates a "default" UserConfig. See struct and individual field documentaiton for details on which values are used. */ public static UserConfig with_default() { - long ret = bindings.UserConfig_default(); + long ret = Bindings.UserConfigDefault(); 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.AddLast(ret_hu_conv); }; diff --git a/c_sharp/src/org/ldk/structs/UtilMethods.cs b/c_sharp/src/org/ldk/structs/UtilMethods.cs index 0ef6dd441..a715966dc 100644 --- a/c_sharp/src/org/ldk/structs/UtilMethods.cs +++ b/c_sharp/src/org/ldk/structs/UtilMethods.cs @@ -10,10 +10,10 @@ public class UtilMethods { * Gets the 128-bit integer, as 16 little-endian bytes */ public static byte[] U128_le_bytes(org.ldk.util.UInt128 val) { - long ret = bindings.U128_le_bytes(InternalUtils.encodeUint8Array(val.getLEBytes())); + long ret = Bindings.U128LeBytes(InternalUtils.EncodeUint8Array(val.getLEBytes())); GC.KeepAlive(val); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -21,7 +21,7 @@ public static byte[] U128_le_bytes(org.ldk.util.UInt128 val) { * Constructs a new U128 from 16 little-endian bytes */ public static UInt128 U128_new(byte[] le_bytes) { - long ret = bindings.U128_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(le_bytes, 16))); + long ret = Bindings.U128New(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(le_bytes, 16))); GC.KeepAlive(le_bytes); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.util.UInt128 ret_conv = new org.ldk.util.UInt128(ret); @@ -32,7 +32,7 @@ public static UInt128 U128_new(byte[] le_bytes) { * Constructs a new COption_NoneZ containing a */ public static COption_NoneZ COption_NoneZ_some() { - COption_NoneZ ret = bindings.COption_NoneZ_some(); + COption_NoneZ ret = Bindings.COptionNoneZSome(); return ret; } @@ -40,7 +40,7 @@ public static COption_NoneZ COption_NoneZ_some() { * Constructs a new COption_NoneZ containing nothing */ public static COption_NoneZ COption_NoneZ_none() { - COption_NoneZ ret = bindings.COption_NoneZ_none(); + COption_NoneZ ret = Bindings.COptionNoneZNone(); return ret; } @@ -48,7 +48,7 @@ public static COption_NoneZ COption_NoneZ_none() { * Read a APIError from a byte array, created by APIError_write */ public static Result_COption_APIErrorZDecodeErrorZ APIError_read(byte[] ser) { - long ret = bindings.APIError_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.APIErrorRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_APIErrorZDecodeErrorZ ret_hu_conv = Result_COption_APIErrorZDecodeErrorZ.constr_from_ptr(ret); @@ -61,7 +61,7 @@ public static Result_COption_APIErrorZDecodeErrorZ APIError_read(byte[] ser) { * Signatures are EC recoverable, meaning that given the message and the signature the PublicKey of the signer can be extracted. */ public static Result_StrSecp256k1ErrorZ sign(byte[] msg, byte[] sk) { - long ret = bindings.sign(InternalUtils.encodeUint8Array(msg), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(sk, 32))); + long ret = Bindings.Sign(InternalUtils.EncodeUint8Array(msg), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(sk, 32))); GC.KeepAlive(msg); GC.KeepAlive(sk); if (ret >= 0 && ret <= 4096) { return null; } @@ -73,7 +73,7 @@ public static Result_StrSecp256k1ErrorZ sign(byte[] msg, byte[] sk) { * Recovers the PublicKey of the signer of the message given the message and the signature. */ public static Result_PublicKeySecp256k1ErrorZ recover_pk(byte[] msg, string sig) { - long ret = bindings.recover_pk(InternalUtils.encodeUint8Array(msg), InternalUtils.encodeString(sig)); + long ret = Bindings.RecoverPk(InternalUtils.EncodeUint8Array(msg), InternalUtils.EncodeString(sig)); GC.KeepAlive(msg); GC.KeepAlive(sig); if (ret >= 0 && ret <= 4096) { return null; } @@ -86,7 +86,7 @@ public static Result_PublicKeySecp256k1ErrorZ recover_pk(byte[] msg, string sig) * and the PublicKey. */ public static bool verify(byte[] msg, string sig, byte[] pk) { - bool ret = bindings.verify(InternalUtils.encodeUint8Array(msg), InternalUtils.encodeString(sig), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pk, 33))); + bool ret = Bindings.Verify(InternalUtils.EncodeUint8Array(msg), InternalUtils.EncodeString(sig), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pk, 33))); GC.KeepAlive(msg); GC.KeepAlive(sig); GC.KeepAlive(pk); @@ -97,11 +97,11 @@ public static bool verify(byte[] msg, string sig, byte[] pk) { * Construct the invoice's HRP and signatureless data into a preimage to be hashed. */ public static byte[] construct_invoice_preimage(byte[] hrp_bytes, UInt5[] data_without_signature) { - long ret = bindings.construct_invoice_preimage(InternalUtils.encodeUint8Array(hrp_bytes), InternalUtils.encodeUint8Array(InternalUtils.convUInt5Array(data_without_signature))); + long ret = Bindings.ConstructInvoicePreimage(InternalUtils.EncodeUint8Array(hrp_bytes), InternalUtils.EncodeUint8Array(InternalUtils.ConvUInt5Array(data_without_signature))); GC.KeepAlive(hrp_bytes); GC.KeepAlive(data_without_signature); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -109,7 +109,7 @@ public static byte[] construct_invoice_preimage(byte[] hrp_bytes, UInt5[] data_w * Read previously persisted [`ChannelMonitor`]s from the store. */ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(org.ldk.structs.KVStore kv_store, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.SignerProvider signer_provider) { - long ret = bindings.read_channel_monitors(kv_store.ptr, entropy_source.ptr, signer_provider.ptr); + long ret = Bindings.ReadChannelMonitors(kv_store.ptr, entropy_source.ptr, signer_provider.ptr); GC.KeepAlive(kv_store); GC.KeepAlive(entropy_source); GC.KeepAlive(signer_provider); @@ -125,7 +125,7 @@ public static Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_ch * Read a MonitorEvent from a byte array, created by MonitorEvent_write */ public static Result_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(byte[] ser) { - long ret = bindings.MonitorEvent_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.MonitorEventRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_MonitorEventZDecodeErrorZ ret_hu_conv = Result_COption_MonitorEventZDecodeErrorZ.constr_from_ptr(ret); @@ -136,7 +136,7 @@ public static Result_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(byte[] * Read a C2Tuple_ThirtyTwoBytesChannelMonitorZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelMonitorZ_write */ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser, org.ldk.structs.EntropySource arg_a, org.ldk.structs.SignerProvider arg_b) { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(InternalUtils.encodeUint8Array(ser), arg_a.ptr, arg_b.ptr); + long ret = Bindings.C2TupleThirtyTwoBytesChannelMonitorZRead(InternalUtils.EncodeUint8Array(ser), arg_a.ptr, arg_b.ptr); GC.KeepAlive(ser); GC.KeepAlive(arg_a); GC.KeepAlive(arg_b); @@ -159,7 +159,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_T * [`Event::PaymentClaimable`]: crate::events::Event::PaymentClaimable */ public static Result_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(org.ldk.structs.UpdateAddHTLC msg, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, int cur_height, bool accept_mpp_keysend, bool allow_skimmed_fees) { - long ret = bindings.peel_payment_onion(msg == null ? 0 : msg.ptr, node_signer.ptr, logger.ptr, cur_height, accept_mpp_keysend, allow_skimmed_fees); + long ret = Bindings.PeelPaymentOnion(msg == null ? 0 : msg.ptr, node_signer.ptr, logger.ptr, cur_height, accept_mpp_keysend, allow_skimmed_fees); GC.KeepAlive(msg); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -179,7 +179,7 @@ public static Result_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(org.ldk.s * [`ChannelManager`]. */ public static InitFeatures provided_init_features(org.ldk.structs.UserConfig config) { - long ret = bindings.provided_init_features(config == null ? 0 : config.ptr); + long ret = Bindings.ProvidedInitFeatures(config == null ? 0 : config.ptr); GC.KeepAlive(config); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(null, ret); } @@ -192,7 +192,7 @@ public static InitFeatures provided_init_features(org.ldk.structs.UserConfig con * Read a C2Tuple_ThirtyTwoBytesChannelManagerZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelManagerZ_write */ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(byte[] ser, EntropySource arg_entropy_source, NodeSigner arg_node_signer, SignerProvider arg_signer_provider, FeeEstimator arg_fee_estimator, Watch arg_chain_monitor, BroadcasterInterface arg_tx_broadcaster, Router arg_router, Logger arg_logger, UserConfig arg_default_config, ChannelMonitor[] arg_channel_monitors) { - long ret = bindings.C2Tuple_ThirtyTwoBytesChannelManagerZ_read(InternalUtils.encodeUint8Array(ser), bindings.ChannelManagerReadArgs_new(arg_entropy_source.ptr, arg_node_signer.ptr, arg_signer_provider.ptr, arg_fee_estimator.ptr, arg_chain_monitor.ptr, arg_tx_broadcaster.ptr, arg_router.ptr, arg_logger.ptr, arg_default_config == null ? 0 : arg_default_config.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(arg_channel_monitors, arg_channel_monitors_conv_16 => arg_channel_monitors_conv_16 == null ? 0 : arg_channel_monitors_conv_16.ptr)))); + long ret = Bindings.C2TupleThirtyTwoBytesChannelManagerZRead(InternalUtils.EncodeUint8Array(ser), Bindings.ChannelManagerReadArgsNew(arg_entropy_source.ptr, arg_node_signer.ptr, arg_signer_provider.ptr, arg_fee_estimator.ptr, arg_chain_monitor.ptr, arg_tx_broadcaster.ptr, arg_router.ptr, arg_logger.ptr, arg_default_config == null ? 0 : arg_default_config.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(arg_channel_monitors, arg_channel_monitors_conv_16 => arg_channel_monitors_conv_16 == null ? 0 : arg_channel_monitors_conv_16.ptr)))); GC.KeepAlive(ser); GC.KeepAlive(arg_entropy_source); GC.KeepAlive(arg_node_signer); @@ -237,7 +237,7 @@ public static Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_T * [`NodeSigner::get_inbound_payment_key_material`]: crate::sign::NodeSigner::get_inbound_payment_key_material */ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(org.ldk.structs.ExpandedKey keys, org.ldk.structs.Option_u64Z min_value_msat, int invoice_expiry_delta_secs, org.ldk.structs.EntropySource entropy_source, long current_time, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create(keys == null ? 0 : keys.ptr, min_value_msat.ptr, invoice_expiry_delta_secs, entropy_source.ptr, current_time, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.Create(keys == null ? 0 : keys.ptr, min_value_msat.ptr, invoice_expiry_delta_secs, entropy_source.ptr, current_time, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(keys); GC.KeepAlive(min_value_msat); GC.KeepAlive(invoice_expiry_delta_secs); @@ -266,7 +266,7 @@ public static Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(org.ldk.s * [phantom node payments]: crate::sign::PhantomKeysManager */ public static Result_ThirtyTwoBytesNoneZ create_from_hash(org.ldk.structs.ExpandedKey keys, org.ldk.structs.Option_u64Z min_value_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long current_time, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_from_hash(keys == null ? 0 : keys.ptr, min_value_msat.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), invoice_expiry_delta_secs, current_time, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateFromHash(keys == null ? 0 : keys.ptr, min_value_msat.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), invoice_expiry_delta_secs, current_time, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(keys); GC.KeepAlive(min_value_msat); GC.KeepAlive(payment_hash); @@ -287,7 +287,7 @@ public static Result_ThirtyTwoBytesNoneZ create_from_hash(org.ldk.structs.Expand * The host part must end with \".onion\". */ public static Result_SocketAddressSocketAddressParseErrorZ parse_onion_address(string host, short port) { - long ret = bindings.parse_onion_address(InternalUtils.encodeString(host), port); + long ret = Bindings.ParseOnionAddress(InternalUtils.EncodeString(host), port); GC.KeepAlive(host); GC.KeepAlive(port); if (ret >= 0 && ret <= 4096) { return null; } @@ -299,7 +299,7 @@ public static Result_SocketAddressSocketAddressParseErrorZ parse_onion_address(s * Gets the weight for an HTLC-Success transaction. */ public static long htlc_success_tx_weight(org.ldk.structs.ChannelTypeFeatures channel_type_features) { - long ret = bindings.htlc_success_tx_weight(channel_type_features == null ? 0 : channel_type_features.ptr); + long ret = Bindings.HtlcSuccessTxWeight(channel_type_features == null ? 0 : channel_type_features.ptr); GC.KeepAlive(channel_type_features); return ret; } @@ -308,7 +308,7 @@ public static long htlc_success_tx_weight(org.ldk.structs.ChannelTypeFeatures ch * Gets the weight for an HTLC-Timeout transaction. */ public static long htlc_timeout_tx_weight(org.ldk.structs.ChannelTypeFeatures channel_type_features) { - long ret = bindings.htlc_timeout_tx_weight(channel_type_features == null ? 0 : channel_type_features.ptr); + long ret = Bindings.HtlcTimeoutTxWeight(channel_type_features == null ? 0 : channel_type_features.ptr); GC.KeepAlive(channel_type_features); return ret; } @@ -317,7 +317,7 @@ public static long htlc_timeout_tx_weight(org.ldk.structs.ChannelTypeFeatures ch * Check if a given input witness attempts to claim a HTLC. */ public static Option_HTLCClaimZ HTLCClaim_from_witness(byte[] witness) { - long ret = bindings.HTLCClaim_from_witness(InternalUtils.encodeUint8Array(witness)); + long ret = Bindings.HTLCClaimFromWitness(InternalUtils.EncodeUint8Array(witness)); GC.KeepAlive(witness); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_HTLCClaimZ ret_hu_conv = org.ldk.structs.Option_HTLCClaimZ.constr_from_ptr(ret); @@ -329,11 +329,11 @@ public static Option_HTLCClaimZ HTLCClaim_from_witness(byte[] witness) { * Build the commitment secret from the seed and the commitment number */ public static byte[] build_commitment_secret(byte[] commitment_seed, long idx) { - long ret = bindings.build_commitment_secret(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(commitment_seed, 32)), idx); + long ret = Bindings.BuildCommitmentSecret(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(commitment_seed, 32)), idx); GC.KeepAlive(commitment_seed); GC.KeepAlive(idx); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -341,14 +341,14 @@ public static byte[] build_commitment_secret(byte[] commitment_seed, long idx) { * Build a closing transaction */ public static byte[] build_closing_transaction(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, org.ldk.structs.OutPoint funding_outpoint) { - long ret = bindings.build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.encodeUint8Array(to_holder_script), InternalUtils.encodeUint8Array(to_counterparty_script), funding_outpoint == null ? 0 : funding_outpoint.ptr); + long ret = Bindings.BuildClosingTransaction(to_holder_value_sat, to_counterparty_value_sat, InternalUtils.EncodeUint8Array(to_holder_script), InternalUtils.EncodeUint8Array(to_counterparty_script), funding_outpoint == null ? 0 : funding_outpoint.ptr); GC.KeepAlive(to_holder_value_sat); GC.KeepAlive(to_counterparty_value_sat); GC.KeepAlive(to_holder_script); GC.KeepAlive(to_counterparty_script); GC.KeepAlive(funding_outpoint); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -357,11 +357,11 @@ public static byte[] build_closing_transaction(long to_holder_value_sat, long to * from the base secret and the per_commitment_point. */ public static byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret) { - long ret = bindings.derive_private_key(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(base_secret, 32))); + long ret = Bindings.DerivePrivateKey(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_point, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(base_secret, 32))); GC.KeepAlive(per_commitment_point); GC.KeepAlive(base_secret); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -374,11 +374,11 @@ public static byte[] derive_private_key(byte[] per_commitment_point, byte[] base * of the transaction spending with this key knowledge. */ public static byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret) { - long ret = bindings.derive_private_revocation_key(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_secret, 32)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(countersignatory_revocation_base_secret, 32))); + long ret = Bindings.DerivePrivateRevocationKey(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(per_commitment_secret, 32)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(countersignatory_revocation_base_secret, 32))); GC.KeepAlive(per_commitment_secret); GC.KeepAlive(countersignatory_revocation_base_secret); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -388,12 +388,12 @@ public static byte[] derive_private_revocation_key(byte[] per_commitment_secret, * Encumbering a `to_holder` output on a commitment transaction or 2nd-stage HTLC transactions. */ public static byte[] get_revokeable_redeemscript(org.ldk.structs.RevocationKey revocation_key, short contest_delay, org.ldk.structs.DelayedPaymentKey broadcaster_delayed_payment_key) { - long ret = bindings.get_revokeable_redeemscript(revocation_key == null ? 0 : revocation_key.ptr, contest_delay, broadcaster_delayed_payment_key == null ? 0 : broadcaster_delayed_payment_key.ptr); + long ret = Bindings.GetRevokeableRedeemscript(revocation_key == null ? 0 : revocation_key.ptr, contest_delay, broadcaster_delayed_payment_key == null ? 0 : broadcaster_delayed_payment_key.ptr); GC.KeepAlive(revocation_key); GC.KeepAlive(contest_delay); GC.KeepAlive(broadcaster_delayed_payment_key); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -402,11 +402,11 @@ public static byte[] get_revokeable_redeemscript(org.ldk.structs.RevocationKey r * the channel type. */ public static byte[] get_counterparty_payment_script(org.ldk.structs.ChannelTypeFeatures channel_type_features, byte[] payment_key) { - long ret = bindings.get_counterparty_payment_script(channel_type_features == null ? 0 : channel_type_features.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_key, 33))); + long ret = Bindings.GetCounterpartyPaymentScript(channel_type_features == null ? 0 : channel_type_features.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_key, 33))); GC.KeepAlive(channel_type_features); GC.KeepAlive(payment_key); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -415,12 +415,12 @@ public static byte[] get_counterparty_payment_script(org.ldk.structs.ChannelType * does not need to have its previous_output_index filled. */ public static byte[] get_htlc_redeemscript(org.ldk.structs.HTLCOutputInCommitment htlc, org.ldk.structs.ChannelTypeFeatures channel_type_features, org.ldk.structs.TxCreationKeys keys) { - long ret = bindings.get_htlc_redeemscript(htlc == null ? 0 : htlc.ptr, channel_type_features == null ? 0 : channel_type_features.ptr, keys == null ? 0 : keys.ptr); + long ret = Bindings.GetHtlcRedeemscript(htlc == null ? 0 : htlc.ptr, channel_type_features == null ? 0 : channel_type_features.ptr, keys == null ? 0 : keys.ptr); GC.KeepAlive(htlc); GC.KeepAlive(channel_type_features); GC.KeepAlive(keys); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -429,11 +429,11 @@ public static byte[] get_htlc_redeemscript(org.ldk.structs.HTLCOutputInCommitmen * Note that the order of funding public keys does not matter. */ public static byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory) { - long ret = bindings.make_funding_redeemscript(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(broadcaster, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(countersignatory, 33))); + long ret = Bindings.MakeFundingRedeemscript(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(broadcaster, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(countersignatory, 33))); GC.KeepAlive(broadcaster); GC.KeepAlive(countersignatory); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -447,7 +447,7 @@ public static byte[] make_funding_redeemscript(byte[] broadcaster, byte[] counte * commitment transaction). */ public static byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, org.ldk.structs.HTLCOutputInCommitment htlc, org.ldk.structs.ChannelTypeFeatures channel_type_features, org.ldk.structs.DelayedPaymentKey broadcaster_delayed_payment_key, org.ldk.structs.RevocationKey revocation_key) { - long ret = bindings.build_htlc_transaction(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(commitment_txid, 32)), feerate_per_kw, contest_delay, htlc == null ? 0 : htlc.ptr, channel_type_features == null ? 0 : channel_type_features.ptr, broadcaster_delayed_payment_key == null ? 0 : broadcaster_delayed_payment_key.ptr, revocation_key == null ? 0 : revocation_key.ptr); + long ret = Bindings.BuildHtlcTransaction(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(commitment_txid, 32)), feerate_per_kw, contest_delay, htlc == null ? 0 : htlc.ptr, channel_type_features == null ? 0 : channel_type_features.ptr, broadcaster_delayed_payment_key == null ? 0 : broadcaster_delayed_payment_key.ptr, revocation_key == null ? 0 : revocation_key.ptr); GC.KeepAlive(commitment_txid); GC.KeepAlive(feerate_per_kw); GC.KeepAlive(contest_delay); @@ -456,7 +456,7 @@ public static byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_ GC.KeepAlive(broadcaster_delayed_payment_key); GC.KeepAlive(revocation_key); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -464,14 +464,14 @@ public static byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_ * Returns the witness required to satisfy and spend a HTLC input. */ public static byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, org.ldk.structs.Option_ThirtyTwoBytesZ preimage, byte[] redeem_script, org.ldk.structs.ChannelTypeFeatures channel_type_features) { - long ret = bindings.build_htlc_input_witness(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(local_sig, 64)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(remote_sig, 64)), preimage.ptr, InternalUtils.encodeUint8Array(redeem_script), channel_type_features == null ? 0 : channel_type_features.ptr); + long ret = Bindings.BuildHtlcInputWitness(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(local_sig, 64)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(remote_sig, 64)), preimage.ptr, InternalUtils.EncodeUint8Array(redeem_script), channel_type_features == null ? 0 : channel_type_features.ptr); GC.KeepAlive(local_sig); GC.KeepAlive(remote_sig); GC.KeepAlive(preimage); GC.KeepAlive(redeem_script); GC.KeepAlive(channel_type_features); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -479,10 +479,10 @@ public static byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_si * Gets the witnessScript for the to_remote output when anchors are enabled. */ public static byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point) { - long ret = bindings.get_to_countersignatory_with_anchors_redeemscript(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_point, 33))); + long ret = Bindings.GetToCountersignatoryWithAnchorsRedeemscript(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_point, 33))); GC.KeepAlive(payment_point); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -495,10 +495,10 @@ public static byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] pa * (empty vector required to satisfy compliance with MINIMALIF-standard rule) */ public static byte[] get_anchor_redeemscript(byte[] funding_pubkey) { - long ret = bindings.get_anchor_redeemscript(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_pubkey, 33))); + long ret = Bindings.GetAnchorRedeemscript(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_pubkey, 33))); GC.KeepAlive(funding_pubkey); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -506,11 +506,11 @@ public static byte[] get_anchor_redeemscript(byte[] funding_pubkey) { * Returns the witness required to satisfy and spend an anchor input. */ public static byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig) { - long ret = bindings.build_anchor_input_witness(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_key, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(funding_sig, 64))); + long ret = Bindings.BuildAnchorInputWitness(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_key, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(funding_sig, 64))); GC.KeepAlive(funding_key); GC.KeepAlive(funding_sig); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -523,7 +523,7 @@ public static byte[] build_anchor_input_witness(byte[] funding_key, byte[] fundi * \"decrypt\" the commitment transaction number given a commitment transaction on-chain. */ public static long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, bool outbound_from_broadcaster) { - long ret = bindings.get_commitment_transaction_number_obscure_factor(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(broadcaster_payment_basepoint, 33)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(countersignatory_payment_basepoint, 33)), outbound_from_broadcaster); + long ret = Bindings.GetCommitmentTransactionNumberObscureFactor(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(broadcaster_payment_basepoint, 33)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(countersignatory_payment_basepoint, 33)), outbound_from_broadcaster); GC.KeepAlive(broadcaster_payment_basepoint); GC.KeepAlive(countersignatory_payment_basepoint); GC.KeepAlive(outbound_from_broadcaster); @@ -534,7 +534,7 @@ public static long get_commitment_transaction_number_obscure_factor(byte[] broad * Read a NetworkUpdate from a byte array, created by NetworkUpdate_write */ public static Result_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(byte[] ser) { - long ret = bindings.NetworkUpdate_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.NetworkUpdateRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_NetworkUpdateZDecodeErrorZ ret_hu_conv = Result_COption_NetworkUpdateZDecodeErrorZ.constr_from_ptr(ret); @@ -547,7 +547,7 @@ public static Result_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(byte[ * Returns an error if it is invalid. */ public static Result_NoneLightningErrorZ verify_node_announcement(org.ldk.structs.NodeAnnouncement msg) { - long ret = bindings.verify_node_announcement(msg == null ? 0 : msg.ptr); + long ret = Bindings.VerifyNodeAnnouncement(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret); @@ -561,7 +561,7 @@ public static Result_NoneLightningErrorZ verify_node_announcement(org.ldk.struct * Returns an error if one of the signatures is invalid. */ public static Result_NoneLightningErrorZ verify_channel_announcement(org.ldk.structs.ChannelAnnouncement msg) { - long ret = bindings.verify_channel_announcement(msg == null ? 0 : msg.ptr); + long ret = Bindings.VerifyChannelAnnouncement(msg == null ? 0 : msg.ptr); GC.KeepAlive(msg); if (ret >= 0 && ret <= 4096) { return null; } Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret); @@ -599,7 +599,7 @@ public static Result_NoneLightningErrorZ verify_channel_announcement(org.ldk.str * Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static Result_RouteLightningErrorZ find_route(byte[] our_node_pubkey, org.ldk.structs.RouteParameters route_params, org.ldk.structs.NetworkGraph network_graph, ChannelDetails[] first_hops, org.ldk.structs.Logger logger, org.ldk.structs.ScoreLookUp scorer, org.ldk.structs.ProbabilisticScoringFeeParameters score_params, byte[] random_seed_bytes) { - long ret = bindings.find_route(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(our_node_pubkey, 33)), route_params == null ? 0 : route_params.ptr, network_graph == null ? 0 : network_graph.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), logger.ptr, scorer.ptr, score_params == null ? 0 : score_params.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(random_seed_bytes, 32))); + long ret = Bindings.FindRoute(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(our_node_pubkey, 33)), route_params == null ? 0 : route_params.ptr, network_graph == null ? 0 : network_graph.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(first_hops, first_hops_conv_16 => first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr)), logger.ptr, scorer.ptr, score_params == null ? 0 : score_params.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(random_seed_bytes, 32))); GC.KeepAlive(our_node_pubkey); GC.KeepAlive(route_params); GC.KeepAlive(network_graph); @@ -626,7 +626,7 @@ public static Result_RouteLightningErrorZ find_route(byte[] our_node_pubkey, org * Re-uses logic from `find_route`, so the restrictions described there also apply here. */ public static Result_RouteLightningErrorZ build_route_from_hops(byte[] our_node_pubkey, byte[][] hops, org.ldk.structs.RouteParameters route_params, org.ldk.structs.NetworkGraph network_graph, org.ldk.structs.Logger logger, byte[] random_seed_bytes) { - long ret = bindings.build_route_from_hops(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(our_node_pubkey, 33)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(hops, hops_conv_8 => InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(hops_conv_8, 33)))), route_params == null ? 0 : route_params.ptr, network_graph == null ? 0 : network_graph.ptr, logger.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(random_seed_bytes, 32))); + long ret = Bindings.BuildRouteFromHops(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(our_node_pubkey, 33)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(hops, hops_conv_8 => InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(hops_conv_8, 33)))), route_params == null ? 0 : route_params.ptr, network_graph == null ? 0 : network_graph.ptr, logger.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(random_seed_bytes, 32))); GC.KeepAlive(our_node_pubkey); GC.KeepAlive(hops); GC.KeepAlive(route_params); @@ -660,7 +660,7 @@ public static Result_RouteLightningErrorZ build_route_from_hops(byte[] our_node_ * We do not enforce that outputs meet the dust limit or that any output scripts are standard. */ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(SpendableOutputDescriptor[] descriptors, TxOut[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, org.ldk.structs.Option_u32Z locktime) { - long ret = bindings.SpendableOutputDescriptor_create_spendable_outputs_psbt(InternalUtils.encodeUint64Array(InternalUtils.mapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.encodeUint64Array(InternalUtils.mapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.encodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); + long ret = Bindings.SpendableOutputDescriptorCreateSpendableOutputsPsbt(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(descriptors, descriptors_conv_27 => descriptors_conv_27.ptr)), InternalUtils.EncodeUint64Array(InternalUtils.MapArray(outputs, outputs_conv_7 => outputs_conv_7.ptr)), InternalUtils.EncodeUint8Array(change_destination_script), feerate_sat_per_1000_weight, locktime.ptr); GC.KeepAlive(descriptors); GC.KeepAlive(outputs); GC.KeepAlive(change_destination_script); @@ -683,7 +683,7 @@ public static Result_C2Tuple_CVec_u8Zu64ZNoneZ SpendableOutputDescriptor_create_ * Note that reply_path (or a relevant inner pointer) may be NULL or all-0s to represent None */ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.OnionMessagePath path, org.ldk.structs.OnionMessageContents contents, org.ldk.structs.BlindedPath reply_path) { - long ret = bindings.create_onion_message(entropy_source.ptr, node_signer.ptr, path == null ? 0 : path.ptr, contents.ptr, reply_path == null ? 0 : reply_path.ptr); + long ret = Bindings.CreateOnionMessage(entropy_source.ptr, node_signer.ptr, path == null ? 0 : path.ptr, contents.ptr, reply_path == null ? 0 : reply_path.ptr); GC.KeepAlive(entropy_source); GC.KeepAlive(node_signer); GC.KeepAlive(path); @@ -706,7 +706,7 @@ public static Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZS * receiver. */ public static Result_PeeledOnionNoneZ peel_onion_message(org.ldk.structs.OnionMessage msg, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, org.ldk.structs.CustomOnionMessageHandler custom_handler) { - long ret = bindings.peel_onion_message(msg == null ? 0 : msg.ptr, node_signer.ptr, logger.ptr, custom_handler.ptr); + long ret = Bindings.PeelOnionMessage(msg == null ? 0 : msg.ptr, node_signer.ptr, logger.ptr, custom_handler.ptr); GC.KeepAlive(msg); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -724,7 +724,7 @@ public static Result_PeeledOnionNoneZ peel_onion_message(org.ldk.structs.OnionMe * Returns whether `tlv_type` corresponds to a TLV record for Offers. */ public static bool OffersMessage_is_known_type(long tlv_type) { - bool ret = bindings.OffersMessage_is_known_type(tlv_type); + bool ret = Bindings.OffersMessageIsKnownType(tlv_type); GC.KeepAlive(tlv_type); return ret; } @@ -733,7 +733,7 @@ public static bool OffersMessage_is_known_type(long tlv_type) { * Create a one-hop blinded path for a payment. */ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(byte[] payee_node_id, org.ldk.structs.ReceiveTlvs payee_tlvs, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.BlindedPath_one_hop_for_payment(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payee_node_id, 33)), payee_tlvs == null ? 0 : payee_tlvs.ptr, entropy_source.ptr); + long ret = Bindings.BlindedPathOneHopForPayment(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payee_node_id, 33)), payee_tlvs == null ? 0 : payee_tlvs.ptr, entropy_source.ptr); GC.KeepAlive(payee_node_id); GC.KeepAlive(payee_tlvs); GC.KeepAlive(entropy_source); @@ -755,7 +755,7 @@ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop * [`ForwardTlvs`]: crate::blinded_path::payment::ForwardTlvs */ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for_payment(ForwardNode[] intermediate_nodes, byte[] payee_node_id, org.ldk.structs.ReceiveTlvs payee_tlvs, long htlc_maximum_msat, org.ldk.structs.EntropySource entropy_source) { - long ret = bindings.BlindedPath_new_for_payment(InternalUtils.encodeUint64Array(InternalUtils.mapArray(intermediate_nodes, intermediate_nodes_conv_13 => intermediate_nodes_conv_13 == null ? 0 : intermediate_nodes_conv_13.ptr)), InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payee_node_id, 33)), payee_tlvs == null ? 0 : payee_tlvs.ptr, htlc_maximum_msat, entropy_source.ptr); + long ret = Bindings.BlindedPathNewForPayment(InternalUtils.EncodeUint64Array(InternalUtils.MapArray(intermediate_nodes, intermediate_nodes_conv_13 => intermediate_nodes_conv_13 == null ? 0 : intermediate_nodes_conv_13.ptr)), InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payee_node_id, 33)), payee_tlvs == null ? 0 : payee_tlvs.ptr, htlc_maximum_msat, entropy_source.ptr); GC.KeepAlive(intermediate_nodes); GC.KeepAlive(payee_node_id); GC.KeepAlive(payee_tlvs); @@ -773,7 +773,7 @@ public static Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for * Read a PathFailure from a byte array, created by PathFailure_write */ public static Result_COption_PathFailureZDecodeErrorZ PathFailure_read(byte[] ser) { - long ret = bindings.PathFailure_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.PathFailureRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_PathFailureZDecodeErrorZ ret_hu_conv = Result_COption_PathFailureZDecodeErrorZ.constr_from_ptr(ret); @@ -784,7 +784,7 @@ public static Result_COption_PathFailureZDecodeErrorZ PathFailure_read(byte[] se * Read a ClosureReason from a byte array, created by ClosureReason_write */ public static Result_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(byte[] ser) { - long ret = bindings.ClosureReason_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.ClosureReasonRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_ClosureReasonZDecodeErrorZ ret_hu_conv = Result_COption_ClosureReasonZDecodeErrorZ.constr_from_ptr(ret); @@ -795,7 +795,7 @@ public static Result_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(byte[ * Read a HTLCDestination from a byte array, created by HTLCDestination_write */ public static Result_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(byte[] ser) { - long ret = bindings.HTLCDestination_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.HTLCDestinationRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_HTLCDestinationZDecodeErrorZ ret_hu_conv = Result_COption_HTLCDestinationZDecodeErrorZ.constr_from_ptr(ret); @@ -806,7 +806,7 @@ public static Result_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(b * Read a Event from a byte array, created by Event_write */ public static Result_COption_EventZDecodeErrorZ Event_read(byte[] ser) { - long ret = bindings.Event_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.EventRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret); @@ -828,7 +828,7 @@ public static Result_COption_EventZDecodeErrorZ Event_read(byte[] ser) { * [`ChannelManager::send_preflight_probes`]: lightning::ln::channelmanager::ChannelManager::send_preflight_probes */ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_zero_amount_invoice(org.ldk.structs.Bolt11Invoice invoice, long amount_msat) { - long ret = bindings.payment_parameters_from_zero_amount_invoice(invoice == null ? 0 : invoice.ptr, amount_msat); + long ret = Bindings.PaymentParametersFromZeroAmountInvoice(invoice == null ? 0 : invoice.ptr, amount_msat); GC.KeepAlive(invoice); GC.KeepAlive(amount_msat); if (ret >= 0 && ret <= 4096) { return null; } @@ -851,7 +851,7 @@ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZN * [`ChannelManager::send_preflight_probes`]: lightning::ln::channelmanager::ChannelManager::send_preflight_probes */ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_invoice(org.ldk.structs.Bolt11Invoice invoice) { - long ret = bindings.payment_parameters_from_invoice(invoice == null ? 0 : invoice.ptr); + long ret = Bindings.PaymentParametersFromInvoice(invoice == null ? 0 : invoice.ptr); GC.KeepAlive(invoice); if (ret >= 0 && ret <= 4096) { return null; } Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ ret_hu_conv = Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.constr_from_ptr(ret); @@ -902,7 +902,7 @@ public static Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZN * available and the current time is supplied by the caller. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(org.ldk.structs.Option_u64Z amt_msat, org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash, string description, int invoice_expiry_delta_secs, PhantomRouteHints[] phantom_route_hints, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta, long duration_since_epoch) { - long ret = bindings.create_phantom_invoice(amt_msat.ptr, payment_hash.ptr, InternalUtils.encodeString(description), invoice_expiry_delta_secs, InternalUtils.encodeUint64Array(InternalUtils.mapArray(phantom_route_hints, phantom_route_hints_conv_19 => phantom_route_hints_conv_19 == null ? 0 : phantom_route_hints_conv_19.ptr)), entropy_source.ptr, node_signer.ptr, logger.ptr, network, min_final_cltv_expiry_delta.ptr, duration_since_epoch); + long ret = Bindings.CreatePhantomInvoice(amt_msat.ptr, payment_hash.ptr, InternalUtils.EncodeString(description), invoice_expiry_delta_secs, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(phantom_route_hints, phantom_route_hints_conv_19 => phantom_route_hints_conv_19 == null ? 0 : phantom_route_hints_conv_19.ptr)), entropy_source.ptr, node_signer.ptr, logger.ptr, network, min_final_cltv_expiry_delta.ptr, duration_since_epoch); GC.KeepAlive(amt_msat); GC.KeepAlive(payment_hash); GC.KeepAlive(description); @@ -967,7 +967,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(or * available and the current time is supplied by the caller. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(org.ldk.structs.Option_u64Z amt_msat, org.ldk.structs.Option_ThirtyTwoBytesZ payment_hash, int invoice_expiry_delta_secs, org.ldk.structs.Sha256 description_hash, PhantomRouteHints[] phantom_route_hints, org.ldk.structs.EntropySource entropy_source, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta, long duration_since_epoch) { - long ret = bindings.create_phantom_invoice_with_description_hash(amt_msat.ptr, payment_hash.ptr, invoice_expiry_delta_secs, description_hash == null ? 0 : description_hash.ptr, InternalUtils.encodeUint64Array(InternalUtils.mapArray(phantom_route_hints, phantom_route_hints_conv_19 => phantom_route_hints_conv_19 == null ? 0 : phantom_route_hints_conv_19.ptr)), entropy_source.ptr, node_signer.ptr, logger.ptr, network, min_final_cltv_expiry_delta.ptr, duration_since_epoch); + long ret = Bindings.CreatePhantomInvoiceWithDescriptionHash(amt_msat.ptr, payment_hash.ptr, invoice_expiry_delta_secs, description_hash == null ? 0 : description_hash.ptr, InternalUtils.EncodeUint64Array(InternalUtils.MapArray(phantom_route_hints, phantom_route_hints_conv_19 => phantom_route_hints_conv_19 == null ? 0 : phantom_route_hints_conv_19.ptr)), entropy_source.ptr, node_signer.ptr, logger.ptr, network, min_final_cltv_expiry_delta.ptr, duration_since_epoch); GC.KeepAlive(amt_msat); GC.KeepAlive(payment_hash); GC.KeepAlive(invoice_expiry_delta_secs); @@ -1010,7 +1010,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_wi * [`MIN_FINAL_CLTV_EXPIRY_DETLA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(org.ldk.structs.ChannelManager channelmanager, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u64Z amt_msat, string description, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_invoice_from_channelmanager(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.encodeString(description), invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateInvoiceFromChannelmanager(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.EncodeString(description), invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(channelmanager); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -1048,7 +1048,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_chann * [`MIN_FINAL_CLTV_EXPIRY_DETLA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash(org.ldk.structs.ChannelManager channelmanager, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u64Z amt_msat, org.ldk.structs.Sha256 description_hash, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_invoice_from_channelmanager_with_description_hash(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, description_hash == null ? 0 : description_hash.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateInvoiceFromChannelmanagerWithDescriptionHash(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, description_hash == null ? 0 : description_hash.ptr, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(channelmanager); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -1074,7 +1074,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_chann * available and the current time is supplied by the caller. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(org.ldk.structs.ChannelManager channelmanager, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u64Z amt_msat, org.ldk.structs.Sha256 description_hash, long duration_since_epoch, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, description_hash == null ? 0 : description_hash.ptr, duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, description_hash == null ? 0 : description_hash.ptr, duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(channelmanager); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -1101,7 +1101,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_chann * available and the current time is supplied by the caller. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(org.ldk.structs.ChannelManager channelmanager, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u64Z amt_msat, string description, long duration_since_epoch, int invoice_expiry_delta_secs, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.encodeString(description), duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.EncodeString(description), duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta.ptr); GC.KeepAlive(channelmanager); GC.KeepAlive(node_signer); GC.KeepAlive(logger); @@ -1128,7 +1128,7 @@ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_chann * the payment hash is also involved outside the scope of lightning. */ public static Result_Bolt11InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(org.ldk.structs.ChannelManager channelmanager, org.ldk.structs.NodeSigner node_signer, org.ldk.structs.Logger logger, Currency network, org.ldk.structs.Option_u64Z amt_msat, string description, long duration_since_epoch, int invoice_expiry_delta_secs, byte[] payment_hash, org.ldk.structs.Option_u16Z min_final_cltv_expiry_delta) { - long ret = bindings.create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.encodeString(description), duration_since_epoch, invoice_expiry_delta_secs, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(payment_hash, 32)), min_final_cltv_expiry_delta.ptr); + long ret = Bindings.CreateInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager == null ? 0 : channelmanager.ptr, node_signer.ptr, logger.ptr, network, amt_msat.ptr, InternalUtils.EncodeString(description), duration_since_epoch, invoice_expiry_delta_secs, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(payment_hash, 32)), min_final_cltv_expiry_delta.ptr); GC.KeepAlive(channelmanager); GC.KeepAlive(node_signer); GC.KeepAlive(logger); diff --git a/c_sharp/src/org/ldk/structs/Utxo.cs b/c_sharp/src/org/ldk/structs/Utxo.cs index 8c885663a..2f71e18f4 100644 --- a/c_sharp/src/org/ldk/structs/Utxo.cs +++ b/c_sharp/src/org/ldk/structs/Utxo.cs @@ -13,14 +13,14 @@ namespace org { namespace ldk { namespace structs { public class Utxo : CommonBase { internal Utxo(object _dummy, long ptr) : base(ptr) { } ~Utxo() { - if (ptr != 0) { bindings.Utxo_free(ptr); } + if (ptr != 0) { Bindings.UtxoFree(ptr); } } /** * The unique identifier of the output. */ public OutPoint get_outpoint() { - long ret = bindings.Utxo_get_outpoint(this.ptr); + long ret = Bindings.UtxoGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -32,7 +32,7 @@ public OutPoint get_outpoint() { * The unique identifier of the output. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.Utxo_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.UtxoSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -42,7 +42,7 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * The output to spend. */ public TxOut get_output() { - long ret = bindings.Utxo_get_output(this.ptr); + long ret = Bindings.UtxoGetOutput(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } TxOut ret_conv = new TxOut(null, ret); @@ -53,7 +53,7 @@ public TxOut get_output() { * The output to spend. */ public void set_output(org.ldk.structs.TxOut val) { - bindings.Utxo_set_output(this.ptr, val.ptr); + Bindings.UtxoSetOutput(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -64,7 +64,7 @@ public void set_output(org.ldk.structs.TxOut val) { * the input's `script_sig` must account for [`WITNESS_SCALE_FACTOR`]. */ public long get_satisfaction_weight() { - long ret = bindings.Utxo_get_satisfaction_weight(this.ptr); + long ret = Bindings.UtxoGetSatisfactionWeight(this.ptr); GC.KeepAlive(this); return ret; } @@ -75,7 +75,7 @@ public long get_satisfaction_weight() { * the input's `script_sig` must account for [`WITNESS_SCALE_FACTOR`]. */ public void set_satisfaction_weight(long val) { - bindings.Utxo_set_satisfaction_weight(this.ptr, val); + Bindings.UtxoSetSatisfactionWeight(this.ptr, val); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -84,7 +84,7 @@ public void set_satisfaction_weight(long val) { * Constructs a new Utxo given each field */ public static Utxo of(org.ldk.structs.OutPoint outpoint_arg, org.ldk.structs.TxOut output_arg, long satisfaction_weight_arg) { - long ret = bindings.Utxo_new(outpoint_arg == null ? 0 : outpoint_arg.ptr, output_arg.ptr, satisfaction_weight_arg); + long ret = Bindings.UtxoNew(outpoint_arg == null ? 0 : outpoint_arg.ptr, output_arg.ptr, satisfaction_weight_arg); GC.KeepAlive(outpoint_arg); GC.KeepAlive(output_arg); GC.KeepAlive(satisfaction_weight_arg); @@ -96,7 +96,7 @@ public static Utxo of(org.ldk.structs.OutPoint outpoint_arg, org.ldk.structs.TxO } internal long clone_ptr() { - long ret = bindings.Utxo_clone_ptr(this.ptr); + long ret = Bindings.UtxoClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -105,7 +105,7 @@ internal long clone_ptr() { * Creates a copy of the Utxo */ public Utxo clone() { - long ret = bindings.Utxo_clone(this.ptr); + long ret = Bindings.UtxoClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Utxo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Utxo(null, ret); } @@ -117,7 +117,7 @@ public Utxo clone() { * Generates a non-cryptographic 64-bit hash of the Utxo. */ public long hash() { - long ret = bindings.Utxo_hash(this.ptr); + long ret = Bindings.UtxoHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -131,7 +131,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.Utxo b) { - bool ret = bindings.Utxo_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.UtxoEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -146,7 +146,7 @@ public override bool Equals(object o) { * Returns a `Utxo` with the `satisfaction_weight` estimate for a legacy P2PKH output. */ public static Utxo new_p2pkh(org.ldk.structs.OutPoint outpoint, long value, byte[] pubkey_hash) { - long ret = bindings.Utxo_new_p2pkh(outpoint == null ? 0 : outpoint.ptr, value, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(pubkey_hash, 20))); + long ret = Bindings.UtxoNewP2Pkh(outpoint == null ? 0 : outpoint.ptr, value, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(pubkey_hash, 20))); GC.KeepAlive(outpoint); GC.KeepAlive(value); GC.KeepAlive(pubkey_hash); diff --git a/c_sharp/src/org/ldk/structs/UtxoFuture.cs b/c_sharp/src/org/ldk/structs/UtxoFuture.cs index bf797e5da..eaba0ff72 100644 --- a/c_sharp/src/org/ldk/structs/UtxoFuture.cs +++ b/c_sharp/src/org/ldk/structs/UtxoFuture.cs @@ -14,11 +14,11 @@ namespace org { namespace ldk { namespace structs { public class UtxoFuture : CommonBase { internal UtxoFuture(object _dummy, long ptr) : base(ptr) { } ~UtxoFuture() { - if (ptr != 0) { bindings.UtxoFuture_free(ptr); } + if (ptr != 0) { Bindings.UtxoFutureFree(ptr); } } internal long clone_ptr() { - long ret = bindings.UtxoFuture_clone_ptr(this.ptr); + long ret = Bindings.UtxoFutureClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -27,7 +27,7 @@ internal long clone_ptr() { * Creates a copy of the UtxoFuture */ public UtxoFuture clone() { - long ret = bindings.UtxoFuture_clone(this.ptr); + long ret = Bindings.UtxoFutureClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoFuture ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UtxoFuture(null, ret); } @@ -39,7 +39,7 @@ public UtxoFuture clone() { * Builds a new future for later resolution. */ public static UtxoFuture of() { - long ret = bindings.UtxoFuture_new(); + long ret = Bindings.UtxoFutureNew(); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoFuture ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UtxoFuture(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; @@ -60,7 +60,7 @@ public static UtxoFuture of() { * [`PeerManager::process_events`]: crate::ln::peer_handler::PeerManager::process_events */ public void resolve_without_forwarding(org.ldk.structs.NetworkGraph graph, org.ldk.structs.Result_TxOutUtxoLookupErrorZ result) { - bindings.UtxoFuture_resolve_without_forwarding(this.ptr, graph == null ? 0 : graph.ptr, result != null ? result.ptr : 0); + Bindings.UtxoFutureResolveWithoutForwarding(this.ptr, graph == null ? 0 : graph.ptr, result != null ? result.ptr : 0); GC.KeepAlive(this); GC.KeepAlive(graph); GC.KeepAlive(result); @@ -81,7 +81,7 @@ public void resolve_without_forwarding(org.ldk.structs.NetworkGraph graph, org.l * [`PeerManager::process_events`]: crate::ln::peer_handler::PeerManager::process_events */ public void resolve(org.ldk.structs.NetworkGraph graph, org.ldk.structs.P2PGossipSync gossip, org.ldk.structs.Result_TxOutUtxoLookupErrorZ result) { - bindings.UtxoFuture_resolve(this.ptr, graph == null ? 0 : graph.ptr, gossip == null ? 0 : gossip.ptr, result != null ? result.ptr : 0); + Bindings.UtxoFutureResolve(this.ptr, graph == null ? 0 : graph.ptr, gossip == null ? 0 : gossip.ptr, result != null ? result.ptr : 0); GC.KeepAlive(this); GC.KeepAlive(graph); GC.KeepAlive(gossip); diff --git a/c_sharp/src/org/ldk/structs/UtxoLookup.cs b/c_sharp/src/org/ldk/structs/UtxoLookup.cs index baa1ac394..eac60f4d2 100644 --- a/c_sharp/src/org/ldk/structs/UtxoLookup.cs +++ b/c_sharp/src/org/ldk/structs/UtxoLookup.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of UtxoLookup */ -public interface UtxoLookupInterface { +public interface IUtxoLookup { /**Returns the transaction output of a funding transaction encoded by [`short_channel_id`]. * Returns an error if `chain_hash` is for a different chain or if such a transaction output is * unknown. @@ -23,21 +23,21 @@ public interface UtxoLookupInterface { * The `UtxoLookup` trait defines behavior for accessing on-chain UTXOs. */ public class UtxoLookup : CommonBase { - internal bindings.LDKUtxoLookup bindings_instance; + internal Bindings.LDKUtxoLookup bindings_instance; internal long instance_idx; internal UtxoLookup(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~UtxoLookup() { - if (ptr != 0) { bindings.UtxoLookup_free(ptr); } + if (ptr != 0) { Bindings.UtxoLookupFree(ptr); } } private class LDKUtxoLookupHolder { internal UtxoLookup held; } - private class LDKUtxoLookupImpl : bindings.LDKUtxoLookup { - internal LDKUtxoLookupImpl(UtxoLookupInterface arg, LDKUtxoLookupHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private UtxoLookupInterface arg; + private class LDKUtxoLookupImpl : Bindings.LDKUtxoLookup { + internal LDKUtxoLookupImpl(IUtxoLookup arg, LDKUtxoLookupHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IUtxoLookup arg; private LDKUtxoLookupHolder impl_holder; - public long get_utxo(long _chain_hash, long _short_channel_id) { - byte[] _chain_hash_conv = InternalUtils.decodeUint8Array(_chain_hash); + public long GetUtxo(long _chain_hash, long _short_channel_id) { + byte[] _chain_hash_conv = InternalUtils.DecodeUint8Array(_chain_hash); UtxoResult ret = arg.get_utxo(_chain_hash_conv, _short_channel_id); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -47,10 +47,10 @@ public long get_utxo(long _chain_hash, long _short_channel_id) { } /** Creates a new instance of UtxoLookup from a given implementation */ - public static UtxoLookup new_impl(UtxoLookupInterface arg) { + public static UtxoLookup new_impl(IUtxoLookup arg) { LDKUtxoLookupHolder impl_holder = new LDKUtxoLookupHolder(); LDKUtxoLookupImpl impl = new LDKUtxoLookupImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKUtxoLookup_new(impl); + long[] ptr_idx = Bindings.LDKUtxoLookupNew(impl); impl_holder.held = new UtxoLookup(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -66,7 +66,7 @@ public static UtxoLookup new_impl(UtxoLookupInterface arg) { * [`short_channel_id`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id */ public UtxoResult get_utxo(byte[] chain_hash, long short_channel_id) { - long ret = bindings.UtxoLookup_get_utxo(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash, 32)), short_channel_id); + long ret = Bindings.UtxoLookupGetUtxo(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(chain_hash, 32)), short_channel_id); GC.KeepAlive(this); GC.KeepAlive(chain_hash); GC.KeepAlive(short_channel_id); diff --git a/c_sharp/src/org/ldk/structs/UtxoResult.cs b/c_sharp/src/org/ldk/structs/UtxoResult.cs index 18c932783..36bbf1274 100644 --- a/c_sharp/src/org/ldk/structs/UtxoResult.cs +++ b/c_sharp/src/org/ldk/structs/UtxoResult.cs @@ -13,11 +13,11 @@ namespace org { namespace ldk { namespace structs { public class UtxoResult : CommonBase { protected UtxoResult(object _dummy, long ptr) : base(ptr) { } ~UtxoResult() { - if (ptr != 0) { bindings.UtxoResult_free(ptr); } + if (ptr != 0) { Bindings.UtxoResultFree(ptr); } } internal static UtxoResult constr_from_ptr(long ptr) { - long raw_ty = bindings.LDKUtxoResult_ty_from_ptr(ptr); + long raw_ty = Bindings.LDKUtxoResultTyFromPtr(ptr); switch (raw_ty) { case 0: return new UtxoResult_Sync(ptr); case 1: return new UtxoResult_Async(ptr); @@ -30,7 +30,7 @@ internal static UtxoResult constr_from_ptr(long ptr) { public class UtxoResult_Sync : UtxoResult { public Result_TxOutUtxoLookupErrorZ sync; internal UtxoResult_Sync(long ptr) : base(null, ptr) { - long sync = bindings.LDKUtxoResult_Sync_get_sync(ptr); + long sync = Bindings.LDKUtxoResultSyncGetSync(ptr); Result_TxOutUtxoLookupErrorZ sync_hu_conv = Result_TxOutUtxoLookupErrorZ.constr_from_ptr(sync); this.sync = sync_hu_conv; } @@ -39,14 +39,14 @@ internal UtxoResult_Sync(long ptr) : base(null, ptr) { public class UtxoResult_Async : UtxoResult { public UtxoFuture async; internal UtxoResult_Async(long ptr) : base(null, ptr) { - long async = bindings.LDKUtxoResult_Async_get_async(ptr); + long async = Bindings.LDKUtxoResultAsyncGetAsync(ptr); org.ldk.structs.UtxoFuture async_hu_conv = null; if (async < 0 || async > 4096) { async_hu_conv = new org.ldk.structs.UtxoFuture(null, async); } if (async_hu_conv != null) { async_hu_conv.ptrs_to.AddLast(this); }; this.async = async_hu_conv; } } internal long clone_ptr() { - long ret = bindings.UtxoResult_clone_ptr(this.ptr); + long ret = Bindings.UtxoResultClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -55,7 +55,7 @@ internal long clone_ptr() { * Creates a copy of the UtxoResult */ public UtxoResult clone() { - long ret = bindings.UtxoResult_clone(this.ptr); + long ret = Bindings.UtxoResultClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoResult ret_hu_conv = org.ldk.structs.UtxoResult.constr_from_ptr(ret); @@ -67,7 +67,7 @@ public UtxoResult clone() { * Utility method to constructs a new Sync-variant UtxoResult */ public static UtxoResult sync(org.ldk.structs.Result_TxOutUtxoLookupErrorZ a) { - long ret = bindings.UtxoResult_sync(a != null ? a.ptr : 0); + long ret = Bindings.UtxoResultSync(a != null ? a.ptr : 0); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoResult ret_hu_conv = org.ldk.structs.UtxoResult.constr_from_ptr(ret); @@ -79,7 +79,7 @@ public static UtxoResult sync(org.ldk.structs.Result_TxOutUtxoLookupErrorZ a) { * Utility method to constructs a new Async-variant UtxoResult */ public static UtxoResult async(org.ldk.structs.UtxoFuture a) { - long ret = bindings.UtxoResult_async(a == null ? 0 : a.ptr); + long ret = Bindings.UtxoResultAsync(a == null ? 0 : a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoResult ret_hu_conv = org.ldk.structs.UtxoResult.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/VerifiedInvoiceRequest.cs b/c_sharp/src/org/ldk/structs/VerifiedInvoiceRequest.cs index 426923172..1f8811c4b 100644 --- a/c_sharp/src/org/ldk/structs/VerifiedInvoiceRequest.cs +++ b/c_sharp/src/org/ldk/structs/VerifiedInvoiceRequest.cs @@ -13,7 +13,7 @@ namespace org { namespace ldk { namespace structs { public class VerifiedInvoiceRequest : CommonBase { internal VerifiedInvoiceRequest(object _dummy, long ptr) : base(ptr) { } ~VerifiedInvoiceRequest() { - if (ptr != 0) { bindings.VerifiedInvoiceRequest_free(ptr); } + if (ptr != 0) { Bindings.VerifiedInvoiceRequestFree(ptr); } } /** @@ -27,7 +27,7 @@ internal VerifiedInvoiceRequest(object _dummy, long ptr) : base(ptr) { } * [`respond_with`]: Self::respond_with */ public Option_SecretKeyZ get_keys() { - long ret = bindings.VerifiedInvoiceRequest_get_keys(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestGetKeys(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_SecretKeyZ ret_hu_conv = org.ldk.structs.Option_SecretKeyZ.constr_from_ptr(ret); @@ -46,14 +46,14 @@ public Option_SecretKeyZ get_keys() { * [`respond_with`]: Self::respond_with */ public void set_keys(org.ldk.structs.Option_SecretKeyZ val) { - bindings.VerifiedInvoiceRequest_set_keys(this.ptr, val.ptr); + Bindings.VerifiedInvoiceRequestSetKeys(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; } internal long clone_ptr() { - long ret = bindings.VerifiedInvoiceRequest_clone_ptr(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -62,7 +62,7 @@ internal long clone_ptr() { * Creates a copy of the VerifiedInvoiceRequest */ public VerifiedInvoiceRequest clone() { - long ret = bindings.VerifiedInvoiceRequest_clone(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.VerifiedInvoiceRequest ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.VerifiedInvoiceRequest(null, ret); } @@ -76,17 +76,17 @@ public VerifiedInvoiceRequest clone() { * for the selected chain. */ public byte[][] chains() { - long ret = bindings.VerifiedInvoiceRequest_chains(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestChains(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_8_len = InternalUtils.getArrayLength(ret); + int ret_conv_8_len = InternalUtils.GetArrayLength(ret); byte[][] ret_conv_8_arr = new byte[ret_conv_8_len][]; for (int i = 0; i < ret_conv_8_len; i++) { - long ret_conv_8 = InternalUtils.getU64ArrayElem(ret, i); - byte[] ret_conv_8_conv = InternalUtils.decodeUint8Array(ret_conv_8); + long ret_conv_8 = InternalUtils.GetU64ArrayElem(ret, i); + byte[] ret_conv_8_conv = InternalUtils.DecodeUint8Array(ret_conv_8); ret_conv_8_arr[i] = ret_conv_8_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_8_arr; } @@ -95,7 +95,7 @@ public byte[][] chains() { * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ public Option_CVec_u8ZZ metadata() { - long ret = bindings.VerifiedInvoiceRequest_metadata(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret); @@ -109,7 +109,7 @@ public Option_CVec_u8ZZ metadata() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public Amount amount() { - long ret = bindings.VerifiedInvoiceRequest_amount(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestAmount(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Amount ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Amount(null, ret); } @@ -122,7 +122,7 @@ public Amount amount() { * but with the caveat that it has not been verified in any way. */ public PrintableString description() { - long ret = bindings.VerifiedInvoiceRequest_description(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestDescription(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -134,7 +134,7 @@ public PrintableString description() { * Features pertaining to the offer. */ public OfferFeatures offer_features() { - long ret = bindings.VerifiedInvoiceRequest_offer_features(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestOfferFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OfferFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OfferFeatures(null, ret); } @@ -148,7 +148,7 @@ public OfferFeatures offer_features() { * If `None`, the offer does not expire. */ public Option_u64Z absolute_expiry() { - long ret = bindings.VerifiedInvoiceRequest_absolute_expiry(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestAbsoluteExpiry(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -163,7 +163,7 @@ public Option_u64Z absolute_expiry() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString issuer() { - long ret = bindings.VerifiedInvoiceRequest_issuer(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestIssuer(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } @@ -176,18 +176,18 @@ public PrintableString issuer() { * recipient privacy by obfuscating its node id. */ public BlindedPath[] paths() { - long ret = bindings.VerifiedInvoiceRequest_paths(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestPaths(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_13_len = InternalUtils.getArrayLength(ret); + int ret_conv_13_len = InternalUtils.GetArrayLength(ret); BlindedPath[] ret_conv_13_arr = new BlindedPath[ret_conv_13_len]; for (int n = 0; n < ret_conv_13_len; n++) { - long ret_conv_13 = InternalUtils.getU64ArrayElem(ret, n); + long ret_conv_13 = InternalUtils.GetU64ArrayElem(ret, n); org.ldk.structs.BlindedPath ret_conv_13_hu_conv = null; if (ret_conv_13 < 0 || ret_conv_13 > 4096) { ret_conv_13_hu_conv = new org.ldk.structs.BlindedPath(null, ret_conv_13); } if (ret_conv_13_hu_conv != null) { ret_conv_13_hu_conv.ptrs_to.AddLast(this); }; ret_conv_13_arr[n] = ret_conv_13_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_13_arr; } @@ -195,7 +195,7 @@ public BlindedPath[] paths() { * The quantity of items supported. */ public Quantity supported_quantity() { - long ret = bindings.VerifiedInvoiceRequest_supported_quantity(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestSupportedQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Quantity ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Quantity(null, ret); } @@ -207,10 +207,10 @@ public Quantity supported_quantity() { * The public key used by the recipient to sign invoices. */ public byte[] signing_pubkey() { - long ret = bindings.VerifiedInvoiceRequest_signing_pubkey(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestSigningPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -221,10 +221,10 @@ public byte[] signing_pubkey() { * [`payer_id`]: Self::payer_id */ public byte[] payer_metadata() { - long ret = bindings.VerifiedInvoiceRequest_payer_metadata(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestPayerMetadata(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -232,10 +232,10 @@ public byte[] payer_metadata() { * A chain from [`Offer::chains`] that the offer is valid for. */ public byte[] chain() { - long ret = bindings.VerifiedInvoiceRequest_chain(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestChain(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -246,7 +246,7 @@ public byte[] chain() { * [`chain`]: Self::chain */ public Option_u64Z amount_msats() { - long ret = bindings.VerifiedInvoiceRequest_amount_msats(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestAmountMsats(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -258,7 +258,7 @@ public Option_u64Z amount_msats() { * Features pertaining to requesting an invoice. */ public InvoiceRequestFeatures invoice_request_features() { - long ret = bindings.VerifiedInvoiceRequest_invoice_request_features(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestInvoiceRequestFeatures(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.InvoiceRequestFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvoiceRequestFeatures(null, ret); } @@ -270,7 +270,7 @@ public InvoiceRequestFeatures invoice_request_features() { * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. */ public Option_u64Z quantity() { - long ret = bindings.VerifiedInvoiceRequest_quantity(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestQuantity(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_u64Z ret_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(ret); @@ -282,10 +282,10 @@ public Option_u64Z quantity() { * A possibly transient pubkey used to sign the invoice request. */ public byte[] payer_id() { - long ret = bindings.VerifiedInvoiceRequest_payer_id(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestPayerId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -296,7 +296,7 @@ public byte[] payer_id() { * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ public PrintableString payer_note() { - long ret = bindings.VerifiedInvoiceRequest_payer_note(this.ptr); + long ret = Bindings.VerifiedInvoiceRequestPayerNote(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.PrintableString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PrintableString(null, ret); } diff --git a/c_sharp/src/org/ldk/structs/Wallet.cs b/c_sharp/src/org/ldk/structs/Wallet.cs index 11d73edfa..09a9e20c9 100644 --- a/c_sharp/src/org/ldk/structs/Wallet.cs +++ b/c_sharp/src/org/ldk/structs/Wallet.cs @@ -14,7 +14,7 @@ namespace org { namespace ldk { namespace structs { public class Wallet : CommonBase { internal Wallet(object _dummy, long ptr) : base(ptr) { } ~Wallet() { - if (ptr != 0) { bindings.Wallet_free(ptr); } + if (ptr != 0) { Bindings.WalletFree(ptr); } } /** @@ -22,7 +22,7 @@ internal Wallet(object _dummy, long ptr) : base(ptr) { } * of [`CoinSelectionSource`]. */ public static Wallet of(org.ldk.structs.WalletSource source, org.ldk.structs.Logger logger) { - long ret = bindings.Wallet_new(source.ptr, logger.ptr); + long ret = Bindings.WalletNew(source.ptr, logger.ptr); GC.KeepAlive(source); GC.KeepAlive(logger); if (ret >= 0 && ret <= 4096) { return null; } @@ -38,7 +38,7 @@ public static Wallet of(org.ldk.structs.WalletSource source, org.ldk.structs.Log * This copies the `inner` pointer in this_arg and thus the returned CoinSelectionSource must be freed before this_arg is */ public CoinSelectionSource as_CoinSelectionSource() { - long ret = bindings.Wallet_as_CoinSelectionSource(this.ptr); + long ret = Bindings.WalletAsCoinSelectionSource(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } CoinSelectionSource ret_hu_conv = new CoinSelectionSource(null, ret); diff --git a/c_sharp/src/org/ldk/structs/WalletSource.cs b/c_sharp/src/org/ldk/structs/WalletSource.cs index b8900e77c..7d244afd3 100644 --- a/c_sharp/src/org/ldk/structs/WalletSource.cs +++ b/c_sharp/src/org/ldk/structs/WalletSource.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of WalletSource */ -public interface WalletSourceInterface { +public interface IWalletSource { /**Returns all UTXOs, with at least 1 confirmation each, that are available to spend. */ Result_CVec_UtxoZNoneZ list_confirmed_utxos(); @@ -32,33 +32,33 @@ public interface WalletSourceInterface { * provide a default implementation to [`CoinSelectionSource`]. */ public class WalletSource : CommonBase { - internal bindings.LDKWalletSource bindings_instance; + internal Bindings.LDKWalletSource bindings_instance; internal long instance_idx; internal WalletSource(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~WalletSource() { - if (ptr != 0) { bindings.WalletSource_free(ptr); } + if (ptr != 0) { Bindings.WalletSourceFree(ptr); } } private class LDKWalletSourceHolder { internal WalletSource held; } - private class LDKWalletSourceImpl : bindings.LDKWalletSource { - internal LDKWalletSourceImpl(WalletSourceInterface arg, LDKWalletSourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private WalletSourceInterface arg; + private class LDKWalletSourceImpl : Bindings.LDKWalletSource { + internal LDKWalletSourceImpl(IWalletSource arg, LDKWalletSourceHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IWalletSource arg; private LDKWalletSourceHolder impl_holder; - public long list_confirmed_utxos() { + public long ListConfirmedUtxos() { Result_CVec_UtxoZNoneZ ret = arg.list_confirmed_utxos(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long get_change_script() { + public long GetChangeScript() { Result_CVec_u8ZNoneZ ret = arg.get_change_script(); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public long sign_psbt(long _psbt) { - byte[] _psbt_conv = InternalUtils.decodeUint8Array(_psbt); + public long SignPsbt(long _psbt) { + byte[] _psbt_conv = InternalUtils.DecodeUint8Array(_psbt); Result_TransactionNoneZ ret = arg.sign_psbt(_psbt_conv); GC.KeepAlive(arg); long result = ret == null ? 0 : ret.clone_ptr(); @@ -67,10 +67,10 @@ public long sign_psbt(long _psbt) { } /** Creates a new instance of WalletSource from a given implementation */ - public static WalletSource new_impl(WalletSourceInterface arg) { + public static WalletSource new_impl(IWalletSource arg) { LDKWalletSourceHolder impl_holder = new LDKWalletSourceHolder(); LDKWalletSourceImpl impl = new LDKWalletSourceImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKWalletSource_new(impl); + long[] ptr_idx = Bindings.LDKWalletSourceNew(impl); impl_holder.held = new WalletSource(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -82,7 +82,7 @@ public static WalletSource new_impl(WalletSourceInterface arg) { * Returns all UTXOs, with at least 1 confirmation each, that are available to spend. */ public Result_CVec_UtxoZNoneZ list_confirmed_utxos() { - long ret = bindings.WalletSource_list_confirmed_utxos(this.ptr); + long ret = Bindings.WalletSourceListConfirmedUtxos(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_UtxoZNoneZ ret_hu_conv = Result_CVec_UtxoZNoneZ.constr_from_ptr(ret); @@ -94,7 +94,7 @@ public Result_CVec_UtxoZNoneZ list_confirmed_utxos() { * attempt. */ public Result_CVec_u8ZNoneZ get_change_script() { - long ret = bindings.WalletSource_get_change_script(this.ptr); + long ret = Bindings.WalletSourceGetChangeScript(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } Result_CVec_u8ZNoneZ ret_hu_conv = Result_CVec_u8ZNoneZ.constr_from_ptr(ret); @@ -110,7 +110,7 @@ public Result_CVec_u8ZNoneZ get_change_script() { * unsigned transaction and then sign it with your wallet. */ public Result_TransactionNoneZ sign_psbt(byte[] psbt) { - long ret = bindings.WalletSource_sign_psbt(this.ptr, InternalUtils.encodeUint8Array(psbt)); + long ret = Bindings.WalletSourceSignPsbt(this.ptr, InternalUtils.EncodeUint8Array(psbt)); GC.KeepAlive(this); GC.KeepAlive(psbt); if (ret >= 0 && ret <= 4096) { return null; } diff --git a/c_sharp/src/org/ldk/structs/WarningMessage.cs b/c_sharp/src/org/ldk/structs/WarningMessage.cs index 954075703..4015c986a 100644 --- a/c_sharp/src/org/ldk/structs/WarningMessage.cs +++ b/c_sharp/src/org/ldk/structs/WarningMessage.cs @@ -14,7 +14,7 @@ namespace org { namespace ldk { namespace structs { public class WarningMessage : CommonBase { internal WarningMessage(object _dummy, long ptr) : base(ptr) { } ~WarningMessage() { - if (ptr != 0) { bindings.WarningMessage_free(ptr); } + if (ptr != 0) { Bindings.WarningMessageFree(ptr); } } /** @@ -23,10 +23,10 @@ internal WarningMessage(object _dummy, long ptr) : base(ptr) { } * All-0s indicates a warning unrelated to a specific channel. */ public byte[] get_channel_id() { - long ret = bindings.WarningMessage_get_channel_id(this.ptr); + long ret = Bindings.WarningMessageGetChannelId(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -36,7 +36,7 @@ public byte[] get_channel_id() { * All-0s indicates a warning unrelated to a specific channel. */ public void set_channel_id(byte[] val) { - bindings.WarningMessage_set_channel_id(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32))); + Bindings.WarningMessageSetChannelId(this.ptr, InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(val, 32))); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -49,10 +49,10 @@ public void set_channel_id(byte[] val) { * the terminal emulator or the logging subsystem. */ public string get_data() { - long ret = bindings.WarningMessage_get_data(this.ptr); + long ret = Bindings.WarningMessageGetData(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - string ret_conv = InternalUtils.decodeString(ret); + string ret_conv = InternalUtils.DecodeString(ret); return ret_conv; } @@ -64,7 +64,7 @@ public string get_data() { * the terminal emulator or the logging subsystem. */ public void set_data(string val) { - bindings.WarningMessage_set_data(this.ptr, InternalUtils.encodeString(val)); + Bindings.WarningMessageSetData(this.ptr, InternalUtils.EncodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -73,7 +73,7 @@ public void set_data(string val) { * Constructs a new WarningMessage given each field */ public static WarningMessage of(byte[] channel_id_arg, string data_arg) { - long ret = bindings.WarningMessage_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(channel_id_arg, 32)), InternalUtils.encodeString(data_arg)); + long ret = Bindings.WarningMessageNew(InternalUtils.EncodeUint8Array(InternalUtils.CheckArrLen(channel_id_arg, 32)), InternalUtils.EncodeString(data_arg)); GC.KeepAlive(channel_id_arg); GC.KeepAlive(data_arg); if (ret >= 0 && ret <= 4096) { return null; } @@ -83,7 +83,7 @@ public static WarningMessage of(byte[] channel_id_arg, string data_arg) { } internal long clone_ptr() { - long ret = bindings.WarningMessage_clone_ptr(this.ptr); + long ret = Bindings.WarningMessageClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -92,7 +92,7 @@ internal long clone_ptr() { * Creates a copy of the WarningMessage */ public WarningMessage clone() { - long ret = bindings.WarningMessage_clone(this.ptr); + long ret = Bindings.WarningMessageClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.WarningMessage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.WarningMessage(null, ret); } @@ -104,7 +104,7 @@ public WarningMessage clone() { * Generates a non-cryptographic 64-bit hash of the WarningMessage. */ public long hash() { - long ret = bindings.WarningMessage_hash(this.ptr); + long ret = Bindings.WarningMessageHash(this.ptr); GC.KeepAlive(this); return ret; } @@ -118,7 +118,7 @@ public override int GetHashCode() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.WarningMessage b) { - bool ret = bindings.WarningMessage_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.WarningMessageEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -133,10 +133,10 @@ public override bool Equals(object o) { * Serialize the WarningMessage object into a byte array which can be read by WarningMessage_read */ public byte[] write() { - long ret = bindings.WarningMessage_write(this.ptr); + long ret = Bindings.WarningMessageWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -144,7 +144,7 @@ public byte[] write() { * Read a WarningMessage from a byte array, created by WarningMessage_write */ public static Result_WarningMessageDecodeErrorZ read(byte[] ser) { - long ret = bindings.WarningMessage_read(InternalUtils.encodeUint8Array(ser)); + long ret = Bindings.WarningMessageRead(InternalUtils.EncodeUint8Array(ser)); GC.KeepAlive(ser); if (ret >= 0 && ret <= 4096) { return null; } Result_WarningMessageDecodeErrorZ ret_hu_conv = Result_WarningMessageDecodeErrorZ.constr_from_ptr(ret); diff --git a/c_sharp/src/org/ldk/structs/Watch.cs b/c_sharp/src/org/ldk/structs/Watch.cs index 95bf71295..5b10fb37f 100644 --- a/c_sharp/src/org/ldk/structs/Watch.cs +++ b/c_sharp/src/org/ldk/structs/Watch.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of Watch */ -public interface WatchInterface { +public interface IWatch { /**Watches a channel identified by `funding_txo` using `monitor`. * * Implementations are responsible for watching the chain for the funding transaction along @@ -70,20 +70,20 @@ public interface WatchInterface { * See method documentation and [`ChannelMonitorUpdateStatus`] for specific requirements. */ public class Watch : CommonBase { - internal bindings.LDKWatch bindings_instance; + internal Bindings.LDKWatch bindings_instance; internal long instance_idx; internal Watch(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~Watch() { - if (ptr != 0) { bindings.Watch_free(ptr); } + if (ptr != 0) { Bindings.WatchFree(ptr); } } private class LDKWatchHolder { internal Watch held; } - private class LDKWatchImpl : bindings.LDKWatch { - internal LDKWatchImpl(WatchInterface arg, LDKWatchHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private WatchInterface arg; + private class LDKWatchImpl : Bindings.LDKWatch { + internal LDKWatchImpl(IWatch arg, LDKWatchHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IWatch arg; private LDKWatchHolder impl_holder; - public long watch_channel(long _funding_txo, long _monitor) { + public long WatchChannel(long _funding_txo, long _monitor) { org.ldk.structs.OutPoint _funding_txo_hu_conv = null; if (_funding_txo < 0 || _funding_txo > 4096) { _funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, _funding_txo); } if (_funding_txo_hu_conv != null) { _funding_txo_hu_conv.ptrs_to.AddLast(this); }; org.ldk.structs.ChannelMonitor _monitor_hu_conv = null; if (_monitor < 0 || _monitor > 4096) { _monitor_hu_conv = new org.ldk.structs.ChannelMonitor(null, _monitor); } @@ -93,7 +93,7 @@ public long watch_channel(long _funding_txo, long _monitor) { long result = ret == null ? 0 : ret.clone_ptr(); return result; } - public ChannelMonitorUpdateStatus update_channel(long _funding_txo, long _update) { + public ChannelMonitorUpdateStatus UpdateChannel(long _funding_txo, long _update) { org.ldk.structs.OutPoint _funding_txo_hu_conv = null; if (_funding_txo < 0 || _funding_txo > 4096) { _funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, _funding_txo); } if (_funding_txo_hu_conv != null) { _funding_txo_hu_conv.ptrs_to.AddLast(this); }; org.ldk.structs.ChannelMonitorUpdate _update_hu_conv = null; if (_update < 0 || _update > 4096) { _update_hu_conv = new org.ldk.structs.ChannelMonitorUpdate(null, _update); } @@ -101,19 +101,19 @@ public ChannelMonitorUpdateStatus update_channel(long _funding_txo, long _update GC.KeepAlive(arg); return ret; } - public long release_pending_monitor_events() { + public long ReleasePendingMonitorEvents() { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ[] ret = arg.release_pending_monitor_events(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint64Array(InternalUtils.mapArray(ret, ret_conv_49 => ret_conv_49 == null ? 0 : ret_conv_49.clone_ptr())); + long result = InternalUtils.EncodeUint64Array(InternalUtils.MapArray(ret, ret_conv_49 => ret_conv_49 == null ? 0 : ret_conv_49.clone_ptr())); return result; } } /** Creates a new instance of Watch from a given implementation */ - public static Watch new_impl(WatchInterface arg) { + public static Watch new_impl(IWatch arg) { LDKWatchHolder impl_holder = new LDKWatchHolder(); LDKWatchImpl impl = new LDKWatchImpl(arg, impl_holder); - long[] ptr_idx = bindings.LDKWatch_new(impl); + long[] ptr_idx = Bindings.LDKWatchNew(impl); impl_holder.held = new Watch(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -139,7 +139,7 @@ public static Watch new_impl(WatchInterface arg) { * [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected */ public Result_ChannelMonitorUpdateStatusNoneZ watch_channel(org.ldk.structs.OutPoint funding_txo, org.ldk.structs.ChannelMonitor monitor) { - long ret = bindings.Watch_watch_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, monitor == null ? 0 : monitor.ptr); + long ret = Bindings.WatchWatchChannel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, monitor == null ? 0 : monitor.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_txo); GC.KeepAlive(monitor); @@ -168,7 +168,7 @@ public Result_ChannelMonitorUpdateStatusNoneZ watch_channel(org.ldk.structs.OutP * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ public ChannelMonitorUpdateStatus update_channel(org.ldk.structs.OutPoint funding_txo, org.ldk.structs.ChannelMonitorUpdate update) { - ChannelMonitorUpdateStatus ret = bindings.Watch_update_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, update == null ? 0 : update.ptr); + ChannelMonitorUpdateStatus ret = Bindings.WatchUpdateChannel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr, update == null ? 0 : update.ptr); GC.KeepAlive(this); GC.KeepAlive(funding_txo); GC.KeepAlive(update); @@ -189,18 +189,18 @@ public ChannelMonitorUpdateStatus update_channel(org.ldk.structs.OutPoint fundin * [`MonitorEvent::Completed`] here, see [`ChannelMonitorUpdateStatus::InProgress`]. */ public ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ[] release_pending_monitor_events() { - long ret = bindings.Watch_release_pending_monitor_events(this.ptr); + long ret = Bindings.WatchReleasePendingMonitorEvents(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - int ret_conv_49_len = InternalUtils.getArrayLength(ret); + int ret_conv_49_len = InternalUtils.GetArrayLength(ret); ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ[] ret_conv_49_arr = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ[ret_conv_49_len]; for (int x = 0; x < ret_conv_49_len; x++) { - long ret_conv_49 = InternalUtils.getU64ArrayElem(ret, x); + long ret_conv_49 = InternalUtils.GetU64ArrayElem(ret, x); ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_conv_49_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret_conv_49); if (ret_conv_49_hu_conv != null) { ret_conv_49_hu_conv.ptrs_to.AddLast(this); }; ret_conv_49_arr[x] = ret_conv_49_hu_conv; } - bindings.free_buffer(ret); + Bindings.FreeBuffer(ret); return ret_conv_49_arr; } diff --git a/c_sharp/src/org/ldk/structs/WatchedOutput.cs b/c_sharp/src/org/ldk/structs/WatchedOutput.cs index 01192182e..8868b63f4 100644 --- a/c_sharp/src/org/ldk/structs/WatchedOutput.cs +++ b/c_sharp/src/org/ldk/structs/WatchedOutput.cs @@ -22,14 +22,14 @@ namespace org { namespace ldk { namespace structs { public class WatchedOutput : CommonBase { internal WatchedOutput(object _dummy, long ptr) : base(ptr) { } ~WatchedOutput() { - if (ptr != 0) { bindings.WatchedOutput_free(ptr); } + if (ptr != 0) { Bindings.WatchedOutputFree(ptr); } } /** * First block where the transaction output may have been spent. */ public Option_ThirtyTwoBytesZ get_block_hash() { - long ret = bindings.WatchedOutput_get_block_hash(this.ptr); + long ret = Bindings.WatchedOutputGetBlockHash(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); @@ -41,7 +41,7 @@ public Option_ThirtyTwoBytesZ get_block_hash() { * First block where the transaction output may have been spent. */ public void set_block_hash(org.ldk.structs.Option_ThirtyTwoBytesZ val) { - bindings.WatchedOutput_set_block_hash(this.ptr, val.ptr); + Bindings.WatchedOutputSetBlockHash(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -51,7 +51,7 @@ public void set_block_hash(org.ldk.structs.Option_ThirtyTwoBytesZ val) { * Outpoint identifying the transaction output. */ public OutPoint get_outpoint() { - long ret = bindings.WatchedOutput_get_outpoint(this.ptr); + long ret = Bindings.WatchedOutputGetOutpoint(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); } @@ -63,7 +63,7 @@ public OutPoint get_outpoint() { * Outpoint identifying the transaction output. */ public void set_outpoint(org.ldk.structs.OutPoint val) { - bindings.WatchedOutput_set_outpoint(this.ptr, val == null ? 0 : val.ptr); + Bindings.WatchedOutputSetOutpoint(this.ptr, val == null ? 0 : val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); if (this != null) { this.ptrs_to.AddLast(val); }; @@ -73,10 +73,10 @@ public void set_outpoint(org.ldk.structs.OutPoint val) { * Spending condition of the transaction output. */ public byte[] get_script_pubkey() { - long ret = bindings.WatchedOutput_get_script_pubkey(this.ptr); + long ret = Bindings.WatchedOutputGetScriptPubkey(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } @@ -84,7 +84,7 @@ public byte[] get_script_pubkey() { * Spending condition of the transaction output. */ public void set_script_pubkey(byte[] val) { - bindings.WatchedOutput_set_script_pubkey(this.ptr, InternalUtils.encodeUint8Array(val)); + Bindings.WatchedOutputSetScriptPubkey(this.ptr, InternalUtils.EncodeUint8Array(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -93,7 +93,7 @@ public void set_script_pubkey(byte[] val) { * Constructs a new WatchedOutput given each field */ public static WatchedOutput of(org.ldk.structs.Option_ThirtyTwoBytesZ block_hash_arg, org.ldk.structs.OutPoint outpoint_arg, byte[] script_pubkey_arg) { - long ret = bindings.WatchedOutput_new(block_hash_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr, InternalUtils.encodeUint8Array(script_pubkey_arg)); + long ret = Bindings.WatchedOutputNew(block_hash_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr, InternalUtils.EncodeUint8Array(script_pubkey_arg)); GC.KeepAlive(block_hash_arg); GC.KeepAlive(outpoint_arg); GC.KeepAlive(script_pubkey_arg); @@ -106,7 +106,7 @@ public static WatchedOutput of(org.ldk.structs.Option_ThirtyTwoBytesZ block_hash } internal long clone_ptr() { - long ret = bindings.WatchedOutput_clone_ptr(this.ptr); + long ret = Bindings.WatchedOutputClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -115,7 +115,7 @@ internal long clone_ptr() { * Creates a copy of the WatchedOutput */ public WatchedOutput clone() { - long ret = bindings.WatchedOutput_clone(this.ptr); + long ret = Bindings.WatchedOutputClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.WatchedOutput ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.WatchedOutput(null, ret); } @@ -129,7 +129,7 @@ public WatchedOutput clone() { * Two objects with NULL inner values will be considered "equal" here. */ public bool eq(org.ldk.structs.WatchedOutput b) { - bool ret = bindings.WatchedOutput_eq(this.ptr, b == null ? 0 : b.ptr); + bool ret = Bindings.WatchedOutputEq(this.ptr, b == null ? 0 : b.ptr); GC.KeepAlive(this); GC.KeepAlive(b); if (this != null) { this.ptrs_to.AddLast(b); }; @@ -144,7 +144,7 @@ public override bool Equals(object o) { * Generates a non-cryptographic 64-bit hash of the WatchedOutput. */ public long hash() { - long ret = bindings.WatchedOutput_hash(this.ptr); + long ret = Bindings.WatchedOutputHash(this.ptr); GC.KeepAlive(this); return ret; } diff --git a/c_sharp/src/org/ldk/structs/WitnessProgram.cs b/c_sharp/src/org/ldk/structs/WitnessProgram.cs index dee51c43c..64023fed4 100644 --- a/c_sharp/src/org/ldk/structs/WitnessProgram.cs +++ b/c_sharp/src/org/ldk/structs/WitnessProgram.cs @@ -12,18 +12,18 @@ public class WitnessProgram : CommonBase { public readonly WitnessVersion version; internal WitnessProgram(object _dummy, long ptr) : base(ptr) { - this.program = InternalUtils.decodeUint8Array(bindings.WitnessProgram_get_program(ptr)); - this.version = new WitnessVersion(bindings.WitnessProgram_get_version(ptr)); + this.program = InternalUtils.DecodeUint8Array(Bindings.WitnessProgramGetProgram(ptr)); + this.version = new WitnessVersion(Bindings.WitnessProgramGetVersion(ptr)); } static private long check_args(byte[] program, WitnessVersion version) { if (program.Length < 2 || program.Length > 40) throw new ArgumentException(); if (version.getVal() == 0 && program.Length != 20 && program.Length != 32) throw new ArgumentException(); - return InternalUtils.encodeUint8Array(program); + return InternalUtils.EncodeUint8Array(program); } public WitnessProgram(byte[] program, WitnessVersion version) : - this(null, bindings.WitnessProgram_new(version.getVal(), check_args(program, version))) {} + this(null, Bindings.WitnessProgramNew(version.getVal(), check_args(program, version))) {} ~WitnessProgram() { - if (ptr != 0) { bindings.WitnessProgram_free(ptr); } + if (ptr != 0) { Bindings.WitnessProgramFree(ptr); } } }} } } diff --git a/c_sharp/src/org/ldk/structs/WriteableEcdsaChannelSigner.cs b/c_sharp/src/org/ldk/structs/WriteableEcdsaChannelSigner.cs index d7b0988e4..14baf52d3 100644 --- a/c_sharp/src/org/ldk/structs/WriteableEcdsaChannelSigner.cs +++ b/c_sharp/src/org/ldk/structs/WriteableEcdsaChannelSigner.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of WriteableEcdsaChannelSigner */ -public interface WriteableEcdsaChannelSignerInterface { +public interface IWriteableEcdsaChannelSigner { /**Serialize the object into a byte array */ byte[] write(); @@ -25,34 +25,34 @@ public interface WriteableEcdsaChannelSignerInterface { * [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor */ public class WriteableEcdsaChannelSigner : CommonBase { - internal bindings.LDKWriteableEcdsaChannelSigner bindings_instance; + internal Bindings.LDKWriteableEcdsaChannelSigner bindings_instance; internal long instance_idx; internal WriteableEcdsaChannelSigner(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~WriteableEcdsaChannelSigner() { - if (ptr != 0) { bindings.WriteableEcdsaChannelSigner_free(ptr); } + if (ptr != 0) { Bindings.WriteableEcdsaChannelSignerFree(ptr); } } private class LDKWriteableEcdsaChannelSignerHolder { internal WriteableEcdsaChannelSigner held; } - private class LDKWriteableEcdsaChannelSignerImpl : bindings.LDKWriteableEcdsaChannelSigner { - internal LDKWriteableEcdsaChannelSignerImpl(WriteableEcdsaChannelSignerInterface arg, LDKWriteableEcdsaChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private WriteableEcdsaChannelSignerInterface arg; + private class LDKWriteableEcdsaChannelSignerImpl : Bindings.LDKWriteableEcdsaChannelSigner { + internal LDKWriteableEcdsaChannelSignerImpl(IWriteableEcdsaChannelSigner arg, LDKWriteableEcdsaChannelSignerHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IWriteableEcdsaChannelSigner arg; private LDKWriteableEcdsaChannelSignerHolder impl_holder; - public long write() { + public long Write() { byte[] ret = arg.write(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(ret); + long result = InternalUtils.EncodeUint8Array(ret); return result; } } /** Creates a new instance of WriteableEcdsaChannelSigner from a given implementation */ - public static WriteableEcdsaChannelSigner new_impl(WriteableEcdsaChannelSignerInterface arg, EcdsaChannelSignerInterface ecdsaChannelSigner_impl, ChannelSignerInterface channelSigner_impl, ChannelPublicKeys pubkeys) { + public static WriteableEcdsaChannelSigner new_impl(IWriteableEcdsaChannelSigner arg, IEcdsaChannelSigner ecdsaChannelSigner_impl, IChannelSigner channelSigner_impl, ChannelPublicKeys pubkeys) { LDKWriteableEcdsaChannelSignerHolder impl_holder = new LDKWriteableEcdsaChannelSignerHolder(); LDKWriteableEcdsaChannelSignerImpl impl = new LDKWriteableEcdsaChannelSignerImpl(arg, impl_holder); EcdsaChannelSigner ecdsaChannelSigner = EcdsaChannelSigner.new_impl(ecdsaChannelSigner_impl, channelSigner_impl, pubkeys); ChannelSigner channelSigner = ChannelSigner.new_impl(channelSigner_impl, pubkeys); - long[] ptr_idx = bindings.LDKWriteableEcdsaChannelSigner_new(impl, ecdsaChannelSigner.instance_idx, channelSigner.instance_idx, pubkeys == null ? 0 : pubkeys.clone_ptr()); + long[] ptr_idx = Bindings.LDKWriteableEcdsaChannelSignerNew(impl, ecdsaChannelSigner.instance_idx, channelSigner.instance_idx, pubkeys == null ? 0 : pubkeys.clone_ptr()); impl_holder.held = new WriteableEcdsaChannelSigner(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -66,15 +66,15 @@ public static WriteableEcdsaChannelSigner new_impl(WriteableEcdsaChannelSignerIn * Serialize the object into a byte array */ public byte[] write() { - long ret = bindings.WriteableEcdsaChannelSigner_write(this.ptr); + long ret = Bindings.WriteableEcdsaChannelSignerWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; } internal long clone_ptr() { - long ret = bindings.WriteableEcdsaChannelSigner_clone_ptr(this.ptr); + long ret = Bindings.WriteableEcdsaChannelSignerClonePtr(this.ptr); GC.KeepAlive(this); return ret; } @@ -83,7 +83,7 @@ internal long clone_ptr() { * Creates a copy of a WriteableEcdsaChannelSigner */ public WriteableEcdsaChannelSigner clone() { - long ret = bindings.WriteableEcdsaChannelSigner_clone(this.ptr); + long ret = Bindings.WriteableEcdsaChannelSignerClone(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } WriteableEcdsaChannelSigner ret_hu_conv = new WriteableEcdsaChannelSigner(null, ret); diff --git a/c_sharp/src/org/ldk/structs/WriteableScore.cs b/c_sharp/src/org/ldk/structs/WriteableScore.cs index 634aa9690..4f7dacd69 100644 --- a/c_sharp/src/org/ldk/structs/WriteableScore.cs +++ b/c_sharp/src/org/ldk/structs/WriteableScore.cs @@ -9,7 +9,7 @@ namespace org { namespace ldk { namespace structs { /** An implementation of WriteableScore */ -public interface WriteableScoreInterface { +public interface IWriteableScore { /**Serialize the object into a byte array */ byte[] write(); @@ -22,33 +22,33 @@ public interface WriteableScoreInterface { * use the Persister to persist it. */ public class WriteableScore : CommonBase { - internal bindings.LDKWriteableScore bindings_instance; + internal Bindings.LDKWriteableScore bindings_instance; internal long instance_idx; internal WriteableScore(object _dummy, long ptr) : base(ptr) { bindings_instance = null; } ~WriteableScore() { - if (ptr != 0) { bindings.WriteableScore_free(ptr); } + if (ptr != 0) { Bindings.WriteableScoreFree(ptr); } } private class LDKWriteableScoreHolder { internal WriteableScore held; } - private class LDKWriteableScoreImpl : bindings.LDKWriteableScore { - internal LDKWriteableScoreImpl(WriteableScoreInterface arg, LDKWriteableScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } - private WriteableScoreInterface arg; + private class LDKWriteableScoreImpl : Bindings.LDKWriteableScore { + internal LDKWriteableScoreImpl(IWriteableScore arg, LDKWriteableScoreHolder impl_holder) { this.arg = arg; this.impl_holder = impl_holder; } + private IWriteableScore arg; private LDKWriteableScoreHolder impl_holder; - public long write() { + public long Write() { byte[] ret = arg.write(); GC.KeepAlive(arg); - long result = InternalUtils.encodeUint8Array(ret); + long result = InternalUtils.EncodeUint8Array(ret); return result; } } /** Creates a new instance of WriteableScore from a given implementation */ - public static WriteableScore new_impl(WriteableScoreInterface arg, LockableScoreInterface lockableScore_impl) { + public static WriteableScore new_impl(IWriteableScore arg, ILockableScore lockableScore_impl) { LDKWriteableScoreHolder impl_holder = new LDKWriteableScoreHolder(); LDKWriteableScoreImpl impl = new LDKWriteableScoreImpl(arg, impl_holder); LockableScore lockableScore = LockableScore.new_impl(lockableScore_impl); - long[] ptr_idx = bindings.LDKWriteableScore_new(impl, lockableScore.instance_idx); + long[] ptr_idx = Bindings.LDKWriteableScoreNew(impl, lockableScore.instance_idx); impl_holder.held = new WriteableScore(null, ptr_idx[0]); impl_holder.held.instance_idx = ptr_idx[1]; @@ -61,10 +61,10 @@ public static WriteableScore new_impl(WriteableScoreInterface arg, LockableScore * Serialize the object into a byte array */ public byte[] write() { - long ret = bindings.WriteableScore_write(this.ptr); + long ret = Bindings.WriteableScoreWrite(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - byte[] ret_conv = InternalUtils.decodeUint8Array(ret); + byte[] ret_conv = InternalUtils.DecodeUint8Array(ret); return ret_conv; }