Skip to content

Commit d4c9ab0

Browse files
committed
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.
1 parent 6e4569f commit d4c9ab0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

looprpc/perms.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ var RequiredPermissions = map[string][]bakery.Op{
136136
Entity: "loop",
137137
Action: "in",
138138
}},
139+
"/looprpc.SwapClient/StaticOpenChannel": {{
140+
Entity: "deposit",
141+
Action: "spend",
142+
}, {
143+
Entity: "loop",
144+
Action: "in",
145+
}},
139146
"/looprpc.SwapClient/GetLsatTokens": {{
140147
Entity: "auth",
141148
Action: "read",

0 commit comments

Comments
 (0)