Skip to content

Conversation

effie-ms
Copy link
Contributor

@effie-ms effie-ms commented Aug 25, 2025

Which Jira task is linked to this PR?

LF-15704

Why was it implemented this way?

Separates ecosystem handlers into separate packages, for modular architecture, not to bundle them within the widget when users do not use them.

The idea is that widget context providers with their dependencies are packaged intp separate packages (e.g. @lifi/widget-provider-sui), and then, if they are installed and imported by users and passed as props to , the widget renders them. On render, all the handlers and info needed by wallet-management get set to the @lifi/widget-provider. And when wallet-management needs anything, it reads the info/handlers from the widget-provider (not imports them from external libs as before). So both widget and wallet-management become independent from external dependencies.
A separate package for the widget-provider is needed to avoid circular dependencies.

Modular architecture (2)

TODO:

  1. formatUnits(), parseUnits(), isHex() - now copy-pasted from viem to widget. Move to SDK?
  2. Once wallet provider packages are released, change their versions in examples/ (+ proper testing needed)
  3. Public documentation update
  4. Installation instructions - need longer README
  5. Split chains.types config into from and to

@effie-ms effie-ms self-assigned this Aug 25, 2025
@effie-ms effie-ms changed the title feat: prototype for modular architecture, sui example feat: prototype for modular architecture, sui/solana example Sep 1, 2025
Copy link

Hey! This is your new endpoint: https://e5bc91ec.widget-featmodula.pages.dev

@effie-ms effie-ms changed the title feat: prototype for modular architecture, sui/solana example feat: prototype for modular architecture Sep 26, 2025
Copy link

Hey! This is your new endpoint: https://1cea12e1.widget-featmodula.pages.dev

Copy link

Hey! This is your new endpoint: https://d3f3226b.widget-featmodula.pages.dev

Copy link

Hey! This is your new endpoint: https://c8ac33ba.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 3, 2025

Hey! This is your new endpoint: https://24a2e4aa.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 3, 2025

Hey! This is your new endpoint: https://df7f1dad.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 3, 2025

Hey! This is your new endpoint: https://5051dc9c.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 6, 2025

Hey! This is your new endpoint: https://0fcc7c79.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 6, 2025

Hey! This is your new endpoint: https://035e0435.widget-featmodula.pages.dev

Copy link

github-actions bot commented Oct 7, 2025

Hey! This is your new endpoint: https://fb02582c.widget-featmodula.pages.dev

@effie-ms effie-ms changed the title feat: prototype for modular architecture feat: modular widget Oct 8, 2025
Copy link

Hey! This is your new endpoint: https://3e3a5af6.widget-featmodula.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant