loopd: add suggestions endpoints to macaroons

This commit is contained in:
carla 2020-09-30 11:15:30 +02:00
parent 04af7f8bfc
commit ad2b37e709
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91

View file

@ -80,6 +80,18 @@ var (
Entity: "auth",
Action: "read",
}},
"/looprpc.SwapClient/SuggestSwaps": {{
Entity: "suggestions",
Action: "read",
}},
"/looprpc.SwapClient/GetLiquidityParams": {{
Entity: "suggestions",
Action: "read",
}},
"/looprpc.SwapClient/SetLiquidityParams": {{
Entity: "suggestions",
Action: "write",
}},
}
// allPermissions is the list of all existing permissions that exist
@ -104,6 +116,12 @@ var (
}, {
Entity: "auth",
Action: "read",
}, {
Entity: "suggestions",
Action: "read",
}, {
Entity: "suggestions",
Action: "write",
}}
// macDbDefaultPw is the default encryption password used to encrypt the