Write new gRPC/protospec for AtomicSwapPairs on Haveno #4

Open
opened 2025-06-18 09:52:29 +00:00 by kewbit · 0 comments
Owner

It will require:

An AtomicSwapService (gRPC), along with GetAtomicSwapPairsRequest and GetAtomicSwapPairReply (protobuf) for multi-currency accommodation.

Let's take Dart for example:

GetAtomicSwapPairsReply? atomicSwapPairsReply =  await getAtomicSwapService.getAtomicSwapPairs(Get);
List<AtomicSwapPairInfo> atomicSwapPairs = atomicSwapPairsReply.atomicSwapPairs;
for (pair in atomicSwapPairs) {
    print("${pair.name}");
}

This requires additions to pb.proto and grpc.proto

NOTE:
This is hardcoded, it's not often a new pair is added, once in a blue moon. See the other tasks for an idea on getting real-time availability of atomic swaps.

It will require: An **AtomicSwapService** (gRPC), along with **GetAtomicSwapPairsRequest** and **GetAtomicSwapPairReply** (protobuf) for multi-currency accommodation. Let's take Dart for example: ```dart GetAtomicSwapPairsReply? atomicSwapPairsReply = await getAtomicSwapService.getAtomicSwapPairs(Get); List<AtomicSwapPairInfo> atomicSwapPairs = atomicSwapPairsReply.atomicSwapPairs; for (pair in atomicSwapPairs) { print("${pair.name}"); } ``` This requires additions to **pb.proto** and **grpc.proto** NOTE: This is hardcoded, it's not often a new pair is added, once in a blue moon. See the other tasks for an idea on getting real-time availability of atomic swaps.
kewbit added this to the Embed Atomic Swaps into Haveno natively project 2025-06-18 09:52:29 +00:00
kewbit added the
enhancement
label 2025-06-18 10:14:09 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: haveno-network/haveno-core#4
No description provided.