@@ -4973,16 +4973,6 @@ public class Bindings {
4973
4973
4974
4974
CResult_ScorerDecodeErrorZ_is_ok ( oPointer)
4975
4975
4976
- }
4977
-
4978
- }
4979
- public class func swift_CResult_ProbabilisticScoringParametersDecodeErrorZ_is_ok( o: Result_ProbabilisticScoringParametersDecodeErrorZ ) -> Bool {
4980
-
4981
-
4982
- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_ProbabilisticScoringParametersDecodeErrorZ > ) in
4983
-
4984
- CResult_ProbabilisticScoringParametersDecodeErrorZ_is_ok ( oPointer)
4985
-
4986
4976
}
4987
4977
4988
4978
}
@@ -5366,32 +5356,32 @@ public class Bindings {
5366
5356
}
5367
5357
5368
5358
}
5369
- public class func swift_CResult_SiPrefixNoneZ_is_ok ( o: Result_SiPrefixNoneZ ) -> Bool {
5359
+ public class func swift_CResult_SiPrefixParseErrorZ_is_ok ( o: Result_SiPrefixParseErrorZ ) -> Bool {
5370
5360
5371
5361
5372
- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SiPrefixNoneZ > ) in
5362
+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SiPrefixParseErrorZ > ) in
5373
5363
5374
- CResult_SiPrefixNoneZ_is_ok ( oPointer)
5364
+ CResult_SiPrefixParseErrorZ_is_ok ( oPointer)
5375
5365
5376
5366
}
5377
5367
5378
5368
}
5379
- public class func swift_CResult_InvoiceNoneZ_is_ok ( o: Result_InvoiceNoneZ ) -> Bool {
5369
+ public class func swift_CResult_InvoiceParseOrSemanticErrorZ_is_ok ( o: Result_InvoiceParseOrSemanticErrorZ ) -> Bool {
5380
5370
5381
5371
5382
- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_InvoiceNoneZ > ) in
5372
+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_InvoiceParseOrSemanticErrorZ > ) in
5383
5373
5384
- CResult_InvoiceNoneZ_is_ok ( oPointer)
5374
+ CResult_InvoiceParseOrSemanticErrorZ_is_ok ( oPointer)
5385
5375
5386
5376
}
5387
5377
5388
5378
}
5389
- public class func swift_CResult_SignedRawInvoiceNoneZ_is_ok ( o: Result_SignedRawInvoiceNoneZ ) -> Bool {
5379
+ public class func swift_CResult_SignedRawInvoiceParseErrorZ_is_ok ( o: Result_SignedRawInvoiceParseErrorZ ) -> Bool {
5390
5380
5391
5381
5392
- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SignedRawInvoiceNoneZ > ) in
5382
+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SignedRawInvoiceParseErrorZ > ) in
5393
5383
5394
- CResult_SignedRawInvoiceNoneZ_is_ok ( oPointer)
5384
+ CResult_SignedRawInvoiceParseErrorZ_is_ok ( oPointer)
5395
5385
5396
5386
}
5397
5387
@@ -6223,7 +6213,7 @@ withUnsafePointer(to: htlc.cOpaqueStruct!) { (htlcPointer: UnsafePointer<LDKHTLC
6223
6213
6224
6214
6225
6215
}
6226
- public class func swift_find_route( our_node_pubkey: [ UInt8 ] , route_params: RouteParameters , network: NetworkGraph , first_hops: [ ChannelDetails ] ? , logger: Logger , scorer: Score ) -> Result_RouteLightningErrorZ {
6216
+ public class func swift_find_route( our_node_pubkey: [ UInt8 ] , route_params: RouteParameters , network: NetworkGraph , first_hops: [ ChannelDetails ] ? , logger: Logger , scorer: Score , random_seed_bytes : [ UInt8 ] ) -> Result_RouteLightningErrorZ {
6227
6217
6228
6218
6229
6219
var first_hopsPointer : UnsafeMutablePointer < LDKCVec_ChannelDetailsZ > ? = nil
@@ -6241,11 +6231,13 @@ withUnsafePointer(to: htlc.cOpaqueStruct!) { (htlcPointer: UnsafePointer<LDKHTLC
6241
6231
return withUnsafePointer ( to: route_params. cOpaqueStruct!) { ( route_paramsPointer: UnsafePointer < LDKRouteParameters > ) in
6242
6232
withUnsafePointer ( to: network. cOpaqueStruct!) { ( networkPointer: UnsafePointer < LDKNetworkGraph > ) in
6243
6233
withUnsafePointer ( to: scorer. cOpaqueStruct!) { ( scorerPointer: UnsafePointer < LDKScore > ) in
6234
+ withUnsafePointer ( to: Bindings . array_to_tuple32 ( array: random_seed_bytes) ) { ( random_seed_bytesPointer: 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
6244
6235
6245
- Result_RouteLightningErrorZ ( pointer: find_route ( Bindings . new_LDKPublicKey ( array: our_node_pubkey) , route_paramsPointer, networkPointer, first_hopsPointer, logger. cOpaqueStruct!, scorerPointer) )
6236
+ Result_RouteLightningErrorZ ( pointer: find_route ( Bindings . new_LDKPublicKey ( array: our_node_pubkey) , route_paramsPointer, networkPointer, first_hopsPointer, logger. cOpaqueStruct!, scorerPointer, random_seed_bytesPointer ) )
6246
6237
6247
6238
}
6248
6239
}
6240
+ }
6249
6241
}
6250
6242
6251
6243
}
@@ -6266,6 +6258,24 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
6266
6258
Result_InvoiceSignOrCreationErrorZ ( pointer: create_phantom_invoice ( amt_msat. danglingClone ( ) . cOpaqueStruct!, Bindings . new_LDKStr ( string: description) , Bindings . new_LDKThirtyTwoBytes ( array: payment_hash) , Bindings . new_LDKThirtyTwoBytes ( array: payment_secret) , phantom_route_hintsWrapper. dangle ( ) . cOpaqueStruct!, keys_manager. cOpaqueStruct!, network) )
6267
6259
6268
6260
6261
+ }
6262
+ public class func swift_create_phantom_invoice_with_description_hash( amt_msat: Option_u64Z , description_hash: Sha256 , payment_hash: [ UInt8 ] , payment_secret: [ UInt8 ] , phantom_route_hints: [ PhantomRouteHints ] , keys_manager: KeysInterface , network: LDKCurrency ) -> Result_InvoiceSignOrCreationErrorZ {
6263
+
6264
+
6265
+ let phantom_route_hintsUnwrapped = phantom_route_hints. map { ( phantom_route_hintsCurrentValue) in
6266
+ phantom_route_hintsCurrentValue
6267
+ . danglingClone ( ) . cOpaqueStruct!
6268
+ }
6269
+
6270
+ let phantom_route_hintsWrapper = Bindings . new_LDKCVec_PhantomRouteHintsZWrapper ( array: phantom_route_hintsUnwrapped)
6271
+ defer {
6272
+ phantom_route_hintsWrapper. noOpRetain ( )
6273
+ }
6274
+
6275
+ return
6276
+ Result_InvoiceSignOrCreationErrorZ ( pointer: create_phantom_invoice_with_description_hash ( amt_msat. danglingClone ( ) . cOpaqueStruct!, description_hash. danglingClone ( ) . cOpaqueStruct!, Bindings . new_LDKThirtyTwoBytes ( array: payment_hash) , Bindings . new_LDKThirtyTwoBytes ( array: payment_secret) , phantom_route_hintsWrapper. dangle ( ) . cOpaqueStruct!, keys_manager. cOpaqueStruct!, network) )
6277
+
6278
+
6269
6279
}
6270
6280
public class func swift_create_invoice_from_channelmanager( channelmanager: ChannelManager , keys_manager: KeysInterface , network: LDKCurrency , amt_msat: Option_u64Z , description: String ) -> Result_InvoiceSignOrCreationErrorZ {
6271
6281
@@ -6274,6 +6284,26 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
6274
6284
6275
6285
Result_InvoiceSignOrCreationErrorZ ( pointer: create_invoice_from_channelmanager ( channelmanagerPointer, keys_manager. cOpaqueStruct!, network, amt_msat. danglingClone ( ) . cOpaqueStruct!, Bindings . new_LDKStr ( string: description) ) )
6276
6286
6287
+ }
6288
+
6289
+ }
6290
+ public class func swift_create_invoice_from_channelmanager_with_description_hash( channelmanager: ChannelManager , keys_manager: KeysInterface , network: LDKCurrency , amt_msat: Option_u64Z , description_hash: Sha256 ) -> Result_InvoiceSignOrCreationErrorZ {
6291
+
6292
+
6293
+ return withUnsafePointer ( to: channelmanager. cOpaqueStruct!) { ( channelmanagerPointer: UnsafePointer < LDKChannelManager > ) in
6294
+
6295
+ Result_InvoiceSignOrCreationErrorZ ( pointer: create_invoice_from_channelmanager_with_description_hash ( channelmanagerPointer, keys_manager. cOpaqueStruct!, network, amt_msat. danglingClone ( ) . cOpaqueStruct!, description_hash. danglingClone ( ) . cOpaqueStruct!) )
6296
+
6297
+ }
6298
+
6299
+ }
6300
+ public class func swift_create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch( channelmanager: ChannelManager , keys_manager: KeysInterface , network: LDKCurrency , amt_msat: Option_u64Z , description_hash: Sha256 , duration_since_epoch: UInt64 ) -> Result_InvoiceSignOrCreationErrorZ {
6301
+
6302
+
6303
+ return withUnsafePointer ( to: channelmanager. cOpaqueStruct!) { ( channelmanagerPointer: UnsafePointer < LDKChannelManager > ) in
6304
+
6305
+ Result_InvoiceSignOrCreationErrorZ ( pointer: create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch ( channelmanagerPointer, keys_manager. cOpaqueStruct!, network, amt_msat. danglingClone ( ) . cOpaqueStruct!, description_hash. danglingClone ( ) . cOpaqueStruct!, duration_since_epoch) )
6306
+
6277
6307
}
6278
6308
6279
6309
}
@@ -6460,7 +6490,7 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
6460
6490
*/
6461
6491
6462
6492
public class func get_ldk_swift_bindings_version( ) -> String {
6463
- return " a086cb7d66870a61b4c5b98ae5d293d840342ad0 "
6493
+ return " 8e00d9af56a2d5df10febaa37026399f925b414b "
6464
6494
}
6465
6495
6466
6496
}
0 commit comments