* cli: remove offline args from commands that create accounts
* cli: implement finish_tx, to be a replacement for handle_tx, which branches on the client return
* client: validate a transaction is fully signed before sending over rpc
* client: convert payer from Signer to Arc<dyn Signer> to support cli signers
* client: support nonce mode
* client: change create_mint to be an object method that returns SendTransaction::Output
* client: rename S2 to S everywhere that Token<T, S> is Token<T>
* token-cli: Split out CI into separate step, run tests in serial
* Remove dependency on cargo-test-bpf to speed things up
* Don't download programs since they won't be available
* Check if recipient is a wrapped account
* Make clippy and fmt happy
* Avoided mutable, more functional clarity
* Add test for closing wrapped sol account
* wrap the default account
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Fix formatting and failing tests
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* added a flag to check if the recipient address is correct
* small fix
* Made the changes of adding the check to a suggested block
* updating from base
* was able to clear merge conflicts
* added a couple tests
* better names for tests
* done with fixes
* cargo fmt
* token-cli: Add tests for all cases from docs
* Add TestValidator and build.rs for programs
* Fix solana-test-validator version
* Add solana-test-validator to patch script
* 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>