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
Branch
cc-ws-org-change
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27652
Build 54867: Build Diffchronik-client-tests · chronik-client-integration-tests
Build 54866: arc lint + arc unit