Skip to content

[0.7 XMR] Refactor request types and tauri commands #860

@binarybaron

Description

@binarybaron

Currently we have to manually define both the RequestArgs, RequestResponse structs and they all must be in the same file implemented. I want to instead have functions on the structs of the stuff stored in the Context (e.g bitcoin_wallet). And those function should be directly callable from TypeScript using an IPC invocation (see rpc.ts.

The goal is to be able to implement these function all around the codebase. Also to have less boilerplate code.

I can imagine solutions using Rust macros, combined with typeshare or some build script.

Please provide an overview over your proposed solution before opening a PR. This allows us to give feedback on whether the system meets our expectations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringRelated to refactorings. No new features are added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions