dev@locazia: add service wallet
This commit is contained in:
1 parent
164f280899
commit
4a51efed01
13 files changed
+167
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
from app.core.models._blockchain.ton.connect import TonConnect, unpack_wallet_info
|
||||
from app.core._blockchain.ton.connect import TonConnect, unpack_wallet_info
|
||||
from sanic import response
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
from sanic import response
|
||||
from base58 import b58encode
|
||||
from app.core._secrets import hot_pubkey, service_wallet
|
||||
import subprocess
|
||||
|
||||
|
||||
@@ -8,6 +10,13 @@ def get_git_info():
|
||||
return branch_name, commit_hash
|
||||
|
||||
|
||||
async def s_api_system(request):
|
||||
return response.json({
|
||||
'id': b58encode(hot_pubkey).decode(),
|
||||
'ton_address': service_wallet.address.to_string(1, 1, 1)
|
||||
})
|
||||
|
||||
|
||||
async def s_api_system_version(request):
|
||||
branch_name, commit_hash = get_git_info()
|
||||
return response.json({
|
||||
|
||||
Reference in new issue
Block a user