Skip to content

move from IPC to HTTP #371

@naps62

Description

@naps62

Problem

We currently rely on #[tauri::command] to define endpoints to communicate between the UI and the desktop app.
This heavily couples all of our components to tauri, and makes it difficult to work with other layers. e.g.: the app doesn't work on a browser (even though it is running on localhost:1420), largely because of this. It's also impossible to communicate with this endpoints from outside the JS in the webview.

Solution

Create a new iron_http, to live side by side with iron_ws. the root endpoint should behave as an ethereum RPC, and an additional /iron/ namespace should include endpoints for dealing with all the things that are currently tauri commands

the app should now launch both a WS and an HTTP server on boot. Both can be used as an Ethereum provider

Checklist

Metadata

Metadata

Assignees

Labels

A-featureA new finished feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions