From db8b9ca389f9f70a4f65af5a9762b3ee092e8e59 Mon Sep 17 00:00:00 2001
From: Matias Barros <mbarros@boletinoficial.gob.ar>
Date: Tue, 4 Jun 2019 15:18:31 -0300
Subject: [PATCH] Agrego config para el nodo que va a consumir interoperar

---
 TsaApi/local_settings_prod_node2.py | 43 +++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 TsaApi/local_settings_prod_node2.py

diff --git a/TsaApi/local_settings_prod_node2.py b/TsaApi/local_settings_prod_node2.py
new file mode 100644
index 0000000..9f9fe06
--- /dev/null
+++ b/TsaApi/local_settings_prod_node2.py
@@ -0,0 +1,43 @@
+"""
+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/
+"""
+# APP_ROOT = '/home/python/TsaAPI/'
+
+APP_ROOT = '/var/www/tsaapi.prod.bfa.local/'
+STATIC_ROOT = APP_ROOT + 'html/'
+
+STATIC_URL = '/tsa/static/'
+
+# ACCOUNT_ADDRESS = '0x21ea59FC5cE54a827E20BC9b736FeeD8F9C880Ff'
+
+# HOST_ADDRESS = 'http://10.23.10.71:8501'
+
+HOST_ADDRESS = 'http://127.0.0.1:8545'
+
+ACCOUNT_ADDRESS = '0xe0571811983caa3a8540e6df38dbe78db811d95a'
+
+#Contracts info
+CONTRACTS = {
+    '01':{
+        'address': '0x7cbf323520d6fda0858b85dc357db6143fbe997b',
+        'abi': [ { "constant": False, "inputs": [], "name": "selfDestroy", "outputs": [], "payable": False, "stateMutability": "nonpayable", "type": "function" }, { "constant": False, "inputs": [ { "name": "ots", "type": "string" }, { "name": "file_hash", "type": "string" } ], "name": "stamp", "outputs": [], "payable": False, "stateMutability": "nonpayable", "type": "function" }, { "anonymous": False, "inputs": [ { "indexed": True, "name": "from", "type": "address" }, { "indexed": True, "name": "hash", "type": "string" }, { "indexed": True, "name": "ots", "type": "string" } ], "name": "Stamped", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": True, "name": "from", "type": "address" }, { "indexed": True, "name": "contract_address", "type": "address" } ], "name": "Deploy", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": True, "name": "from", "type": "address" }, { "indexed": True, "name": "contract_address", "type": "address" } ], "name": "SelfDestroy", "type": "event" }, { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor" }, { "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": "getHash", "outputs": [ { "name": "", "type": "string" } ], "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" } ],
+    },
+}
+
+CURRENT_CONTRACT_VERSION = '01'
+
+DEBUG = False
+
+TEMPORARY_OTS_PREFIX = '0x'
+PERMANENT_OTS_PREFIX = '1x'
+
+GAS = 250000
+GAS_PRICE = 100000000
+
+SENTRY_URL = 'http://36f4f241a007447d8a4441a13055b110:136cb6d1af854b869d13610603fa7321@10.1.100.118:9000/84'
\ No newline at end of file
-- 
GitLab