]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/DirectedChannelTransactionParameters.ts
Merge pull request #29 from TheBlueMatt/main
[ldk-java] / ts / structs / DirectedChannelTransactionParameters.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 DirectedChannelTransactionParameters 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.DirectedChannelTransactionParameters_free(this.ptr);
19                     }
20                 }
21         public ChannelPublicKeys broadcaster_pubkeys() {
22                 number ret = bindings.DirectedChannelTransactionParameters_broadcaster_pubkeys(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 ChannelPublicKeys countersignatory_pubkeys() {
29                 number ret = bindings.DirectedChannelTransactionParameters_countersignatory_pubkeys(this.ptr);
30                 const ret_hu_conv: ChannelPublicKeys = new ChannelPublicKeys(null, ret);
31                 ret_hu_conv.ptrs_to.add(this);
32                 return ret_hu_conv;
33         }
34
35         public number contest_delay() {
36                 number ret = bindings.DirectedChannelTransactionParameters_contest_delay(this.ptr);
37                 return ret;
38         }
39
40         public boolean is_outbound() {
41                 boolean ret = bindings.DirectedChannelTransactionParameters_is_outbound(this.ptr);
42                 return ret;
43         }
44
45         public OutPoint funding_outpoint() {
46                 number ret = bindings.DirectedChannelTransactionParameters_funding_outpoint(this.ptr);
47                 const ret_hu_conv: OutPoint = new OutPoint(null, ret);
48                 ret_hu_conv.ptrs_to.add(this);
49                 return ret_hu_conv;
50         }
51
52 }