Commit Graph

17 Commits

Author SHA1 Message Date
Geoff Taylor 7fafcce137 AccountInfo now provides better error message when loading multiple accounts fails for an account. 2022-03-16 15:52:23 +00:00
Geoff Taylor d2fb7e50e1 Added AccountInfo.load_by_program() to return AccountInfos since that's nearly always what we want. 2022-02-16 15:14:27 +00:00
Geoff Taylor e0fe4e1f6f Added a show-referrer command and the ability to fetch it from the Account. 2022-02-09 20:08:17 +00:00
Geoff Taylor 5c3b0befa9 Switched from autopep8 to black for code formatting. Reformatted all files. Updated dependencies. 2022-02-09 19:31:50 +00:00
Geoff Taylor bc20564e0b Explicitly made loggers protected instead of public. 2021-12-13 11:15:24 +00:00
Geoff Taylor cbedb3d84c Simpler, clearer approach to connection error handling. 2021-12-01 16:14:30 +00:00
Geoff Taylor d15e953ae7 Refactor of code to work with mypy --strict 2021-11-09 13:23:36 +00:00
Geoff Taylor 3ccca8bd01 Start of work on account calculations. 2021-10-04 18:27:07 +01:00
Geoff Taylor 4310cc7e2a Brought V2 changes to get_multiple_accounts() across to V3. 2021-09-13 12:17:19 +01:00
Geoff Taylor 75d24ff367 Fixed airdrop command in quickstart. 2021-09-01 09:25:33 +01:00
Geoff Taylor 9159d615c4 Updated dependencies and fixed subsequent issues. 2021-08-27 20:37:23 +01:00
Geoff Taylor f596d571f6 Big change - now uses our own 'Client' which handles some situations better from our point of view:
* Being able to specify commitment on the Client instead of every call.
* Better error handling (more exception details, and specific rate limiting exceptions)
* More obvious return values, instead of always having to dereference "result".
2021-08-07 15:07:19 +01:00
Geoff Taylor 5b71ffbd18 Big Rename - removal of old Group and MarginAccount, deletion of a lot of code that is no longer relevant.
* Added some TODO comments where work needs to be done but pieces are currently missing.
2021-06-25 15:50:37 +01:00
Geoff Taylor cd46c1c98b First cut at a lot of V3 code. 2021-06-25 10:33:40 +01:00
Geoff Taylor f4e034a943 Added 'processed' commitment to client calls where it was missing. 2021-06-23 11:36:35 +01:00
Geoff Taylor f7bd67308e Improved AccountInfo.load_multiple and made better use of it fetching updated prices. 2021-06-22 09:43:31 +01:00
Geoff Taylor 5e59d8a7e3 Moved library code to .py files instead of notebooks.
* This is a big change that touched most files in the project.
* Library code is now an actual package, in /mango.
* Pure .py files used for shared code - easier to edit/debug, and should ease move to installable package later.
* Removed many notebooks. The remaining notebooks are useful 'display'/'show' notebooks for investigating Mango objects.
* More tests! The test story is now much improved, but more unit tests are still needed.
* There's now a Makefile for project operations.
2021-06-07 15:10:18 +01:00