Commit Graph

214 Commits

Author SHA1 Message Date
Geoff Taylor 158e263242 Now builds Force Cancel and Partial Liquidate instructions. 2021-04-22 20:03:34 +01:00
Geoff Taylor 7d08e64f51 TOC and text update. 2021-04-22 15:28:02 +01:00
Geoff Taylor 87477784a7 Added custom CSS to fix a cell width problem when TOC showing. 2021-04-22 15:13:23 +01:00
Geoff Taylor 3928331cc3 Reformatted some header text and added TOC on all pages. 2021-04-22 14:28:32 +01:00
Geoff Taylor 081ca5d599 Added more text to AccountScout descriptions. 2021-04-22 13:45:06 +01:00
Geoff Taylor 3d6f24aee9 Working through liquidation, adding instructions.
- Moved AccountInfo to Context.ipynb to avoid dependency problems from Context to AccountInfo when Classes depends on Context
- Moved AccountInfo.load() operation into Context
- Expanded use of BalanceSheet - can now get a BalanceSheet for each token, either in native token ints or using current prices. Previous get_balance_sheet is now get_balance_sheet_totals()
- Changed Context's fetch_token_balance() to sum all token accounts with that mint and owner, not just pick the first one.
- Added Context.fetch_largest_token_account_for_owner() to efficiently pick a single token account from all those with the same owner and mint.
- Changed wallet file format and default filename to be more consistent with other Solana programs.
- Added an AccountScout notebook to verify an account has been setup properly for using the liquidator. It can print out a nice report as well.
- Added an Instructions notebook to gather the builders for the underlying instructions that will be sent to Solana.
- Added a Liquidation notebook to gather information about the liquidation process and as a place to add liquidation code in the future. (This is very rough.)
2021-04-22 13:19:34 +01:00
Geoff Taylor 5bc1326c6a Added Wallet.ipynb to load Account from private key file. 2021-04-19 10:07:31 +01:00
Geoff Taylor bdcba6534b Added Ripe Mangoes 🥭 to the Pandas page summary calculations. 2021-04-17 18:22:44 +01:00
Geoff Taylor f392174e10 Added Binder link to header of all notebooks.
This is so that anyone viewing a notebook on GitLab has an easy way to launch and run it.
2021-04-17 17:47:17 +01:00
Geoff Taylor 29798a4480 Added warning disclaimer. 2021-04-15 10:59:04 +01:00
Geoff Taylor f950bed04f Turned off profiling of ShowAllAccounts.ipynb. 2021-04-14 17:46:39 +01:00
Geoff Taylor 3f351fbc44 Added Binder badge to README.md 2021-04-14 17:29:13 +01:00
Geoff Taylor 647fe9e44f Hide index (margin account PublicKey) in Pandas page.
It probably makes more sense to show the Owner PublicKey, so keep that and hide the account address.
2021-04-14 17:28:13 +01:00
Geoff Taylor 2cc5135517 Initial import. 2021-04-14 16:51:39 +01:00