@@ -4973,16 +4973,6 @@ public class Bindings {
49734973
49744974 CResult_ScorerDecodeErrorZ_is_ok ( oPointer)
49754975
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-
49864976}
49874977
49884978 }
@@ -5366,32 +5356,32 @@ public class Bindings {
53665356}
53675357
53685358 }
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 {
53705360
53715361
5372- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SiPrefixNoneZ > ) in
5362+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SiPrefixParseErrorZ > ) in
53735363
5374- CResult_SiPrefixNoneZ_is_ok ( oPointer)
5364+ CResult_SiPrefixParseErrorZ_is_ok ( oPointer)
53755365
53765366}
53775367
53785368 }
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 {
53805370
53815371
5382- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_InvoiceNoneZ > ) in
5372+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_InvoiceParseOrSemanticErrorZ > ) in
53835373
5384- CResult_InvoiceNoneZ_is_ok ( oPointer)
5374+ CResult_InvoiceParseOrSemanticErrorZ_is_ok ( oPointer)
53855375
53865376}
53875377
53885378 }
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 {
53905380
53915381
5392- return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SignedRawInvoiceNoneZ > ) in
5382+ return withUnsafePointer ( to: o. cOpaqueStruct!) { ( oPointer: UnsafePointer < LDKCResult_SignedRawInvoiceParseErrorZ > ) in
53935383
5394- CResult_SignedRawInvoiceNoneZ_is_ok ( oPointer)
5384+ CResult_SignedRawInvoiceParseErrorZ_is_ok ( oPointer)
53955385
53965386}
53975387
@@ -6223,7 +6213,7 @@ withUnsafePointer(to: htlc.cOpaqueStruct!) { (htlcPointer: UnsafePointer<LDKHTLC
62236213
62246214
62256215 }
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 {
62276217
62286218
62296219 var first_hopsPointer : UnsafeMutablePointer < LDKCVec_ChannelDetailsZ > ? = nil
@@ -6241,11 +6231,13 @@ withUnsafePointer(to: htlc.cOpaqueStruct!) { (htlcPointer: UnsafePointer<LDKHTLC
62416231 return withUnsafePointer ( to: route_params. cOpaqueStruct!) { ( route_paramsPointer: UnsafePointer < LDKRouteParameters > ) in
62426232withUnsafePointer ( to: network. cOpaqueStruct!) { ( networkPointer: UnsafePointer < LDKNetworkGraph > ) in
62436233withUnsafePointer ( 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
62446235
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 ) )
62466237
62476238}
62486239}
6240+ }
62496241}
62506242
62516243 }
@@ -6266,6 +6258,24 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
62666258 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) )
62676259
62686260
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+
62696279 }
62706280 public class func swift_create_invoice_from_channelmanager( channelmanager: ChannelManager , keys_manager: KeysInterface , network: LDKCurrency , amt_msat: Option_u64Z , description: String ) -> Result_InvoiceSignOrCreationErrorZ {
62716281
@@ -6274,6 +6284,26 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
62746284
62756285 Result_InvoiceSignOrCreationErrorZ ( pointer: create_invoice_from_channelmanager ( channelmanagerPointer, keys_manager. cOpaqueStruct!, network, amt_msat. danglingClone ( ) . cOpaqueStruct!, Bindings . new_LDKStr ( string: description) ) )
62766286
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+
62776307}
62786308
62796309 }
@@ -6460,7 +6490,7 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
64606490 */
64616491
64626492 public class func get_ldk_swift_bindings_version( ) -> String {
6463- return " a086cb7d66870a61b4c5b98ae5d293d840342ad0 "
6493+ return " 8e00d9af56a2d5df10febaa37026399f925b414b "
64646494 }
64656495
64666496}
0 commit comments