internal static unsafe FFIResult create_peer_manager( IntPtr seed, UserConfig *userConfig, ChannelManagerHandle channelManagerHandle, InstallWatchTx installWatchTx, InstallWatchOutPoint installWatchOutPoint, WatchAllTxn watchAllTxn, GetChainUtxo getChainUtxo, FilterBlock filterBlock, ReEntered reEntered, Log log, IntPtr ourNodeSecret, out PeerManagerHandle handle, bool check = true ) => MaybeCheck(_create_peer_manager( seed, userConfig, channelManagerHandle, ref installWatchTx, ref installWatchOutPoint, ref watchAllTxn, ref getChainUtxo, ref filterBlock, ref reEntered, ref log, ourNodeSecret, out handle), check);
internal static FFIResult unregister_channel_manager( ChannelManagerHandle channelManagerHandle, BlockNotifierHandle handle, bool check = true ) { return(MaybeCheck(_unregister_channel_manager(channelManagerHandle, handle), check)); }
private static extern unsafe FFIResult _send_non_mpp_payment_with_peer_manager( byte *theirNodeIdPtr, byte *paymentHashPtr, ref FFIBytes lastHopsPtr, ulong finalValueMSat, uint finalCLTV, PeerManagerHandle peerManagerHandle, ChannelManagerHandle channelManagerHandle);
internal static unsafe FFIResult send_non_mpp_payment_with_peer_manager( byte *theirNodeIdPtr, byte *paymentHashPtr, ref FFIBytes lastHopsPtr, ulong finalValueMSat, uint finalCLTV, PeerManagerHandle peerManagerHandle, ChannelManagerHandle channelManagerHandle, bool check = true) => MaybeCheckPaymentFailure(_send_non_mpp_payment_with_peer_manager(theirNodeIdPtr, paymentHashPtr, ref lastHopsPtr, finalValueMSat, finalCLTV, peerManagerHandle, channelManagerHandle), check);
private static extern unsafe FFIResult _create_peer_manager( IntPtr seedPtr, UserConfig *userConfig, ChannelManagerHandle channelManagerHandle, ref InstallWatchTx installWatchTx, ref InstallWatchOutPoint installWatchOutPoint, ref WatchAllTxn watchAllTxn, ref GetChainUtxo getChainUtxo, ref FilterBlock filterBlock, ref ReEntered reEntered, ref Log log, IntPtr ourNodeSecret, out PeerManagerHandle handle );
internal ChannelManager(ChannelManagerHandle handle, object[]?deps = null) { _deps = deps ?? new object[] {}; Handle = handle ?? throw new ArgumentNullException(nameof(handle)); }
static extern FFIResult _unregister_channel_manager( ChannelManagerHandle channelManagerHandle, BlockNotifierHandle handle );