[C#] Run tests against release library in determinism CI run
[ldk-java] / ts / structs / Filter.ts
diff --git a/ts/structs/Filter.ts b/ts/structs/Filter.ts
deleted file mode 100644 (file)
index ca6e7b2..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-
-            
-import CommonBase from './CommonBase';
-import * as bindings from '../bindings' // TODO: figure out location
-
-
-
-            export class Filter extends CommonBase {
-
-                bindings_instance?: bindings.LDKFilter;
-
-                constructor(ptr?: number, arg?: bindings.LDKFilter) {
-                    if (Number.isFinite(ptr)) {
-                                       super(ptr);
-                                       this.bindings_instance = null;
-                                   } else {
-                                       // TODO: private constructor instantiation
-                                       super(bindings.LDKFilter_new(arg));
-                                       this.ptrs_to.push(arg);
-                                       
-                                   }
-                }
-
-                protected finalize() {
-                    if (this.ptr != 0) {
-                        bindings.Filter_free(this.ptr);
-                    }
-                    super.finalize();
-                }
-
-                static new_impl(arg: FilterInterface): Filter {
-                    const impl_holder: LDKFilterHolder = new LDKFilterHolder();
-                    let structImplementation = <bindings.LDKFilter>{
-                        // todo: in-line interface filling
-                        register_tx (txid: Uint8Array, script_pubkey: Uint8Array): void {
-                                                       arg.register_tx(txid, script_pubkey);
-                                               },
-
-                                               register_output (output: number): number {
-                                                       const output_hu_conv: WatchedOutput = new WatchedOutput(null, output);
-                               output_hu_conv.ptrs_to.add(this);
-                                                       Option_C2Tuple_usizeTransactionZZ ret = arg.register_output(output_hu_conv);
-                               result: number = ret.ptr;
-                               return result;
-                                               },
-
-                                               
-                    };
-                    impl_holder.held = new Filter (null, structImplementation);
-                }
-            }
-
-            export interface FilterInterface {
-                register_tx(txid: Uint8Array, script_pubkey: Uint8Array): void;
-                               register_output(output: WatchedOutput): Option_C2Tuple_usizeTransactionZZ;
-                               
-            }
-
-            class LDKFilterHolder {
-                held: Filter;
-            }
-       public void register_tx(Uint8Array txid, Uint8Array script_pubkey) {
-               bindings.Filter_register_tx(this.ptr, txid, script_pubkey);
-       }
-
-       public Option_C2Tuple_usizeTransactionZZ register_output(WatchedOutput output) {
-               number ret = bindings.Filter_register_output(this.ptr, output == null ? 0 : output.ptr & ~1);
-               Option_C2Tuple_usizeTransactionZZ ret_hu_conv = Option_C2Tuple_usizeTransactionZZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
-}