Commit Graph

32 Commits

Author SHA1 Message Date
Geoff Taylor a72d29ca49 Extended freshness check to require fresh data after sending a transaction. 2021-12-04 17:06:57 +00:00
Geoff Taylor 1f865285c1 Trying a new approach to tackle stale data coming back from the RPC server. 2021-12-04 13:56:16 +00:00
Geoff Taylor 906e18508c Fixed bug parsing transaction for error reporting. 2021-12-02 08:48:15 +00:00
Geoff Taylor cbedb3d84c Simpler, clearer approach to connection error handling. 2021-12-01 16:14:30 +00:00
Geoff Taylor 3dceb8e544 Updated client for new parameter to pyserum's get_confirmed_signature_for_address2(). 2021-11-25 16:28:30 +00:00
Geoff Taylor d15e953ae7 Refactor of code to work with mypy --strict 2021-11-09 13:23:36 +00:00
Geoff Taylor 84173b65c9 Added some basic IDL parsing so code can expand log messages with events. 2021-10-15 20:37:43 +01:00
Geoff Taylor 3587ce1b26 Made mango-explorer a pip-installable package. 2021-10-11 17:08:54 +01:00
Geoff Taylor 2f11f99b18 Improved some exception messages and handling. 2021-10-01 14:51:39 +01:00
Geoff Taylor 5c0fc63151 Fixed exception message. 2021-09-30 14:21:58 +01:00
Geoff Taylor 1d38327d88 Trying to clean up exception details in logging by re-using the raised transaction on BlockhashNotFound. 2021-09-30 14:04:31 +01:00
Geoff Taylor 0fcd5924d8 Made exceptions more detailed and consistent. 2021-09-30 12:08:01 +01:00
Geoff Taylor 59936b08d5 Added distinctness to fetching blockhashes, if caching. 2021-09-30 11:23:33 +01:00
Geoff Taylor 68e31dbfcb Added BlockhashNotFoundException and NodeIsBehindException to make it easier for client code to shift behaviour when these situations arise. 2021-09-30 10:48:55 +01:00
Geoff Taylor 43be1fa192 Can now use a separate commitment for fetching the recent blockhash. 2021-09-16 15:36:52 +01:00
Geoff Taylor 47dcfae63d Added base64+zstd as a compression option for encoding. 2021-09-15 20:44:28 +01:00
Geoff Taylor 9f74952444 Added --encoding parameter. 2021-09-15 19:27:07 +01:00
Geoff Taylor 8596a4aa58 Fixed spot fee discount address to use MSRM or SRM vault. 2021-09-13 16:15:20 +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 70a038ffd9 Added a --blockhash-cache-duration parameter. 2021-09-07 21:44:48 +01:00
Geoff Taylor ce25003a2c Added caching to get_recent_blockhash(). 2021-09-07 21:12:37 +01:00
Geoff Taylor 71ba03935f Added send_transaction response to debug log. 2021-09-02 15:23:53 +01:00
Geoff Taylor 9111294f2d Added request/response data to TransactionException. 2021-08-31 10:40:05 +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 a96b67e729 Improved transaction exception reporting. 2021-08-19 09:46:54 +01:00
Geoff Taylor 4c544cb68c Fixed TransactionException not properly interpreting error responses. 2021-08-17 20:45:26 +01:00
Geoff Taylor 6a61b55e93 Improved transaction exception handling. 2021-08-17 12:50:27 +01:00
Geoff Taylor 162f41e2d0 Added a redeem-mango command. 2021-08-11 19:14:26 +01:00
Geoff Taylor 94c6fa149e Sometimes Solana returns 'err' as a string instead of an array of strings. 2021-08-09 21:07:21 +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