Commit Graph

50 Commits

Author SHA1 Message Date
Vivek Teega
a173cf6ac3 Changes: NFT, Token Swap, Rollback script
* Fixed bugs in NFT creation and transfer
* Added functionality to Token swap contract: It can have dynamic pricing which can be picked up from a blockchain address
* Rollback script was ignoring nft tokens, now its included
2023-02-27 12:32:08 +00:00
Vivek Teega
acffba0698 Added functionality to add/remove a committee member from the list based on the time
Its possible that a committee member provided the right triggers for x number of contract before going rogue. Removal of the committee member after going rogue should not affect the previous contract's results.

* Transaction comparision with blocktime has been implement when creating committee list
* Order of execution of addition and removal is opinionated now to maintain consistency. Addition will be first, removal will be later
2023-02-16 15:26:06 +00:00
Vivek Teega
e599caa9d4 Contract committee list calculation should only consider transactions whose input address is the admin FLO address 2023-02-16 13:40:12 +00:00
Vivek Teega
528223fec7 External trigger Committee addresses shifted to blockchain
* The committee addresses who are responsible for one-time-trigger Smart Contract's triggers have been shifted to the blockchain.
* Added an APP ADMIN ID field who will be responsible for appointing committee members
2023-02-16 08:59:19 +00:00
Vivek Teega
2da2c555f4 Workaround for the case when contract creation is rejected but Sqlite3 database exists 2023-02-12 07:37:09 +00:00
Vivek Teega
30b3d20630 Storing senderAddress and recevierAddress of a transaction as part of transactionDetails 2023-02-06 13:47:06 +00:00
Vivek Teega
138e53bb06 Added blocktime column in transactionHistory and refactored those database operations into a function 2023-01-29 20:41:26 +00:00
Vivek Teega
22bca78569 Fix for internal triggers not having txid 2023-01-24 16:37:58 +00:00
Vivek Teega
743df4d18f Added functions to reduce repeatability 2023-01-23 09:48:54 +00:00
Vivek Teega
4511158a43 Refactored closing/expiring a contract into a function 2022-12-06 10:49:23 +00:00
Vivek Teega
26bb8004ee Refactored RejectedContractTransactionHistory entries into a function 2022-12-04 11:06:55 +00:00
Vivek Teega
0fcfeae966 Handle 0 participation contract transfers 2022-12-03 20:21:26 +00:00
Vivek Teega
6d6161ed83 Fixing bugs with logic of time based triggers in time_actions table 2022-12-01 11:17:34 +00:00
Vivek Teega
b30e8fd875 Storing contract history in multiline to accomodate rollback 2022-11-27 06:07:53 +00:00
Vivek Teega
8b112bf0b3 Update contract status in time_actions table after external committee trigger 2022-11-23 20:08:17 +00:00
Vivek Teega
9dd69065c8 Merged local trigger contracts 2022-11-23 16:11:16 +00:00
Vivek Teega
87fe48358e 1.1.2 Added new table ContractWinners for SmartContracts to accomodate rollback 2022-11-17 11:46:28 +00:00
Vivek Teega
18384e8eef 1.1.1 Addition of multiple payouts in internal trigger contract 2022-11-13 12:04:08 +00:00
Vivek Teega
b327ca5d58 Changes fotokenswap & stateF addition to contracts 2022-10-29 10:51:57 +00:00
Vivek Teega
703013265a Converted pybtc to pyflo 2022-07-17 11:26:39 +00:00
Vivek Teega
f8c22cd571 Fixed bugs with data directory 2022-07-17 11:00:51 +00:00
Vivek Teega
cd9fb1131f 1.1.0 Separated data folders from the script 2022-07-17 08:22:39 +00:00
Vivek Teega
cf451c0257 Minor fix: removed pdb.set_trace() 2022-05-25 12:06:03 +00:00
Vivek Teega
1fc35f289f Fixed : Infinite token rejection bug 2022-05-25 12:03:46 +00:00
Vivek Teega
15dba443b2 1.0.14 Important bug fixes
- One time event userchoice contract was not being recognised by the scanner | fixed
- contractAmount specified as part of contract structure was not being recognised | fixed
- Added check in rollback script to make sure the rollback block is smaller than current block
2022-04-03 08:39:22 +00:00
Vivek Teega
d659efb298 Bug fixes in rollback and Infinite token creation 2022-04-01 20:13:21 +00:00
Vivek Teega
6a7fd83ffd Added more transaction types for latestCache.db 2022-02-25 10:03:35 +00:00
Vivek Teega
5c3a1f4536 Changes to updateLatestTransaction so it can take unique transactionType as argument 2022-02-24 13:07:20 +00:00
Vivek Teega
798b7ad21c 1.0.12 Completed latest version of token swap 2022-02-20 10:54:43 +00:00
Vivek Teega
d63495a878 Update: Time triggers, TimeActions
1. Consolidated all time triggers into one function - new logic in main script, TimeAction table added to system.db
2. Changes in code to convert RAW SQL to SQL Alchemy queries
2022-02-16 12:24:54 +00:00
Vivek Teega
cf70cfd066 Changes in parsing to add tokenswap price type predetermined|determined & continuos|continuous event 2022-02-02 12:38:49 +00:00
Vivek Teega
ac89bc1af8 1.0.10 Managing orphaned pid in ConsumedTable & deleting TransferLogs 2022-02-01 12:10:59 +05:30
Vivek Teega
e1143269ea 1.0.9 ConsumedTable doesn't get any changes after transfer 2022-01-31 21:24:57 +05:30
Vivek Teega
43f3a91107 1.0.8 New rollforward and rollback scripts + storing blockNumber data in activeTable now 2022-01-27 21:05:39 +05:30
Vivek Teega
53782d9473 Updating progress 2022-01-23 21:56:38 +05:30
Vivek Teega
db9887679c Fixed typo for __name__ == "__main__" 2022-01-20 06:59:54 +00:00
Vivek Teega
c3c423429b 1.0.7 Added new column to token database to calculate address balances quickly 2022-01-17 20:56:48 +05:30
Vivek Teega
eaad8d88b8 Update changes 2022-01-17 16:13:49 +05:30
Vivek Teega
6ce6f75a0e Merge branch 'token-swap' of https://github.com/ranchimall/flo-token-tracking into token-swap 2022-01-14 18:04:19 +05:30
Vivek Teega
29c6019c15 Test rebuild along with database changes 2022-01-14 17:36:59 +05:30
Vivek Teega
4920bc5486 Uploading latest changes 2022-01-14 12:04:49 +00:00
Vivek Teega
32c7494504 Removing further test code 2022-01-13 16:45:10 +05:30
Vivek Teega
1307b0605b Added a missing bracket 2022-01-13 16:41:18 +05:30
Vivek Teega
714afa4ccd Added logic for infinite token 2022-01-13 16:36:09 +05:30
Vivek Teega
c111b73c82 Added parsing for NFTs and Infinite tokens 2022-01-12 20:27:12 +05:30
Vivek Teega
b19ffdfecc Refactored SQLAlchemy raw sql into 1 function 2022-01-11 20:45:57 +05:30
Vivek Teega
fc2e8378a5 Refactored SQLAlchemy ORM database commands to 1 function 2022-01-11 20:05:53 +05:30
Vivek Teega
2ba852f2a1 Smart Contract db check refactoring 2022-01-11 17:27:26 +05:30
Vivek Teega
23db3656aa Further refactoring of code functions 2022-01-11 16:42:34 +05:30
Vivek Teega
a61d21817d 1.0.5 Added renamed the older parser and added the new parser 2022-01-11 13:04:52 +05:30