MetaMask / keyring-api

https://www.npmjs.com/package/@metamask/keyring-api
16 stars 5 forks source link

Convert `@metamask/keyring-api` to monorepo #240

Open gantunesr opened 5 months ago

gantunesr commented 5 months ago

Description

In order to improve the maintainability of this package and its consumers we should convert it into a monorepo that contains two main packages,

Notes

Gudahtt commented 5 months ago

Could we consider moving the keyring API to the core monorepo instead, leaving the SDK here? That might be simpler than setting up a monorepo, and we wanted all of the keyring packages used by extension/mobile to be in core eventually anyway

danroc commented 5 months ago

I'd prefer to move to a monorepo, but I'm OK with moving the API to the core monorepo until we have the capacity to work on it.

A breakdown could be as follows:

Files Package
eth/ keyring-internal-api
internal/ keyring-internal-api
api.ts keyring-api
events.ts keyring-snap-sdk
JsonRpcRequest.ts keyring-snap-sdk
KeyringClient.ts keyring-snap-client
KeyringSnapControllerClient.ts keyring-snap-client
KeyringSnapRpcClient.ts keyring-snap-client
rpc-handler.ts keyring-snap-sdk
snap-utils.ts keyring-snap-sdk
superstruct.ts keyring-utils
utils.ts keyring-utils

And, pending verification, the dependencies would be:

graph TD
  keyring-api --> keyring-utils
  keyring-internal-api --> keyring-api
  keyring-internal-api --> keyring-utils
  keyring-snap-sdk --> keyring-api
  keyring-snap-sdk --> keyring-utils
  keyring-snap-client --> keyring-api
  keyring-snap-client --> keyring-utils
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.