Skip to content

refactor(wallet-sdk): allow wallet SDK plugins to use namespaces, simplify plugin registration#2099

Open
mateuszpiatkowski-da wants to merge 1 commit into
mainfrom
mateusz-piatkowski/da-allow-wallet-sdk-plugins-to-use-namespaces
Open

refactor(wallet-sdk): allow wallet SDK plugins to use namespaces, simplify plugin registration#2099
mateuszpiatkowski-da wants to merge 1 commit into
mainfrom
mateusz-piatkowski/da-allow-wallet-sdk-plugins-to-use-namespaces

Conversation

@mateuszpiatkowski-da

Copy link
Copy Markdown
Contributor

No description provided.

…space in plugin class

Signed-off-by: Mateusz Piątkowski <mateusz.piatkowski@digitalasset.com>
@mateuszpiatkowski-da mateuszpiatkowski-da requested a review from a team as a code owner July 9, 2026 13:06
@mateuszpiatkowski-da mateuszpiatkowski-da linked an issue Jul 9, 2026 that may be closed by this pull request
@mateuszpiatkowski-da mateuszpiatkowski-da self-assigned this Jul 9, 2026
Comment thread examples/portfolio/src/hooks/useWalletSdk.ts
Comment thread examples/portfolio/src/lib/utilities-wallet-sdk-plugin.ts
@mateuszpiatkowski-da

Copy link
Copy Markdown
Contributor Author

@fayi-da @rukmini-basu-da please let me know your thoughts if you have a moment to spare :) Thank you!

Comment on lines -171 to +173
public registerPlugins<
P extends Record<string, new (ctx: SDKContext) => SDKPlugin>,
>(plugins: P): SDKInterface<CurrentlyExtended> & RegisteredPlugins<P> {
public registerPlugins<P extends PluginConstructor[]>(
plugins: P
): SDKInterface<CurrentlyExtended> & RegisteredPlugins<P> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm didn't think of it this way. The change of interface might be breaking 🤔 in this case I think I'm gonna put it on hold until we release another version? WDYT? @fayi-da

Comment thread examples/portfolio/src/lib/utilities-wallet-sdk-plugin.ts
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.

allow wallet-sdk plugins to use namespaces

2 participants