looprpc: add StaticOpenChannel permissions and fix StaticAddressLoopIn

Add macaroon permissions for the new StaticOpenChannel RPC method
and change StaticAddressLoopIn action from read to execute to match
other swap operations.
This commit is contained in:
Slyghtning 2026-02-25 14:33:55 +01:00
parent 6e4569f916
commit d4c9ab0630
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -136,6 +136,13 @@ var RequiredPermissions = map[string][]bakery.Op{
Entity: "loop",
Action: "in",
}},
"/looprpc.SwapClient/StaticOpenChannel": {{
Entity: "deposit",
Action: "spend",
}, {
Entity: "loop",
Action: "in",
}},
"/looprpc.SwapClient/GetLsatTokens": {{
Entity: "auth",
Action: "read",