Update auto-generated bindings
[ldk-java] / ts / structs / PayeePubKey.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class PayeePubKey extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.PayeePubKey_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_a() {
22                 Uint8Array ret = bindings.PayeePubKey_get_a(this.ptr);
23                 return ret;
24         }
25
26         public void set_a(Uint8Array val) {
27                 bindings.PayeePubKey_set_a(this.ptr, InternalUtils.check_arr_len(val, 33));
28         }
29
30         public static PayeePubKey constructor_new(Uint8Array a_arg) {
31                 number ret = bindings.PayeePubKey_new(InternalUtils.check_arr_len(a_arg, 33));
32                 const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
33                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
34                 return ret_hu_conv;
35         }
36
37         public number clone_ptr() {
38                 number ret = bindings.PayeePubKey_clone_ptr(this.ptr);
39                 return ret;
40         }
41
42         public PayeePubKey clone() {
43                 number ret = bindings.PayeePubKey_clone(this.ptr);
44                 const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
45                 ret_hu_conv.ptrs_to.add(this);
46                 return ret_hu_conv;
47         }
48
49         public number hash() {
50                 number ret = bindings.PayeePubKey_hash(this.ptr);
51                 return ret;
52         }
53
54         public boolean eq(PayeePubKey b) {
55                 boolean ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
56                 this.ptrs_to.add(b);
57                 return ret;
58         }
59
60 }