d507ac60a8c7bedb4a801010fe89c9b8e68f6498
[ldk-java] / ts / structs / DirectedChannelTransactionParameters.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class DirectedChannelTransactionParameters extends CommonBase {
6         DirectedChannelTransactionParameters(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.DirectedChannelTransactionParameters_free(ptr); }
11         }
12
13         public ChannelPublicKeys broadcaster_pubkeys() {
14                 uint32_t ret = bindings.DirectedChannelTransactionParameters_broadcaster_pubkeys(this.ptr);
15                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public ChannelPublicKeys countersignatory_pubkeys() {
20                 uint32_t ret = bindings.DirectedChannelTransactionParameters_countersignatory_pubkeys(this.ptr);
21                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
22                 return ret_hu_conv;
23         }
24
25         public short contest_delay() {
26                 short ret = bindings.DirectedChannelTransactionParameters_contest_delay(this.ptr);
27                 return ret;
28         }
29
30         public boolean is_outbound() {
31                 boolean ret = bindings.DirectedChannelTransactionParameters_is_outbound(this.ptr);
32                 return ret;
33         }
34
35         public OutPoint funding_outpoint() {
36                 uint32_t ret = bindings.DirectedChannelTransactionParameters_funding_outpoint(this.ptr);
37                 OutPoint ret_hu_conv = new OutPoint(null, ret);
38                 return ret_hu_conv;
39         }
40
41 }