Skip to content
Snippets Groups Projects
local_settings_dev.py 2.93 KiB
Newer Older
"""
Copyright 2019 de la Dirección General de Sistemas Informáticos – Secretaría Legal y Técnica - Nación.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/
"""
Patricio Kumagae's avatar
Patricio Kumagae committed
APP_ROOT = '/home/python/TsaAPI/'
Patricio Kumagae's avatar
Patricio Kumagae committed
STATIC_ROOT = APP_ROOT + 'html/'

ACCOUNT_ADDRESS = '0x25c185dcaed065bac30a0a1cd0688a7aa02896d7'
Patricio Kumagae's avatar
Patricio Kumagae committed

HOST_ADDRESS = 'http://10.23.10.72:8501'
Patricio Kumagae's avatar
Patricio Kumagae committed

Patricio Kumagae's avatar
Patricio Kumagae committed
CONTRACTS = {
Patricio Kumagae's avatar
Patricio Kumagae committed
        'address': '0x88933138A9Ef6474ee4f255A6395210F4f014d6B',
        'abi': [{"constant": True, "inputs": [{"name": "ots", "type": "string"}], "name": "getHash",
                 "outputs": [{"name": "", "type": "string"}], "payable": False, "stateMutability": "view",
                 "type": "function"},
                {"constant": True, "inputs": [{"name": "ots", "type": "string"}], "name": "getBlockNumber",
                 "outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
                 "type": "function"}, {"constant": True, "inputs": [{"name": "ots", "type": "string"},
                                                                    {"name": "file_hash", "type": "string"}],
                                       "name": "verify", "outputs": [{"name": "", "type": "bool"}], "payable": False,
                                       "stateMutability": "view", "type": "function"}, {"constant": False, "inputs": [
                {"name": "ots", "type": "string"}, {"name": "file_hash", "type": "string"}], "name": "stamp",
                                                                                        "outputs": [], "payable": False,
                                                                                        "stateMutability": "nonpayable",
                                                                                        "type": "function"}],
Patricio Kumagae's avatar
Patricio Kumagae committed
    },
}

CURRENT_CONTRACT_VERSION = '01'

DEBUG = True

TEMPORARY_OTS_PREFIX = '0x'
PERMANENT_OTS_PREFIX = '1x'

GAS = 250000
SENTRY_URL = 'http://2ec54beaab3b4459a1e5afadea070f98:92aee3f5d91e4e66996a3e0792985541@172.17.30.21:9000/54'

MEMCACHED_HOST = '172.17.0.1'
MEMCACHED_PORT = 11211  # TIENE QUE SER INT

PENDING_TXS_MEMCACHED_KEY = 'pending_txs'

TEST_MEMCACHED_HOST = MEMCACHED_HOST
TEST_MEMCACHED_PORT = MEMCACHED_PORT

TEST_PENDING_TXS_MEMCACHED_KEY = 'test_pending_txs'

ELASTIC_APM = {
    'SERVICE_NAME': 'TsaApi-dev',
    'SERVER_URL': 'http://10.1.100.67:8200',
    'DEBUG': True,
}