+ public BestBlock current_best_block() {
+ number ret = bindings.ChannelMonitor_current_best_block(this.ptr);
+ const ret_hu_conv: BestBlock = new BestBlock(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public Balance[] get_claimable_balances() {
+ number[] ret = bindings.ChannelMonitor_get_claimable_balances(this.ptr);
+ 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;
+ }
+ return ret_conv_9_arr;
+ }
+