]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/ChannelPublicKeys.ts
Use uint64_t instead of long for pointers represented in C
[ldk-java] / ts / structs / ChannelPublicKeys.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 ChannelPublicKeys 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.ChannelPublicKeys_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_funding_pubkey() {
22                 Uint8Array ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
23                 return ret;
24         }
25
26         public void set_funding_pubkey(Uint8Array val) {
27                 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
28         }
29
30         public Uint8Array get_revocation_basepoint() {
31                 Uint8Array ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
32                 return ret;
33         }
34
35         public void set_revocation_basepoint(Uint8Array val) {
36                 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
37         }
38
39         public Uint8Array get_payment_point() {
40                 Uint8Array ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
41                 return ret;
42         }
43
44         public void set_payment_point(Uint8Array val) {
45                 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
46         }
47
48         public Uint8Array get_delayed_payment_basepoint() {
49                 Uint8Array ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
50                 return ret;
51         }
52
53         public void set_delayed_payment_basepoint(Uint8Array val) {
54                 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
55         }
56
57         public Uint8Array get_htlc_basepoint() {
58                 Uint8Array ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
59                 return ret;
60         }
61
62         public void set_htlc_basepoint(Uint8Array val) {
63                 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
64         }
65
66         public static ChannelPublicKeys constructor_new(Uint8Array funding_pubkey_arg, Uint8Array revocation_basepoint_arg, Uint8Array payment_point_arg, Uint8Array delayed_payment_basepoint_arg, Uint8Array htlc_basepoint_arg) {
67                 number ret = bindings.ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
68                 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
69                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
70                 return ret_hu_conv;
71         }
72
73         public ChannelPublicKeys clone() {
74                 number ret = bindings.ChannelPublicKeys_clone(this.ptr);
75                 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
76                 ret_hu_conv.ptrs_to.add(this);
77                 return ret_hu_conv;
78         }
79
80         public Uint8Array write() {
81                 Uint8Array ret = bindings.ChannelPublicKeys_write(this.ptr);
82                 return ret;
83         }
84
85         public static Result_ChannelPublicKeysDecodeErrorZ constructor_read(Uint8Array ser) {
86                 number ret = bindings.ChannelPublicKeys_read(ser);
87                 Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
88                 return ret_hu_conv;
89         }
90
91 }