Locazia: content encryption, indexation, deploy platform
This commit is contained in:
1 parent
0ccbb53135
commit
44abce2aae
18 files changed
+360
-66
No files matched your search
@@ -5,6 +5,7 @@ from hashlib import sha256
|
||||
|
||||
from pytonconnect import TonConnect as ExternalLib_TonConnect
|
||||
from pytonconnect.storage import DefaultStorage
|
||||
from tonsdk.utils import Address
|
||||
|
||||
from app.core._config import PROJECT_HOST
|
||||
from app.core.logger import make_log
|
||||
@@ -114,7 +115,7 @@ class TonConnect:
|
||||
network='ton',
|
||||
wallet_key=f"{status['device'].get('app_name', 'UNKNOWN_NAME')}=={status['device'].get('app_version', '1.0')}",
|
||||
connection_id=sha256(self.connection_key.encode()).hexdigest(),
|
||||
wallet_address=status['account']['address'],
|
||||
wallet_address=Address(status['account']['address']),
|
||||
keys={
|
||||
'connection_key': self.connection_key,
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from app.core._config import TESTNET, MY_PLATFORM_CONTRACT
|
||||
from app.core._config import TESTNET, MY_PLATFORM_CONTRACT, PROJECT_HOST
|
||||
from app.core._secrets import service_wallet
|
||||
from app.core._blockchain.ton.contracts.platform import Platform
|
||||
from app.core._blockchain.ton.contracts.cop_nft import COP_NFT
|
||||
@@ -15,6 +15,6 @@ platform = Platform(
|
||||
blank_code=Cell.one_from_boc(Blank.code),
|
||||
cop_code=Cell.one_from_boc(COP_NFT.code),
|
||||
|
||||
collection_content_uri='https://music-gateway.letsw.app/api/platform-metadata.json',
|
||||
collection_content_uri=f'{PROJECT_HOST}/api/platform-metadata.json',
|
||||
**kwargs
|
||||
)
|
||||
Reference in new issue
Block a user