Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
01d42bc
feat: Integrate StorageService for large controller data
andrepimenta Nov 19, 2025
72939b0
refactor: Update mobile adapter for new StorageService interface
andrepimenta Nov 25, 2025
d2ab2d1
refactor(storage-service): update adapter to handle key building and …
andrepimenta Nov 25, 2025
e431a4f
Add preview package of storage-service
andrepimenta Nov 26, 2025
1f10b96
Merge branch 'main' into feature/storage-service
andrepimenta Nov 26, 2025
7294e96
Merge branch 'feature/storage-service' of https://github.com/MetaMask…
andrepimenta Nov 26, 2025
3e6f2ea
Use metamask-previews for now
andrepimenta Nov 26, 2025
f886613
fix(storage-service): add StorageServiceEvents to GlobalEvents
andrepimenta Nov 26, 2025
ba326e3
fix(storage-service): add StorageService to STATELESS_NON_CONTROLLER_…
andrepimenta Nov 26, 2025
23fc5b6
test(storage-service): achieve 100% coverage for storage-service-init
andrepimenta Nov 26, 2025
7d6da38
fix(storage-service): use undefined instead of null for FilesystemSto…
andrepimenta Nov 26, 2025
08c5d98
test(storage-service): rename test to avoid weasel words
andrepimenta Nov 26, 2025
58d0b47
fix(storage-service): throw errors consistently in all adapter methods
andrepimenta Nov 27, 2025
049a5ff
refactor(storage-service): use Json type and remove wrapper
andrepimenta Nov 27, 2025
ca1941d
Merge branch 'main' into feature/storage-service
andrepimenta Nov 28, 2025
a7de4a4
Merge branch 'main' into feature/storage-service
andrepimenta Dec 12, 2025
11b7710
chore: update @metamask-previews/storage-service with StorageGetResul…
andrepimenta Dec 12, 2025
52d20ab
refactor(storage-service): use @metamask/storage-service with Storage…
andrepimenta Dec 12, 2025
5cf519d
fix: prettier formatting in storage-service-init.test.ts
andrepimenta Dec 12, 2025
71d6519
Merge branch 'main' into feature/storage-service
andrepimenta Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/core/Engine/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
import { swapsControllerInit } from './controllers/swaps-controller-init';
import { remoteFeatureFlagControllerInit } from './controllers/remote-feature-flag-controller-init';
import { errorReportingServiceInit } from './controllers/error-reporting-service-init';
import { storageServiceInit } from './controllers/storage-service-init';
import { loggingControllerInit } from './controllers/logging-controller-init';
import { phishingControllerInit } from './controllers/phishing-controller-init';
import { addressBookControllerInit } from './controllers/address-book-controller-init';
Expand All @@ -193,7 +194,7 @@
/**
* Flag to disable automatic vault backups (used during wallet reset)
*/
static disableAutomaticVaultBackup = false;

Check warning on line 197 in app/core/Engine/Engine.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Make this public static property readonly.

See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZrBABNj1dYlcNLGkLoB&open=AZrBABNj1dYlcNLGkLoB&pullRequest=22943
/**
* A collection of all controller instances
*/
Expand Down Expand Up @@ -286,6 +287,7 @@
const { controllersByName } = initModularizedControllers({
controllerInitFunctions: {
ErrorReportingService: errorReportingServiceInit,
StorageService: storageServiceInit,
LoggingController: loggingControllerInit,
PreferencesController: preferencesControllerInit,
RemoteFeatureFlagController: remoteFeatureFlagControllerInit,
Expand Down
1 change: 1 addition & 0 deletions app/core/Engine/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'ExecutionService',
'NftDetectionController',
'RewardsDataService',
'StorageService',
'TokenDetectionController',
'WebSocketService',
'BackendWebSocketService',
Expand Down Expand Up @@ -120,6 +121,6 @@
[CHAIN_IDS.ZKSYNC_ERA]: ZK_SYNC_ERA_DISPLAY_NAME,
[CHAIN_IDS.BASE]: BASE_DISPLAY_NAME,
[CHAIN_IDS.SEI]: SEI_DISPLAY_NAME,
// TODO: Update to use CHAIN_IDS.MONAD when it is added to the transaction controller

Check warning on line 124 in app/core/Engine/constants.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZrCWYt5SchGjxeKP99R&open=AZrCWYt5SchGjxeKP99R&pullRequest=22943
[CHAIN_IDS.MONAD]: MONAD_DISPLAY_NAME,
} as const;
Loading
Loading