-
-
Notifications
You must be signed in to change notification settings - Fork 250
feat(core-backend): add package #6722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+5,444
−0
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
89b00b4
feat: add core-backend platform package
Kriys94 9a8c7d5
feat(core-backend): clean code
Kriys94 50af967
feat(core-backend): remove assets-controllers changes
Kriys94 297dc0f
fix: format core-backend config files
Kriys94 16cf2ae
feat(core-backend): clean code
Kriys94 4b58504
feat(core-backend): add CODEOWNERS for core and assets teams
Kriys94 63c4eba
feat(core-backend): clean code
Kriys94 aadba7d
feat(core-backend): update Readme
Kriys94 8285cef
feat(core-backend): clean code
Kriys94 4cb33a9
feat(core-backend): clean code
Kriys94 2237102
feat(core-backend): clean code
Kriys94 c1a7c73
feat(core-backend): clean code
Kriys94 6dd61c5
feat(core-backend): clean code
Kriys94 07e3ce1
feat(core-backend): clean code
Kriys94 14ccac9
feat(core-backend): clean code
Kriys94 152b35b
feat(core-backend): clean code
Kriys94 b8c41d2
feat(core-backend): clean code
Kriys94 73e0789
feat(core-backend): clean doc
Kriys94 be4019d
feat(core-backend): clean code
Kriys94 95ff4de
feat(core-backend): clean test
Kriys94 7a4cd8d
feat(core-backend): clean tests
Kriys94 defa4f6
feat(core-backend): clean tests
Kriys94 db6aeaf
feat(core-backend): clean tests
Kriys94 8ebfb45
feat(core-backend): clean tests
Kriys94 e22a203
feat(core-backend): clean code
Kriys94 23061e5
feat(core-backend): dynamic supported chains
Kriys94 8614682
feat(core-backend): clean code
Kriys94 6312cfd
feat(core-backend): clean code
Kriys94 07c742f
feat(core-backend): clean code
Kriys94 81ba910
feat(core-backend): fix package json
Kriys94 e1b03ba
feat(core-backend): fix package json
Kriys94 715d9e6
feat(core-backend): fix teams
Kriys94 d0110b5
feat(core-backend): fix yarn
Kriys94 7f444b7
feat(core-backend): fix yarn
Kriys94 790a606
revert: remove changes from specified package files
Kriys94 222bb16
fix yarn lock
Kriys94 e5aeb5d
update CHANGELOG
Kriys94 60fd7f9
clean tests
Kriys94 d25bc3f
clean tests
Kriys94 38ade82
clean tests
Kriys94 918d1eb
clean tests
Kriys94 16e26e2
clean tests
Kriys94 6c2c2ea
clean tests
Kriys94 2824746
clean tests
Kriys94 91e95f6
clean tests
Kriys94 623d17c
clean tests
Kriys94 1e726ba
clean tests
Kriys94 66e17a9
clean tests BackendWebsocketService
Kriys94 508a82c
clean code
Kriys94 f07c76d
clean code
Kriys94 25b9a28
clean code
Kriys94 76fe6d8
clean code
Kriys94 3f53c04
clean code
Kriys94 dd6f3a4
clean code
Kriys94 ab6b160
clean code
Kriys94 41b3d99
clean code
Kriys94 7a73ee0
clean code
Kriys94 945efcb
clean code
Kriys94 bc80f5a
clean code
Kriys94 19edb84
Merge branch 'main' into feature/core-backend-platform
Kriys94 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- **Initial release of `@metamask/core-backend` package** - Core backend services for MetaMask serving as the data layer between Backend services and Frontend applications ([#6722](https://github.com/MetaMask/core/pull/6722)) | ||
- **BackendWebSocketService** - WebSocket client providing authenticated real-time data delivery with: | ||
- Connection management and automatic reconnection with exponential backoff | ||
- Message routing and subscription management | ||
- Authentication integration with `AuthenticationController` | ||
- Type-safe messenger-based API for controller integration | ||
- **AccountActivityService** - High-level service for monitoring account activity with: | ||
- Real-time account activity monitoring via WebSocket subscriptions | ||
- Balance update notifications for integration with `TokenBalancesController` | ||
- Chain status change notifications for dynamic polling coordination | ||
- Account subscription management with automatic cleanup | ||
- **Type definitions** - Comprehensive TypeScript types for transactions, balances, WebSocket messages, and service configurations | ||
- **Logging infrastructure** - Structured logging with module-specific loggers for debugging and monitoring | ||
|
||
[Unreleased]: https://github.com/MetaMask/core/ |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
MIT License | ||
|
||
Copyright (c) 2025 MetaMask | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.