Skip to content

Conversation

@sinzii
Copy link
Member

@sinzii sinzii commented Oct 29, 2025

This PR is a big work to revamping the DedotClient interface as a unified interface for both legacy or new JSON PRC specs. There will be some breaking changes on the interface but most of the features will work as it was before.

Now we only have one DedotClient interface for both legacy & new JSON RPC specs:

// via new JSON-RPC specs, default
const client = DedotClient.new(new WsProvider('wss://...'));

// via legacy JSON-RPC specs
const client = DedotClient.legacy(new WsProvider('wss://...'));

// or
const client = DedotClient.new({ provider: new WsProvider('wss://...'), rpcVersion: 'legacy' });

@sinzii sinzii changed the title feat!: improve clients interface feat!: unified DedotClient interface Oct 30, 2025
@sinzii sinzii marked this pull request as ready for review October 30, 2025 17:03
@sinzii sinzii merged commit ffbe8da into main Oct 30, 2025
4 of 6 checks passed
@sinzii sinzii deleted the tvu-improve-clients branch October 30, 2025 17:49
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.

2 participants