Skip to content

Commit

Permalink
d debug not formatting the swift files
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-so committed Oct 4, 2023
1 parent 9cd460e commit 3bf45a4
Show file tree
Hide file tree
Showing 631 changed files with 182,029 additions and 190,748 deletions.
4,345 changes: 1,942 additions & 2,403 deletions out/Bindings.swift

Large diffs are not rendered by default.

1,554 changes: 774 additions & 780 deletions out/enums/complex/APIError.swift

Large diffs are not rendered by default.

1,809 changes: 895 additions & 914 deletions out/enums/complex/Balance.swift

Large diffs are not rendered by default.

400 changes: 201 additions & 199 deletions out/enums/complex/Bech32Error.swift

Large diffs are not rendered by default.

1,206 changes: 597 additions & 609 deletions out/enums/complex/Bolt11ParseError.swift

Large diffs are not rendered by default.

1,091 changes: 525 additions & 566 deletions out/enums/complex/BumpTransactionEvent.swift

Large diffs are not rendered by default.

1,208 changes: 600 additions & 608 deletions out/enums/complex/ClosureReason.swift

Large diffs are not rendered by default.

617 changes: 310 additions & 307 deletions out/enums/complex/DecodeError.swift

Large diffs are not rendered by default.

432 changes: 214 additions & 218 deletions out/enums/complex/Destination.swift

Large diffs are not rendered by default.

1,294 changes: 651 additions & 643 deletions out/enums/complex/EffectiveCapacity.swift

Large diffs are not rendered by default.

1,323 changes: 661 additions & 662 deletions out/enums/complex/ErrorAction.swift

Large diffs are not rendered by default.

6,895 changes: 3,219 additions & 3,676 deletions out/enums/complex/Event.swift

Large diffs are not rendered by default.

535 changes: 265 additions & 270 deletions out/enums/complex/FailureCode.swift

Large diffs are not rendered by default.

744 changes: 367 additions & 377 deletions out/enums/complex/Fallback.swift

Large diffs are not rendered by default.

430 changes: 215 additions & 215 deletions out/enums/complex/GossipSync.swift

Large diffs are not rendered by default.

425 changes: 211 additions & 214 deletions out/enums/complex/GraphSyncError.swift

Large diffs are not rendered by default.

1,285 changes: 636 additions & 649 deletions out/enums/complex/HTLCDestination.swift

Large diffs are not rendered by default.

578 changes: 288 additions & 290 deletions out/enums/complex/MaxDustHTLCExposure.swift

Large diffs are not rendered by default.

8,069 changes: 3,921 additions & 4,148 deletions out/enums/complex/MessageSendEvent.swift

Large diffs are not rendered by default.

739 changes: 367 additions & 372 deletions out/enums/complex/MonitorEvent.swift

Large diffs are not rendered by default.

1,054 changes: 525 additions & 529 deletions out/enums/complex/NetworkUpdate.swift

Large diffs are not rendered by default.

689 changes: 341 additions & 348 deletions out/enums/complex/OffersMessage.swift

Large diffs are not rendered by default.

424 changes: 210 additions & 214 deletions out/enums/complex/OnionMessageContents.swift

Large diffs are not rendered by default.

466 changes: 231 additions & 235 deletions out/enums/complex/ParseOrSemanticError.swift

Large diffs are not rendered by default.

822 changes: 409 additions & 413 deletions out/enums/complex/PathFailure.swift

Large diffs are not rendered by default.

885 changes: 438 additions & 447 deletions out/enums/complex/Payee.swift

Large diffs are not rendered by default.

433 changes: 215 additions & 218 deletions out/enums/complex/PaymentError.swift

Large diffs are not rendered by default.

754 changes: 368 additions & 386 deletions out/enums/complex/PaymentPurpose.swift

Large diffs are not rendered by default.

929 changes: 449 additions & 480 deletions out/enums/complex/PaymentSendFailure.swift

Large diffs are not rendered by default.

404 changes: 202 additions & 202 deletions out/enums/complex/ProbeSendFailure.swift

Large diffs are not rendered by default.

435 changes: 215 additions & 220 deletions out/enums/complex/ProbingError.swift

Large diffs are not rendered by default.

1,315 changes: 639 additions & 676 deletions out/enums/complex/RecentPaymentDetails.swift

Large diffs are not rendered by default.

558 changes: 283 additions & 275 deletions out/enums/complex/Retry.swift

Large diffs are not rendered by default.

665 changes: 334 additions & 331 deletions out/enums/complex/SendError.swift

Large diffs are not rendered by default.

447 changes: 223 additions & 224 deletions out/enums/complex/SignOrCreationError.swift

Large diffs are not rendered by default.

1,483 changes: 732 additions & 751 deletions out/enums/complex/SocketAddress.swift

Large diffs are not rendered by default.

1,044 changes: 508 additions & 536 deletions out/enums/complex/SpendableOutputDescriptor.swift

Large diffs are not rendered by default.

540 changes: 265 additions & 275 deletions out/enums/complex/UnsignedGossipMessage.swift

Large diffs are not rendered by default.

436 changes: 218 additions & 218 deletions out/enums/complex/UtxoResult.swift

Large diffs are not rendered by default.

253 changes: 127 additions & 126 deletions out/enums/primitive/Bolt11SemanticError.swift
Original file line number Diff line number Diff line change
@@ -1,129 +1,130 @@
import Foundation

#if SWIFT_PACKAGE
import LDKHeaders
#endif


/// Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
/// the requirements sections in BOLT #11
public typealias Bolt11SemanticError = Bindings.Bolt11SemanticError

extension Bindings {

/// Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
/// the requirements sections in BOLT #11
public enum Bolt11SemanticError {


/// The invoice is missing the mandatory payment hash
case NoPaymentHash

/// The invoice has multiple payment hashes which isn't allowed
case MultiplePaymentHashes

/// No description or description hash are part of the invoice
case NoDescription

/// The invoice contains multiple descriptions and/or description hashes which isn't allowed
case MultipleDescriptions

/// The invoice is missing the mandatory payment secret, which all modern lightning nodes
/// should provide.
case NoPaymentSecret

/// The invoice contains multiple payment secrets
case MultiplePaymentSecrets

/// The invoice's features are invalid
case InvalidFeatures

/// The recovery id doesn't fit the signature/pub key
case InvalidRecoveryId

/// The invoice's signature is invalid
case InvalidSignature

/// The invoice's amount was not a whole number of millisatoshis
case ImpreciseAmount


internal init(value: LDKBolt11SemanticError) {
switch value {

case LDKBolt11SemanticError_NoPaymentHash:
self = .NoPaymentHash

case LDKBolt11SemanticError_MultiplePaymentHashes:
self = .MultiplePaymentHashes

case LDKBolt11SemanticError_NoDescription:
self = .NoDescription

case LDKBolt11SemanticError_MultipleDescriptions:
self = .MultipleDescriptions

case LDKBolt11SemanticError_NoPaymentSecret:
self = .NoPaymentSecret

case LDKBolt11SemanticError_MultiplePaymentSecrets:
self = .MultiplePaymentSecrets

case LDKBolt11SemanticError_InvalidFeatures:
self = .InvalidFeatures

case LDKBolt11SemanticError_InvalidRecoveryId:
self = .InvalidRecoveryId

case LDKBolt11SemanticError_InvalidSignature:
self = .InvalidSignature

case LDKBolt11SemanticError_ImpreciseAmount:
self = .ImpreciseAmount

default:
Bindings.print("Error: Invalid value type for Bolt11SemanticError! Aborting.", severity: .ERROR)
abort()
#if SWIFT_PACKAGE
import LDKHeaders
#endif

import Foundation

/// Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
/// the requirements sections in BOLT #11
public typealias Bolt11SemanticError = Bindings.Bolt11SemanticError

extension Bindings {

/// Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
/// the requirements sections in BOLT #11
public enum Bolt11SemanticError {


/// The invoice is missing the mandatory payment hash
case NoPaymentHash

/// The invoice has multiple payment hashes which isn't allowed
case MultiplePaymentHashes

/// No description or description hash are part of the invoice
case NoDescription

/// The invoice contains multiple descriptions and/or description hashes which isn't allowed
case MultipleDescriptions

/// The invoice is missing the mandatory payment secret, which all modern lightning nodes
/// should provide.
case NoPaymentSecret

/// The invoice contains multiple payment secrets
case MultiplePaymentSecrets

/// The invoice's features are invalid
case InvalidFeatures

/// The recovery id doesn't fit the signature/pub key
case InvalidRecoveryId

/// The invoice's signature is invalid
case InvalidSignature

/// The invoice's amount was not a whole number of millisatoshis
case ImpreciseAmount


internal init (value: LDKBolt11SemanticError) {
switch value {

case LDKBolt11SemanticError_NoPaymentHash:
self = .NoPaymentHash

case LDKBolt11SemanticError_MultiplePaymentHashes:
self = .MultiplePaymentHashes

case LDKBolt11SemanticError_NoDescription:
self = .NoDescription

case LDKBolt11SemanticError_MultipleDescriptions:
self = .MultipleDescriptions

case LDKBolt11SemanticError_NoPaymentSecret:
self = .NoPaymentSecret

case LDKBolt11SemanticError_MultiplePaymentSecrets:
self = .MultiplePaymentSecrets

case LDKBolt11SemanticError_InvalidFeatures:
self = .InvalidFeatures

case LDKBolt11SemanticError_InvalidRecoveryId:
self = .InvalidRecoveryId

case LDKBolt11SemanticError_InvalidSignature:
self = .InvalidSignature

case LDKBolt11SemanticError_ImpreciseAmount:
self = .ImpreciseAmount

default:
Bindings.print("Error: Invalid value type for Bolt11SemanticError! Aborting.", severity: .ERROR)
abort()

}
}

internal func getCValue() -> LDKBolt11SemanticError {
switch self {

case .NoPaymentHash:
return LDKBolt11SemanticError_NoPaymentHash

case .MultiplePaymentHashes:
return LDKBolt11SemanticError_MultiplePaymentHashes

case .NoDescription:
return LDKBolt11SemanticError_NoDescription

case .MultipleDescriptions:
return LDKBolt11SemanticError_MultipleDescriptions

case .NoPaymentSecret:
return LDKBolt11SemanticError_NoPaymentSecret

case .MultiplePaymentSecrets:
return LDKBolt11SemanticError_MultiplePaymentSecrets

case .InvalidFeatures:
return LDKBolt11SemanticError_InvalidFeatures

case .InvalidRecoveryId:
return LDKBolt11SemanticError_InvalidRecoveryId

case .InvalidSignature:
return LDKBolt11SemanticError_InvalidSignature

case .ImpreciseAmount:
return LDKBolt11SemanticError_ImpreciseAmount

}
}

}

}
}

internal func getCValue() -> LDKBolt11SemanticError {
switch self {

case .NoPaymentHash:
return LDKBolt11SemanticError_NoPaymentHash

case .MultiplePaymentHashes:
return LDKBolt11SemanticError_MultiplePaymentHashes

case .NoDescription:
return LDKBolt11SemanticError_NoDescription

case .MultipleDescriptions:
return LDKBolt11SemanticError_MultipleDescriptions

case .NoPaymentSecret:
return LDKBolt11SemanticError_NoPaymentSecret

case .MultiplePaymentSecrets:
return LDKBolt11SemanticError_MultiplePaymentSecrets

case .InvalidFeatures:
return LDKBolt11SemanticError_InvalidFeatures

case .InvalidRecoveryId:
return LDKBolt11SemanticError_InvalidRecoveryId

case .InvalidSignature:
return LDKBolt11SemanticError_InvalidSignature

case .ImpreciseAmount:
return LDKBolt11SemanticError_ImpreciseAmount

}
}

}

}

Loading

0 comments on commit 3bf45a4

Please sign in to comment.