Skip to content

Docs/improve package readmes #5840

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lukasbauer54
Copy link

Explanation

This PR improves the README files for the following 15 packages by adding clear descriptions of their purposes and usage examples:

base-controller
controller-utils
bridge-status-controller
bridge-controller
assets-controllers
user-operation-controller
transaction-controller
keyring-controller
network-controller
signature-controller
gas-fee-controller
permission-controller
notification-services-controller
multichain-network-controller
preferences-controller

References

addressing issue #5742

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

…ler, and controller-utils

- Expanded documentation for `@metamask/base-controller` to include detailed features, usage examples, and API reference.
- Updated `@metamask/bridge-status-controller` README with comprehensive features, usage instructions, and state management details.
- Improved `@metamask/controller-utils` documentation by adding examples for hex utilities, safe execution, network operations, and data validation functions.
… and user-operation-controller

- Expanded documentation for `@metamask/assets-controllers` to include detailed features, usage examples, and API reference for managing ERC-20, ERC-721, and ERC-1155 tokens, as well as DeFi positions and currency rates.
- Updated `@metamask/bridge-controller` README with comprehensive features, usage instructions, and state management details for cross-chain token swaps.
- Improved `@metamask/user-operation-controller` documentation by detailing user operation management, transaction conversion, and bundler integration.
…, and transaction-controller

- Expanded documentation for `@metamask/keyring-controller` to include detailed features, usage examples, and state management for cryptographic identities and keyring operations.
- Updated `@metamask/network-controller` README with comprehensive features, usage instructions, and state management details for network configurations and interactions.
- Improved `@metamask/transaction-controller` documentation by detailing transaction lifecycle management, gas fee handling, and error handling strategies.
…ler, and signature-controller

- Expanded documentation for `@metamask/gas-fee-controller` to include detailed features, usage examples, and state management for gas fee estimations, supporting both legacy and EIP-1559 pricing.
- Updated `@metamask/permission-controller` README with comprehensive features, usage instructions, and state management details for managing permissions and caveats.
- Improved `@metamask/signature-controller` documentation by detailing signature request management, types of signatures supported, and error handling strategies.
…ation-services-controller, and preferences-controller

- Expanded documentation for `@metamask/multichain-network-controller` to include detailed features, usage examples, and state management for multi-chain network configurations, supporting both EVM and non-EVM networks.
- Updated `@metamask/notification-services-controller` README with comprehensive features, usage instructions, and state management details for managing various notification types and push services across platforms.
- Improved `@metamask/preferences-controller` documentation by detailing user-configurable settings, feature flag management, and error handling strategies for user preferences in MetaMask.
@lukasbauer54 lukasbauer54 requested review from a team as code owners May 21, 2025 09:03
@lukasbauer54
Copy link
Author

Hi @mcmire , Could you please review the changes and let me know if I’m heading in the right direction? If everything looks good, I’d appreciate it if you could go ahead and merge this. I’ll send a separate PR for the remaining packages shortly.
If there’s anything that needs to be changed or improved, please let me know.
Thanks!

@mcmire
Copy link
Contributor

mcmire commented May 21, 2025

Thank you @lukasbauer54, I will try to review this when I get a chance.

@lukasbauer54
Copy link
Author

lukasbauer54 commented Jun 3, 2025

@mcmire Sure. Let me know if I need to fix anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants