Skip to content

Commit

Permalink
Merge pull request #1145 from novasamatech/develop
Browse files Browse the repository at this point in the history
8.2.0 Network Management feature & Ledger improvements and network optimizations for balances
  • Loading branch information
svojsu committed Jul 18, 2024
2 parents e6411d3 + fa6fc1d commit 64f9969
Show file tree
Hide file tree
Showing 281 changed files with 13,708 additions and 2,836 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ final class NewReferendumHandler: CommonHandler, PushNotificationHandler {
}
switch result {
case let .success(chains):
guard let chain = self.search(
chainId: self.chainId,
in: chains
) else {
guard
let chain = self.search(
chainId: self.chainId,
in: chains
),
chain.syncMode.enabled()
else {
completion(nil)
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ final class ReferendumUpdatesHandler: CommonHandler, PushNotificationHandler {
}
switch result {
case let .success(chains):
guard let chain = self.search(chainId: self.chainId, in: chains) else {
guard
let chain = self.search(chainId: self.chainId, in: chains),
chain.syncMode.enabled()
else {
completion(nil)
return
}

let content = self.content(from: chain)
completion(content)
case .failure:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ final class StakingRewardsHandler: CommonHandler, PushNotificationHandler {
operationManager: OperationManager(operationQueue: operationQueue)) {
let settings = try settingsOperation.extractNoCancellableResultData().first
let chains = try chainOperation.extractNoCancellableResultData()
guard let chain = self.search(chainId: self.chainId, in: chains),
let asset = chain.utilityAsset() else {
guard
let chain = self.search(chainId: self.chainId, in: chains),
chain.syncMode.enabled(),
let asset = chain.utilityAsset()
else {
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ final class TransferHandler: CommonHandler, PushNotificationHandler {
operationManager: OperationManager(operationQueue: operationQueue)) {
let settings = try settingsOperation.extractNoCancellableResultData().first
let chains = try chainOperation.extractNoCancellableResultData()
guard let chain = self.search(chainId: self.chainId, in: chains),
let asset = self.mapHistoryAssetId(self.payload.assetId, chain: chain) else {
guard
let chain = self.search(chainId: self.chainId, in: chains),
chain.syncMode.enabled(),
let asset = self.mapHistoryAssetId(self.payload.assetId, chain: chain)
else {
return nil
}

Expand Down
6 changes: 3 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform :ios, '14.0'
abstract_target 'novawalletAll' do
use_frameworks!

pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.0'
pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.1'
pod 'SwiftLint'
pod 'R.swift', :inhibit_warnings => true
pod 'SoraKeystore', '~> 1.0.0'
Expand Down Expand Up @@ -37,7 +37,7 @@ abstract_target 'novawalletAll' do
inherit! :search_paths

pod 'Cuckoo'
pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.0'
pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.1'
pod 'SoraFoundation', :git => 'https://github.com/ERussel/Foundation-iOS.git', :tag => '1.1.0'
pod 'R.swift', :inhibit_warnings => true
pod 'FireMock', :inhibit_warnings => true
Expand All @@ -62,7 +62,7 @@ abstract_target 'novawalletAll' do
pod 'SoraKeystore', '~> 1.0.0'
pod 'Operation-iOS', :git => 'https://github.com/novasamatech/Operation-iOS', :tag => '2.0.1'
pod 'Sourcery', '~> 1.4'
pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.0'
pod 'SubstrateSdk', :git => 'https://github.com/nova-wallet/substrate-sdk-ios.git', :tag => '3.2.1'
end


Expand Down
12 changes: 6 additions & 6 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ PODS:
- SoraUI/Skrull (1.13.0)
- Sourcery (1.4.1)
- Starscream (4.0.10)
- SubstrateSdk (3.2.0):
- SubstrateSdk (3.2.1):
- BigInt (~> 5.0)
- IrohaCrypto/ed25519 (~> 0.9.0)
- IrohaCrypto/Scrypt (~> 0.9.0)
Expand Down Expand Up @@ -955,7 +955,7 @@ DEPENDENCIES:
- SoraUI (from `https://github.com/ERussel/UIkit-iOS.git`, tag `1.13.0`)
- Sourcery (~> 1.4)
- Starscream (from `https://github.com/ERussel/Starscream.git`, tag `4.0.10`)
- SubstrateSdk (from `https://github.com/nova-wallet/substrate-sdk-ios.git`, tag `3.2.0`)
- SubstrateSdk (from `https://github.com/nova-wallet/substrate-sdk-ios.git`, tag `3.2.1`)
- SVGKit (from `https://github.com/SVGKit/SVGKit.git`, tag `3.0.0`)
- SwiftAlgorithms (~> 1.0.0)
- SwiftFormat/CLI (~> 0.47.13)
Expand Down Expand Up @@ -1044,7 +1044,7 @@ EXTERNAL SOURCES:
:tag: 4.0.10
SubstrateSdk:
:git: https://github.com/nova-wallet/substrate-sdk-ios.git
:tag: 3.2.0
:tag: 3.2.1
SVGKit:
:git: https://github.com/SVGKit/SVGKit.git
:tag: 3.0.0
Expand Down Expand Up @@ -1084,7 +1084,7 @@ CHECKOUT OPTIONS:
:tag: 4.0.10
SubstrateSdk:
:git: https://github.com/nova-wallet/substrate-sdk-ios.git
:tag: 3.2.0
:tag: 3.2.1
SVGKit:
:git: https://github.com/SVGKit/SVGKit.git
:tag: 3.0.0
Expand Down Expand Up @@ -1146,7 +1146,7 @@ SPEC CHECKSUMS:
SoraUI: 1d1a25881d1d597f19bc55f82c99ee236cc1ab11
Sourcery: db66600e8b285c427701821598d07cf3c7e6c476
Starscream: 867607a51eafadc6402b5c6f6acc0d8efdb98746
SubstrateSdk: a4190b1ec093bd09490c7ff20e1e03e2d4c45760
SubstrateSdk: fe20689ad3f1bc680318a338c9e7dcde53e9c36b
SVGKit: 132b010efbf57ec345309fe4a7f627c0a40c5d63
SwiftAlgorithms: 38dda4731d19027fdeee1125f973111bf3386b53
SwiftFormat: 73573b89257437c550b03d934889725fbf8f75e5
Expand All @@ -1161,6 +1161,6 @@ SPEC CHECKSUMS:
ZMarkupParser: a92d31ba40695b790f1da5fec98c3d4505341aff
ZNSTextAttachment: 1ddd53660a8d3c42dbb716bf6866ffce22c44181

PODFILE CHECKSUM: 95a811feaab74d22fc9cceecb2e78d4c88130fb1
PODFILE CHECKSUM: 65dd64d36e6c0b46ddacb7d2629960ec17b1a716

COCOAPODS: 1.15.2
Loading

0 comments on commit 64f9969

Please sign in to comment.