Page MenuHomePhabricator

[chronik-client] Improve organization of subscriptions in ws object
ClosedPublic

Authored by bytesofman on Mar 4 2024, 22:06.

Details

Summary

When ws.subs was designed, only scripts could be subscribed to. Now we support blocks. Soon we will support tokens. And later could support plugins.

Organize all the subscriptions in subs. Change from array to typed object.

Update tests to match new type.

Note: this is a breaking change, but impact is expected to be minimal as in-node chronik is still rolling out.

Test Plan

CI

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable