Skip to content

Commit 48744e8

Browse files
authored
Merge pull request #301 from carlaKC/macaroons-suggestionendpoint
loopd: add suggestions endpoints to macaroon permissions
2 parents 04af7f8 + ad2b37e commit 48744e8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

loopd/macaroons.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ var (
8080
Entity: "auth",
8181
Action: "read",
8282
}},
83+
"/looprpc.SwapClient/SuggestSwaps": {{
84+
Entity: "suggestions",
85+
Action: "read",
86+
}},
87+
"/looprpc.SwapClient/GetLiquidityParams": {{
88+
Entity: "suggestions",
89+
Action: "read",
90+
}},
91+
"/looprpc.SwapClient/SetLiquidityParams": {{
92+
Entity: "suggestions",
93+
Action: "write",
94+
}},
8395
}
8496

8597
// allPermissions is the list of all existing permissions that exist
@@ -104,6 +116,12 @@ var (
104116
}, {
105117
Entity: "auth",
106118
Action: "read",
119+
}, {
120+
Entity: "suggestions",
121+
Action: "read",
122+
}, {
123+
Entity: "suggestions",
124+
Action: "write",
107125
}}
108126

109127
// macDbDefaultPw is the default encryption password used to encrypt the

0 commit comments

Comments
 (0)