+ public Balance[] get_claimable_balances(ChannelDetails[] ignored_channels) {
+ number[] ret = bindings.ChainMonitor_get_claimable_balances(this.ptr, ignored_channels != null ? Arrays.stream(ignored_channels).map(ignored_channels_conv_16 -> ignored_channels_conv_16 == null ? 0 : ignored_channels_conv_16.ptr & ~1).toArray(number[]::new) : null);
+ Balance[] ret_conv_9_arr = new Balance[ret.length];
+ for (int j = 0; j < ret.length; j++) {
+ number ret_conv_9 = ret[j];
+ Balance ret_conv_9_hu_conv = Balance.constr_from_ptr(ret_conv_9);
+ ret_conv_9_hu_conv.ptrs_to.add(this);
+ ret_conv_9_arr[j] = ret_conv_9_hu_conv;
+ }
+ for (ChannelDetails ignored_channels_conv_16: ignored_channels) { this.ptrs_to.add(ignored_channels_conv_16); };
+ return ret_conv_9_arr;
+ }
+
+ public Listen as_Listen() {
+ number ret = bindings.ChainMonitor_as_Listen(this.ptr);
+ Listen ret_hu_conv = new Listen(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public Confirm as_Confirm() {
+ number ret = bindings.ChainMonitor_as_Confirm(this.ptr);
+ Confirm ret_hu_conv = new Confirm(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+