3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class C2Tuple_BlockHashChannelMonitorZ extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.C2Tuple_BlockHashChannelMonitorZ_free(this.ptr);
21 public Uint8Array get_a() {
22 Uint8Array ret = bindings.C2Tuple_BlockHashChannelMonitorZ_get_a(this.ptr);
26 public ChannelMonitor get_b() {
27 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_get_b(this.ptr);
28 const ret_hu_conv: ChannelMonitor = new ChannelMonitor(null, ret);
29 ret_hu_conv.ptrs_to.add(this);
33 public TwoTuple_BlockHashChannelMonitorZ clone() {
34 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_clone(this.ptr);
35 TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
36 ret_hu_conv.ptrs_to.add(this);
40 public static TwoTuple_BlockHashChannelMonitorZ constructor_new(Uint8Array a, ChannelMonitor b) {
41 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_new(a, b == null ? 0 : b.ptr & ~1);
42 TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
43 ret_hu_conv.ptrs_to.add(ret_hu_conv);