forked from lnbits/nwcprovider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpermission.py
More file actions
33 lines (33 loc) · 848 Bytes
/
Copy pathpermission.py
File metadata and controls
33 lines (33 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
nwc_permissions = {
"pay": {
"name": "Send payments",
"methods": [
"multi_pay_invoice",
"pay_invoice",
"pay_keysend",
"multi_pay_keysend",
],
"default": True,
},
"invoice": {
"name": "Create invoices",
"methods": ["make_invoice"],
"default": True,
},
"lookup": {
"name": "Lookup status of invoice",
"methods": ["lookup_invoice"],
"default": True,
},
"history": {
"name": "Read transaction history",
"methods": ["list_transactions"],
"default": True,
},
"balance": {
"name": "Read wallet balance",
"methods": ["get_balance"],
"default": True,
},
"info": {"name": "Read account info", "methods": ["get_info"], "default": True},
}