Commit Graph

57 Commits

Author SHA1 Message Date
Nicholas Clarke c85547ca45 Add perp_base_symbol field to perp_bankruptcy 2022-01-26 12:23:31 -08:00
Nicholas Clarke b5b7bf783e Add required imports. 2022-01-26 11:57:16 -08:00
Nicholas Clarke a7dbfd662a Add perp_base_symbol field to liquidate_token_and_perp 2022-01-26 11:55:23 -08:00
Nicholas Clarke 7d474ed608 Utility function getAllSignatures 2022-01-25 15:50:00 -08:00
Nicholas Clarke 99bae5a33a Small typo 2022-01-24 16:07:35 -08:00
Nicholas Clarke 7922403ae2 Add perp market to redeem mngo parsing. 2022-01-24 15:27:22 -08:00
Nicholas Clarke 5bf322ef00 Add new command "init" to populate some rows into the transactions table (required before the scraper can start). 2022-01-13 14:27:38 -08:00
Nicholas Clarke 44b3b7027a Throw error where most recent fetched signature has slot less than afterSlot 2022-01-12 23:41:52 -08:00
Nicholas Clarke 7fdb6d1a9a Revert accidental commit. 2022-01-12 21:54:38 -08:00
Nicholas Clarke a3d5bffb62 Add parser for the now deprecated instruction ForceSettleQuotePositions 2022-01-12 21:53:36 -08:00
Nicholas Clarke f59c55b1d8 Merge remote-tracking branch 'origin/master' 2022-01-12 15:03:13 -08:00
Nicholas Clarke 18a8082a9b Seems to be an issue where refreshing too quickly leads to the code not stopping at the latest signature. 2022-01-12 15:02:11 -08:00
Nicholas Clarke a251b139f5
Merge pull request #5 from silas-x/master
Automated security scanning
2022-01-11 09:04:13 -08:00
silas 70e0e69dcc
new feature: code security scanning 2022-01-10 19:58:23 +00:00
silas 76506635fa
new feature: dependency vuln scanning 2022-01-10 19:57:51 +00:00
Nicholas Clarke 6797b01b2c Allow parsers to run in parallel. Allow restrict inserting of signatures to one process only. 2022-01-10 11:44:52 -08:00
Nicholas Clarke 83decc09c8 Add BNB, AVAX, LUNA spot. 2022-01-09 12:42:57 -08:00
Nicholas Clarke d1a76d7147 Add Luna. 2022-01-04 00:07:02 -08:00
Nicholas Clarke ba9d8abaad Add base symbol to settle fees and settle pnl parsers. 2021-12-22 10:13:49 -08:00
Nicholas Clarke 3f6c14c111 Bugfix on fill event price parsing. 2021-12-22 09:29:17 -08:00
Nicholas Clarke d35e0107b1 Fix bug by renaming field to reflect typo in mango_logs.json (lol) 2021-12-16 22:23:28 -08:00
Nicholas Clarke 76f8f03eba Update mango client - required for updated mango_logs.json 2021-12-16 22:11:33 -08:00
Nicholas Clarke 5d8cb0e52a Fix testing code to work with recent refactor 2021-12-16 16:37:08 -08:00
Nicholas Clarke b7e3424275 Add parsed for CancelAllPerpOrders 2021-12-16 16:36:17 -08:00
Nicholas Clarke e3d4401c53 Commit yarn.lock for heroku 2021-12-14 09:36:55 -08:00
Nicholas Clarke 43ac55bf14 Update package.json 2021-12-14 09:34:40 -08:00
Nicholas Clarke 36f1021869 Counter is off by one. 2021-12-14 09:34:20 -08:00
Nicholas Clarke 3b9412cc14 Add PARSING_BATCH_SIZE as an environmental variable. 2021-12-14 09:25:46 -08:00
Nicholas Clarke 319153140d Reduce risk of inconsistent DBs on code interruption. 2021-12-14 09:24:40 -08:00
Nicholas Clarke b6ff171a3d Added BNB, AVAX. 2021-12-14 09:04:17 -08:00
Nicholas Clarke 25693f6539 Store maker_client_order_id and taker_client_order_id from perp fill event. 2021-12-07 00:20:22 -08:00
Nicholas Clarke aef85a6530 Refactoring to reduce DB space requirements - no longer store entire transaction. 2021-12-07 00:19:50 -08:00
Nicholas Clarke 067ca2b087 Throw error when logs are truncated. 2021-12-07 00:18:34 -08:00
Nicholas Clarke 621579eb22 Added MSOL 2021-12-07 00:17:48 -08:00
Nicholas Clarke 34e59c29ec Add procfile 2021-11-15 16:51:15 -08:00
Nicholas Clarke 0d93e12851
Merge pull request #4 from blockworks-foundation/ts/anchorevents
Ts/anchorevents
2021-11-06 23:09:52 -07:00
Nicholas Clarke f7a25fa56b Support additional spot and perp markets. 2021-11-06 23:07:56 -07:00
Nicholas Clarke 093c3d4185 Handle CPI instructions. 2021-11-01 14:34:59 -07:00
Nicholas Clarke 9a2e553840 Bugfixes + ignore CachePerpMarkets logs (parse updateFunding only) 2021-11-01 14:34:33 -07:00
Nicholas Clarke 2868fa2691
Merge pull request #2 from blockworks-foundation/ts/anchorevents
Ts/anchorevents
2021-10-19 09:16:56 -07:00
Nicholas Clarke 40970da3ff Bugfixes - liquidateTokenAndPerp, tokenBalance 2021-10-19 09:12:57 -07:00
Nicholas Clarke 2fc8605bc9 Various bugfixes to anchor parsers - net balances, fill events, openOrdersBalance. 2021-10-18 22:45:06 -07:00
Nicholas Clarke ff8a3c0f37 Convert values in MngoAccrual and OpenOrdersBalance to Ui amounts. 2021-10-18 14:15:48 -07:00
Nicholas Clarke 2d94d75a10 Added parsers for UpdateRootBankLog, CachePerpMarketsLog, OpenOrdersBalanceLog, MngoAccrualLog 2021-10-17 23:21:27 -07:00
Nicholas Clarke 2de3415975 Switch between json log parsing and anchor event parsing using transaction slot. 2021-10-17 21:50:48 -07:00
Nicholas Clarke 05eb106a77 Merge remote-tracking branch 'origin/master' into ts/anchorevents 2021-10-17 15:28:59 -07:00
Nicholas Clarke 1acc0697a2 Rename parstTransactions.ts to parseAnchorTransactions.ts 2021-10-17 15:17:08 -07:00
dd f5d711f04b updated price and quantity adjustments in FillLog 2021-10-17 17:46:35 -04:00
Nicholas Clarke 70e0a3b1d6
Merge pull request #1 from blockworks-foundation/dd/fundinglog
Dd/fundinglog
2021-10-17 14:45:01 -07:00
Nicholas Clarke cfbe9923ba Parsing fixes for settle pnl and settle fees 2021-10-17 14:43:15 -07:00