Error handling for all cases, fixing issues with logic. SSE fix remaining

This commit is contained in:
Vivek Teega 2020-01-03 23:09:12 +00:00
parent acd85a6a02
commit 3464a81a2d
7 changed files with 604 additions and 351 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ system.db
config.ini
config.py
*.log
py3/

View File

@ -1,4 +1,4 @@
[DEFAULT]
NET = testnet
NET = mainnet
FLO_CLI_PATH = /usr/local/bin/flo-cli
START_BLOCK = 868993
START_BLOCK = 3387900

View File

@ -56,20 +56,20 @@ class TransactionHistory(Base):
jsonData = Column('jsonData', String)
class RejectedTransactionHistory(Base):
__tablename__ = "rejectedTransactionHistory"
class TokenContractAssociation(Base):
__tablename__ = "tokenContractAssociation"
primary_key = Column('id', Integer, primary_key=True)
sourceFloAddress = Column('sourceFloAddress', String)
destFloAddress = Column('destFloAddress', String)
transferAmount = Column('transferAmount', Float)
tokenIdentification = Column('tokenIdentification', String)
contractName = Column('contractName', String)
contractAddress = Column('contractAddress', String)
blockNumber = Column('blockNumber', Integer)
blockHash = Column('blockHash', String)
time = Column('time', Integer)
transactionHash = Column('transactionHash', String)
blockchainReference = Column('blockchainReference', String)
jsonData = Column('jsonData', String)
rejectComment = Column('rejectComment', String)
class ContractStructure(ContractBase):
@ -111,12 +111,30 @@ class ContractTransactionHistory(ContractBase):
jsonData = Column('jsonData', String)
class RejectedContractTransactionHistory(ContractBase):
class RejectedContractTransactionHistory(SystemBase):
__tablename__ = "rejectedContractTransactionHistory"
primary_key = Column('id', Integer, primary_key=True)
transactionType = Column('transactionType', String)
transactionSubType = Column('transactionSubType', String)
contractName = Column('contractName', String)
contractAddress = Column('contractAddress', String)
sourceFloAddress = Column('sourceFloAddress', String)
destFloAddress = Column('destFloAddress', String)
transferAmount = Column('transferAmount', Float)
blockNumber = Column('blockNumber', Integer)
blockHash = Column('blockHash', String)
time = Column('time', Integer)
transactionHash = Column('transactionHash', String)
blockchainReference = Column('blockchainReference', String)
jsonData = Column('jsonData', String)
rejectComment = Column('rejectComment', String)
class RejectedTransactionHistory(SystemBase):
__tablename__ = "rejectedTransactionHistory"
primary_key = Column('id', Integer, primary_key=True)
tokenIdentification = Column('tokenIdentification', String)
sourceFloAddress = Column('sourceFloAddress', String)
destFloAddress = Column('destFloAddress', String)
transferAmount = Column('transferAmount', Float)

View File

@ -1 +0,0 @@
python3

BIN
py3/bin/python Executable file

Binary file not shown.

View File

@ -1 +0,0 @@
/usr/bin/python3

BIN
py3/bin/python3 Executable file

Binary file not shown.

View File

@ -1 +0,0 @@
lib

File diff suppressed because it is too large Load Diff