Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/IOS-8253_kaspa_84
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraveinik authored Oct 16, 2024
2 parents 64f9d57 + 2622a9f commit fe2c2c1
Show file tree
Hide file tree
Showing 18 changed files with 154 additions and 121 deletions.
3 changes: 1 addition & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ target 'Tangem' do

# Pods for Tangem
pod 'Moya'
pod 'WalletConnectSwiftV2', :git => 'https://github.com/WalletConnect/WalletConnectSwiftV2', :tag => '1.18.7'
pod 'Kingfisher', '~> 7.11.0'

# Helpers
Expand Down Expand Up @@ -240,4 +239,4 @@ def add_spm_package_to_target(project, target_name, url, product_name, requireme
end

project.save
end
end
50 changes: 1 addition & 49 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,46 +162,6 @@ PODS:
- SwiftDate (7.0.0)
- SwiftyJSON (5.0.1)
- TangemSdk (3.10.0)
- WalletConnectSwiftV2 (1.18.7):
- WalletConnectSwiftV2/WalletConnect (= 1.18.7)
- WalletConnectSwiftV2/Commons (1.18.7)
- WalletConnectSwiftV2/HTTPClient (1.18.7)
- WalletConnectSwiftV2/JSONRPC (1.18.7):
- WalletConnectSwiftV2/Commons
- WalletConnectSwiftV2/WalletConnect (1.18.7):
- WalletConnectSwiftV2/WalletConnectAuth
- WalletConnectSwiftV2/WalletConnectPush
- WalletConnectSwiftV2/WalletConnectSign
- WalletConnectSwiftV2/WalletConnectVerify
- WalletConnectSwiftV2/WalletConnectAuth (1.18.7):
- WalletConnectSwiftV2/WalletConnectPairing
- WalletConnectSwiftV2/WalletConnectSigner
- WalletConnectSwiftV2/WalletConnectVerify
- WalletConnectSwiftV2/WalletConnectJWT (1.18.7):
- WalletConnectSwiftV2/WalletConnectKMS
- WalletConnectSwiftV2/WalletConnectKMS (1.18.7):
- WalletConnectSwiftV2/WalletConnectUtils
- WalletConnectSwiftV2/WalletConnectNetworking (1.18.7):
- WalletConnectSwiftV2/HTTPClient
- WalletConnectSwiftV2/WalletConnectRelay
- WalletConnectSwiftV2/WalletConnectPairing (1.18.7):
- WalletConnectSwiftV2/WalletConnectNetworking
- WalletConnectSwiftV2/WalletConnectPush (1.18.7):
- WalletConnectSwiftV2/WalletConnectJWT
- WalletConnectSwiftV2/WalletConnectNetworking
- WalletConnectSwiftV2/WalletConnectRelay (1.18.7):
- WalletConnectSwiftV2/WalletConnectJWT
- WalletConnectSwiftV2/WalletConnectSign (1.18.7):
- WalletConnectSwiftV2/WalletConnectPairing
- WalletConnectSwiftV2/WalletConnectSigner
- WalletConnectSwiftV2/WalletConnectVerify
- WalletConnectSwiftV2/WalletConnectSigner (1.18.7):
- WalletConnectSwiftV2/WalletConnectNetworking
- WalletConnectSwiftV2/WalletConnectUtils (1.18.7):
- WalletConnectSwiftV2/JSONRPC
- WalletConnectSwiftV2/WalletConnectVerify (1.18.7):
- WalletConnectSwiftV2/WalletConnectNetworking
- WalletConnectSwiftV2/WalletConnectUtils

DEPENDENCIES:
- AmplitudeSwift (= 1.6.2)
Expand All @@ -218,7 +178,6 @@ DEPENDENCIES:
- Solana.Swift (from `https://github.com/tangem/Solana.Swift`, tag `1.2.0-tangem11`)
- SwiftyJSON (from `https://github.com/tangem/SwiftyJSON.git`, tag `5.0.1-tangem1`)
- TangemSdk (from `https://github.com/Tangem/tangem-sdk-ios.git`, tag `develop-313`)
- WalletConnectSwiftV2 (from `https://github.com/WalletConnect/WalletConnectSwiftV2`, tag `1.18.7`)

SPEC REPOS:
trunk:
Expand Down Expand Up @@ -265,9 +224,6 @@ EXTERNAL SOURCES:
TangemSdk:
:git: https://github.com/Tangem/tangem-sdk-ios.git
:tag: develop-313
WalletConnectSwiftV2:
:git: https://github.com/WalletConnect/WalletConnectSwiftV2
:tag: 1.18.7

CHECKOUT OPTIONS:
BinanceChain:
Expand All @@ -285,9 +241,6 @@ CHECKOUT OPTIONS:
TangemSdk:
:git: https://github.com/Tangem/tangem-sdk-ios.git
:tag: develop-313
WalletConnectSwiftV2:
:git: https://github.com/WalletConnect/WalletConnectSwiftV2
:tag: 1.18.7

SPEC CHECKSUMS:
Alamofire: f36a35757af4587d8e4f4bfa223ad10be2422b8c
Expand Down Expand Up @@ -321,8 +274,7 @@ SPEC CHECKSUMS:
SwiftDate: bbc26e26fc8c0c33fbee8c140c5e8a68293a148a
SwiftyJSON: c0bd75b5969785b3d9ae41d5709fe75bc5de4002
TangemSdk: 145675e87bf4720d13968510b19e03b5402ed028
WalletConnectSwiftV2: 5ea47db4d86e39fc749b66a05a661af9e87b277d

PODFILE CHECKSUM: 9eb8ddab260a5ed0182d1b2d3bb9486d9e7f171c
PODFILE CHECKSUM: b73c95d2625485d99f65c2c7a213292dc108805b

COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2023 Tangem AG. All rights reserved.
//

import WalletConnectSwiftV2
import WalletConnectUtils

protocol WalletConnectMessageHandler {
var event: WalletConnectEvent { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import CryptoSwift
import WalletConnectSwiftV2
import ReownWalletKit
import TangemSdk

struct WalletConnectCryptoProvider: CryptoProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import Foundation
import CryptoSwift
import enum BlockchainSdk.Blockchain
import struct WalletConnectSwiftV2.AnyCodable
import enum WalletConnectSwiftV2.RPCResult
import struct Commons.AnyCodable
import enum JSONRPC.RPCResult

struct WalletConnectV2PersonalSignHandler {
private let message: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import enum BlockchainSdk.Blockchain
import struct WalletConnectSwiftV2.AnyCodable
import enum WalletConnectSwiftV2.RPCResult
import struct Commons.AnyCodable
import enum JSONRPC.RPCResult

struct WalletConnectV2SignTypedDataHandler {
private let message: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import BlockchainSdk
import struct WalletConnectSwiftV2.AnyCodable
import enum WalletConnectSwiftV2.RPCResult
import struct Commons.AnyCodable
import enum JSONRPC.RPCResult

class WalletConnectV2SendTransactionHandler {
private let wcTransaction: WalletConnectEthTransaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import BlockchainSdk
import struct WalletConnectSwiftV2.AnyCodable
import enum WalletConnectSwiftV2.RPCResult
import struct Commons.AnyCodable
import enum JSONRPC.RPCResult

class WalletConnectV2SignTransactionHandler {
private let ethTransaction: WalletConnectEthTransaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import BlockchainSdk
import struct WalletConnectSwiftV2.AnyCodable
import struct Commons.AnyCodable

protocol WalletConnectHandlersCreator: AnyObject {
func createHandler(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation
import enum BlockchainSdk.Blockchain
import struct WalletConnectSwiftV2.Request
import enum WalletConnectSwiftV2.RPCResult
import struct WalletConnectSign.Request
import enum JSONRPC.RPCResult

protocol WalletConnectV2HandlersServicing {
func handle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import Foundation
import WalletConnectSwiftV2
import ReownWalletKit

class WalletConnectV2DefaultSocketFactory: WebSocketFactory {
/// `create(with url: URL)` is called from internal entities of WalletConnectSwiftV2 lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import BlockchainSdk
import WalletConnectSwiftV2
import ReownWalletKit

protocol WalletConnectV2MessageComposable {
func makeMessage(for proposal: Session.Proposal, targetBlockchains: [String]) -> String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
//

import Foundation
import WalletConnectSwiftV2
import WalletConnectUtils
import BlockchainSdk
import WalletConnectSign

struct WalletConnectV2Utils {
private let evmNamespace = "eip155"
Expand Down Expand Up @@ -93,7 +94,7 @@ struct WalletConnectV2Utils {
continue
}

var supportedChains = Set<WalletConnectSwiftV2.Blockchain>()
var supportedChains = Set<WalletConnectUtils.Blockchain>()
let accounts: [[Account]] = chains.compactMap { wcBlockchain in
guard let blockchain = createBlockchain(for: wcBlockchain) else {
unsupportedEVMBlockchains.append(wcBlockchain.reference)
Expand Down Expand Up @@ -127,7 +128,7 @@ struct WalletConnectV2Utils {
continue
}

var supportedChains = Set<WalletConnectSwiftV2.Blockchain>()
var supportedChains = Set<WalletConnectUtils.Blockchain>()
let accounts: [[Account]] = chains.compactMap { wcBlockchain in
guard let blockchain = createBlockchain(for: wcBlockchain) else {
return nil
Expand Down Expand Up @@ -204,7 +205,7 @@ struct WalletConnectV2Utils {
)
}

func createBlockchain(for wcBlockchain: WalletConnectSwiftV2.Blockchain) -> BlockchainMeta? {
func createBlockchain(for wcBlockchain: WalletConnectUtils.Blockchain) -> BlockchainMeta? {
switch wcBlockchain.namespace {
case evmNamespace:
let blockchains = SupportedBlockchains.all
Expand Down Expand Up @@ -239,7 +240,7 @@ struct WalletConnectV2Utils {
}

private func createBlockchainNetwork(
from wcBlockchain: WalletConnectSwiftV2.Blockchain,
from wcBlockchain: WalletConnectUtils.Blockchain,
with address: String,
walletModelProvider: WalletConnectWalletModelProvider
) -> BlockchainNetwork? {
Expand Down
Loading

0 comments on commit fe2c2c1

Please sign in to comment.