Replies: 1 comment 1 reply
-
|
I like this idea, Are you going to seperate every connector: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This RFC (Request for Comments) document outlines the updates to the current architecture of adapters (aka connectors) to minimize the package bloating, yet enabling other projects to use all adapters (aka connectors) in a single package to implement a better wallet connection experience.
Also, since the focus of this RFC is connectors, it is proposed to implement all the connectors that exist in
@cosmos-kit/reactas such proposes a variety of connectors, whilegrazimplements only some of them.Motivation
Given that
wagmiefficiently manages its connectors by separating all of them under@wagmi/connectorspackage, it seems beneficial forgrazto adopt a similar approach. This would reduce amount of packages, yet would still tree-shake effectively sincegrazwould not introduceindex.tsbarrel files for such, reducing the consumer's bundle size, and keeping thegrazas a codebase more granular.As well as adding more connectors would inspire more FE engineers to use the library since it would offer the same variety of connectors that
@cosmos-kit/reacthas, yet offering a better developer experience using the variety of hooksgrazoffers.Goals
The primary objectives are:
@graz-sh/connectorspackage which would have all the existing adapters moved into;@cosmos-kit/reactoffers to have a better variety of wallets to connect to;AdaptertoConnector, as well as getting rid of unnecessary interface extension sinceConnectoris not being used anywhere, thus being an useless export, and getting rid ofGrazprefix as it is implicitly known for a consumer that such a type comes fromgraz:graz/packages/graz/src/adapter/index.ts
Lines 11 to 23 in 137b2dc
Beta Was this translation helpful? Give feedback.
All reactions