Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Protect the wallets of Grim, the Grin wallet app

Țugui Dragoș508b4b2427fe
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 8bf85ac6..9e02d712 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -188,6 +188,7 @@ public enum ProtectedData: Sendable {
"Library/Application Support/Dexc/mainnet/assetdb",
".chia_keys",
".grin/main/wallet_data",
+ ".grim/main/wallets",
".kaspa",
"Library/Application Support/Kaspawallet",
]
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index bc847ee6..8c6453c3 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -73,6 +73,7 @@ struct DesktopWalletTests {
"Library/Application Support/joinmarket/wallets/wallet.jmdat",
".cashu/wallet/wallet.sqlite3",
"Library/Application Support/Kaspawallet/kaspa-mainnet/keys.json",
+ ".grim/main/wallets/1767225600/wallet_data/wallet.seed",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -111,6 +112,7 @@ struct DesktopWalletTests {
".electrum-nmc/blockchain_headers",
"Library/Application Support/Dexc/mainnet/logs/dexc.log",
"Library/Application Support/joinmarket/logs/joinmarket.log",
+ ".grim/main/chain_data/multi_lmdb/data.mdb",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()