Skip to content

MSB - Interactive mode and RPC code refactoring - pt1#410

Closed
jusufsuljic wants to merge 1 commit intomainfrom
409-msb-refactoring-pt2-j
Closed

MSB - Interactive mode and RPC code refactoring - pt1#410
jusufsuljic wants to merge 1 commit intomainfrom
409-msb-refactoring-pt2-j

Conversation

@jusufsuljic
Copy link
Copy Markdown
Contributor

@jusufsuljic jusufsuljic commented Dec 18, 2025

Next high‑value step: introduce a small src/interface/msbInterface.js that exposes data‑oriented operations (balance, account, tx details, broadcast, etc.) and refactor rpc_services.js to be a thin pass‑through to that instead of using cli.js helpers or state directly.

Then: point the CLI adapter (CommandLineHandler) at the same interface module for read‑type operations (getBalance, account, tx details), while keeping admin/role operations as direct MSB method calls for now.

Finally (optional): add a few focused tests around the CLI adapter using a mocked interface/MSB to validate parsing and routing.

@leonardotc
Copy link
Copy Markdown
Contributor

This was reused by my pr/

@leonardotc leonardotc closed this Apr 20, 2026
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