This commit is contained in:
Riccardo Balbo 2024-07-16 16:20:26 +00:00
commit 299007e990
29 changed files with 2887 additions and 0 deletions

49
permission.py Normal file
View file

@ -0,0 +1,49 @@
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
}
}