if (ret < 1024) { return null; }
APIError ret_hu_conv = APIError.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(script);
return ret_hu_conv;
}
*/
public boolean eq(Balance b) {
boolean ret = bindings.Balance_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
private BaseSign(bindings.LDKBaseSign arg, ChannelPublicKeys pubkeys) {
super(bindings.LDKBaseSign_new(arg, pubkeys == null ? 0 : pubkeys.ptr & ~1));
this.ptrs_to.add(arg);
- this.ptrs_to.add(pubkeys);
this.bindings_instance = arg;
}
@Override @SuppressWarnings("deprecation")
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 void set_best_block(BestBlock val) {
bindings.ChainParameters_set_best_block(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChainParameters ret_hu_conv = new ChainParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(best_block_arg);
return ret_hu_conv;
}
*/
public void set_contents(UnsignedChannelAnnouncement val) {
bindings.ChannelAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelAnnouncement ret_hu_conv = new ChannelAnnouncement(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
*/
public void set_features(InitFeatures val) {
bindings.ChannelCounterparty_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_forwarding_info(@Nullable CounterpartyForwardingInfo val) {
bindings.ChannelCounterparty_set_forwarding_info(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelCounterparty ret_hu_conv = new ChannelCounterparty(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(forwarding_info_arg);
return ret_hu_conv;
}
*/
public void set_counterparty(ChannelCounterparty val) {
bindings.ChannelDetails_set_counterparty(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_funding_txo(@Nullable OutPoint val) {
bindings.ChannelDetails_set_funding_txo(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelDetails ret_hu_conv = new ChannelDetails(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(counterparty_arg);
- ret_hu_conv.ptrs_to.add(funding_txo_arg);
return ret_hu_conv;
}
*/
public void set_features(ChannelFeatures val) {
bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_one_to_two(@Nullable DirectionalChannelInfo val) {
bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_two_to_one(@Nullable DirectionalChannelInfo val) {
bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_announcement_message(@Nullable ChannelAnnouncement val) {
bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelInfo ret_hu_conv = new ChannelInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(one_to_two_arg);
- ret_hu_conv.ptrs_to.add(two_to_one_arg);
- ret_hu_conv.ptrs_to.add(announcement_message_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(tx_broadcaster);
ret_hu_conv.ptrs_to.add(logger);
ret_hu_conv.ptrs_to.add(keys_manager);
- ret_hu_conv.ptrs_to.add(config);
- ret_hu_conv.ptrs_to.add(params);
return ret_hu_conv;
}
long ret = bindings.ChannelManager_create_channel(this.ptr, their_network_key, channel_value_satoshis, push_msat, user_id, override_config == null ? 0 : override_config.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(override_config);
return ret_hu_conv;
}
*/
public void set_default_config(UserConfig val) {
bindings.ChannelManagerReadArgs_set_default_config(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
ret_hu_conv.ptrs_to.add(chain_monitor);
ret_hu_conv.ptrs_to.add(tx_broadcaster);
ret_hu_conv.ptrs_to.add(logger);
- ret_hu_conv.ptrs_to.add(default_config);
for (ChannelMonitor channel_monitors_conv_16: channel_monitors) { ret_hu_conv.ptrs_to.add(channel_monitors_conv_16); };
return ret_hu_conv;
}
*/
public void handle_open_channel(byte[] their_node_id, InitFeatures their_features, OpenChannel msg) {
bindings.ChannelMessageHandler_handle_open_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
this.ptrs_to.add(msg);
}
*/
public void handle_accept_channel(byte[] their_node_id, InitFeatures their_features, AcceptChannel msg) {
bindings.ChannelMessageHandler_handle_accept_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
this.ptrs_to.add(msg);
}
*/
public void set_holder_pubkeys(ChannelPublicKeys val) {
bindings.ChannelTransactionParameters_set_holder_pubkeys(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_counterparty_parameters(@Nullable CounterpartyChannelTransactionParameters val) {
bindings.ChannelTransactionParameters_set_counterparty_parameters(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_funding_outpoint(@Nullable OutPoint val) {
bindings.ChannelTransactionParameters_set_funding_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelTransactionParameters ret_hu_conv = new ChannelTransactionParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(holder_pubkeys_arg);
- ret_hu_conv.ptrs_to.add(counterparty_parameters_arg);
- ret_hu_conv.ptrs_to.add(funding_outpoint_arg);
return ret_hu_conv;
}
*/
public void set_contents(UnsignedChannelUpdate val) {
bindings.ChannelUpdate_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ChannelUpdate ret_hu_conv = new ChannelUpdate(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
*/
public void set_fee_range(@Nullable ClosingSignedFeeRange val) {
bindings.ClosingSigned_set_fee_range(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fee_range_arg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
ClosingTransaction ret_hu_conv = new ClosingTransaction(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(funding_outpoint);
return ret_hu_conv;
}
long ret = bindings.ClosingTransaction_verify(this.ptr, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
if (ret < 1024) { return null; }
Result_TrustedClosingTransactionNoneZ ret_hu_conv = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_outpoint);
return ret_hu_conv;
}
*/
public void set_update_add_htlcs(UpdateAddHTLC[] val) {
bindings.CommitmentUpdate_set_update_add_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_15 -> val_conv_15 == null ? 0 : val_conv_15.ptr & ~1).toArray() : null);
- for (UpdateAddHTLC val_conv_15: val) { this.ptrs_to.add(val_conv_15); };
}
/**
*/
public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val) {
bindings.CommitmentUpdate_set_update_fulfill_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_19 -> val_conv_19 == null ? 0 : val_conv_19.ptr & ~1).toArray() : null);
- for (UpdateFulfillHTLC val_conv_19: val) { this.ptrs_to.add(val_conv_19); };
}
/**
*/
public void set_update_fail_htlcs(UpdateFailHTLC[] val) {
bindings.CommitmentUpdate_set_update_fail_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_16 -> val_conv_16 == null ? 0 : val_conv_16.ptr & ~1).toArray() : null);
- for (UpdateFailHTLC val_conv_16: val) { this.ptrs_to.add(val_conv_16); };
}
/**
*/
public void set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val) {
bindings.CommitmentUpdate_set_update_fail_malformed_htlcs(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_25 -> val_conv_25 == null ? 0 : val_conv_25.ptr & ~1).toArray() : null);
- for (UpdateFailMalformedHTLC val_conv_25: val) { this.ptrs_to.add(val_conv_25); };
}
/**
*/
public void set_update_fee(@Nullable UpdateFee val) {
bindings.CommitmentUpdate_set_update_fee(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_commitment_signed(CommitmentSigned val) {
bindings.CommitmentUpdate_set_commitment_signed(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
CommitmentUpdate ret_hu_conv = new CommitmentUpdate(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (UpdateAddHTLC update_add_htlcs_arg_conv_15: update_add_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_add_htlcs_arg_conv_15); };
- for (UpdateFulfillHTLC update_fulfill_htlcs_arg_conv_19: update_fulfill_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fulfill_htlcs_arg_conv_19); };
- for (UpdateFailHTLC update_fail_htlcs_arg_conv_16: update_fail_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fail_htlcs_arg_conv_16); };
- for (UpdateFailMalformedHTLC update_fail_malformed_htlcs_arg_conv_25: update_fail_malformed_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fail_malformed_htlcs_arg_conv_25); };
- ret_hu_conv.ptrs_to.add(update_fee_arg);
- ret_hu_conv.ptrs_to.add(commitment_signed_arg);
return ret_hu_conv;
}
*/
public void set_pubkeys(ChannelPublicKeys val) {
bindings.CounterpartyChannelTransactionParameters_set_pubkeys(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
CounterpartyChannelTransactionParameters ret_hu_conv = new CounterpartyChannelTransactionParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(pubkeys_arg);
return ret_hu_conv;
}
*/
public void set_outpoint(OutPoint val) {
bindings.DelayedPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
DelayedPaymentOutputDescriptor ret_hu_conv = new DelayedPaymentOutputDescriptor(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
*/
public String into_inner() {
String ret = bindings.Description_into_inner(this.ptr);
- this.ptrs_to.add(this);
+ ;
return ret;
}
*/
public void set_fees(RoutingFees val) {
bindings.DirectionalChannelInfo_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_last_update_message(@Nullable ChannelUpdate val) {
bindings.DirectionalChannelInfo_set_last_update_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
DirectionalChannelInfo ret_hu_conv = new DirectionalChannelInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fees_arg);
- ret_hu_conv.ptrs_to.add(last_update_message_arg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
Event ret_hu_conv = Event.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (RouteHop path_conv_10: path) { ret_hu_conv.ptrs_to.add(path_conv_10); };
return ret_hu_conv;
}
*/
public void handle_event(Event event) {
bindings.EventHandler_handle_event(this.ptr, event == null ? 0 : event.ptr & ~1);
- this.ptrs_to.add(event);
}
}
*/
public boolean eq(Fallback b) {
boolean ret = bindings.Fallback_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
if (ret < 1024) { return null; }
Option_C2Tuple_usizeTransactionZZ ret_hu_conv = Option_C2Tuple_usizeTransactionZZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
- this.ptrs_to.add(output);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
HolderCommitmentTransaction ret_hu_conv = new HolderCommitmentTransaction(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(commitment_tx);
return ret_hu_conv;
}
*/
public void set_features(InitFeatures val) {
bindings.Init_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
Init ret_hu_conv = new Init(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
SignedRawInvoice ret_hu_conv = new SignedRawInvoice(null, ret);
ret_hu_conv.ptrs_to.add(this);
- this.ptrs_to.add(this);
+ ;
return ret_hu_conv;
}
long ret = bindings.Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceSemanticErrorZ ret_hu_conv = Result_InvoiceSemanticErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(signed_invoice);
return ret_hu_conv;
}
@Override public long get_shutdown_scriptpubkey() {
ShutdownScript ret = arg.get_shutdown_scriptpubkey();
long result = ret == null ? 0 : ret.ptr & ~1;
- impl_holder.held.ptrs_to.add(ret);
return result;
}
@Override public long get_channel_signer(boolean inbound, long channel_value_satoshis) {
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(updates);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
- ret_hu_conv.ptrs_to.add(update_msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MonitorEvent ret_hu_conv = MonitorEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
MonitorEvent ret_hu_conv = MonitorEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
*/
public void set_network_graph(NetworkGraph val) {
bindings.NetGraphMsgHandler_set_network_graph(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
NetGraphMsgHandler ret_hu_conv = new NetGraphMsgHandler(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(network_graph);
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
NetworkUpdate ret_hu_conv = NetworkUpdate.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
*/
public void set_contents(UnsignedNodeAnnouncement val) {
bindings.NodeAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
NodeAnnouncement ret_hu_conv = new NodeAnnouncement(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
*/
public void set_features(NodeFeatures val) {
bindings.NodeAnnouncementInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_announcement_message(@Nullable NodeAnnouncement val) {
bindings.NodeAnnouncementInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
NodeAnnouncementInfo ret_hu_conv = new NodeAnnouncementInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(announcement_message_arg);
return ret_hu_conv;
}
*/
public void set_lowest_inbound_channel_fees(@Nullable RoutingFees val) {
bindings.NodeInfo_set_lowest_inbound_channel_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_announcement_info(@Nullable NodeAnnouncementInfo val) {
bindings.NodeInfo_set_announcement_info(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
NodeInfo ret_hu_conv = new NodeInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(lowest_inbound_channel_fees_arg);
- ret_hu_conv.ptrs_to.add(announcement_info_arg);
return ret_hu_conv;
}
long ret = bindings.PeerManager_write_buffer_space_avail(this.ptr, descriptor == null ? 0 : descriptor.ptr);
if (ret < 1024) { return null; }
Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(descriptor);
return ret_hu_conv;
}
long ret = bindings.PeerManager_read_event(this.ptr, peer_descriptor == null ? 0 : peer_descriptor.ptr, data);
if (ret < 1024) { return null; }
Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(peer_descriptor);
return ret_hu_conv;
}
*/
public void socket_disconnected(SocketDescriptor descriptor) {
bindings.PeerManager_socket_disconnected(this.ptr, descriptor == null ? 0 : descriptor.ptr);
- this.ptrs_to.add(descriptor);
}
/**
long ret = bindings.Persist_persist_new_channel(this.ptr, id == null ? 0 : id.ptr & ~1, data == null ? 0 : data.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(id);
this.ptrs_to.add(data);
return ret_hu_conv;
}
long ret = bindings.Persist_update_persisted_channel(this.ptr, id == null ? 0 : id.ptr & ~1, update == null ? 0 : update.ptr & ~1, data == null ? 0 : data.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(id);
this.ptrs_to.add(update);
this.ptrs_to.add(data);
return ret_hu_conv;
long ret = bindings.PrivateRoute_new(hops == null ? 0 : hops.ptr & ~1);
if (ret < 1024) { return null; }
Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(hops);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
RouteHint ret_hu_conv = new RouteHint(null, ret);
ret_hu_conv.ptrs_to.add(this);
- this.ptrs_to.add(this);
+ ;
return ret_hu_conv;
}
*/
public void set_timestamp(PositiveTimestamp val) {
bindings.RawDataPart_set_timestamp(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_data(RawDataPart val) {
bindings.RawInvoice_set_data(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
long ret = bindings.CResult_AcceptChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_AcceptChannelDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_COption_TypeZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_CResult_NetAddressu8ZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_CResult_NetAddressu8ZDecodeErrorZ ret_hu_conv = Result_CResult_NetAddressu8ZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelConfigDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelConfigDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelReestablishDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ChannelUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ClosingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ClosingSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_CommitmentSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_DescriptionCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_DirectionalChannelInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_DirectionalChannelInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ErrorMessageDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ErrorMessageDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ExpiryTimeCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ExpiryTimeCreationErrorZ ret_hu_conv = Result_ExpiryTimeCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingCreatedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingCreatedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingLockedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingLockedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_FundingSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_HTLCUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_InMemorySignerDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InMemorySignerDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_InitDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InitDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_InitFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InitFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_InvoiceNoneZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceNoneZ ret_hu_conv = Result_InvoiceNoneZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InvoiceSemanticErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceSemanticErrorZ ret_hu_conv = Result_InvoiceSemanticErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_InvoiceSignOrCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_InvoiceSignOrCreationErrorZ ret_hu_conv = Result_InvoiceSignOrCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NetAddressDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NetAddressDecodeErrorZ ret_hu_conv = Result_NetAddressDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NetworkGraphDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_NetworkGraphDecodeErrorZ ret_hu_conv = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NetworkGraphDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NetworkGraphDecodeErrorZ ret_hu_conv = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_NodeInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NoneLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NoneMonitorUpdateErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneMonitorUpdateErrorZ ret_hu_conv = Result_NoneMonitorUpdateErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_NonePeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_OpenChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_OpenChannelDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_OutPointDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_OutPointDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_PingDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_PingDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_PongDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_PongDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_PositiveTimestampCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_PrivateRouteCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_RevokeAndACKDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteHopDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteHopDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteLightningErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_RouteLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_RoutingFeesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_RoutingFeesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ShutdownDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ShutdownDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_ShutdownScriptDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_SignDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_SignDecodeErrorZ ret_hu_conv = Result_SignDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_SignedRawInvoiceNoneZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_SignedRawInvoiceNoneZ ret_hu_conv = Result_SignedRawInvoiceNoneZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_TxCreationKeysDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_TxCreationKeysErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_TxCreationKeysErrorZ ret_hu_conv = Result_TxCreationKeysErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFeeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFeeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
long ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_boolLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
long ret = bindings.CResult_boolPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
if (ret < 1024) { return null; }
Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
*/
public void set_paths(RouteHop[][] val) {
bindings.Route_set_paths(this.ptr, val != null ? Arrays.stream(val).map(val_conv_12 -> val_conv_12 != null ? Arrays.stream(val_conv_12).mapToLong(val_conv_12_conv_10 -> val_conv_12_conv_10 == null ? 0 : val_conv_12_conv_10.ptr & ~1).toArray() : null).toArray(long[][]::new) : null);
- for (RouteHop[] val_conv_12: val) { for (RouteHop val_conv_12_conv_10: val_conv_12) { this.ptrs_to.add(val_conv_12_conv_10); }; };
}
/**
if (ret < 1024) { return null; }
Route ret_hu_conv = new Route(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (RouteHop[] paths_arg_conv_12: paths_arg) { for (RouteHop paths_arg_conv_12_conv_10: paths_arg_conv_12) { ret_hu_conv.ptrs_to.add(paths_arg_conv_12_conv_10); }; };
return ret_hu_conv;
}
*/
public void set_fees(RoutingFees val) {
bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
RouteHintHop ret_hu_conv = new RouteHintHop(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fees_arg);
return ret_hu_conv;
}
*/
public void set_node_features(NodeFeatures val) {
bindings.RouteHop_set_node_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_channel_features(ChannelFeatures val) {
bindings.RouteHop_set_channel_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
RouteHop ret_hu_conv = new RouteHop(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(node_features_arg);
- ret_hu_conv.ptrs_to.add(channel_features_arg);
return ret_hu_conv;
}
@Override public long[] get_next_node_announcements(byte[] starting_point, byte batch_amount) {
NodeAnnouncement[] ret = arg.get_next_node_announcements(starting_point, batch_amount);
long[] result = ret != null ? Arrays.stream(ret).mapToLong(ret_conv_18 -> ret_conv_18 == null ? 0 : ret_conv_18.ptr & ~1).toArray() : null;
- for (NodeAnnouncement ret_conv_18: ret) { impl_holder.held.ptrs_to.add(ret_conv_18); };
return result;
}
@Override public void sync_routing_table(byte[] their_node_id, long init) {
long ret = bindings.RoutingMessageHandler_handle_reply_channel_range(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
long ret = bindings.RoutingMessageHandler_handle_reply_short_channel_ids_end(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
long ret = bindings.RoutingMessageHandler_handle_query_channel_range(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
long ret = bindings.RoutingMessageHandler_handle_query_short_channel_ids(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
*/
public byte[] into_inner() {
byte[] ret = bindings.ShutdownScript_into_inner(this.ptr);
- this.ptrs_to.add(this);
+ ;
return ret;
}
super(bindings.LDKSign_new(arg, BaseSign, pubkeys == null ? 0 : pubkeys.ptr & ~1));
this.ptrs_to.add(arg);
this.ptrs_to.add(BaseSign);
- this.ptrs_to.add(pubkeys);
this.bindings_instance = arg;
}
@Override @SuppressWarnings("deprecation")
*/
public boolean eq(SignOrCreationError b) {
boolean ret = bindings.SignOrCreationError_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
if (ret < 1024) { return null; }
ThreeTuple_RawInvoice_u832InvoiceSignatureZ ret_hu_conv = new ThreeTuple_RawInvoice_u832InvoiceSignatureZ(null, ret);
ret_hu_conv.ptrs_to.add(this);
- this.ptrs_to.add(this);
+ ;
return ret_hu_conv;
}
if (ret < 1024) { return null; }
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
*/
public void set_outpoint(OutPoint val) {
bindings.StaticPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
StaticPaymentOutputDescriptor ret_hu_conv = new StaticPaymentOutputDescriptor(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(b_tx_broadcaster);
ret_hu_conv.ptrs_to.add(b_logger);
ret_hu_conv.ptrs_to.add(b_keys_manager);
- ret_hu_conv.ptrs_to.add(b_config);
- ret_hu_conv.ptrs_to.add(b_params);
+ ;
+ ;
return ret_hu_conv;
}
if (ret < 1024) { return null; }
TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(b);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
*/
public void set_features(ChannelFeatures val) {
bindings.UnsignedChannelAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_features(NodeFeatures val) {
bindings.UnsignedNodeAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_own_channel_config(ChannelHandshakeConfig val) {
bindings.UserConfig_set_own_channel_config(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_peer_channel_config_limits(ChannelHandshakeLimits val) {
bindings.UserConfig_set_peer_channel_config_limits(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
*/
public void set_channel_options(ChannelConfig val) {
bindings.UserConfig_set_channel_options(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
UserConfig ret_hu_conv = new UserConfig(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(own_channel_config_arg);
- ret_hu_conv.ptrs_to.add(peer_channel_config_limits_arg);
- ret_hu_conv.ptrs_to.add(channel_options_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(arg_chain_monitor);
ret_hu_conv.ptrs_to.add(arg_tx_broadcaster);
ret_hu_conv.ptrs_to.add(arg_logger);
- ret_hu_conv.ptrs_to.add(arg_default_config);
+ ;
for (ChannelMonitor arg_channel_monitors_conv_16: arg_channel_monitors) { ret_hu_conv.ptrs_to.add(arg_channel_monitors_conv_16); };
return ret_hu_conv;
}
*/
public static byte[] build_closing_transaction(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, OutPoint funding_outpoint) {
byte[] ret = bindings.build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
- // this.ptrs_to.add(funding_outpoint);
return ret;
}
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(network);
for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
- for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
if (ret < 1024) { return null; }
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(network);
- ret_hu_conv.ptrs_to.add(payee_features);
for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
- for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
long ret = bindings.Watch_watch_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr & ~1, monitor == null ? 0 : monitor.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_txo);
- this.ptrs_to.add(monitor);
return ret_hu_conv;
}
long ret = bindings.Watch_update_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr & ~1, update == null ? 0 : update.ptr & ~1);
if (ret < 1024) { return null; }
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_txo);
- this.ptrs_to.add(update);
return ret_hu_conv;
}
*/
public void set_outpoint(OutPoint val) {
bindings.WatchedOutput_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
/**
if (ret < 1024) { return null; }
WatchedOutput ret_hu_conv = new WatchedOutput(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
number ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr & ~1);
APIError ret_hu_conv = APIError.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(script);
return ret_hu_conv;
}
public boolean eq(Balance b) {
boolean ret = bindings.Balance_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
// TODO: private constructor instantiation
super(bindings.LDKBaseSign_new(arg, pubkeys == null ? 0 : pubkeys.ptr & ~1));
this.ptrs_to.push(arg);
- this.ptrs_to.add(pubkeys);
-
+
}
}
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 void set_best_block(BestBlock val) {
bindings.ChainParameters_set_best_block(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChainParameters constructor_new(Network network_arg, BestBlock best_block_arg) {
number ret = bindings.ChainParameters_new(network_arg, best_block_arg == null ? 0 : best_block_arg.ptr & ~1);
const ret_hu_conv: ChainParameters = new ChainParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(best_block_arg);
return ret_hu_conv;
}
public void set_contents(UnsignedChannelAnnouncement val) {
bindings.ChannelAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelAnnouncement constructor_new(Uint8Array node_signature_1_arg, Uint8Array node_signature_2_arg, Uint8Array bitcoin_signature_1_arg, Uint8Array bitcoin_signature_2_arg, UnsignedChannelAnnouncement contents_arg) {
number ret = bindings.ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg == null ? 0 : contents_arg.ptr & ~1);
const ret_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
public void set_features(InitFeatures val) {
bindings.ChannelCounterparty_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_unspendable_punishment_reserve() {
public void set_forwarding_info(CounterpartyForwardingInfo val) {
bindings.ChannelCounterparty_set_forwarding_info(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelCounterparty constructor_new(Uint8Array node_id_arg, InitFeatures features_arg, number unspendable_punishment_reserve_arg, CounterpartyForwardingInfo forwarding_info_arg) {
number ret = bindings.ChannelCounterparty_new(node_id_arg, features_arg == null ? 0 : features_arg.ptr & ~1, unspendable_punishment_reserve_arg, forwarding_info_arg == null ? 0 : forwarding_info_arg.ptr & ~1);
const ret_hu_conv: ChannelCounterparty = new ChannelCounterparty(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(forwarding_info_arg);
return ret_hu_conv;
}
public void set_counterparty(ChannelCounterparty val) {
bindings.ChannelDetails_set_counterparty(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public OutPoint get_funding_txo() {
public void set_funding_txo(OutPoint val) {
bindings.ChannelDetails_set_funding_txo(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Option_u64Z get_short_channel_id() {
number ret = bindings.ChannelDetails_new(channel_id_arg, counterparty_arg == null ? 0 : counterparty_arg.ptr & ~1, funding_txo_arg == null ? 0 : funding_txo_arg.ptr & ~1, short_channel_id_arg.ptr, channel_value_satoshis_arg, unspendable_punishment_reserve_arg.ptr, user_id_arg, outbound_capacity_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg.ptr, force_close_spend_delay_arg.ptr, is_outbound_arg, is_funding_locked_arg, is_usable_arg, is_public_arg);
const ret_hu_conv: ChannelDetails = new ChannelDetails(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(counterparty_arg);
- ret_hu_conv.ptrs_to.add(funding_txo_arg);
return ret_hu_conv;
}
public void set_features(ChannelFeatures val) {
bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_node_one() {
public void set_one_to_two(DirectionalChannelInfo val) {
bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_node_two() {
public void set_two_to_one(DirectionalChannelInfo val) {
bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Option_u64Z get_capacity_sats() {
public void set_announcement_message(ChannelAnnouncement val) {
bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelInfo constructor_new(ChannelFeatures features_arg, Uint8Array node_one_arg, DirectionalChannelInfo one_to_two_arg, Uint8Array node_two_arg, DirectionalChannelInfo two_to_one_arg, Option_u64Z capacity_sats_arg, ChannelAnnouncement announcement_message_arg) {
number ret = bindings.ChannelInfo_new(features_arg == null ? 0 : features_arg.ptr & ~1, node_one_arg, one_to_two_arg == null ? 0 : one_to_two_arg.ptr & ~1, node_two_arg, two_to_one_arg == null ? 0 : two_to_one_arg.ptr & ~1, capacity_sats_arg.ptr, announcement_message_arg == null ? 0 : announcement_message_arg.ptr & ~1);
const ret_hu_conv: ChannelInfo = new ChannelInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(one_to_two_arg);
- ret_hu_conv.ptrs_to.add(two_to_one_arg);
- ret_hu_conv.ptrs_to.add(announcement_message_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(tx_broadcaster);
ret_hu_conv.ptrs_to.add(logger);
ret_hu_conv.ptrs_to.add(keys_manager);
- ret_hu_conv.ptrs_to.add(config);
- ret_hu_conv.ptrs_to.add(params);
return ret_hu_conv;
}
public Result_NoneAPIErrorZ create_channel(Uint8Array their_network_key, number channel_value_satoshis, number push_msat, number user_id, UserConfig override_config) {
number ret = bindings.ChannelManager_create_channel(this.ptr, their_network_key, channel_value_satoshis, push_msat, user_id, override_config == null ? 0 : override_config.ptr & ~1);
Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(override_config);
return ret_hu_conv;
}
public void set_default_config(UserConfig val) {
bindings.ChannelManagerReadArgs_set_default_config(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelManagerReadArgs constructor_new(KeysInterface keys_manager, FeeEstimator fee_estimator, Watch chain_monitor, BroadcasterInterface tx_broadcaster, Logger logger, UserConfig default_config, ChannelMonitor[] channel_monitors) {
ret_hu_conv.ptrs_to.add(chain_monitor);
ret_hu_conv.ptrs_to.add(tx_broadcaster);
ret_hu_conv.ptrs_to.add(logger);
- ret_hu_conv.ptrs_to.add(default_config);
for (ChannelMonitor channel_monitors_conv_16: channel_monitors) { ret_hu_conv.ptrs_to.add(channel_monitors_conv_16); };
return ret_hu_conv;
}
}
public void handle_open_channel(Uint8Array their_node_id, InitFeatures their_features, OpenChannel msg) {
bindings.ChannelMessageHandler_handle_open_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
this.ptrs_to.add(msg);
}
public void handle_accept_channel(Uint8Array their_node_id, InitFeatures their_features, AcceptChannel msg) {
bindings.ChannelMessageHandler_handle_accept_channel(this.ptr, their_node_id, their_features == null ? 0 : their_features.ptr & ~1, msg == null ? 0 : msg.ptr & ~1);
- this.ptrs_to.add(their_features);
this.ptrs_to.add(msg);
}
public void set_holder_pubkeys(ChannelPublicKeys val) {
bindings.ChannelTransactionParameters_set_holder_pubkeys(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_holder_selected_contest_delay() {
public void set_counterparty_parameters(CounterpartyChannelTransactionParameters val) {
bindings.ChannelTransactionParameters_set_counterparty_parameters(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public OutPoint get_funding_outpoint() {
public void set_funding_outpoint(OutPoint val) {
bindings.ChannelTransactionParameters_set_funding_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelTransactionParameters constructor_new(ChannelPublicKeys holder_pubkeys_arg, number holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, CounterpartyChannelTransactionParameters counterparty_parameters_arg, OutPoint funding_outpoint_arg) {
number ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr & ~1, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr & ~1, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr & ~1);
const ret_hu_conv: ChannelTransactionParameters = new ChannelTransactionParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(holder_pubkeys_arg);
- ret_hu_conv.ptrs_to.add(counterparty_parameters_arg);
- ret_hu_conv.ptrs_to.add(funding_outpoint_arg);
return ret_hu_conv;
}
public void set_contents(UnsignedChannelUpdate val) {
bindings.ChannelUpdate_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ChannelUpdate constructor_new(Uint8Array signature_arg, UnsignedChannelUpdate contents_arg) {
number ret = bindings.ChannelUpdate_new(signature_arg, contents_arg == null ? 0 : contents_arg.ptr & ~1);
const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
public void set_fee_range(ClosingSignedFeeRange val) {
bindings.ClosingSigned_set_fee_range(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static ClosingSigned constructor_new(Uint8Array channel_id_arg, number fee_satoshis_arg, Uint8Array signature_arg, ClosingSignedFeeRange fee_range_arg) {
number ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg == null ? 0 : fee_range_arg.ptr & ~1);
const ret_hu_conv: ClosingSigned = new ClosingSigned(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fee_range_arg);
return ret_hu_conv;
}
number ret = bindings.ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
const ret_hu_conv: ClosingTransaction = new ClosingTransaction(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(funding_outpoint);
return ret_hu_conv;
}
public Result_TrustedClosingTransactionNoneZ verify(OutPoint funding_outpoint) {
number ret = bindings.ClosingTransaction_verify(this.ptr, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
Result_TrustedClosingTransactionNoneZ ret_hu_conv = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_outpoint);
return ret_hu_conv;
}
public void set_update_add_htlcs(UpdateAddHTLC[] val) {
bindings.CommitmentUpdate_set_update_add_htlcs(this.ptr, val != null ? Arrays.stream(val).map(val_conv_15 -> val_conv_15 == null ? 0 : val_conv_15.ptr & ~1).toArray(number[]::new) : null);
- for (UpdateAddHTLC val_conv_15: val) { this.ptrs_to.add(val_conv_15); };
}
public UpdateFulfillHTLC[] get_update_fulfill_htlcs() {
public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val) {
bindings.CommitmentUpdate_set_update_fulfill_htlcs(this.ptr, val != null ? Arrays.stream(val).map(val_conv_19 -> val_conv_19 == null ? 0 : val_conv_19.ptr & ~1).toArray(number[]::new) : null);
- for (UpdateFulfillHTLC val_conv_19: val) { this.ptrs_to.add(val_conv_19); };
}
public UpdateFailHTLC[] get_update_fail_htlcs() {
public void set_update_fail_htlcs(UpdateFailHTLC[] val) {
bindings.CommitmentUpdate_set_update_fail_htlcs(this.ptr, val != null ? Arrays.stream(val).map(val_conv_16 -> val_conv_16 == null ? 0 : val_conv_16.ptr & ~1).toArray(number[]::new) : null);
- for (UpdateFailHTLC val_conv_16: val) { this.ptrs_to.add(val_conv_16); };
}
public UpdateFailMalformedHTLC[] get_update_fail_malformed_htlcs() {
public void set_update_fail_malformed_htlcs(UpdateFailMalformedHTLC[] val) {
bindings.CommitmentUpdate_set_update_fail_malformed_htlcs(this.ptr, val != null ? Arrays.stream(val).map(val_conv_25 -> val_conv_25 == null ? 0 : val_conv_25.ptr & ~1).toArray(number[]::new) : null);
- for (UpdateFailMalformedHTLC val_conv_25: val) { this.ptrs_to.add(val_conv_25); };
}
public UpdateFee get_update_fee() {
public void set_update_fee(UpdateFee val) {
bindings.CommitmentUpdate_set_update_fee(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public CommitmentSigned get_commitment_signed() {
public void set_commitment_signed(CommitmentSigned val) {
bindings.CommitmentUpdate_set_commitment_signed(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static CommitmentUpdate constructor_new(UpdateAddHTLC[] update_add_htlcs_arg, UpdateFulfillHTLC[] update_fulfill_htlcs_arg, UpdateFailHTLC[] update_fail_htlcs_arg, UpdateFailMalformedHTLC[] update_fail_malformed_htlcs_arg, UpdateFee update_fee_arg, CommitmentSigned commitment_signed_arg) {
number ret = bindings.CommitmentUpdate_new(update_add_htlcs_arg != null ? Arrays.stream(update_add_htlcs_arg).map(update_add_htlcs_arg_conv_15 -> update_add_htlcs_arg_conv_15 == null ? 0 : update_add_htlcs_arg_conv_15.ptr & ~1).toArray(number[]::new) : null, update_fulfill_htlcs_arg != null ? Arrays.stream(update_fulfill_htlcs_arg).map(update_fulfill_htlcs_arg_conv_19 -> update_fulfill_htlcs_arg_conv_19 == null ? 0 : update_fulfill_htlcs_arg_conv_19.ptr & ~1).toArray(number[]::new) : null, update_fail_htlcs_arg != null ? Arrays.stream(update_fail_htlcs_arg).map(update_fail_htlcs_arg_conv_16 -> update_fail_htlcs_arg_conv_16 == null ? 0 : update_fail_htlcs_arg_conv_16.ptr & ~1).toArray(number[]::new) : null, update_fail_malformed_htlcs_arg != null ? Arrays.stream(update_fail_malformed_htlcs_arg).map(update_fail_malformed_htlcs_arg_conv_25 -> update_fail_malformed_htlcs_arg_conv_25 == null ? 0 : update_fail_malformed_htlcs_arg_conv_25.ptr & ~1).toArray(number[]::new) : null, update_fee_arg == null ? 0 : update_fee_arg.ptr & ~1, commitment_signed_arg == null ? 0 : commitment_signed_arg.ptr & ~1);
const ret_hu_conv: CommitmentUpdate = new CommitmentUpdate(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (UpdateAddHTLC update_add_htlcs_arg_conv_15: update_add_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_add_htlcs_arg_conv_15); };
- for (UpdateFulfillHTLC update_fulfill_htlcs_arg_conv_19: update_fulfill_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fulfill_htlcs_arg_conv_19); };
- for (UpdateFailHTLC update_fail_htlcs_arg_conv_16: update_fail_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fail_htlcs_arg_conv_16); };
- for (UpdateFailMalformedHTLC update_fail_malformed_htlcs_arg_conv_25: update_fail_malformed_htlcs_arg) { ret_hu_conv.ptrs_to.add(update_fail_malformed_htlcs_arg_conv_25); };
- ret_hu_conv.ptrs_to.add(update_fee_arg);
- ret_hu_conv.ptrs_to.add(commitment_signed_arg);
return ret_hu_conv;
}
public void set_pubkeys(ChannelPublicKeys val) {
bindings.CounterpartyChannelTransactionParameters_set_pubkeys(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_selected_contest_delay() {
number ret = bindings.CounterpartyChannelTransactionParameters_new(pubkeys_arg == null ? 0 : pubkeys_arg.ptr & ~1, selected_contest_delay_arg);
const ret_hu_conv: CounterpartyChannelTransactionParameters = new CounterpartyChannelTransactionParameters(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(pubkeys_arg);
return ret_hu_conv;
}
public void set_outpoint(OutPoint val) {
bindings.DelayedPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_per_commitment_point() {
number ret = bindings.DelayedPaymentOutputDescriptor_new(outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, per_commitment_point_arg, to_self_delay_arg, output_arg.ptr, revocation_pubkey_arg, channel_keys_id_arg, channel_value_satoshis_arg);
const ret_hu_conv: DelayedPaymentOutputDescriptor = new DelayedPaymentOutputDescriptor(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
public void set_fees(RoutingFees val) {
bindings.DirectionalChannelInfo_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public ChannelUpdate get_last_update_message() {
public void set_last_update_message(ChannelUpdate val) {
bindings.DirectionalChannelInfo_set_last_update_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static DirectionalChannelInfo constructor_new(number last_update_arg, boolean enabled_arg, number cltv_expiry_delta_arg, number htlc_minimum_msat_arg, Option_u64Z htlc_maximum_msat_arg, RoutingFees fees_arg, ChannelUpdate last_update_message_arg) {
number ret = bindings.DirectionalChannelInfo_new(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg.ptr, fees_arg == null ? 0 : fees_arg.ptr & ~1, last_update_message_arg == null ? 0 : last_update_message_arg.ptr & ~1);
const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fees_arg);
- ret_hu_conv.ptrs_to.add(last_update_message_arg);
return ret_hu_conv;
}
number ret = bindings.ErrorAction_disconnect_peer(msg == null ? 0 : msg.ptr & ~1);
ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.ErrorAction_send_error_message(msg == null ? 0 : msg.ptr & ~1);
ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.Event_payment_path_failed(payment_hash, rejected_by_dest, network_update.ptr, all_paths_failed, path != null ? Arrays.stream(path).map(path_conv_10 -> path_conv_10 == null ? 0 : path_conv_10.ptr & ~1).toArray(number[]::new) : null);
Event ret_hu_conv = Event.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (RouteHop path_conv_10: path) { ret_hu_conv.ptrs_to.add(path_conv_10); };
return ret_hu_conv;
}
}
public void handle_event(Event event) {
bindings.EventHandler_handle_event(this.ptr, event == null ? 0 : event.ptr & ~1);
- this.ptrs_to.add(event);
}
}
public boolean eq(Fallback b) {
boolean ret = bindings.Fallback_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
number ret = bindings.Filter_register_output(this.ptr, output == null ? 0 : output.ptr & ~1);
Option_C2Tuple_usizeTransactionZZ ret_hu_conv = Option_C2Tuple_usizeTransactionZZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
- this.ptrs_to.add(output);
return ret_hu_conv;
}
number ret = bindings.HolderCommitmentTransaction_new(commitment_tx == null ? 0 : commitment_tx.ptr & ~1, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
const ret_hu_conv: HolderCommitmentTransaction = new HolderCommitmentTransaction(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(commitment_tx);
return ret_hu_conv;
}
public void set_features(InitFeatures val) {
bindings.Init_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static Init constructor_new(InitFeatures features_arg) {
number ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
const ret_hu_conv: Init = new Init(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
return ret_hu_conv;
}
public static Result_InvoiceSemanticErrorZ constructor_from_signed(SignedRawInvoice signed_invoice) {
number ret = bindings.Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr & ~1);
Result_InvoiceSemanticErrorZ ret_hu_conv = Result_InvoiceSemanticErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(signed_invoice);
return ret_hu_conv;
}
get_shutdown_scriptpubkey (): number {
ShutdownScript ret = arg.get_shutdown_scriptpubkey();
result: number = ret == null ? 0 : ret.ptr & ~1;
- impl_holder.held.ptrs_to.add(ret);
return result;
},
number ret = bindings.MessageSendEvent_send_accept_channel(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_open_channel(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_funding_created(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_funding_signed(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_funding_locked(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_announcement_signatures(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_update_htlcs(node_id, updates == null ? 0 : updates.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(updates);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_revoke_and_ack(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_closing_signed(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_shutdown(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_channel_reestablish(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_broadcast_channel_announcement(msg == null ? 0 : msg.ptr & ~1, update_msg == null ? 0 : update_msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
- ret_hu_conv.ptrs_to.add(update_msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_broadcast_node_announcement(msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_broadcast_channel_update(msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_channel_update(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_channel_range_query(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_short_ids_query(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MessageSendEvent_send_reply_channel_range(node_id, msg == null ? 0 : msg.ptr & ~1);
MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
number ret = bindings.MonitorEvent_htlcevent(a == null ? 0 : a.ptr & ~1);
MonitorEvent ret_hu_conv = MonitorEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
number ret = bindings.MonitorEvent_commitment_tx_confirmed(a == null ? 0 : a.ptr & ~1);
MonitorEvent ret_hu_conv = MonitorEvent.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
public void set_network_graph(NetworkGraph val) {
bindings.NetGraphMsgHandler_set_network_graph(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static NetGraphMsgHandler constructor_new(NetworkGraph network_graph, Option_AccessZ chain_access, Logger logger) {
number ret = bindings.NetGraphMsgHandler_new(network_graph == null ? 0 : network_graph.ptr & ~1, chain_access.ptr, logger == null ? 0 : logger.ptr);
const ret_hu_conv: NetGraphMsgHandler = new NetGraphMsgHandler(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(network_graph);
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
number ret = bindings.NetworkUpdate_channel_update_message(msg == null ? 0 : msg.ptr & ~1);
NetworkUpdate ret_hu_conv = NetworkUpdate.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(msg);
return ret_hu_conv;
}
public void set_contents(UnsignedNodeAnnouncement val) {
bindings.NodeAnnouncement_set_contents(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static NodeAnnouncement constructor_new(Uint8Array signature_arg, UnsignedNodeAnnouncement contents_arg) {
number ret = bindings.NodeAnnouncement_new(signature_arg, contents_arg == null ? 0 : contents_arg.ptr & ~1);
const ret_hu_conv: NodeAnnouncement = new NodeAnnouncement(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(contents_arg);
return ret_hu_conv;
}
public void set_features(NodeFeatures val) {
bindings.NodeAnnouncementInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_last_update() {
public void set_announcement_message(NodeAnnouncement val) {
bindings.NodeAnnouncementInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static NodeAnnouncementInfo constructor_new(NodeFeatures features_arg, number last_update_arg, Uint8Array rgb_arg, Uint8Array alias_arg, NetAddress[] addresses_arg, NodeAnnouncement announcement_message_arg) {
number ret = bindings.NodeAnnouncementInfo_new(features_arg == null ? 0 : features_arg.ptr & ~1, last_update_arg, rgb_arg, alias_arg, addresses_arg != null ? Arrays.stream(addresses_arg).map(addresses_arg_conv_12 -> addresses_arg_conv_12.ptr).toArray(number[]::new) : null, announcement_message_arg == null ? 0 : announcement_message_arg.ptr & ~1);
const ret_hu_conv: NodeAnnouncementInfo = new NodeAnnouncementInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(features_arg);
- ret_hu_conv.ptrs_to.add(announcement_message_arg);
return ret_hu_conv;
}
public void set_lowest_inbound_channel_fees(RoutingFees val) {
bindings.NodeInfo_set_lowest_inbound_channel_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public NodeAnnouncementInfo get_announcement_info() {
public void set_announcement_info(NodeAnnouncementInfo val) {
bindings.NodeInfo_set_announcement_info(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public static NodeInfo constructor_new(number[] channels_arg, RoutingFees lowest_inbound_channel_fees_arg, NodeAnnouncementInfo announcement_info_arg) {
number ret = bindings.NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg == null ? 0 : lowest_inbound_channel_fees_arg.ptr & ~1, announcement_info_arg == null ? 0 : announcement_info_arg.ptr & ~1);
const ret_hu_conv: NodeInfo = new NodeInfo(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(lowest_inbound_channel_fees_arg);
- ret_hu_conv.ptrs_to.add(announcement_info_arg);
return ret_hu_conv;
}
public Result_NonePeerHandleErrorZ write_buffer_space_avail(SocketDescriptor descriptor) {
number ret = bindings.PeerManager_write_buffer_space_avail(this.ptr, descriptor == null ? 0 : descriptor.ptr);
Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(descriptor);
return ret_hu_conv;
}
public Result_boolPeerHandleErrorZ read_event(SocketDescriptor peer_descriptor, Uint8Array data) {
number ret = bindings.PeerManager_read_event(this.ptr, peer_descriptor == null ? 0 : peer_descriptor.ptr, data);
Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(peer_descriptor);
return ret_hu_conv;
}
public void socket_disconnected(SocketDescriptor descriptor) {
bindings.PeerManager_socket_disconnected(this.ptr, descriptor == null ? 0 : descriptor.ptr);
- this.ptrs_to.add(descriptor);
}
public void disconnect_by_node_id(Uint8Array node_id, boolean no_connection_possible) {
public Result_NoneChannelMonitorUpdateErrZ persist_new_channel(OutPoint id, ChannelMonitor data) {
number ret = bindings.Persist_persist_new_channel(this.ptr, id == null ? 0 : id.ptr & ~1, data == null ? 0 : data.ptr & ~1);
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(id);
this.ptrs_to.add(data);
return ret_hu_conv;
}
public Result_NoneChannelMonitorUpdateErrZ update_persisted_channel(OutPoint id, ChannelMonitorUpdate update, ChannelMonitor data) {
number ret = bindings.Persist_update_persisted_channel(this.ptr, id == null ? 0 : id.ptr & ~1, update == null ? 0 : update.ptr & ~1, data == null ? 0 : data.ptr & ~1);
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(id);
this.ptrs_to.add(update);
this.ptrs_to.add(data);
return ret_hu_conv;
public static Result_PrivateRouteCreationErrorZ constructor_new(RouteHint hops) {
number ret = bindings.PrivateRoute_new(hops == null ? 0 : hops.ptr & ~1);
Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(hops);
return ret_hu_conv;
}
public void set_timestamp(PositiveTimestamp val) {
bindings.RawDataPart_set_timestamp(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public boolean eq(RawDataPart b) {
public void set_data(RawDataPart val) {
bindings.RawInvoice_set_data(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public boolean eq(RawInvoice b) {
public static Result_AcceptChannelDecodeErrorZ constructor_ok(AcceptChannel o) {
number ret = bindings.CResult_AcceptChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_AcceptChannelDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_AcceptChannelDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_AnnouncementSignaturesDecodeErrorZ constructor_ok(AnnouncementSignatures o) {
number ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_AnnouncementSignaturesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_AnnouncementSignaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_AnnouncementSignaturesDecodeErrorZ ret_hu_conv = Result_AnnouncementSignaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_BuiltCommitmentTransactionDecodeErrorZ constructor_ok(BuiltCommitmentTransaction o) {
number ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_BuiltCommitmentTransactionDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_BuiltCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_BuiltCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_COption_TypeZDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_COption_TypeZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_COption_TypeZDecodeErrorZ ret_hu_conv = Result_COption_TypeZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_CResult_NetAddressu8ZDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_CResult_NetAddressu8ZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_CResult_NetAddressu8ZDecodeErrorZ ret_hu_conv = Result_CResult_NetAddressu8ZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_CVec_u8ZPeerHandleErrorZ constructor_err(PeerHandleError e) {
number ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelAnnouncementDecodeErrorZ constructor_ok(ChannelAnnouncement o) {
number ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelAnnouncementDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_ChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelConfigDecodeErrorZ constructor_ok(ChannelConfig o) {
number ret = bindings.CResult_ChannelConfigDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelConfigDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelConfigDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelFeaturesDecodeErrorZ constructor_ok(ChannelFeatures o) {
number ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelFeaturesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelInfoDecodeErrorZ constructor_ok(ChannelInfo o) {
number ret = bindings.CResult_ChannelInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelInfoDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelInfoDecodeErrorZ ret_hu_conv = Result_ChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelMonitorUpdateDecodeErrorZ constructor_ok(ChannelMonitorUpdate o) {
number ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelMonitorUpdateDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelMonitorUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelPublicKeysDecodeErrorZ constructor_ok(ChannelPublicKeys o) {
number ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelPublicKeysDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelPublicKeysDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelReestablishDecodeErrorZ constructor_ok(ChannelReestablish o) {
number ret = bindings.CResult_ChannelReestablishDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelReestablishDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelReestablishDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelTransactionParametersDecodeErrorZ constructor_ok(ChannelTransactionParameters o) {
number ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelTransactionParametersDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelTransactionParametersDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_ChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ChannelUpdateDecodeErrorZ constructor_ok(ChannelUpdate o) {
number ret = bindings.CResult_ChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ChannelUpdateDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ChannelUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ChannelUpdateDecodeErrorZ ret_hu_conv = Result_ChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ClosingSignedDecodeErrorZ constructor_ok(ClosingSigned o) {
number ret = bindings.CResult_ClosingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ClosingSignedDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ClosingSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ClosingSignedFeeRangeDecodeErrorZ constructor_ok(ClosingSignedFeeRange o) {
number ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ClosingSignedFeeRangeDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ClosingSignedFeeRangeDecodeErrorZ ret_hu_conv = Result_ClosingSignedFeeRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_CommitmentSignedDecodeErrorZ constructor_ok(CommitmentSigned o) {
number ret = bindings.CResult_CommitmentSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_CommitmentSignedDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_CommitmentSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_CommitmentTransactionDecodeErrorZ constructor_ok(CommitmentTransaction o) {
number ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_CommitmentTransactionDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_CommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_CommitmentTransactionDecodeErrorZ ret_hu_conv = Result_CommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ constructor_ok(CounterpartyChannelTransactionParameters o) {
number ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_CounterpartyChannelTransactionParametersDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_CounterpartyChannelTransactionParametersDecodeErrorZ ret_hu_conv = Result_CounterpartyChannelTransactionParametersDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor_ok(DelayedPaymentOutputDescriptor o) {
number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_DescriptionCreationErrorZ constructor_ok(Description o) {
number ret = bindings.CResult_DescriptionCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_DescriptionCreationErrorZ ret_hu_conv = Result_DescriptionCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_DirectionalChannelInfoDecodeErrorZ constructor_ok(DirectionalChannelInfo o) {
number ret = bindings.CResult_DirectionalChannelInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_DirectionalChannelInfoDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_DirectionalChannelInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ErrorMessageDecodeErrorZ constructor_ok(ErrorMessage o) {
number ret = bindings.CResult_ErrorMessageDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ErrorMessageDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ErrorMessageDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ErrorMessageDecodeErrorZ ret_hu_conv = Result_ErrorMessageDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ExpiryTimeCreationErrorZ constructor_ok(ExpiryTime o) {
number ret = bindings.CResult_ExpiryTimeCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ExpiryTimeCreationErrorZ ret_hu_conv = Result_ExpiryTimeCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_FundingCreatedDecodeErrorZ constructor_ok(FundingCreated o) {
number ret = bindings.CResult_FundingCreatedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_FundingCreatedDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_FundingCreatedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_FundingCreatedDecodeErrorZ ret_hu_conv = Result_FundingCreatedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_FundingLockedDecodeErrorZ constructor_ok(FundingLocked o) {
number ret = bindings.CResult_FundingLockedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_FundingLockedDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_FundingLockedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_FundingLockedDecodeErrorZ ret_hu_conv = Result_FundingLockedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_FundingSignedDecodeErrorZ constructor_ok(FundingSigned o) {
number ret = bindings.CResult_FundingSignedDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_FundingSignedDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_FundingSignedDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_FundingSignedDecodeErrorZ ret_hu_conv = Result_FundingSignedDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_GossipTimestampFilterDecodeErrorZ constructor_ok(GossipTimestampFilter o) {
number ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_GossipTimestampFilterDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_GossipTimestampFilterDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_HTLCOutputInCommitmentDecodeErrorZ constructor_ok(HTLCOutputInCommitment o) {
number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_HTLCOutputInCommitmentDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_HTLCUpdateDecodeErrorZ constructor_ok(HTLCUpdate o) {
number ret = bindings.CResult_HTLCUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_HTLCUpdateDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_HTLCUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_HTLCUpdateDecodeErrorZ ret_hu_conv = Result_HTLCUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_HolderCommitmentTransactionDecodeErrorZ constructor_ok(HolderCommitmentTransaction o) {
number ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_HolderCommitmentTransactionDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_HolderCommitmentTransactionDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_HolderCommitmentTransactionDecodeErrorZ ret_hu_conv = Result_HolderCommitmentTransactionDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_InMemorySignerDecodeErrorZ constructor_ok(InMemorySigner o) {
number ret = bindings.CResult_InMemorySignerDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InMemorySignerDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_InMemorySignerDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_InMemorySignerDecodeErrorZ ret_hu_conv = Result_InMemorySignerDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_InitDecodeErrorZ constructor_ok(Init o) {
number ret = bindings.CResult_InitDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InitDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_InitDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_InitFeaturesDecodeErrorZ constructor_ok(InitFeatures o) {
number ret = bindings.CResult_InitFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InitFeaturesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_InitFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_InvoiceFeaturesDecodeErrorZ constructor_ok(InvoiceFeatures o) {
number ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InvoiceFeaturesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_InvoiceNoneZ constructor_ok(Invoice o) {
number ret = bindings.CResult_InvoiceNoneZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InvoiceNoneZ ret_hu_conv = Result_InvoiceNoneZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InvoiceSemanticErrorZ constructor_ok(Invoice o) {
number ret = bindings.CResult_InvoiceSemanticErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InvoiceSemanticErrorZ ret_hu_conv = Result_InvoiceSemanticErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_InvoiceSignOrCreationErrorZ constructor_ok(Invoice o) {
number ret = bindings.CResult_InvoiceSignOrCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_InvoiceSignOrCreationErrorZ ret_hu_conv = Result_InvoiceSignOrCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NetAddressDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NetAddressDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NetAddressDecodeErrorZ ret_hu_conv = Result_NetAddressDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NetworkGraphDecodeErrorZ constructor_ok(NetworkGraph o) {
number ret = bindings.CResult_NetworkGraphDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_NetworkGraphDecodeErrorZ ret_hu_conv = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NetworkGraphDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NetworkGraphDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NetworkGraphDecodeErrorZ ret_hu_conv = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NodeAnnouncementDecodeErrorZ constructor_ok(NodeAnnouncement o) {
number ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NodeAnnouncementDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NodeAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NodeAnnouncementDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NodeAnnouncementInfoDecodeErrorZ constructor_ok(NodeAnnouncementInfo o) {
number ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NodeAnnouncementInfoDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NodeAnnouncementInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NodeAnnouncementInfoDecodeErrorZ ret_hu_conv = Result_NodeAnnouncementInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NodeFeaturesDecodeErrorZ constructor_ok(NodeFeatures o) {
number ret = bindings.CResult_NodeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NodeFeaturesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NodeFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NodeInfoDecodeErrorZ constructor_ok(NodeInfo o) {
number ret = bindings.CResult_NodeInfoDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_NodeInfoDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_NodeInfoDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NodeInfoDecodeErrorZ ret_hu_conv = Result_NodeInfoDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NoneLightningErrorZ constructor_err(LightningError e) {
number ret = bindings.CResult_NoneLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NoneMonitorUpdateErrorZ constructor_err(MonitorUpdateError e) {
number ret = bindings.CResult_NoneMonitorUpdateErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NoneMonitorUpdateErrorZ ret_hu_conv = Result_NoneMonitorUpdateErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_NonePeerHandleErrorZ constructor_err(PeerHandleError e) {
number ret = bindings.CResult_NonePeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_OpenChannelDecodeErrorZ constructor_ok(OpenChannel o) {
number ret = bindings.CResult_OpenChannelDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_OpenChannelDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_OpenChannelDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_OutPointDecodeErrorZ constructor_ok(OutPoint o) {
number ret = bindings.CResult_OutPointDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_OutPointDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_OutPointDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_PayeePubKeyErrorZ constructor_ok(PayeePubKey o) {
number ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_PingDecodeErrorZ constructor_ok(Ping o) {
number ret = bindings.CResult_PingDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_PingDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_PingDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_PongDecodeErrorZ constructor_ok(Pong o) {
number ret = bindings.CResult_PongDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_PongDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_PongDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_PositiveTimestampCreationErrorZ constructor_ok(PositiveTimestamp o) {
number ret = bindings.CResult_PositiveTimestampCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_PrivateRouteCreationErrorZ constructor_ok(PrivateRoute o) {
number ret = bindings.CResult_PrivateRouteCreationErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_PrivateRouteCreationErrorZ ret_hu_conv = Result_PrivateRouteCreationErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_QueryChannelRangeDecodeErrorZ constructor_ok(QueryChannelRange o) {
number ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_QueryChannelRangeDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_QueryChannelRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_QueryShortChannelIdsDecodeErrorZ constructor_ok(QueryShortChannelIds o) {
number ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_QueryShortChannelIdsDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_QueryShortChannelIdsDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ReplyChannelRangeDecodeErrorZ constructor_ok(ReplyChannelRange o) {
number ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ReplyChannelRangeDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ReplyChannelRangeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_ok(ReplyShortChannelIdsEnd o) {
number ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_RevokeAndACKDecodeErrorZ constructor_ok(RevokeAndACK o) {
number ret = bindings.CResult_RevokeAndACKDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_RevokeAndACKDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_RevokeAndACKDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_RevokeAndACKDecodeErrorZ ret_hu_conv = Result_RevokeAndACKDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_RouteDecodeErrorZ constructor_ok(Route o) {
number ret = bindings.CResult_RouteDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_RouteDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_RouteDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_RouteDecodeErrorZ ret_hu_conv = Result_RouteDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_RouteHopDecodeErrorZ constructor_ok(RouteHop o) {
number ret = bindings.CResult_RouteHopDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_RouteHopDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_RouteHopDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_RouteHopDecodeErrorZ ret_hu_conv = Result_RouteHopDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_RouteLightningErrorZ constructor_ok(Route o) {
number ret = bindings.CResult_RouteLightningErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_RouteLightningErrorZ constructor_err(LightningError e) {
number ret = bindings.CResult_RouteLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_RoutingFeesDecodeErrorZ constructor_ok(RoutingFees o) {
number ret = bindings.CResult_RoutingFeesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_RoutingFeesDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_RoutingFeesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ShutdownDecodeErrorZ constructor_ok(Shutdown o) {
number ret = bindings.CResult_ShutdownDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ShutdownDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ShutdownDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ShutdownDecodeErrorZ ret_hu_conv = Result_ShutdownDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ShutdownScriptDecodeErrorZ constructor_ok(ShutdownScript o) {
number ret = bindings.CResult_ShutdownScriptDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_ShutdownScriptDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_ShutdownScriptDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_ShutdownScriptDecodeErrorZ ret_hu_conv = Result_ShutdownScriptDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_ShutdownScriptInvalidShutdownScriptZ constructor_ok(ShutdownScript o) {
number ret = bindings.CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o == null ? 0 : o.ptr & ~1);
Result_ShutdownScriptInvalidShutdownScriptZ ret_hu_conv = Result_ShutdownScriptInvalidShutdownScriptZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_SignDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_SignDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_SignDecodeErrorZ ret_hu_conv = Result_SignDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_SignedRawInvoiceNoneZ constructor_ok(SignedRawInvoice o) {
number ret = bindings.CResult_SignedRawInvoiceNoneZ_ok(o == null ? 0 : o.ptr & ~1);
Result_SignedRawInvoiceNoneZ ret_hu_conv = Result_SignedRawInvoiceNoneZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_SpendableOutputDescriptorDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_SpendableOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_StaticPaymentOutputDescriptorDecodeErrorZ constructor_ok(StaticPaymentOutputDescriptor o) {
number ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_StaticPaymentOutputDescriptorDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_TxCreationKeysDecodeErrorZ constructor_ok(TxCreationKeys o) {
number ret = bindings.CResult_TxCreationKeysDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_TxCreationKeysDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_TxCreationKeysDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_TxCreationKeysDecodeErrorZ ret_hu_conv = Result_TxCreationKeysDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_TxCreationKeysErrorZ constructor_ok(TxCreationKeys o) {
number ret = bindings.CResult_TxCreationKeysErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_TxCreationKeysErrorZ ret_hu_conv = Result_TxCreationKeysErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UnsignedChannelAnnouncementDecodeErrorZ constructor_ok(UnsignedChannelAnnouncement o) {
number ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UnsignedChannelAnnouncementDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UnsignedChannelAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedChannelAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_ok(UnsignedChannelUpdate o) {
number ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UnsignedChannelUpdateDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UnsignedNodeAnnouncementDecodeErrorZ constructor_ok(UnsignedNodeAnnouncement o) {
number ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UnsignedNodeAnnouncementDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UnsignedNodeAnnouncementDecodeErrorZ ret_hu_conv = Result_UnsignedNodeAnnouncementDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UpdateAddHTLCDecodeErrorZ constructor_ok(UpdateAddHTLC o) {
number ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UpdateAddHTLCDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UpdateFailHTLCDecodeErrorZ constructor_ok(UpdateFailHTLC o) {
number ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UpdateFailHTLCDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UpdateFailHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UpdateFailHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UpdateFailMalformedHTLCDecodeErrorZ constructor_ok(UpdateFailMalformedHTLC o) {
number ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UpdateFailMalformedHTLCDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UpdateFailMalformedHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFailMalformedHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UpdateFeeDecodeErrorZ constructor_ok(UpdateFee o) {
number ret = bindings.CResult_UpdateFeeDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UpdateFeeDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UpdateFeeDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_UpdateFulfillHTLCDecodeErrorZ constructor_ok(UpdateFulfillHTLC o) {
number ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(o);
return ret_hu_conv;
}
public static Result_UpdateFulfillHTLCDecodeErrorZ constructor_err(DecodeError e) {
number ret = bindings.CResult_UpdateFulfillHTLCDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_UpdateFulfillHTLCDecodeErrorZ ret_hu_conv = Result_UpdateFulfillHTLCDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_boolLightningErrorZ constructor_err(LightningError e) {
number ret = bindings.CResult_boolLightningErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_boolLightningErrorZ ret_hu_conv = Result_boolLightningErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public static Result_boolPeerHandleErrorZ constructor_err(PeerHandleError e) {
number ret = bindings.CResult_boolPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1);
Result_boolPeerHandleErrorZ ret_hu_conv = Result_boolPeerHandleErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
public void set_paths(RouteHop[][] val) {
bindings.Route_set_paths(this.ptr, val != null ? Arrays.stream(val).map(val_conv_12 -> val_conv_12 != null ? Arrays.stream(val_conv_12).map(val_conv_12_conv_10 -> val_conv_12_conv_10 == null ? 0 : val_conv_12_conv_10.ptr & ~1).toArray(number[]::new) : null).toArray(number[][]::new) : null);
- for (RouteHop[] val_conv_12: val) { for (RouteHop val_conv_12_conv_10: val_conv_12) { this.ptrs_to.add(val_conv_12_conv_10); }; };
}
public static Route constructor_new(RouteHop[][] paths_arg) {
number ret = bindings.Route_new(paths_arg != null ? Arrays.stream(paths_arg).map(paths_arg_conv_12 -> paths_arg_conv_12 != null ? Arrays.stream(paths_arg_conv_12).map(paths_arg_conv_12_conv_10 -> paths_arg_conv_12_conv_10 == null ? 0 : paths_arg_conv_12_conv_10.ptr & ~1).toArray(number[]::new) : null).toArray(number[][]::new) : null);
const ret_hu_conv: Route = new Route(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- for (RouteHop[] paths_arg_conv_12: paths_arg) { for (RouteHop paths_arg_conv_12_conv_10: paths_arg_conv_12) { ret_hu_conv.ptrs_to.add(paths_arg_conv_12_conv_10); }; };
return ret_hu_conv;
}
public void set_fees(RoutingFees val) {
bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_cltv_expiry_delta() {
number ret = bindings.RouteHintHop_new(src_node_id_arg, short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
const ret_hu_conv: RouteHintHop = new RouteHintHop(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fees_arg);
return ret_hu_conv;
}
public void set_node_features(NodeFeatures val) {
bindings.RouteHop_set_node_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_short_channel_id() {
public void set_channel_features(ChannelFeatures val) {
bindings.RouteHop_set_channel_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_fee_msat() {
number ret = bindings.RouteHop_new(pubkey_arg, node_features_arg == null ? 0 : node_features_arg.ptr & ~1, short_channel_id_arg, channel_features_arg == null ? 0 : channel_features_arg.ptr & ~1, fee_msat_arg, cltv_expiry_delta_arg);
const ret_hu_conv: RouteHop = new RouteHop(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(node_features_arg);
- ret_hu_conv.ptrs_to.add(channel_features_arg);
return ret_hu_conv;
}
get_next_node_announcements (starting_point: Uint8Array, batch_amount: number): number[] {
NodeAnnouncement[] ret = arg.get_next_node_announcements(starting_point, batch_amount);
result: number[] = ret != null ? Arrays.stream(ret).map(ret_conv_18 -> ret_conv_18 == null ? 0 : ret_conv_18.ptr & ~1).toArray(number[]::new) : null;
- for (NodeAnnouncement ret_conv_18: ret) { impl_holder.held.ptrs_to.add(ret_conv_18); };
return result;
},
public Result_NoneLightningErrorZ handle_reply_channel_range(Uint8Array their_node_id, ReplyChannelRange msg) {
number ret = bindings.RoutingMessageHandler_handle_reply_channel_range(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
public Result_NoneLightningErrorZ handle_reply_short_channel_ids_end(Uint8Array their_node_id, ReplyShortChannelIdsEnd msg) {
number ret = bindings.RoutingMessageHandler_handle_reply_short_channel_ids_end(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
public Result_NoneLightningErrorZ handle_query_channel_range(Uint8Array their_node_id, QueryChannelRange msg) {
number ret = bindings.RoutingMessageHandler_handle_query_channel_range(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
public Result_NoneLightningErrorZ handle_query_short_channel_ids(Uint8Array their_node_id, QueryShortChannelIds msg) {
number ret = bindings.RoutingMessageHandler_handle_query_short_channel_ids(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
- this.ptrs_to.add(msg);
return ret_hu_conv;
}
super(bindings.LDKSign_new(arg, baseSign, pubkeys == null ? 0 : pubkeys.ptr & ~1));
this.ptrs_to.push(arg);
this.ptrs_to.push(baseSign);
-this.ptrs_to.add(pubkeys);
}
}
public boolean eq(SignOrCreationError b) {
boolean ret = bindings.SignOrCreationError_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
return ret;
}
number ret = bindings.SpendableOutputDescriptor_static_output(outpoint == null ? 0 : outpoint.ptr & ~1, output.ptr);
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint);
return ret_hu_conv;
}
number ret = bindings.SpendableOutputDescriptor_delayed_payment_output(a == null ? 0 : a.ptr & ~1);
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
number ret = bindings.SpendableOutputDescriptor_static_payment_output(a == null ? 0 : a.ptr & ~1);
SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
public void set_outpoint(OutPoint val) {
bindings.StaticPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public void set_output(TxOut val) {
number ret = bindings.StaticPaymentOutputDescriptor_new(outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, output_arg.ptr, channel_keys_id_arg, channel_value_satoshis_arg);
const ret_hu_conv: StaticPaymentOutputDescriptor = new StaticPaymentOutputDescriptor(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(b_tx_broadcaster);
ret_hu_conv.ptrs_to.add(b_logger);
ret_hu_conv.ptrs_to.add(b_keys_manager);
- ret_hu_conv.ptrs_to.add(b_config);
- ret_hu_conv.ptrs_to.add(b_params);
+ ;
+ ;
return ret_hu_conv;
}
number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_new(a, b == null ? 0 : b.ptr & ~1);
TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(b);
return ret_hu_conv;
}
number ret = bindings.C2Tuple_OutPointScriptZ_new(a == null ? 0 : a.ptr & ~1, b);
TwoTuple_OutPointScriptZ ret_hu_conv = new TwoTuple_OutPointScriptZ(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(a);
return ret_hu_conv;
}
public void set_features(ChannelFeatures val) {
bindings.UnsignedChannelAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_chain_hash() {
public void set_features(NodeFeatures val) {
bindings.UnsignedNodeAnnouncement_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public number get_timestamp() {
public void set_own_channel_config(ChannelHandshakeConfig val) {
bindings.UserConfig_set_own_channel_config(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public ChannelHandshakeLimits get_peer_channel_config_limits() {
public void set_peer_channel_config_limits(ChannelHandshakeLimits val) {
bindings.UserConfig_set_peer_channel_config_limits(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public ChannelConfig get_channel_options() {
public void set_channel_options(ChannelConfig val) {
bindings.UserConfig_set_channel_options(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public boolean get_accept_forwards_to_priv_channels() {
number ret = bindings.UserConfig_new(own_channel_config_arg == null ? 0 : own_channel_config_arg.ptr & ~1, peer_channel_config_limits_arg == null ? 0 : peer_channel_config_limits_arg.ptr & ~1, channel_options_arg == null ? 0 : channel_options_arg.ptr & ~1, accept_forwards_to_priv_channels_arg);
const ret_hu_conv: UserConfig = new UserConfig(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(own_channel_config_arg);
- ret_hu_conv.ptrs_to.add(peer_channel_config_limits_arg);
- ret_hu_conv.ptrs_to.add(channel_options_arg);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(arg_chain_monitor);
ret_hu_conv.ptrs_to.add(arg_tx_broadcaster);
ret_hu_conv.ptrs_to.add(arg_logger);
- ret_hu_conv.ptrs_to.add(arg_default_config);
+ ;
for (ChannelMonitor arg_channel_monitors_conv_16: arg_channel_monitors) { ret_hu_conv.ptrs_to.add(arg_channel_monitors_conv_16); };
return ret_hu_conv;
}
public static Uint8Array constructor_build_closing_transaction(number to_holder_value_sat, number to_counterparty_value_sat, Uint8Array to_holder_script, Uint8Array to_counterparty_script, OutPoint funding_outpoint) {
Uint8Array ret = bindings.build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
- // this.ptrs_to.add(funding_outpoint);
return ret;
}
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(network);
for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
- for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
number ret = bindings.get_route(our_node_id, network == null ? 0 : network.ptr & ~1, payee, payee_features == null ? 0 : payee_features.ptr & ~1, first_hops != null ? Arrays.stream(first_hops).map(first_hops_conv_16 -> first_hops_conv_16 == null ? 0 : first_hops_conv_16.ptr & ~1).toArray(number[]::new) : null, last_hops != null ? Arrays.stream(last_hops).map(last_hops_conv_11 -> last_hops_conv_11 == null ? 0 : last_hops_conv_11.ptr & ~1).toArray(number[]::new) : null, final_value_msat, final_cltv, logger == null ? 0 : logger.ptr);
Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(network);
- ret_hu_conv.ptrs_to.add(payee_features);
for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
- for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
ret_hu_conv.ptrs_to.add(logger);
return ret_hu_conv;
}
public Result_NoneChannelMonitorUpdateErrZ watch_channel(OutPoint funding_txo, ChannelMonitor monitor) {
number ret = bindings.Watch_watch_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr & ~1, monitor == null ? 0 : monitor.ptr & ~1);
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_txo);
- this.ptrs_to.add(monitor);
return ret_hu_conv;
}
public Result_NoneChannelMonitorUpdateErrZ update_channel(OutPoint funding_txo, ChannelMonitorUpdate update) {
number ret = bindings.Watch_update_channel(this.ptr, funding_txo == null ? 0 : funding_txo.ptr & ~1, update == null ? 0 : update.ptr & ~1);
Result_NoneChannelMonitorUpdateErrZ ret_hu_conv = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);
- this.ptrs_to.add(funding_txo);
- this.ptrs_to.add(update);
return ret_hu_conv;
}
public void set_outpoint(OutPoint val) {
bindings.WatchedOutput_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_script_pubkey() {
number ret = bindings.WatchedOutput_new(block_hash_arg, outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, script_pubkey_arg);
const ret_hu_conv: WatchedOutput = new WatchedOutput(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}