* spl-token: WIP
* Remove and_then, move tx handling in separate function- output handling still missing
* spl-token: add basic output handling for all calls, add detailed output to create-token
* spl-token: remove changes in bench that are not strictly necessary to remove # of files touched in this PR
* [spl-token] cli: HandleTxReturn is now TransactionReturnData
* [spl-token] cli: Make commands return output String that is printed in fn main()
* [spl-token] cli: remove old todos
* [spl-token] cli: only use no_wait arg in command_transfer and use constant for "create-token"
* Allow GC to close empty associated accounts
Empty associated accounts will only be closed in case the new flag del_associated_accounts is set. Otherwise behaviour is as before.
Useage:
spl-token gc --del_associated_accounts
* use kebab-case
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* align coding style
Thank you jon!
* Add sanity check
* correcting amount check before closing
* formatting correcly
using cargo fmt
* changing sanity check to assert!
Co-authored-by: Sack <none>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
Co-authored-by: Mark Sackerberg <Contact@Discord>
* Update all dependencies to 1.7.3, fix issues
* Remove esm from mocha
* Fix missed token test
* Also update rust version
* token-swap: update tolerance on sim test
* Run `cargo clippy --fix` for needless_borrow errors
* Rerun cargo fmt
* Use ATA by default in close command
* Use ATA by default in balance/account-info queries
* Add Aux tag and gc messaging to spl-token account-info
* Recommend 'token' only if no args provided
* Return clear error message if auth type is incompatible with account
* Report real current authority
* Prevent reauth of owner's ATA
* Fix typo, messaging improvements
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Swap token/account to prep for display changes
* Refactor accounts parsing for deterministic order and to batch by mint
* Add Aux tags and gc alert
* Hide account addresses for non-verbose returns
* Review nits
* Set balance display len dynamically
* Bump solana version to reduce Account parse failures
* Fix aux width