From af27ba20a22d70222522b4e99c9644bd2c542967 Mon Sep 17 00:00:00 2001 From: gohumble Date: Sat, 4 May 2024 20:09:12 +0200 Subject: [PATCH] updated MethodTypes --- info.proto | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/info.proto b/info.proto index 2c0b5c0..b13a3e3 100644 --- a/info.proto +++ b/info.proto @@ -1,5 +1,6 @@ syntax = "proto3"; package cashu.v1; +import "mint.proto" option go_package = "github.com/cashu/rpc/info"; enum MethodType { @@ -14,9 +15,14 @@ enum ContactType { twitter = 2; nostr = 3; } - +message MethodTypes { + MethodType method = 1; + UnitType unit = 2; + uint64 min_amount = 3; + uint64 max_amount = 4; +} message NutDetails { - repeated MethodType methods = 1; + repeated MethodTypes methods = 1; bool disabled = 2; bool supported = 3; } @@ -32,7 +38,7 @@ message Contact { } message InfoRequest { - + } message InfoResponse { string name = 1;