forked from comit-network/xmr-btc-swap
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
refactoringRelated to refactorings. No new features are added.Related to refactorings. No new features are added.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
refactoringRelated to refactorings. No new features are added.Related to refactorings. No new features are added.