Skip to content

Commit

Permalink
This commit was created automatically by the lipa bot
Browse files Browse the repository at this point in the history
  • Loading branch information
lipa-github-bot committed Dec 2, 2024
1 parent 04e4a1b commit 9d05d9f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "lipalightninglibFFI",
url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.73.0-beta-mock/lipalightninglibFFI.xcframework.zip",
checksum: "ac3668801d33cd39196f885985fd170c34b5427a7f1097e36f046ec13394f413"),
url: "https://github.com/getlipa/lipa-lightning-lib-swift/releases/download/v0.74.0-beta/lipalightninglibFFI.xcframework.zip",
checksum: "d0a4e146800ba72c7acac2ea1a2e3932ee88a16819858494dda6be549390ae45"),
.target(
name: "LipaLightningLib",
dependencies: ["lipalightninglibFFI"]),
Expand Down
19 changes: 14 additions & 5 deletions Sources/LipaLightningLib/LipaLightningLib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ public protocol FiatTopupProtocol : AnyObject {

func queryTcStatus() throws -> TermsAndConditionsStatus

func register(email: String?, userIban: String, userCurrency: String) throws -> FiatTopupInfo
func register(email: String?, referralCode: String?, userIban: String, userCurrency: String) throws -> FiatTopupInfo

func requestCollection(offer: OfferInfo) throws -> String

Expand Down Expand Up @@ -1548,10 +1548,11 @@ open func queryTcStatus()throws -> TermsAndConditionsStatus {
})
}

open func register(email: String?, userIban: String, userCurrency: String)throws -> FiatTopupInfo {
open func register(email: String?, referralCode: String?, userIban: String, userCurrency: String)throws -> FiatTopupInfo {
return try FfiConverterTypeFiatTopupInfo.lift(try rustCallWithError(FfiConverterTypeLnError.lift) {
uniffi_uniffi_lipalightninglib_fn_method_fiattopup_register(self.uniffiClonePointer(),
FfiConverterOptionString.lower(email),
FfiConverterOptionString.lower(referralCode),
FfiConverterString.lower(userIban),
FfiConverterString.lower(userCurrency),$0
)
Expand Down Expand Up @@ -4978,10 +4979,11 @@ public struct LightningNodeConfig {
public var breezSdkConfig: BreezSdkConfig
public var maxRoutingFeeConfig: MaxRoutingFeeConfig
public var receiveLimitsConfig: ReceiveLimitsConfig
public var topupReferralCodeMaxLength: UInt32

// Default memberwise initializers are never public by default, so we
// declare one manually.
public init(seed: Data, defaultFiatCurrency: String, localPersistencePath: String, timezoneConfig: TzConfig, fileLoggingLevel: Level?, phoneNumberAllowedCountriesIso31661Alpha2: [String], remoteServicesConfig: RemoteServicesConfig, breezSdkConfig: BreezSdkConfig, maxRoutingFeeConfig: MaxRoutingFeeConfig, receiveLimitsConfig: ReceiveLimitsConfig) {
public init(seed: Data, defaultFiatCurrency: String, localPersistencePath: String, timezoneConfig: TzConfig, fileLoggingLevel: Level?, phoneNumberAllowedCountriesIso31661Alpha2: [String], remoteServicesConfig: RemoteServicesConfig, breezSdkConfig: BreezSdkConfig, maxRoutingFeeConfig: MaxRoutingFeeConfig, receiveLimitsConfig: ReceiveLimitsConfig, topupReferralCodeMaxLength: UInt32) {
self.seed = seed
self.defaultFiatCurrency = defaultFiatCurrency
self.localPersistencePath = localPersistencePath
Expand All @@ -4992,6 +4994,7 @@ public struct LightningNodeConfig {
self.breezSdkConfig = breezSdkConfig
self.maxRoutingFeeConfig = maxRoutingFeeConfig
self.receiveLimitsConfig = receiveLimitsConfig
self.topupReferralCodeMaxLength = topupReferralCodeMaxLength
}
}

Expand Down Expand Up @@ -5029,6 +5032,9 @@ extension LightningNodeConfig: Equatable, Hashable {
if lhs.receiveLimitsConfig != rhs.receiveLimitsConfig {
return false
}
if lhs.topupReferralCodeMaxLength != rhs.topupReferralCodeMaxLength {
return false
}
return true
}

Expand All @@ -5043,6 +5049,7 @@ extension LightningNodeConfig: Equatable, Hashable {
hasher.combine(breezSdkConfig)
hasher.combine(maxRoutingFeeConfig)
hasher.combine(receiveLimitsConfig)
hasher.combine(topupReferralCodeMaxLength)
}
}

Expand All @@ -5063,7 +5070,8 @@ public struct FfiConverterTypeLightningNodeConfig: FfiConverterRustBuffer {
remoteServicesConfig: FfiConverterTypeRemoteServicesConfig.read(from: &buf),
breezSdkConfig: FfiConverterTypeBreezSdkConfig.read(from: &buf),
maxRoutingFeeConfig: FfiConverterTypeMaxRoutingFeeConfig.read(from: &buf),
receiveLimitsConfig: FfiConverterTypeReceiveLimitsConfig.read(from: &buf)
receiveLimitsConfig: FfiConverterTypeReceiveLimitsConfig.read(from: &buf),
topupReferralCodeMaxLength: FfiConverterUInt32.read(from: &buf)
)
}

Expand All @@ -5078,6 +5086,7 @@ public struct FfiConverterTypeLightningNodeConfig: FfiConverterRustBuffer {
FfiConverterTypeBreezSdkConfig.write(value.breezSdkConfig, into: &buf)
FfiConverterTypeMaxRoutingFeeConfig.write(value.maxRoutingFeeConfig, into: &buf)
FfiConverterTypeReceiveLimitsConfig.write(value.receiveLimitsConfig, into: &buf)
FfiConverterUInt32.write(value.topupReferralCodeMaxLength, into: &buf)
}
}

Expand Down Expand Up @@ -12210,7 +12219,7 @@ private var initializationResult: InitializationResult = {
if (uniffi_uniffi_lipalightninglib_checksum_method_fiattopup_query_tc_status() != 17404) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_fiattopup_register() != 17799) {
if (uniffi_uniffi_lipalightninglib_checksum_method_fiattopup_register() != 15159) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_uniffi_lipalightninglib_checksum_method_fiattopup_request_collection() != 4275) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleName</key>
<string>lipalightninglibFFI</string>
<key>CFBundleVersion</key>
<string>0.73.0</string>
<string>0.74.0</string>
<key>CFBundleShortVersionString</key>
<string>0.73.0</string>
<string>0.74.0</string>
<key>CFBundleExecutable</key>
<string>lipalightninglibFFI</string>
<key>MinimumOSVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleName</key>
<string>lipalightninglibFFI</string>
<key>CFBundleVersion</key>
<string>0.73.0</string>
<string>0.74.0</string>
<key>CFBundleShortVersionString</key>
<string>0.73.0</string>
<string>0.74.0</string>
<key>CFBundleExecutable</key>
<string>lipalightninglibFFI</string>
<key>MinimumOSVersion</key>
Expand Down

0 comments on commit 9d05d9f

Please sign in to comment.