Commit Graph

26 Commits

Author SHA1 Message Date
Geoff Taylor b363a3b0bb Added Keeper instructions and a keeper command. 2022-03-08 08:53:11 +00:00
Geoff Taylor a1be4a68db send-sols and send-token now accept --wallet-target as a parameter, calculating what should be transferred to leave the desired amount in the wallet. (send-sols takes the cost of the transaction into account so the amount left is accurate.) 2022-03-03 14:25:40 +00:00
Geoff Taylor bbc52ebead Added is_empty as property of CombinableInstructions. 2022-03-02 18:46:33 +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 99c3f2184b Improved exception message for "Instruction exceeds maximum size". 2022-01-22 16:51:04 +00:00
Geoff Taylor bc20564e0b Explicitly made loggers protected instead of public. 2021-12-13 11:15:24 +00:00
Geoff Taylor c2eecdd80f Naive start on async/await with CombinableInstruction.execute_async(context). 2021-12-01 19:22:36 +00:00
Geoff Taylor 4bba5cb238 Turned off (expensive) PySerum check of transaction size - now running just with our own cheaper/faster version. 2021-11-23 11:25:54 +00:00
Geoff Taylor 6a1a373eb7 Fixed call to calculate pyserum transaction size. 2021-11-22 17:09:39 +00:00
Geoff Taylor 88b0198f13 Added faster calculation for transaction size - running it and original method together for now for comparison. 2021-11-17 17:27:42 +00:00
Geoff Taylor d15e953ae7 Refactor of code to work with mypy --strict 2021-11-09 13:23:36 +00:00
Geoff Taylor 3587ce1b26 Made mango-explorer a pip-installable package. 2021-10-11 17:08:54 +01:00
Geoff Taylor 5aae1f5aab Improved output of instructions when over 1232-byte limit. 2021-09-09 19:02:17 +01:00
Geoff Taylor a96b67e729 Improved transaction exception reporting. 2021-08-19 09:46:54 +01:00
Geoff Taylor 84b664b4fd Fixed problem with instruction display. 2021-08-14 11:09:27 +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 7033a080bf Better logging of failing instructions. 2021-08-04 17:50:38 +01:00
Geoff Taylor 1b87591ae7 Improved context handling of skip_preflight. 2021-08-03 09:14:22 +01:00
Geoff Taylor 7e7c21c0aa Marketmaker no longer tries to run instructions in parallel. (I hope this is a temporary fix.) 2021-08-02 17:48:20 +01:00
Geoff Taylor 107177ee86 Added execute_and_continue_on_failures() to allow MarketMaker to more instructions even if some fail. 2021-07-22 17:54:48 +01:00
Geoff Taylor bbea9594d1 Fixed failing test. 2021-07-17 14:06:18 +01:00
Geoff Taylor 7db8326a7c More realistic market-maker is now available. 2021-07-15 21:03:22 +01:00
Geoff Taylor 9f99ecf650 Updated SimpleMarketMaker so it could run well against pure Serum markets. 2021-07-14 14:03:51 +01:00
Geoff Taylor 19e4d948d3 Updates to allow some market making on Serum. 2021-07-13 20:01:32 +01:00
Geoff Taylor 6a15c81fa3 New approach to transactions allowing them to be split up.
* CombinableTransactions now separated out.
* CombinableTransactions are now size-aware when being executed, and will automatically split into batches for execution if they are too big.
* New MarketInstructionBuilder approach - each market type can now have its own way of building instructions for common operations.
2021-07-12 17:18:56 +01:00