-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.proto
55 lines (46 loc) · 879 Bytes
/
info.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
syntax = "proto3";
package cashu.v1;
import "mint.proto";
option go_package = "gen/go/cashurpc";
enum MethodType {
method_unspecified = 0;
bolt11 = 1;
// add more if needed
}
enum ContactType {
contact_unspecified = 0;
email = 1;
twitter = 2;
nostr = 3;
}
message MethodTypes {
MethodType method = 1;
UnitType unit = 2;
uint64 min_amount = 3;
uint64 max_amount = 4;
}
message NutDetails {
repeated MethodTypes methods = 1;
bool disabled = 2;
bool supported = 3;
}
message Nut {
int32 id = 1;
NutDetails nutDetails = 2;
}
message Contact {
ContactType type = 1;
string info = 2;
}
message InfoRequest {
}
message InfoResponse {
string name = 1;
string pubkey = 2;
string version = 3;
string description = 4;
string description_long = 5;
repeated Contact contact = 6;
string motd = 7;
map<int32, NutDetails> nuts = 8;
}