Commit Graph

678 Commits

Author SHA1 Message Date
Geoff Taylor 5db9dfbd30 Another attempt at making Bandit happy. 2022-01-11 15:45:28 +00:00
Geoff Taylor 56cb69fe4d Another attempt at finding the right line to tell Bandit to allow 'pass'. 2022-01-11 15:24:36 +00:00
Geoff Taylor 2d24d6f74e Trying again to get Bandit to accept the false positive. 2022-01-11 15:20:15 +00:00
Geoff Taylor c07216a224 Marked a Bandit B110 false positive to be ignored. 2022-01-11 14:58:11 +00:00
Geoff Taylor 78921bd543 Removed assertions from layouts, replaced with Exceptions. 2022-01-11 14:53:36 +00:00
Geoff Taylor bd35dc7fb4 Export TransactionAlreadyProcessedException and StaleSlotException. 2022-01-11 14:43:14 +00:00
Geoff Taylor d8ffa03491 Refactored to use mango.output() consistently instead of print(). 2022-01-11 14:36:08 +00:00
Geoff Taylor 6352844ed1 Improved perp cranking and added public key sorting tests. 2022-01-11 12:24:15 +00:00
Geoff Taylor 59394060e9 Merge branch 'main' of https://github.com/blockworks-foundation/mango-explorer into main 2022-01-11 12:21:13 +00:00
Geoff Taylor 047193c864 Updated docker base image to a slimmer, more up-to-date version. 2022-01-11 12:20:38 +00:00
Geoff Taylor b33ea6f6db
Merge pull request #26 from silas-x/main
Automated security scanning
2022-01-11 10:25:29 +00:00
Geoff Taylor 52e9201074 Improved sorting of public keys, and added test to make sure our sort order matches Rust's. 2022-01-10 14:38:05 +00:00
Geoff Taylor f652ebfede Updated to very latest SPL tokenlist. 2022-01-09 19:53:37 +00:00
Geoff Taylor 7b2479829b
Merge pull request #27 from kronael/20220109_tokenslist_update
Update solana.tokenslist.json
2022-01-09 19:49:41 +00:00
Ondrej Vostal 0990ce12e2 Update solana.tokenslist.json
Mainly because AVAX, LUNA, BNB SPOT markets added to Mango.
2022-01-09 20:27:16 +01:00
Geoff Taylor 6292c089c2 v3.2.16 2022-01-09 19:12:08 +00:00
Geoff Taylor 7ed89c364a Updated ids.json for new spot markets. 2022-01-09 19:11:20 +00:00
silas 7e22864f54
Including Bandit 2022-01-09 17:57:35 +00:00
silas 0a43ab4fe0
Syntax fix 2022-01-09 17:51:37 +00:00
silas f73df4574e
New feature: dockerfile lint 2022-01-09 17:43:21 +00:00
silas bcda27443f
Create trivy-scan.yml 2022-01-08 19:13:20 +00:00
silas 7697cc3dad
Create codeql-scan.yml 2022-01-08 19:12:47 +00:00
Geoff Taylor 63d930e27c v3.2.15 2022-01-08 17:40:24 +00:00
Geoff Taylor fa47956fa0 Fixed incorrect market index for MATIC-PERP on devnet.2. 2022-01-08 17:38:48 +00:00
Geoff Taylor 627a68a166 Found an account where our calculations didn't match reality, so fixed bug and added it to testdata. 2022-01-08 17:34:32 +00:00
Geoff Taylor 70efa5f869 Removed include_unsettled_quote parameter in health calculation. 2022-01-07 17:40:48 +00:00
Geoff Taylor 547ba1fe05 Added debug log of transaction signature. 2022-01-07 17:40:17 +00:00
Geoff Taylor 339f77d2ec Renamed version command mango-explorer-version to avoid naming conflict. 2022-01-06 18:00:50 +00:00
Geoff Taylor 716f5cba51 v3.2.14 2022-01-06 16:42:04 +00:00
Geoff Taylor d8e61625cf Preliminary use of DataFrame calculations on Accounts. 2022-01-06 16:34:18 +00:00
Geoff Taylor 3947e337bc v3.2.13 2022-01-04 10:06:57 +00:00
Geoff Taylor 92929f213e Updated ids.json with mainnet LUNA-PERP market. 2022-01-04 10:06:28 +00:00
Geoff Taylor 33391a3756 v3.2.12 2021-12-31 12:34:54 +00:00
Geoff Taylor 7953529365 Added MATIC to devnet Non-SPL token list. 2021-12-31 12:34:17 +00:00
Geoff Taylor 9e03f486ba v3.2.11 2021-12-31 12:07:42 +00:00
Geoff Taylor b65305bafc Updated ids.json for new devnet Matic market. 2021-12-31 11:58:37 +00:00
Geoff Taylor 4a6b899af3 Fixed deprecation warning for move of Python's Sequence base class from collections to collections.abc. 2021-12-31 11:57:42 +00:00
Geoff Taylor a149caefee
Merge pull request #22 from AaronCritchley/patch-1
Update the brief example in the README.md
2021-12-30 16:07:55 +00:00
Aaron Critchley b0c1805f4f
Restore original imports 2021-12-30 00:33:08 +00:00
Aaron Critchley a07f5f6d20
Implement suggested comments 2021-12-30 00:32:24 +00:00
Geoff Taylor 8b8d0da9cb
Merge pull request #23 from AaronCritchley/patch-2
MINOR: Correct a broken link in the README
2021-12-29 13:25:39 +00:00
Aaron Critchley 2c69af614d
MINOR: Correct a broken link in the README
One char change to fix the broken link to the example market making script
2021-12-28 21:24:44 +00:00
Aaron Critchley d74d773e25
Correct accidental removal of `os` import 2021-12-28 21:11:57 +00:00
Aaron Critchley 63dd3f3f90
Update the brief example in the README.md
The existing example is not functional, mostly because of the change from `load_orders` -> `load_orderbook`. This commit amends the example to be functional, with a small change to place the order at a value we'd typically expect to see in the orderbook representation rather than a fixed $ value, which is hopefully a bit easier for a first time user to understand when they can see their order in the orderbook.

I have kept the `print` convention of the existing example,
2021-12-28 21:09:55 +00:00
Geoff Taylor 5e697a3bd8 Fixed problem parsing price information in random taker script. 2021-12-27 15:50:01 +00:00
Geoff Taylor f17def5166 Added Pypi version 'shield' image to README.md 2021-12-27 13:11:02 +00:00
Geoff Taylor 646855d7b1 Updated README.md 2021-12-27 13:07:49 +00:00
Geoff Taylor ebabcb1445 Added --hedging-action-threshold documentation. 2021-12-24 11:29:45 +00:00
Geoff Taylor 904a8c0667 v3.2.10 2021-12-24 11:14:38 +00:00
Geoff Taylor 277e2534d9 Added PERPORDERBOOKSIDE to AccountInfo converters. 2021-12-22 20:03:51 +00:00