internal static FFIResult create_many_channel_monitor(
            InstallWatchTx installWatchTx,
            InstallWatchOutPoint installWatchOutPoint,
            WatchAllTxn watchAllTxn,
            GetChainUtxo getChainUtxo,
            FilterBlock filterBlock,
            ReEntered reEntered,

            BroadcastTransaction broadcastTransaction,
            Log log,
            GetEstSatPer1000Weight getEstSatPer1000Weight,
            out ManyChannelMonitorHandle handle,
            bool check = true
            ) =>
        MaybeCheck(_create_many_channel_monitor(
                       ref installWatchTx,
                       ref installWatchOutPoint,
                       ref watchAllTxn,
                       ref getChainUtxo,
                       ref filterBlock,
                       ref reEntered,
                       ref broadcastTransaction,
                       ref log,
                       ref getEstSatPer1000Weight,
                       out handle
                       ), check);
 internal static FFIResult unregister_many_channel_monitor(
     ManyChannelMonitorHandle manyChannelMonitorHandle,
     BlockNotifierHandle handle,
     bool check = true
     )
 {
     return(MaybeCheck(_unregister_many_channel_monitor(manyChannelMonitorHandle, handle), check));
 }
 internal static FFIResult serialize_many_channel_monitor(
     IntPtr bufOut,
     UIntPtr bufLen,
     out UIntPtr actualBufLen,
     ManyChannelMonitorHandle handle,
     bool check = true)
 {
     return(MaybeCheck(_serialize_many_channel_monitor(bufOut, bufLen, out actualBufLen, handle), check));
 }
        private static extern FFIResult _create_many_channel_monitor(
            ref InstallWatchTx installWatchTx,
            ref InstallWatchOutPoint installWatchOutPoint,
            ref WatchAllTxn watchAllTxn,
            ref GetChainUtxo getChainUtxo,
            ref FilterBlock filterBlock,
            ref ReEntered reEntered,

            ref BroadcastTransaction broadcastTransaction,
            ref Log log,
            ref GetEstSatPer1000Weight getEstSatPer1000Weight,
            out ManyChannelMonitorHandle handle
            );
        private static extern FFIResult _deserialize_many_channel_monitor(
            IntPtr bufPtr,
            UIntPtr bufLen,
            ref InstallWatchTx installWatchTx,
            ref InstallWatchOutPoint installWatchOutPoint,
            ref WatchAllTxn watchAllTxn,
            ref GetChainUtxo getChainUtxo,
            ref FilterBlock filterBlock,
            ref ReEntered reEntered,

            ref BroadcastTransaction broadcastTransaction,
            ref Log log,
            ref GetEstSatPer1000Weight getEstSatPer1000Weight,

            IntPtr outputBufPtr,
            UIntPtr outputBufLen,
            out UIntPtr actualBufLen,
            out ManyChannelMonitorHandle manyChannelMonitorHandle
            );
        internal static FFIResult deserialize_many_channel_monitor(
            IntPtr bufPtr,
            UIntPtr bufLen,
            InstallWatchTx installWatchTx,
            InstallWatchOutPoint installWatchOutPoint,
            WatchAllTxn watchAllTxn,
            GetChainUtxo getChainUtxo,
            FilterBlock filterBlock,
            ReEntered reEntered,

            BroadcastTransaction broadcastTransaction,
            Log log,
            GetEstSatPer1000Weight getEstSatPer1000Weight,

            IntPtr outputBufPtr,
            UIntPtr outputBufLen,
            out UIntPtr actualBufLen,
            out ManyChannelMonitorHandle manyChannelMonitorHandle,
            bool check = true
            )
        => MaybeCheck(
            _deserialize_many_channel_monitor(
                bufPtr,
                bufLen,
                ref installWatchTx,
                ref installWatchOutPoint,
                ref watchAllTxn,
                ref getChainUtxo,
                ref filterBlock,
                ref reEntered,

                ref broadcastTransaction,
                ref log,
                ref getEstSatPer1000Weight,
                outputBufPtr,
                outputBufLen,
                out actualBufLen,
                out manyChannelMonitorHandle
                ),
            check);
 private static extern FFIResult _serialize_many_channel_monitor(IntPtr bufOut, UIntPtr bufLen, out UIntPtr actualBufLen, ManyChannelMonitorHandle handle);
 internal static FFIResult many_channel_monitor_get_and_clear_pending_events(
     ManyChannelMonitorHandle handle, IntPtr bufOut, UIntPtr bufLen, out UIntPtr actualBufLen, bool check = true
     ) => MaybeCheck(_many_channel_monitor_get_and_clear_pending_events(handle, bufOut, bufLen, out actualBufLen),
                     check);
 private static extern FFIResult _many_channel_monitor_get_and_clear_pending_events(
     ManyChannelMonitorHandle handle, IntPtr bufOut, UIntPtr bufLen, out UIntPtr actualBufLen
     );
 internal static FFIResult tell_block_disconnected_after_resume(IntPtr blockHashRef, uint height, ref FFIOutPoint keyRef, ManyChannelMonitorHandle handle, bool check = true) =>
 MaybeCheck(_tell_block_disconnected_after_resume(blockHashRef, height, ref keyRef, handle), check);
 private static extern FFIResult _tell_block_disconnected_after_resume(IntPtr blockHashRef, uint height, ref FFIOutPoint keyRef, ManyChannelMonitorHandle handle);
 static extern FFIResult _unregister_many_channel_monitor(
     ManyChannelMonitorHandle manyChannelMonitorHandle,
     BlockNotifierHandle handle
     );
示例#13
0
 internal ManyChannelMonitor(ManyChannelMonitorHandle handle, object[] deps)
 {
     Handle = handle;
     _deps  = deps;
 }