Skip to content

Commit

Permalink
updated MethodTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
gohumble committed May 4, 2024
1 parent 23f89ba commit af27ba2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions info.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
syntax = "proto3";
package cashu.v1;
import "mint.proto"
option go_package = "github.com/cashu/rpc/info";

enum MethodType {
Expand All @@ -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;
}
Expand All @@ -32,7 +38,7 @@ message Contact {
}

message InfoRequest {

}
message InfoResponse {
string name = 1;
Expand Down

0 comments on commit af27ba2

Please sign in to comment.