@@ -153,7 +153,7 @@ class ChannelMonitor {
153
153
return Bindings . LDKCVec_EventZ_to_array ( nativeType: ChannelMonitor_get_and_clear_pending_events ( this_argPointer) ) ;
154
154
}
155
155
156
- func get_latest_holder_commitment_txn( this_arg: ChannelMonitor , logger: Logger ) -> [ LDK [ LDKUInt8 ] ] {
156
+ func get_latest_holder_commitment_txn( this_arg: ChannelMonitor , logger: Logger ) -> [ [ UInt8 ] ] {
157
157
158
158
159
159
let this_argPointer = withUnsafePointer ( to: this_arg. cOpaqueStruct!) { ( pointer: UnsafePointer < LDKChannelMonitor > ) in
@@ -172,7 +172,7 @@ class ChannelMonitor {
172
172
return Bindings . LDKCVec_TransactionZ_to_array ( nativeType: ChannelMonitor_get_latest_holder_commitment_txn ( this_argPointer, loggerPointer) ) ;
173
173
}
174
174
175
- func block_connected( this_arg: ChannelMonitor , header: [ UInt8 ] , txdata: [ C2Tuple_usizeTransactionZ ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> [ LDKTransactionOutputs ] {
175
+ func block_connected( this_arg: ChannelMonitor , header: [ UInt8 ] , txdata: [ LDKC2Tuple_usizeTransactionZ ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> [ LDKTransactionOutputs ] {
176
176
177
177
178
178
let this_argPointer = withUnsafePointer ( to: this_arg. cOpaqueStruct!) { ( pointer: UnsafePointer < LDKChannelMonitor > ) in
@@ -181,7 +181,14 @@ class ChannelMonitor {
181
181
182
182
}
183
183
184
- return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_block_connected ( this_argPointer, Bindings . array_to_tuple80 ( array: header) , Bindings . new_LDKCVec_C2Tuple_usizeTransactionZZ ( array: txdata) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
184
+
185
+ let headerPointer = withUnsafePointer ( to: Bindings . array_to_tuple80 ( array: header) ) { ( pointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ) in
186
+
187
+ pointer
188
+
189
+ }
190
+
191
+ return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_block_connected ( this_argPointer, headerPointer, Bindings . new_LDKCVec_C2Tuple_usizeTransactionZZ ( array: txdata) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
185
192
}
186
193
187
194
func block_disconnected( this_arg: ChannelMonitor , header: [ UInt8 ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> Void {
@@ -193,10 +200,17 @@ class ChannelMonitor {
193
200
194
201
}
195
202
196
- return ChannelMonitor_block_disconnected ( this_argPointer, Bindings . array_to_tuple80 ( array: header) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ;
203
+
204
+ let headerPointer = withUnsafePointer ( to: Bindings . array_to_tuple80 ( array: header) ) { ( pointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ) in
205
+
206
+ pointer
207
+
208
+ }
209
+
210
+ return ChannelMonitor_block_disconnected ( this_argPointer, headerPointer, height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ;
197
211
}
198
212
199
- func transactions_confirmed( this_arg: ChannelMonitor , header: [ UInt8 ] , txdata: [ C2Tuple_usizeTransactionZ ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> [ LDKTransactionOutputs ] {
213
+ func transactions_confirmed( this_arg: ChannelMonitor , header: [ UInt8 ] , txdata: [ LDKC2Tuple_usizeTransactionZ ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> [ LDKTransactionOutputs ] {
200
214
201
215
202
216
let this_argPointer = withUnsafePointer ( to: this_arg. cOpaqueStruct!) { ( pointer: UnsafePointer < LDKChannelMonitor > ) in
@@ -205,7 +219,14 @@ class ChannelMonitor {
205
219
206
220
}
207
221
208
- return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_transactions_confirmed ( this_argPointer, Bindings . array_to_tuple80 ( array: header) , Bindings . new_LDKCVec_C2Tuple_usizeTransactionZZ ( array: txdata) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
222
+
223
+ let headerPointer = withUnsafePointer ( to: Bindings . array_to_tuple80 ( array: header) ) { ( pointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ) in
224
+
225
+ pointer
226
+
227
+ }
228
+
229
+ return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_transactions_confirmed ( this_argPointer, headerPointer, Bindings . new_LDKCVec_C2Tuple_usizeTransactionZZ ( array: txdata) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
209
230
}
210
231
211
232
func transaction_unconfirmed( this_arg: ChannelMonitor , txid: [ UInt8 ] , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> Void {
@@ -217,7 +238,14 @@ class ChannelMonitor {
217
238
218
239
}
219
240
220
- return ChannelMonitor_transaction_unconfirmed ( this_argPointer, Bindings . array_to_tuple32 ( array: txid) , broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ;
241
+
242
+ let txidPointer = withUnsafePointer ( to: Bindings . array_to_tuple32 ( array: txid) ) { ( pointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ) in
243
+
244
+ pointer
245
+
246
+ }
247
+
248
+ return ChannelMonitor_transaction_unconfirmed ( this_argPointer, txidPointer, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ;
221
249
}
222
250
223
251
func best_block_updated( this_arg: ChannelMonitor , header: [ UInt8 ] , height: UInt32 , broadcaster: BroadcasterInterface , fee_estimator: FeeEstimator , logger: Logger ) -> [ LDKTransactionOutputs ] {
@@ -229,7 +257,14 @@ class ChannelMonitor {
229
257
230
258
}
231
259
232
- return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_best_block_updated ( this_argPointer, Bindings . array_to_tuple80 ( array: header) , height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
260
+
261
+ let headerPointer = withUnsafePointer ( to: Bindings . array_to_tuple80 ( array: header) ) { ( pointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ) in
262
+
263
+ pointer
264
+
265
+ }
266
+
267
+ return Bindings . LDKCVec_TransactionOutputsZ_to_array ( nativeType: ChannelMonitor_best_block_updated ( this_argPointer, headerPointer, height, broadcaster. cOpaqueStruct!, fee_estimator. cOpaqueStruct!, logger. cOpaqueStruct!) ) ;
233
268
}
234
269
235
270
func get_relevant_txids( this_arg: ChannelMonitor ) -> [ LDKTxid ] {
0 commit comments