diff --git a/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-312.pyc index aa41322..aad681b 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/Conversion.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-312.pyc index 7bebeb0..cd12429 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/DataStorage.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-312.pyc index e77e69d..e8314d1 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/Narration.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-312.pyc index fee87b8..ff166c9 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/PPTConversion.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/automailtest.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/automailtest.cpython-312.pyc new file mode 100644 index 0000000..cad4cd3 Binary files /dev/null and b/kitchen_counter/Blockchain2/__pycache__/automailtest.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-312.pyc index 2aedf0c..26c7380 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/block_user_info.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-312.pyc index 64bcf37..b7ebc57 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/blockchainsetting.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-312.pyc index ab0ecfb..7d41fc1 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/decryption.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/models.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..5f0aebb Binary files /dev/null and b/kitchen_counter/Blockchain2/__pycache__/models.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-312.pyc index 78791c8..fa82dd6 100644 Binary files a/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-312.pyc and b/kitchen_counter/Blockchain2/__pycache__/scriptAudit.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/serializers.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/serializers.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/testingget.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/testingget.cpython-312.pyc new file mode 100644 index 0000000..5c8d425 Binary files /dev/null and b/kitchen_counter/Blockchain2/__pycache__/testingget.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/__pycache__/urls.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/urls.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/views.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/views.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/web3User.cpython-310.pyc b/kitchen_counter/Blockchain2/__pycache__/web3User.cpython-310.pyc old mode 100644 new mode 100755 diff --git a/kitchen_counter/Blockchain2/__pycache__/web3User.cpython-312.pyc b/kitchen_counter/Blockchain2/__pycache__/web3User.cpython-312.pyc new file mode 100644 index 0000000..1d1357d Binary files /dev/null and b/kitchen_counter/Blockchain2/__pycache__/web3User.cpython-312.pyc differ diff --git a/kitchen_counter/Blockchain2/automailtest.py b/kitchen_counter/Blockchain2/automailtest.py new file mode 100644 index 0000000..00f6982 --- /dev/null +++ b/kitchen_counter/Blockchain2/automailtest.py @@ -0,0 +1,40 @@ +from auto_email.views import sendmail +from django.conf import settings +def TestAutoMail(): + to_email = ["praveshenter9303@gmail.com"] + print("starting...") + email_code = 'BL1' + # key_value = { + # "service":"Script Pad", + # "hash": hash2, + # "public key":blockchain_obj.publicKey, + # "Transaction Hash": tx_id, + # } + key_value = { + "Product Name": "Script Pad", + "Profile url": f"https://mynextfilm.in/memberpage/#/personaldetails", + "User url": f"https://mynextfilm.ai/memberpage/#/user/47/personaldetails", + "Product output card url": "hash2", + } + sendmail(to_email=to_email , email_code=email_code, key_value=key_value, filePath=None) + print("end............") + +def TestAutoMail1(): + to_email = ["paveenpaul.work@gmail.com"] + print("starting...") + email_code = 'SB1' + # key_value = { + # "service":"Script Pad", + # "hash": hash2, + # "public key":blockchain_obj.publicKey, + # "Transaction Hash": tx_id, + # } + key_value = { + "Script Name" : "str(screenplay_name)", + "Audited script url" : f"{settings.SITE_DOMAIN}/audit/audits1", + "User's profile url": f"{settings.SITE_DOMAIN}/memberpage/#/user/46/personaldetails", + } + + print("key value = ",key_value) + sendmail(to_email=to_email , email_code=email_code, key_value=key_value, filePath=None) + print("end............") diff --git a/kitchen_counter/Blockchain2/scriptAudit.py b/kitchen_counter/Blockchain2/scriptAudit.py index 5efbbc2..883c015 100755 --- a/kitchen_counter/Blockchain2/scriptAudit.py +++ b/kitchen_counter/Blockchain2/scriptAudit.py @@ -9,7 +9,8 @@ PRIVATE_KEY = "a632f28406579d96879cfc49d55411bb1424dbbae60bf4dd93ad0710b63d6b80" # ABI = '[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "project", "type": "string" }, { "indexed": false, "internalType": "string", "name": "data", "type": "string" } ], "name": "conversion", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "pubKey", "type": "address" }, { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" }, { "internalType": "string", "name": "_data", "type": "string" } ], "name": "UploadScriptAuditData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" } ], "name": "deleteScriptAudit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "userId", "type": "uint256" } ], "name": "getProjectId", "outputs": [ { "internalType": "string[]", "name": "", "type": "string[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" } ], "name": "getScriptAudit", "outputs": [ { "components": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "string", "name": "mydata", "type": "string" }, { "internalType": "bool", "name": "Write", "type": "bool" } ], "internalType": "struct ScriptAuditDataBase.privateData", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" } ]' # mainnet -RPC = 'https://polygon-mainnet.infura.io/v3/017957497a0d4e9c80750c18a431ac1e' +RPC = 'https://polygon-rpc.com' +# RPC = 'https://polygon-mainnet.infura.io/v3/017957497a0d4e9c80750c18a431ac1e' CONTRACT_ADDRESS = '0x3a5d033CdF38aC4a9fe116CE88EBA2E93260044c' CHAIN_ID = 137 ABI = '[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "project", "type": "string" }, { "indexed": false, "internalType": "string", "name": "data", "type": "string" } ], "name": "conversion", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "pubKey", "type": "address" }, { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" }, { "internalType": "string", "name": "_data", "type": "string" } ], "name": "UploadScriptAuditData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" } ], "name": "deleteScriptAudit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "userId", "type": "uint256" } ], "name": "getProjectId", "outputs": [ { "internalType": "string[]", "name": "", "type": "string[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "user_id", "type": "uint256" }, { "internalType": "string", "name": "project", "type": "string" } ], "name": "getScriptAudit", "outputs": [ { "components": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "string", "name": "mydata", "type": "string" }, { "internalType": "bool", "name": "Write", "type": "bool" } ], "internalType": "struct ScriptAuditDataBase.privateData", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" } ]' diff --git a/kitchen_counter/Blockchain2/testingget.py b/kitchen_counter/Blockchain2/testingget.py index 94c2323..4fe5521 100755 --- a/kitchen_counter/Blockchain2/testingget.py +++ b/kitchen_counter/Blockchain2/testingget.py @@ -80,4 +80,6 @@ def data(): # data() -# getToDatabase("pravesh3","MyNextFilm") \ No newline at end of file +# getToDatabase("pravesh3","MyNextFilm") + +