Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ linkStyle default opacity:0.5
claims_controller --> profile_sync_controller;
client_controller --> base_controller;
client_controller --> messenger;
client_utils --> controller_utils;
client_utils --> core_backend;
client_utils --> transaction_controller;
compliance_controller --> base_controller;
compliance_controller --> controller_utils;
compliance_controller --> messenger;
Expand Down
5 changes: 5 additions & 0 deletions packages/client-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Initial release of the `@metamask/client-utils` package for functions and utilities shared across MetaMask clients (extension and mobile) ([#9375](https://github.com/MetaMask/core/pull/9375))
- Add transaction activity mappers and shared activity types ([#9376](https://github.com/MetaMask/core/pull/9376))
- `mapApiTransaction` for mapping EVM API transactions to activity items
- `mapKeyringTransaction` for mapping keyring transactions to activity items
- `mapLocalTransaction` for mapping local transaction groups to activity items
- Shared activity types (`ActivityItem`, `ActivityKind`, `Status`, etc.)

[Unreleased]: https://github.com/MetaMask/core/
9 changes: 9 additions & 0 deletions packages/client-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@
"test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
},
"dependencies": {
"@metamask/contract-metadata": "^2.4.0",
"@metamask/controller-utils": "^12.3.0",
"@metamask/core-backend": "^6.5.0",
"@metamask/keyring-api": "^23.3.0",
"@metamask/transaction-controller": "^68.2.2",
"@metamask/utils": "^11.11.0"
},
"devDependencies": {
"@ethersproject/abi": "^5.7.0",
"@metamask/auto-changelog": "^6.1.0",
"@ts-bridge/cli": "^0.6.4",
"@types/jest": "^29.5.14",
Expand Down
9 changes: 0 additions & 9 deletions packages/client-utils/src/index.test.ts

This file was deleted.

8 changes: 5 additions & 3 deletions packages/client-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export default function greeter(name: string): string {
return `Hello, ${name}!`;
}
export { mapApiTransaction } from './mappers/api-transaction-mapper';
export { mapKeyringTransaction } from './mappers/keyring-transaction-mapper';
export { mapLocalTransaction } from './mappers/local-transaction-mapper';

export type * from './types';
Loading