Commit Graph

213 Commits

Author SHA1 Message Date
fbc534b477 Bugfix : reference before assignment 2023-06-09 20:19:26 +00:00
b396bc1f74 Critical bug fix for infinite token addressBalance 2023-06-09 19:55:49 +00:00
Vivek Teega
9eda14ae6a
Update test_parsing.yml 2023-05-18 14:58:13 +05:30
Vivek Teega
e9ad3307f6 Refactoring + cleanup 2023-05-18 09:26:13 +00:00
Vivek Teega
a8e885f729 Updated functions to find committee list and fetch latest oracle price in token swap to accomodate changes in flosight API 2023-05-14 12:54:48 +00:00
Vivek Teega
4a254336b8 Added subtype and unix_expiryTime
* Added subtype and unix_expiryTime to the contractStructure
* Fixed the automated tests for parsing with subtype and unix_expiryTime information
2023-05-10 11:26:37 +00:00
Vivek Teega
5a7ce5bd99 Cleanup: Removing pdb traces 2023-05-07 22:18:47 +00:00
Vivek Teega
993bf6e1b8 Storing unix expiryTime as part of contract structure 2023-05-07 22:12:48 +00:00
Vivek Teega
fa9798d1f0 Removing an extra debugger line which was left 2023-05-06 13:36:55 +00:00
Vivek Teega
6d56c2a1e0 Fixed bug with token swap dynamic price calculation & added a regex version of parsing date time 2023-05-04 23:28:10 +00:00
Vivek Teega
dce543284c Added check to stop users from making contracts on an address which has/had tokens before 2023-05-01 17:10:09 +00:00
Vivek Teega
355364badb Fixed bugs with external trigger contract's data stored in time_actions table and activecontracts table 2023-04-30 17:48:32 +00:00
Vivek Teega
e94506bf14 Fixed issues with time related contract triggers and dummy data showing up in activecontracts and time_actions table + cleanup 2023-04-30 11:05:16 +00:00
Vivek Teega
796e84cc05 Merge branch 'swap-statef-testing' of https://github.com/ranchimall/flo-token-tracking into swap-statef-testing 2023-04-29 22:14:53 +00:00
Vivek Teega
b84456602d More automated tests 2023-04-29 22:13:37 +00:00
Vivek Teega
bf4684cbe7 Merge branch 'swap-statef-testing' of https://github.com/ranchimall/flo-token-tracking into swap-statef-testing 2023-04-29 22:12:09 +00:00
Vivek Teega
0966070239 Added more automated tests 2023-04-29 22:11:40 +00:00
Vivek Teega
cd1b36a246 Critical bug fix for fetching time action related active smart contracts 2023-04-29 22:10:55 +00:00
15bc31c4a7 Fix for multisig support 2023-04-26 15:58:23 +00:00
Vivek Teega
e0d013cd63 Added automated test for contract trigger 2023-04-24 18:27:00 +00:00
Vivek Teega
a35b35d22e Making sure the sender address is oracle_address in fetchDynamicSwapPrice() 2023-04-24 18:26:36 +00:00
Vivek Teega
ba80ae4e6a Bug fix swap participation + added automated test for deposit parsing
* Added a parsing test got Deposit
* Bug Fix with Swap's participant address
2023-04-17 10:13:42 +00:00
Vivek Teega
d794e65667 Fix further bugs in token swap deposit 2023-04-14 01:15:00 +00:00
Vivek Teega
752f999ec8 Fixed deposit return for token swap 2023-04-13 15:01:24 +00:00
Vivek Teega
2132dd94fe Fixed bug with deposit return 2023-04-11 12:29:51 +00:00
42dc2d6e98 Added test for infinite token parsing 2023-04-08 20:36:59 +00:00
989251127c Fixed confusion between time vs blocktime
### Made all the database columns related to time of a transaction's confirmation as 'time'
There were instances of using blocktime instead of time in the older code. But Flosight API was using time variable common across all its results. To maintain consistency now all database columns related to time/blocktime will be called "time"

This change has affected models.py and tracktokens_smartcontracts.py file
2023-04-07 08:00:55 +00:00
Vivek Teega
073927bccd Preventing oracle address from participating in the contract 2023-03-28 09:00:01 +00:00
Vivek Teega
20c0a4bf76 Fix minor bug in dynamic swap price calculation 2023-03-28 08:44:21 +00:00
Vivek Teega
497e7937d1 Fixed bugs in token swap contract's deposit return 2023-03-27 16:55:25 +00:00
Vivek Teega
b82e35153f Fixed bugs in dynamic price processing 2023-03-27 13:57:40 +00:00
Vivek Teega
7abafd2c2c Fixed bug : parsing and storing of oracle address 2023-03-27 13:53:20 +00:00
Vivek Teega
7cf7883b59 Updated regex and tests for tokenamount parsing 2023-03-22 11:19:57 +00:00
Vivek Teega
c4be19058f Updated regex and tests for tokenamount parsing 2023-03-22 11:19:32 +00:00
Vivek Teega
ea3985cb28 Fixing workflow file : automated test for parsing.py 2023-03-19 14:28:05 +00:00
Vivek Teega
342ded906e Setting up automated testing for parsing.py 2023-03-19 13:49:37 +00:00
Vivek Teega
41753a03c3 Fix for infiniteToken parsing bug which was introduced with -ve and 0 number checks for token system 2023-03-09 16:31:37 +00:00
Vivek Teega
02de71e618 Cleanup and updating of flosight link 2023-03-01 11:56:36 +00:00
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
901026ccdd Added checks to categorize negative contract and token amounts as noise 2023-02-12 11:49:36 +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
a26223f8e1 Accepting both camel case and snake case for the accepting token & selling token in Token Swap contract 2023-02-08 13:01:22 +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