-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
921 additions
and
2,672 deletions.
There are no files selected for viewing
362 changes: 126 additions & 236 deletions
362
UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
UnstoppableWallet/UnstoppableWallet/Core/Storage/WalletConnectV2SessionStorage.swift
This file was deleted.
Oops, something went wrong.
20 changes: 5 additions & 15 deletions
20
UnstoppableWallet/UnstoppableWallet/Models/WalletConnectSession.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
import GRDB | ||
import WalletConnectV1 | ||
|
||
class WalletConnectSession: Codable, FetchableRecord, PersistableRecord, TableRecord { | ||
let chainId: Int | ||
let accountId: String | ||
let session: WCSession | ||
let peerId: String | ||
let peerMeta: WCPeerMeta | ||
let topic: String | ||
|
||
init(chainId: Int, accountId: String, session: WCSession, peerId: String, peerMeta: WCPeerMeta) { | ||
self.chainId = chainId | ||
init(accountId: String, topic: String) { | ||
self.accountId = accountId | ||
self.session = session | ||
self.peerId = peerId | ||
self.peerMeta = peerMeta | ||
self.topic = topic | ||
} | ||
|
||
class var databaseTableName: String { | ||
"wallet_connect_sessions" | ||
"wallet_connect_sessions_v2" | ||
} | ||
|
||
enum Columns { | ||
static let chainId = Column(CodingKeys.chainId) | ||
static let accountId = Column(CodingKeys.accountId) | ||
static let session = Column(CodingKeys.session) | ||
static let peerId = Column(CodingKeys.peerId) | ||
static let peerMeta = Column(CodingKeys.peerMeta) | ||
static let topic = Column(CodingKeys.topic) | ||
} | ||
|
||
} |
21 changes: 0 additions & 21 deletions
21
UnstoppableWallet/UnstoppableWallet/Models/WalletConnectV2Session.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.