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