Skip to content

Commit d176200

Browse files
committed
Update generated Swift files for 117.
1 parent a0e95f8 commit d176200

File tree

209 files changed

+20000
-4984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+20000
-4984
lines changed

out/Bindings.swift

Lines changed: 197 additions & 36 deletions
Large diffs are not rendered by default.

out/VersionDescriptor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
extension Bindings {
66
public class func getLDKSwiftBindingsSerializationHash() -> String {
7-
return "299409541178594276d54a4597b691680a7395477a0e6b77f953772146043220"
7+
return "3306eaf9d996970e7040eebe5287b47dc30e5a5e64ae7cd1460768ad62f00a75"
88
}
99
public class func getLDKSwiftBindingsVersion() -> String {
10-
return "0.0.115-32-g09c72dd7-dirty"
10+
return "0.0.116-7-ga0e95f8d-dirty"
1111
}
1212
public class func getLDKSwiftBindingsCommitHash() -> String {
13-
return "09c72dd7827bea079c90e68886025ecd546f8b11"
13+
return "a0e95f8d512595f491c48d3860397f7b52be7e4d"
1414
}
1515
}

out/enums/complex/ClosureReason.swift

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ extension Bindings {
110110
/// The channel has been immediately closed.
111111
case CounterpartyCoopClosedUnfundedChannel
112112

113+
/// Another channel in the same funding batch closed before the funding transaction
114+
/// was ready to be broadcast.
115+
case FundingBatchClosure
116+
113117
}
114118

115119
public func getValueType() -> ClosureReasonType {
@@ -141,6 +145,9 @@ extension Bindings {
141145
case LDKClosureReason_CounterpartyCoopClosedUnfundedChannel:
142146
return .CounterpartyCoopClosedUnfundedChannel
143147

148+
case LDKClosureReason_FundingBatchClosure:
149+
return .FundingBatchClosure
150+
144151
default:
145152
Bindings.print("Error: Invalid value type for ClosureReason! Aborting.", severity: .ERROR)
146153
abort()
@@ -369,6 +376,25 @@ extension Bindings {
369376
return returnValue
370377
}
371378

379+
/// Utility method to constructs a new FundingBatchClosure-variant ClosureReason
380+
public class func initWithFundingBatchClosure() -> ClosureReason {
381+
// native call variable prep
382+
383+
384+
// native method call
385+
let nativeCallResult = ClosureReason_funding_batch_closure()
386+
387+
// cleanup
388+
389+
390+
// return value (do some wrapping)
391+
let returnValue = ClosureReason(
392+
cType: nativeCallResult, instantiationContext: "ClosureReason.swift::\(#function):\(#line)")
393+
394+
395+
return returnValue
396+
}
397+
372398
/// Checks if two ClosureReasons contain equal inner contents.
373399
/// This ignores pointers and is_owned flags and looks at the values in fields.
374400
public class func eq(a: ClosureReason, b: ClosureReason) -> Bool {

0 commit comments

Comments
 (0)