3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class DirectedChannelTransactionParameters extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.DirectedChannelTransactionParameters_free(this.ptr);
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);
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);
35 public number contest_delay() {
36 number ret = bindings.DirectedChannelTransactionParameters_contest_delay(this.ptr);
40 public boolean is_outbound() {
41 boolean ret = bindings.DirectedChannelTransactionParameters_is_outbound(this.ptr);
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);