Skip to content
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

De-couple utils lib from crypto protocol libs #5321

Open
jmrossy opened this issue Jan 29, 2025 · 0 comments
Open

De-couple utils lib from crypto protocol libs #5321

jmrossy opened this issue Jan 29, 2025 · 0 comments

Comments

@jmrossy
Copy link
Contributor

jmrossy commented Jan 29, 2025

Problem

The utils lib requires a crypto lib for each protocol support (Ethers for Evm, Solana Web3, CosmJS). The primary use case is for address validation and formatting (see src/addresses.ts) but Ethers is used in a few other places too.

This dependency will prohibit the effective design of a plugin-based architecture for protocols and will continue to inflate the utils package size as more protocols are added.

Solution

Either replace the uses of those libs with custom code or move the offending code (e.g. addresses.ts) to the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant