Skip to content

Commit

Permalink
Merge pull request #184 from alephium/remove-unneccessary-permissions
Browse files Browse the repository at this point in the history
Remove Unnecessary Permissions
  • Loading branch information
h0ngcha0 authored Feb 27, 2024
2 parents fa37425 + 8195aec commit 8d728d3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 77 deletions.
11 changes: 2 additions & 9 deletions packages/extension/manifest/v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@
},
"permissions": [
"alarms",
"downloads",
"tabs",
"storage",
"notifications",
"http://localhost/*",
"https://alpha4.starknet.io/*",
"https://alpha4-2.starknet.io/*",
"https://alpha-mainnet.starknet.io/*",
"https://external.integration.starknet.io/*",
"https://healthcheck.argent.xyz/*",
"https://cloud.argent-api.com/*",
"https://wallet-v16.testnet.alephium.org/*",
"https://backend-v112.testnet.alephium.org/*",
"https://wallet.testnet.alephium.org/*",
"https://backend.testnet.alephium.org/*",
"https://wallet.mainnet.alephium.org/*",
"https://backend.mainnet.alephium.org/*"
],
Expand Down
5 changes: 2 additions & 3 deletions packages/extension/manifest/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
},
"permissions": [
"alarms",
"downloads",
"tabs",
"storage",
"notifications",
"http://localhost/*",
"https://wallet-v16.testnet.alephium.org/*",
"https://backend-v112.testnet.alephium.org/*",
"https://wallet.testnet.alephium.org/*",
"https://backend.testnet.alephium.org/*",
"https://wallet.mainnet.alephium.org/*",
"https://backend.mainnet.alephium.org/*"
],
Expand Down
8 changes: 4 additions & 4 deletions packages/extension/src/shared/network/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export const DEVNET = {
export const defaultNetworks: Network[] = [
{
id: 'mainnet',
nodeUrl: 'https://wallet-v20.mainnet.alephium.org',
explorerApiUrl: 'https://backend-v113.mainnet.alephium.org',
nodeUrl: 'https://wallet.mainnet.alephium.org',
explorerApiUrl: 'https://backend.mainnet.alephium.org',
explorerUrl: 'https://explorer.mainnet.alephium.org',
name: 'Mainnet',
readonly: true
},
{
id: 'testnet',
nodeUrl: 'https://wallet-v20.testnet.alephium.org',
explorerApiUrl: 'https://backend-v113.testnet.alephium.org',
nodeUrl: 'https://wallet.testnet.alephium.org',
explorerApiUrl: 'https://backend.testnet.alephium.org',
explorerUrl: 'https://explorer.testnet.alephium.org',
name: 'Testnet',
},
Expand Down
5 changes: 0 additions & 5 deletions packages/extension/src/ui/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import { OnboardingRestoreBackup } from "./features/onboarding/OnboardingRestore
import { OnboardingRestorePassword } from "./features/onboarding/OnboardingRestorePassword"
import { OnboardingRestoreSeed } from "./features/onboarding/OnboardingRestoreSeed"
import { OnboardingStartScreen } from "./features/onboarding/OnboardingStartScreen"
import { BackupDownloadScreen } from "./features/recovery/BackupDownloadScreen"
import { RecoverySetupScreen } from "./features/recovery/RecoverySetupScreen"
import { SeedRecoveryConfirmScreen } from "./features/recovery/SeedRecoveryConfirmScreen"
import { SeedRecoverySetupScreen } from "./features/recovery/SeedRecoverySetupScreen"
Expand Down Expand Up @@ -268,10 +267,6 @@ const walletRoutes = (
<Route path={routes.setupRecovery.path} element={<RecoverySetupScreen />} />
<Route path={routes.newToken.path} element={<AddTokenScreen />} />
<Route path={routes.token.path} element={<TokenScreen />} />
<Route
path={routes.backupDownload.path}
element={<BackupDownloadScreen />}
/>
<Route
path={routes.exportPrivateKey.path}
element={<ExportPrivateKeyScreen />}
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions packages/extension/src/ui/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ export const routes = {
settingsAddressbookAdd: route("/settings/addressbook/add-or-edit"),
settingsPrivacyStatement: route("/settings/privacy-policy"),
networkWarning: routeWithReturnTo("/network-warning"),
backupDownload: route(
(isFromSettings?: boolean) =>
`/backup-download${isFromSettings ? "?settings" : ""}`,
"/backup-download",
),
userReview: route("/user-review"),
userReviewFeedback: route("/user-review/feedback"),
error: route("/error"),
Expand Down

0 comments on commit 8d728d3

Please sign in to comment.