コード例 #1
0
        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);
コード例 #2
0
 internal static FFIResult unregister_many_channel_monitor(
     ManyChannelMonitorHandle manyChannelMonitorHandle,
     BlockNotifierHandle handle,
     bool check = true
     )
 {
     return(MaybeCheck(_unregister_many_channel_monitor(manyChannelMonitorHandle, handle), check));
 }
コード例 #3
0
 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));
 }
コード例 #4
0
        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
            );
コード例 #5
0
        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
            );
コード例 #6
0
        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);
コード例 #7
0
 private static extern FFIResult _serialize_many_channel_monitor(IntPtr bufOut, UIntPtr bufLen, out UIntPtr actualBufLen, ManyChannelMonitorHandle handle);
コード例 #8
0
 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);
コード例 #9
0
 private static extern FFIResult _many_channel_monitor_get_and_clear_pending_events(
     ManyChannelMonitorHandle handle, IntPtr bufOut, UIntPtr bufLen, out UIntPtr actualBufLen
     );
コード例 #10
0
 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);
コード例 #11
0
 private static extern FFIResult _tell_block_disconnected_after_resume(IntPtr blockHashRef, uint height, ref FFIOutPoint keyRef, ManyChannelMonitorHandle handle);
コード例 #12
0
 static extern FFIResult _unregister_many_channel_monitor(
     ManyChannelMonitorHandle manyChannelMonitorHandle,
     BlockNotifierHandle handle
     );
コード例 #13
0
 internal ManyChannelMonitor(ManyChannelMonitorHandle handle, object[] deps)
 {
     Handle = handle;
     _deps  = deps;
 }