diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7da370ce3fe..bc8b50c0826 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -93,6 +93,7 @@ /packages/rate-limit-controller @MetaMask/core-platform /packages/react-data-query @MetaMask/core-platform /packages/profile-metrics-controller @MetaMask/core-platform +/packages/accounts-api @MetaMask/core-platform ## Web3Auth Team /packages/seedless-onboarding-controller @MetaMask/web3auth diff --git a/README.md b/README.md index 352fec4e6ec..751b9b23639 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Each package in this repository has its own README where you can find installati - [`@metamask/account-tree-controller`](packages/account-tree-controller) +- [`@metamask/accounts-api`](packages/accounts-api) - [`@metamask/accounts-controller`](packages/accounts-controller) - [`@metamask/address-book-controller`](packages/address-book-controller) - [`@metamask/ai-controllers`](packages/ai-controllers) @@ -107,6 +108,7 @@ Each package in this repository has its own README where you can find installati graph LR; linkStyle default opacity:0.5 account_tree_controller(["@metamask/account-tree-controller"]); + accounts_api(["@metamask/accounts-api"]); accounts_controller(["@metamask/accounts-controller"]); address_book_controller(["@metamask/address-book-controller"]); ai_controllers(["@metamask/ai-controllers"]); @@ -189,6 +191,9 @@ linkStyle default opacity:0.5 account_tree_controller --> messenger; account_tree_controller --> multichain_account_service; account_tree_controller --> profile_sync_controller; + accounts_api --> base_data_service; + accounts_api --> controller_utils; + accounts_api --> messenger; accounts_controller --> base_controller; accounts_controller --> keyring_controller; accounts_controller --> messenger; diff --git a/packages/accounts-api/CHANGELOG.md b/packages/accounts-api/CHANGELOG.md new file mode 100644 index 00000000000..b518709c7b8 --- /dev/null +++ b/packages/accounts-api/CHANGELOG.md @@ -0,0 +1,10 @@ +# 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] + +[Unreleased]: https://github.com/MetaMask/core/ diff --git a/packages/accounts-api/LICENSE b/packages/accounts-api/LICENSE new file mode 100644 index 00000000000..c8a0ff6be3a --- /dev/null +++ b/packages/accounts-api/LICENSE @@ -0,0 +1,20 @@ +MIT License + +Copyright (c) 2026 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 diff --git a/packages/accounts-api/README.md b/packages/accounts-api/README.md new file mode 100644 index 00000000000..7c310548dd5 --- /dev/null +++ b/packages/accounts-api/README.md @@ -0,0 +1,15 @@ +# `@metamask/accounts-api` + +Wraps the Accounts API. + +## Installation + +`yarn add @metamask/accounts-api` + +or + +`npm install @metamask/accounts-api` + +## Contributing + +This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme). diff --git a/packages/accounts-api/jest.config.js b/packages/accounts-api/jest.config.js new file mode 100644 index 00000000000..ca084133399 --- /dev/null +++ b/packages/accounts-api/jest.config.js @@ -0,0 +1,26 @@ +/* + * For a detailed explanation regarding each configuration property and type check, visit: + * https://jestjs.io/docs/configuration + */ + +const merge = require('deepmerge'); +const path = require('path'); + +const baseConfig = require('../../jest.config.packages'); + +const displayName = path.basename(__dirname); + +module.exports = merge(baseConfig, { + // The display name when running multiple projects + displayName, + + // An object that configures minimum threshold enforcement for coverage results + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, +}); diff --git a/packages/accounts-api/package.json b/packages/accounts-api/package.json new file mode 100644 index 00000000000..cfd2aaefa09 --- /dev/null +++ b/packages/accounts-api/package.json @@ -0,0 +1,78 @@ +{ + "name": "@metamask/accounts-api", + "version": "0.0.0", + "description": "Wraps the Accounts API", + "keywords": [ + "MetaMask", + "Ethereum" + ], + "homepage": "https://github.com/MetaMask/core/tree/main/packages/accounts-api#readme", + "bugs": { + "url": "https://github.com/MetaMask/core/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/MetaMask/core.git" + }, + "license": "MIT", + "sideEffects": false, + "exports": { + ".": { + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.cjs", + "types": "./dist/index.d.cts", + "files": [ + "dist/" + ], + "scripts": { + "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", + "build:all": "ts-bridge --project tsconfig.build.json --verbose --clean", + "build:docs": "typedoc", + "changelog:update": "../../scripts/update-changelog.sh @metamask/accounts-api", + "changelog:validate": "../../scripts/validate-changelog.sh @metamask/accounts-api", + "messenger-action-types:check": "tsx ../../packages/messenger-cli/src/cli.ts --check", + "messenger-action-types:generate": "tsx ../../packages/messenger-cli/src/cli.ts --generate", + "since-latest-release": "../../scripts/since-latest-release.sh", + "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", + "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", + "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", + "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch" + }, + "dependencies": { + "@metamask/base-data-service": "^0.1.1", + "@metamask/controller-utils": "^11.20.0", + "@metamask/messenger": "^1.1.1", + "@metamask/superstruct": "^3.1.0", + "@metamask/utils": "^11.9.0", + "@tanstack/query-core": "^4.43.0" + }, + "devDependencies": { + "@metamask/auto-changelog": "^3.4.4", + "@ts-bridge/cli": "^0.6.4", + "@types/jest": "^29.5.14", + "deepmerge": "^4.2.2", + "jest": "^29.7.0", + "ts-jest": "^29.2.5", + "tsx": "^4.20.5", + "typedoc": "^0.25.13", + "typedoc-plugin-missing-exports": "^2.0.0", + "typescript": "~5.3.3" + }, + "engines": { + "node": "^18.18 || >=20" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + } +} diff --git a/packages/accounts-api/src/accounts-api-service/accounts-api-service-method-action-types.ts b/packages/accounts-api/src/accounts-api-service/accounts-api-service-method-action-types.ts new file mode 100644 index 00000000000..1a7f57bfdaf --- /dev/null +++ b/packages/accounts-api/src/accounts-api-service/accounts-api-service-method-action-types.ts @@ -0,0 +1,37 @@ +/** + * This file is auto generated. + * Do not edit manually. + */ + +import type { AccountsApiService } from './accounts-api-service'; + +/** + * Get multi-account transactions (v4 endpoint). + * + * @param params - Essential params + * @param params.accountAddresses - Array of CAIP-10 account addresses. + * @param options - Query filter options. + * @param options.networks - Comma-separated CAIP-2 network IDs. + * @param options.startTimestamp - Start timestamp (epoch) from which to return results. + * @param options.endTimestamp - End timestamp (epoch) for which to return results. + * @param options.limit - Maximum number of transactions to request (default 50). + * @param options.after - JWT containing the endCursor for the query. + * @param options.before - JWT containing the startCursor for the query. + * @param options.sortDirection - Sort direction (ASC/DESC). + * @param options.includeLogs - Whether to include logs. + * @param options.includeTxMetadata - Whether to include transaction metadata. + * @param options.maxLogsPerTx - Maximum number of logs per transaction. + * @param options.lang - Language for transaction category (default "en"). + * @param page - Pagination cursors. + * @returns The multi-account transactions response. + */ +export type AccountsApiServiceFetchMultiAccountTransactionsV4Action = { + type: `AccountsApiService:fetchMultiAccountTransactionsV4`; + handler: AccountsApiService['fetchMultiAccountTransactionsV4']; +}; + +/** + * Union of all AccountsApiService action types. + */ +export type AccountsApiServiceMethodActions = + AccountsApiServiceFetchMultiAccountTransactionsV4Action; diff --git a/packages/accounts-api/src/accounts-api-service/accounts-api-service.ts b/packages/accounts-api/src/accounts-api-service/accounts-api-service.ts new file mode 100644 index 00000000000..fbcb013a6f9 --- /dev/null +++ b/packages/accounts-api/src/accounts-api-service/accounts-api-service.ts @@ -0,0 +1,381 @@ +import { BaseDataService } from '@metamask/base-data-service'; +import type { + DataServiceCacheUpdatedEvent, + DataServiceGranularCacheUpdatedEvent, + DataServiceInvalidateQueriesAction, +} from '@metamask/base-data-service'; +import type { CreateServicePolicyOptions } from '@metamask/controller-utils'; +import { HttpError } from '@metamask/controller-utils'; +import type { Messenger } from '@metamask/messenger'; +import type { Infer } from '@metamask/superstruct'; +import { + array, + boolean, + nullable, + number, + optional, + string, + type, + validate, +} from '@metamask/superstruct'; +import { Duration, inMilliseconds } from '@metamask/utils'; +import type { QueryClientConfig } from '@tanstack/query-core'; + +import type { AccountsApiServiceMethodActions } from './accounts-api-service-method-action-types'; + +// === GENERAL === + +/** + * The name of the {@link AccountsApiService}, used to namespace the + * service's actions and events. + */ +export const serviceName = 'AccountsApiService'; + +// === MESSENGER === + +/** + * All of the methods within {@link AccountsApiService} that are exposed via + * the messenger. + */ +const MESSENGER_EXPOSED_METHODS = ['fetchMultiAccountTransactionsV4'] as const; + +/** + * Invalidates cached queries for {@link AccountsApiService}. + */ +export type AccountsApiServiceInvalidateQueriesAction = + DataServiceInvalidateQueriesAction; + +/** + * Actions that {@link AccountsApiService} exposes to other consumers. + */ +export type AccountsApiServiceActions = + | AccountsApiServiceMethodActions + | AccountsApiServiceInvalidateQueriesAction; + +/** + * Actions from other messengers that {@link AccountsApiService} calls. + */ +type AllowedActions = never; + +/** + * Published when {@link AccountsApiService}'s cache is updated. + */ +export type AccountsApiServiceCacheUpdatedEvent = DataServiceCacheUpdatedEvent< + typeof serviceName +>; + +/** + * Published when a key within {@link AccountsApiService}'s cache is + * updated. + */ +export type AccountsApiServiceGranularCacheUpdatedEvent = + DataServiceGranularCacheUpdatedEvent; + +/** + * Events that {@link AccountsApiService} exposes to other consumers. + */ +export type AccountsApiServiceEvents = + | AccountsApiServiceCacheUpdatedEvent + | AccountsApiServiceGranularCacheUpdatedEvent; + +/** + * Events from other messengers that {@link AccountsApiService} subscribes + * to. + */ +type AllowedEvents = never; + +/** + * The messenger which is restricted to actions and events accessed by + * {@link AccountsApiService}. + */ +export type AccountsApiServiceMessenger = Messenger< + typeof serviceName, + AccountsApiServiceActions | AllowedActions, + AccountsApiServiceEvents | AllowedEvents +>; + +// === SERVICE DEFINITION === + +/** + * Struct to validate what the API endpoint returns. + */ +const MultiAccountTransactionsV4ResponseStruct = type({ + unprocessedNetworks: array(string()), + pageInfo: type({ + count: number(), + hasPreviousPage: boolean(), + hasNextPage: boolean(), + startCursor: optional(nullable(string())), + endCursor: optional(nullable(string())), + }), + data: array( + type({ + hash: string(), + timestamp: string(), + chainId: number(), + blockNumber: number(), + blockHash: string(), + gas: number(), + gasUsed: number(), + gasPrice: string(), + effectiveGasPrice: string(), + nonce: number(), + cumulativeGasUsed: number(), + methodId: optional(nullable(string())), + value: string(), + to: string(), + from: string(), + isError: optional(boolean()), + valueTransfers: optional( + array( + type({ + from: string(), + to: string(), + amount: string(), + decimal: number(), + contractAddress: optional(string()), + symbol: string(), + name: string(), + transferType: string(), + }), + ), + ), + logs: optional( + array( + type({ + data: string(), + topics: array(string()), + address: string(), + logIndex: number(), + }), + ), + ), + transactionType: optional(string()), + transactionCategory: optional(string()), + transactionProtocol: optional(string()), + }), + ), +}); + +/** + * What the API endpoint returns. + */ +type MultiAccountTransactionsV4Response = Infer< + typeof MultiAccountTransactionsV4ResponseStruct +>; + +/** + * The base URL of the API that the service represents. + */ +const BASE_URL = 'https://accounts.api.cx.metamask.io'; + +/** + * This service class wraps the Accounts API. + * + * @example + * + * ``` ts + * // === Setup === + * + * import type { MessengerActions, MessengerEvents } from '@metamask/messenger'; + * import { Messenger } from '@metamask/messenger'; + * import type { + * AccountsApiServiceMessenger, + * } from '@metamask/accounts-api'; + * + * const rootMessenger = new Messenger< + * 'Root', + * AccountsApiServiceActions + * AccountsApiServiceEvents + * >({ namespace: 'Root' }); + * const accountsApiServiceMessenger = new Messenger< + * 'AccountsApiService', + * MessengerActions, + * MessengerEvents, + * typeof rootMessenger, + * >({ + * namespace: 'AccountsApiService', + * parent: rootMessenger, + * }); + * // Instantiate the service to register its actions on the messenger + * new AccountsApiService({ + * messenger: accountsApiServiceMessenger, + * }); + * + * // ... Later ... + * + * // Fetch the past week's accountss on Mainnet for ETH, in USD + * const transactions = await rootMessenger.call( + * 'AccountsApiService:fetchMultiAccountTransactionsV4', + * params: { + * accountAddresses: ['eip155:1:0x123'], + * }, + * options: { + * sortDirection: 'DESC', + * }, + * ); + * + * // The same thing, only using React Query + * + * import { useQuery } from '@metamask/react-data-query'; + * + * const { data, isFetching } = useQuery({ + * queryKey: [ + * 'AccountsApiService:fetchMultiAccountTransactionsV4' as const, + * { + * params: { + * accountAddresses: ['eip155:1:0x123'] + * }, + * options: { + * sortDirection: 'DESC', + * }, + * }, + * ], + * }); + * ``` + */ +export class AccountsApiService extends BaseDataService< + typeof serviceName, + AccountsApiServiceMessenger +> { + /** + * Constructs a new AccountsApiService object. + * + * @param args - The constructor arguments. + * @param args.messenger - The messenger suited for this service. + * @param args.queryClientConfig - Configuration for the underlying TanStack + * Query client. + * @param args.policyOptions - Options to pass to `createServicePolicy`, which + * is used to wrap each request. See {@link CreateServicePolicyOptions}. + */ + constructor({ + messenger, + queryClientConfig = {}, + policyOptions = {}, + }: { + messenger: AccountsApiServiceMessenger; + queryClientConfig?: QueryClientConfig; + policyOptions?: CreateServicePolicyOptions; + }) { + super({ + name: serviceName, + messenger, + queryClientConfig, + policyOptions, + }); + + this.messenger.registerMethodActionHandlers( + this, + MESSENGER_EXPOSED_METHODS, + ); + } + + /** + * Get multi-account transactions (v4 endpoint). + * + * @param params - Essential params + * @param params.accountAddresses - Array of CAIP-10 account addresses. + * @param options - Query filter options. + * @param options.networks - Comma-separated CAIP-2 network IDs. + * @param options.startTimestamp - Start timestamp (epoch) from which to return results. + * @param options.endTimestamp - End timestamp (epoch) for which to return results. + * @param options.limit - Maximum number of transactions to request (default 50). + * @param options.after - JWT containing the endCursor for the query. + * @param options.before - JWT containing the startCursor for the query. + * @param options.sortDirection - Sort direction (ASC/DESC). + * @param options.includeLogs - Whether to include logs. + * @param options.includeTxMetadata - Whether to include transaction metadata. + * @param options.maxLogsPerTx - Maximum number of logs per transaction. + * @param options.lang - Language for transaction category (default "en"). + * @param page - Pagination cursors. + * @returns The multi-account transactions response. + */ + async fetchMultiAccountTransactionsV4( + params: { + accountAddresses: string[]; + }, + options?: { + networks?: string[]; + startTimestamp?: number; + endTimestamp?: number; + limit?: number; + after?: string; + before?: string; + sortDirection?: 'ASC' | 'DESC'; + includeLogs?: boolean; + includeTxMetadata?: boolean; + maxLogsPerTx?: number; + lang?: string; + }, + page?: { before: string } | { after: string }, + ): Promise { + const normalizedParams = { + accountAddresses: [...params.accountAddresses].sort(), + ...options, + }; + if (options?.networks) { + normalizedParams.networks = [...options.networks].sort(); + } + + let url: URL; + if (params) { + url = new URL('/v4/multiaccount/transactions', BASE_URL); + for (const [key, value] of Object.entries(normalizedParams)) { + if (value !== undefined) { + url.searchParams.append( + key, + Array.isArray(value) ? value.join(',') : value.toString(), + ); + } + } + } + + const jsonResponse = + await this.fetchInfiniteQuery( + { + queryKey: [ + `${this.name}:fetchMultiAccountTransactionsV4`, + normalizedParams, + ], + queryFn: async ({ signal }) => { + const response = await fetch(url, { signal }); + + if (!response.ok) { + throw new HttpError( + response.status, + `Accounts API failed with status '${response.status}'`, + ); + } + + return response.json(); + }, + staleTime: inMilliseconds(30, Duration.Second), + getPreviousPageParam: ({ pageInfo }) => + pageInfo.hasPreviousPage + ? { before: pageInfo.startCursor } + : undefined, + getNextPageParam: ({ pageInfo }) => + pageInfo.hasNextPage ? pageInfo.endCursor : undefined, + }, + page, + ); + + const [error, validJsonResponse] = validate( + jsonResponse, + MultiAccountTransactionsV4ResponseStruct, + ); + if (error) { + throw new Error( + `Malformed response received from Accounts API: ${error + .failures() + .map( + (failure) => + `At ${failure.path.join('.')}->${failure.key}, ${failure.message}`, + ) + .join('; ')}`, + ); + } + + return validJsonResponse; + } +} diff --git a/packages/accounts-api/src/index.ts b/packages/accounts-api/src/index.ts new file mode 100644 index 00000000000..0485a2769b2 --- /dev/null +++ b/packages/accounts-api/src/index.ts @@ -0,0 +1,10 @@ +export type { + AccountsApiServiceActions, + AccountsApiServiceCacheUpdatedEvent, + AccountsApiServiceEvents, + AccountsApiServiceGranularCacheUpdatedEvent, + AccountsApiServiceInvalidateQueriesAction, + AccountsApiServiceMessenger, +} from './accounts-api-service/accounts-api-service'; +export type { AccountsApiServiceFetchMultiAccountTransactionsV4Action } from './accounts-api-service/accounts-api-service-method-action-types'; +export { AccountsApiService } from './accounts-api-service/accounts-api-service'; diff --git a/packages/accounts-api/tsconfig.build.json b/packages/accounts-api/tsconfig.build.json new file mode 100644 index 00000000000..02d3bf93d6f --- /dev/null +++ b/packages/accounts-api/tsconfig.build.json @@ -0,0 +1,14 @@ +{ + "extends": "../../tsconfig.packages.build.json", + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist", + "rootDir": "./src" + }, + "references": [ + { "path": "../base-data-service/tsconfig.build.json" }, + { "path": "../controller-utils/tsconfig.build.json" }, + { "path": "../messenger/tsconfig.build.json" } + ], + "include": ["../../types", "./src"] +} diff --git a/packages/accounts-api/tsconfig.json b/packages/accounts-api/tsconfig.json new file mode 100644 index 00000000000..e514ad1c607 --- /dev/null +++ b/packages/accounts-api/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.packages.json", + "compilerOptions": { + "baseUrl": "./" + }, + "references": [ + { "path": "../base-data-service" }, + { "path": "../controller-utils" }, + { "path": "../messenger" } + ], + "include": ["../../types", "./src"] +} diff --git a/packages/accounts-api/typedoc.json b/packages/accounts-api/typedoc.json new file mode 100644 index 00000000000..c9da015dbf8 --- /dev/null +++ b/packages/accounts-api/typedoc.json @@ -0,0 +1,7 @@ +{ + "entryPoints": ["./src/index.ts"], + "excludePrivate": true, + "hideGenerator": true, + "out": "docs", + "tsconfig": "./tsconfig.build.json" +} diff --git a/teams.json b/teams.json index b2648bc9e8d..ce9b31e9104 100644 --- a/teams.json +++ b/teams.json @@ -75,5 +75,6 @@ "metamask/remote-feature-flag-controller": "team-extension-platform,team-mobile-platform", "metamask/storage-service": "team-extension-platform,team-mobile-platform", "metamask/config-registry-controller": "team-networks", - "metamask/money-account-controller": "team-accounts-framework" + "metamask/money-account-controller": "team-accounts-framework", + "metamask/accounts-api": "team-core-platform" } diff --git a/tsconfig.build.json b/tsconfig.build.json index b02f3a882f5..ef192c60f05 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -237,6 +237,9 @@ }, { "path": "./packages/user-operation-controller/tsconfig.build.json" + }, + { + "path": "./packages/accounts-api/tsconfig.build.json" } ], "files": [], diff --git a/tsconfig.json b/tsconfig.json index 7eb3aadc457..33d7c4b9c9d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -226,6 +226,9 @@ }, { "path": "./packages/user-operation-controller" + }, + { + "path": "./packages/accounts-api" } ], "files": [], diff --git a/yarn.lock b/yarn.lock index 4aed557b33a..d256df471ae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2560,6 +2560,29 @@ __metadata: languageName: unknown linkType: soft +"@metamask/accounts-api@workspace:packages/accounts-api": + version: 0.0.0-use.local + resolution: "@metamask/accounts-api@workspace:packages/accounts-api" + dependencies: + "@metamask/auto-changelog": "npm:^3.4.4" + "@metamask/base-data-service": "npm:^0.1.1" + "@metamask/controller-utils": "npm:^11.20.0" + "@metamask/messenger": "npm:^1.1.1" + "@metamask/superstruct": "npm:^3.1.0" + "@metamask/utils": "npm:^11.9.0" + "@tanstack/query-core": "npm:^4.43.0" + "@ts-bridge/cli": "npm:^0.6.4" + "@types/jest": "npm:^29.5.14" + deepmerge: "npm:^4.2.2" + jest: "npm:^29.7.0" + ts-jest: "npm:^29.2.5" + tsx: "npm:^4.20.5" + typedoc: "npm:^0.25.13" + typedoc-plugin-missing-exports: "npm:^2.0.0" + typescript: "npm:~5.3.3" + languageName: unknown + linkType: soft + "@metamask/accounts-controller@npm:^37.2.0, @metamask/accounts-controller@workspace:packages/accounts-controller": version: 0.0.0-use.local resolution: "@metamask/accounts-controller@workspace:packages/accounts-controller"