Geoff Taylor
17d2f8f8b4
Made sure commands using Context used it in a with statement.
2022-02-17 14:54:38 +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
d8ffa03491
Refactored to use mango.output() consistently instead of print().
2022-01-11 14:36:08 +00:00
Geoff Taylor
27c5e676f3
Refactored notifications.
2021-10-28 12:19:18 +01:00
Geoff Taylor
8257902003
Removed use of pyston in commands.
2021-10-08 18:15:40 +01:00
Geoff Taylor
7c17f5cbc4
Added --log-suppress-timestamp parameter. Centralised much CLI argument handling.
2021-09-13 14:05:19 +01:00
Geoff Taylor
9159d615c4
Updated dependencies and fixed subsequent issues.
2021-08-27 20:37:23 +01:00
Geoff Taylor
261848f325
Big renaming of Context properties to make them more consistent and appropriate.
2021-08-26 10:31:02 +01:00
Geoff Taylor
9b6f33d7e6
Added --name parameter to programs and context to allow better reporting of errors.
2021-08-09 10:27:47 +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
8fe48de527
Moved functionality into *Market objects.
2021-07-23 10:20:44 +01:00
Geoff Taylor
cd46c1c98b
First cut at a lot of V3 code.
2021-06-25 10:33:40 +01:00
Geoff Taylor
aac32ba716
Wallet can now be loaded from environment.
...
* Centralised configuration of Wallet from command-line
* Added loading Wallet from environment variables
* Improved command-line handling of many commands
2021-06-17 12:06:39 +01:00
Geoff Taylor
f63592878f
Added command notify-below-minimum-sol-balance to send a notification if a monitored account is running out of SOLs.
2021-06-16 16:06:47 +01:00