Browse Source

loopd: add suggestions endpoints to macaroons

pull/301/head
carla 4 weeks ago
parent
commit
ad2b37e709
No known key found for this signature in database GPG Key ID: 4CA7FE54A6213C91
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      loopd/macaroons.go

+ 18
- 0
loopd/macaroons.go 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

Loading…
Cancel
Save