Skip to content

Commit

Permalink
Update GRDB to version 6
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Oct 23, 2023
1 parent 36ed534 commit 4cbb001
Show file tree
Hide file tree
Showing 35 changed files with 77 additions and 77 deletions.
18 changes: 9 additions & 9 deletions UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12071,7 +12071,7 @@
repositoryURL = "https://github.com/horizontalsystems/BitcoinCore.Swift";
requirement = {
kind = exactVersion;
version = 2.0.2;
version = 2.0.3;
};
};
6B55461F2A6E73190054B524 /* XCRemoteSwiftPackageReference "UIExtensions" */ = {
Expand Down Expand Up @@ -12103,7 +12103,7 @@
repositoryURL = "https://github.com/horizontalsystems/TronKit.Swift.git";
requirement = {
kind = exactVersion;
version = 1.0.2;
version = 1.0.3;
};
};
D0DA740B272A6EFC0072BE86 /* XCRemoteSwiftPackageReference "UnicodeURL" */ = {
Expand Down Expand Up @@ -12135,23 +12135,23 @@
repositoryURL = "https://github.com/horizontalsystems/EvmKit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.7;
version = 2.0.8;
};
};
D3604E4828F02A8B0066C366 /* XCRemoteSwiftPackageReference "Eip20Kit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/horizontalsystems/Eip20Kit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.0;
version = 2.0.1;
};
};
D3604E4B28F02AB40066C366 /* XCRemoteSwiftPackageReference "NftKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/horizontalsystems/NftKit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.0;
version = 2.0.1;
};
};
D3604E4E28F02AE60066C366 /* XCRemoteSwiftPackageReference "UniswapKit" */ = {
Expand All @@ -12175,7 +12175,7 @@
repositoryURL = "https://github.com/horizontalsystems/BitcoinKit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.0;
version = 2.0.1;
};
};
D3604E6728F02DF30066C366 /* XCRemoteSwiftPackageReference "BitcoinCashKit" */ = {
Expand All @@ -12199,7 +12199,7 @@
repositoryURL = "https://github.com/horizontalsystems/MarketKit.Swift";
requirement = {
kind = exactVersion;
version = 2.2.5;
version = 2.2.6;
};
};
D3604E7128F03B0A0066C366 /* XCRemoteSwiftPackageReference "ScanQrKit" */ = {
Expand Down Expand Up @@ -12239,15 +12239,15 @@
repositoryURL = "https://github.com/horizontalsystems/BinanceChainKit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.0;
version = 2.0.1;
};
};
D3604E8628F03D9E0066C366 /* XCRemoteSwiftPackageReference "DashKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/horizontalsystems/DashKit.Swift";
requirement = {
kind = exactVersion;
version = 2.0.2;
version = 2.0.3;
};
};
D36E0C2828D084AB00B622B9 /* XCRemoteSwiftPackageReference "CollectionViewCenteredFlowLayout" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AccountRecord: Record {
case id, level, name, type, origin, backedUp, fileBackedUp, wordsKey, saltKey, dataKey, bip39Compliant
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.id]
level = row[Columns.level]
name = row[Columns.name]
Expand All @@ -50,7 +50,7 @@ class AccountRecord: Record {
dataKey = row[Columns.dataKey]
bip39Compliant = row[Columns.bip39Compliant]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class ActiveAccount: Record {
case level, accountId
}

required init(row: Row) {
required init(row: Row) throws {
level = row[Columns.level]
accountId = row[Columns.accountId]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class AppVersionRecord: Record {
case date
}

required init(row: Row) {
required init(row: Row) throws {
version = row[Columns.version]
build = row[Columns.build]
date = row[Columns.date]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class BlockchainSettingRecord: Record {
case blockchainUid, key, value
}

required init(row: Row) {
required init(row: Row) throws {
blockchainUid = row[Columns.blockchainUid]
key = row[Columns.key]
value = row[Columns.value]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CexAssetRecord: Record {
case accountId, id, name, freeBalance, lockedBalance, depositEnabled, withdrawEnabled, depositNetworks, withdrawNetworks, coinUid
}

required init(row: Row) {
required init(row: Row) throws {
accountId = row[Columns.accountId]
id = row[Columns.id]
name = row[Columns.name]
Expand All @@ -51,7 +51,7 @@ class CexAssetRecord: Record {
withdrawNetworks = rawWithdrawNetworks.flatMap { [CexWithdrawNetworkRaw](JSONString: $0) } ?? []
coinUid = row[Columns.coinUid]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AccountRecord_v_0_10: Record {
case wordsKey, derivation, saltKey, dataKey, eosAccount
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.id]
name = row[Columns.name]
type = row[Columns.type]
Expand All @@ -48,7 +48,7 @@ class AccountRecord_v_0_10: Record {
dataKey = row[Columns.dataKey]
eosAccount = row[Columns.eosAccount]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AccountRecord_v_0_19: Record {
case id, name, type, origin, backedUp, wordsKey, saltKey, birthdayHeightKey, dataKey, eosAccount
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.id]
name = row[Columns.name]
type = row[Columns.type]
Expand All @@ -47,7 +47,7 @@ class AccountRecord_v_0_19: Record {
dataKey = row[Columns.dataKey]
eosAccount = row[Columns.eosAccount]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AccountRecord_v_0_20: Record {
case id, name, type, origin, backedUp, wordsKey, saltKey, birthdayHeightKey, dataKey
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.id]
name = row[Columns.name]
type = row[Columns.type]
Expand All @@ -44,7 +44,7 @@ class AccountRecord_v_0_20: Record {
birthdayHeightKey = row[Columns.birthdayHeightKey]
dataKey = row[Columns.dataKey]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AccountRecord_v_0_36: Record {
case id, name, type, origin, backedUp, wordsKey, saltKey, dataKey, bip39Compliant
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.id]
name = row[Columns.name]
type = row[Columns.type]
Expand All @@ -44,7 +44,7 @@ class AccountRecord_v_0_36: Record {
dataKey = row[Columns.dataKey]
bip39Compliant = row[Columns.bip39Compliant]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class ActiveAccount_v_0_36: Record {
case uniqueId, accountId
}

required init(row: Row) {
required init(row: Row) throws {
accountId = row[Columns.accountId]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class BlockchainSettingRecord_v_0_24: Record {
case coinType, key, value
}

required init(row: Row) {
required init(row: Row) throws {
coinType = row[Columns.coinType]
key = row[Columns.key]
value = row[Columns.value]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CoinRecord_v19: Record {
case coinId, title, code, decimal, tokenType, erc20Address, bep2Symbol
}

required init(row: Row) {
required init(row: Row) throws {
id = row[Columns.coinId]
title = row[Columns.title]
code = row[Columns.code]
Expand All @@ -43,7 +43,7 @@ class CoinRecord_v19: Record {
erc20Address = row[Columns.erc20Address]
bep2Symbol = row[Columns.bep2Symbol]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class CustomToken: Record {
case coinName, coinCode, coinTypeId, decimals
}

required init(row: Row) {
required init(row: Row) throws {
coinName = row[Columns.coinName]
coinCode = row[Columns.coinCode]
coinTypeId = row[Columns.coinTypeId]
decimals = row[Columns.decimals]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EnabledWallet_v_0_10: Record {
case coinId, accountId, syncMode, walletOrder
}

required init(row: Row) {
required init(row: Row) throws {
coinId = row[Columns.coinId]
accountId = row[Columns.accountId]
order = row[Columns.walletOrder]
Expand All @@ -28,7 +28,7 @@ class EnabledWallet_v_0_10: Record {
syncMode = SyncMode_v_0_24(rawValue: rawSyncMode)
}

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ class EnabledWallet_v_0_13: Record {
case coinId, accountId, derivation, syncMode
}

required init(row: Row) {
required init(row: Row) throws {
coinId = row[Columns.coinId]
accountId = row[Columns.accountId]
derivation = row[Columns.derivation]
syncMode = row[Columns.syncMode]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class EnabledWallet_v_0_20: Record {
case coinId, accountId
}

required init(row: Row) {
required init(row: Row) throws {
coinId = row[Columns.coinId]
accountId = row[Columns.accountId]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class EnabledWallet_v_0_25: Record {
case coinId, coinSettingsId, accountId, coinName, coinCode, coinDecimals
}

required init(row: Row) {
required init(row: Row) throws {
coinId = row[Columns.coinId]
coinSettingsId = row[Columns.coinSettingsId]
accountId = row[Columns.accountId]
coinName = row[Columns.coinName]
coinCode = row[Columns.coinCode]
coinDecimals = row[Columns.coinDecimals]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class EnabledWallet_v_0_34: Record {
case tokenQueryId, coinSettingsId, accountId, coinName, coinCode, tokenDecimals
}

required init(row: Row) {
required init(row: Row) throws {
tokenQueryId = row[Columns.tokenQueryId]
coinSettingsId = row[Columns.coinSettingsId]
accountId = row[Columns.accountId]
coinName = row[Columns.coinName]
coinCode = row[Columns.coinCode]
tokenDecimals = row[Columns.tokenDecimals]
super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class RestoreSettingRecord_v_0_25: Record {
case accountId, coinId, key, value
}

required init(row: Row) {
required init(row: Row) throws {
accountId = row[Columns.accountId]
coinId = row[Columns.coinId]
key = row[Columns.key]
value = row[Columns.value]

super.init(row: row)
try super.init(row: row)
}

override func encode(to container: inout PersistenceContainer) {
Expand Down
Loading

0 comments on commit 4cbb001

Please sign in to comment.