Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TsaAPI
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patricio Kumagae
TsaAPI
Commits
28649de2
Commit
28649de2
authored
6 years ago
by
Agustin Sacramento
Browse files
Options
Downloads
Plain Diff
Fixes
parents
af9060bd
3b15593b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+5
-0
5 additions, 0 deletions
.gitignore
TsaApi/local_settings_prod.py
+14
-7
14 additions, 7 deletions
TsaApi/local_settings_prod.py
with
19 additions
and
7 deletions
.gitignore
+
5
−
0
View file @
28649de2
...
...
@@ -155,3 +155,8 @@ venv.bak/
# mypy
.mypy_cache/
TsaApi/local_settings.py
db.sqlite3
.idea
TsaApi/local_settings.py
TsaApi/*.pyc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
TsaApi/local_settings_prod.py
+
14
−
7
View file @
28649de2
...
...
@@ -7,19 +7,27 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
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 = '/home/python/TsaAPI/'
STATIC_ROOT
=
APP_ROOT
+
'
htm
l/
'
APP_ROOT
=
'
/var/www/tsaapi.prod.bfa.loca
l/
'
ACCOUNT_ADDRESS
=
'
0x21ea59FC5cE54a827E20BC9b736FeeD8F9C880Ff
'
# STATIC_ROOT = APP_ROOT + 'html/
'
HOST_ADDRESS
=
'
http://10.23.10.71:8501
'
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
=
'
0xac952ae0716e8aded07dda498f182f4983af682a
'
#Contracts info
CONTRACTS
=
{
'
01
'
:{
'
address
'
:
'
0x
88933138A9Ef6474ee4f255A6395210F4f014d6B
'
,
'
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
"
:
Fals
e
,
"
inputs
"
:
[{
"
name
"
:
"
ots
"
,
"
type
"
:
"
string
"
},
{
"
name
"
:
"
file_hash
"
,
"
type
"
:
"
string
"
}
],
"
name
"
:
"
stamp
"
,
"
outputs
"
:
[
],
"
payable
"
:
False
,
"
stateMutability
"
:
"
nonpayable
"
,
"
type
"
:
"
function
"
}
],
'
address
'
:
'
0x
7cbf323520d6fda0858b85dc357db6143fbe997b
'
,
'
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
"
:
Tru
e
,
"
inputs
"
:
[
{
"
name
"
:
"
ots
"
,
"
type
"
:
"
string
"
},
{
"
name
"
:
"
file_hash
"
,
"
type
"
:
"
string
"
}
],
"
name
"
:
"
verify
"
,
"
outputs
"
:
[
{
"
name
"
:
""
,
"
type
"
:
"
bool
"
}
],
"
payable
"
:
False
,
"
stateMutability
"
:
"
view
"
,
"
type
"
:
"
function
"
}
],
},
}
...
...
@@ -33,5 +41,4 @@ PERMANENT_OTS_PREFIX = '1x'
GAS
=
250000
GAS_PRICE
=
1
SENTRY_URL
=
'
http://36f4f241a007447d8a4441a13055b110:136cb6d1af854b869d13610603fa7321@10.1.100.118:9000/84
'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment