From 71c2bd01ff972a3ebc249a5c19980c3377099492 Mon Sep 17 00:00:00 2001 From: Matias Barros <mbarros@boletinoficial.gob.ar> Date: Mon, 21 Jan 2019 11:45:37 -0300 Subject: [PATCH] Agrego config de tst --- Poppins/local_settings_tst.py | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Poppins/local_settings_tst.py diff --git a/Poppins/local_settings_tst.py b/Poppins/local_settings_tst.py new file mode 100644 index 0000000..087ac58 --- /dev/null +++ b/Poppins/local_settings_tst.py @@ -0,0 +1,101 @@ +# DEBUG +DEBUG = False + +APP_ROOT = '/var/www/poppins.bc.local/app/Poppins/' +STATIC_ROOT = '/var/www/poppins.bc.local/html' + +# MAIL DATA +EMAIL_USE_TLS = False +EMAIL_HOST = '172.16.1.106' +EMAIL_PORT = 25 +EMAIL_HOST_USER = '' +EMAIL_HOST_PASSWORD = '' +EMAIL_FROM = 'no-reply@bfa.ar' +DEFAULT_FROM_EMAIL = 'no-reply@bfa.ar' +ADMIN_EMAIL = 'no-reply@bfa.ar' + +# NODO DE BLOACJAJEICHAIN +NODE_URL = 'http://10.23.10.73:54450' # salberchain + +# CFG BLOCKCHANGE +DISTILLERY_ADDRESS = '0x822c2b518dCfEE69d435E0C5F2e6d196FcC8320E' # distillery +DISTRIBUTOR_ACCOUNT = '0xA9cAc6C2EF4909A05eF24A12Ecadf9E541B5995F' # cuenta con mucho ether con su clave privada en +# el 10.23.10.73 + +# cuentas para pruebas: 0xd57c1f52ff4513c721bd22ccbee55b7cef440b5c y 0x6664e892a36e74e1e618b9bfb25caa0f18b311a4 +# passphrase prueba para ambas cuentas + +DISTILLERY_ABI = '[ { "anonymous": false, "inputs": [ { "indexed": false, "name": "amount", "type": "uint256" } ], ' \ + '"name": "proofOfControlWeiAmountChanged", "type": "event" }, { "constant": false, "inputs": [ { ' \ + '"name": "acc", "type": "address" }, { "name": "limit", "type": "uint256" } ], ' \ + '"name": "addBeneficiary", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, ' \ + '"stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": ' \ + '"add", "type": "address" }, { "name": "password", "type": "bytes32" } ], "name": "addSuitor", ' \ + '"outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", ' \ + '"type": "function" }, { "constant": false, "inputs": [ { "name": "acc", "type": "address" }, ' \ + '{ "name": "limit", "type": "uint256" } ], "name": "changeLimit", "outputs": [ { "name": "", ' \ + '"type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, ' \ + '{ "constant": false, "inputs": [ { "name": "acc", "type": "address" } ], "name": "kickBeneficiary", ' \ + '"outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", ' \ + '"type": "function" }, { "constant": false, "inputs": [ { "name": "acc", "type": "address" } ], ' \ + '"name": "kickDistributor", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, ' \ + '"stateMutability": "nonpayable", "type": "function" }, { "anonymous": false, "inputs": [ { ' \ + '"indexed": true, "name": "distr", "type": "address" }, { "indexed": true, "name": "ben", ' \ + '"type": "address" }, { "indexed": false, "name": "newLimit", "type": "uint256" } ], ' \ + '"name": "limitChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, ' \ + '"name": "suitor", "type": "address" } ], "name": "suitorApproved", "type": "event" }, ' \ + '{ "anonymous": false, "inputs": [ { "indexed": true, "name": "suitor", "type": "address" } ], ' \ + '"name": "suitorNotApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": ' \ + 'true, "name": "kicked", "type": "address" } ], "name": "kickedDistributor", "type": "event" }, ' \ + '{ "anonymous": false, "inputs": [ { "indexed": true, "name": "suitor", "type": "address" }, ' \ + '{ "indexed": true, "name": "distr", "type": "address" } ], "name": "suitorAdded", "type": "event" ' \ + '}, { "anonymous": false, "inputs": [ { "indexed": true, "name": "distr", "type": "address" }, ' \ + '{ "indexed": true, "name": "added", "type": "address" }, { "indexed": false, "name": "limit", ' \ + '"type": "uint256" } ], "name": "addedBeneficiary", "type": "event" }, { "anonymous": false, ' \ + '"inputs": [ { "indexed": true, "name": "distr", "type": "address" }, { "indexed": true, ' \ + '"name": "kicked", "type": "address" } ], "name": "kickedBeneficiary", "type": "event" }, ' \ + '{ "anonymous": false, "inputs": [ { "indexed": true, "name": "added", "type": "address" }, ' \ + '{ "indexed": false, "name": "top", "type": "uint256" } ], "name": "addedDistributor", ' \ + '"type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "distr", ' \ + '"type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], ' \ + '"name": "replenished", "type": "event" }, { "constant": false, "inputs": [ { "name": "acc", ' \ + '"type": "address" }, { "name": "top", "type": "uint256" } ], "name": "addDistributor", "outputs": [ ' \ + '{ "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", ' \ + '"type": "function" }, { "constant": false, "inputs": [ { "name": "key", "type": "string" } ], ' \ + '"name": "proveControl", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, ' \ + '"stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": ' \ + '"acc", "type": "address" }, { "name": "amount", "type": "uint256" } ], "name": "replenish", ' \ + '"outputs": [ { "name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", ' \ + '"type": "function" }, { "constant": false, "inputs": [], "name": "replenishAll", "outputs": [ { ' \ + '"name": "", "type": "bool" } ], "payable": true, "stateMutability": "payable", "type": "function" ' \ + '}, { "constant": false, "inputs": [ { "name": "accs", "type": "address[]" }, { "name": "amounts", ' \ + '"type": "uint256[]" } ], "name": "replenishList", "outputs": [], "payable": true, ' \ + '"stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "name": ' \ + '"amount", "type": "uint256" } ], "name": "setProofOfControlWeiAmount", "outputs": [ { "name": "", ' \ + '"type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, ' \ + '{ "inputs": [], "payable": true, "stateMutability": "payable", "type": "constructor" }, ' \ + '{ "constant": true, "inputs": [], "name": "getBeneficiariesCount", "outputs": [ { "name": "", ' \ + '"type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, ' \ + '{ "constant": true, "inputs": [ { "name": "acc", "type": "address" } ], ' \ + '"name": "getBeneficiaryLimit", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, ' \ + '"stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "acc", ' \ + '"type": "address" } ], "name": "getDistributorLimit", "outputs": [ { "name": "", "type": "uint256" ' \ + '} ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, ' \ + '"inputs": [], "name": "getProofOfControlWeiAmount", "outputs": [ { "name": "", "type": "uint256" } ' \ + '], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, ' \ + '"inputs": [ { "name": "key", "type": "string" } ], "name": "hash", "outputs": [ { "name": "", ' \ + '"type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function" }, ' \ + '{ "constant": true, "inputs": [ { "name": "add", "type": "address" } ], "name": "isBeneficiary", ' \ + '"outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", ' \ + '"type": "function" }, { "constant": true, "inputs": [ { "name": "add", "type": "address" } ], ' \ + '"name": "isDistributor", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, ' \ + '"stateMutability": "view", "type": "function" } ] ' + +GOOGLE_RECAPTCHA_SECRET_KEY = '6LdIsXoUAAAAAM2CK9KUohWWFZTjpwo-Z2CP_Ndp' +DATA_SITEKEY = '6LdIsXoUAAAAAFQfkzQWPpJ5ERGdxmY8YT4bFLmt' + +RAVEN_CONFIG = { + 'dsn': 'http://af8a61a068af431eb80d8ee277f84364:887b38e0b1594fabb844b75309bdaab7@10.1.100.118:9000/79', +} + +BLOCK_NUMBER_TO_START = 834942 # numero de bloque para empezar a buscar en el filter \ No newline at end of file -- GitLab