Commit Graph

71 Commits

Author SHA1 Message Date
drbh 41568014eb implement the ability to leave a memo on token creation 2021-05-11 20:21:08 -07:00
Trent Nelson dfc5cc5a23 token-cli: Fix ATA creation in offline mode 2021-04-23 07:42:45 +00:00
Trent Nelson 96901b1299 token-cli: sign_only gates for `transfer` 2021-04-14 12:13:52 -06:00
Trent Nelson b8a773fddd token-cli: sign_only gates for `authorize` 2021-04-14 12:13:52 -06:00
Trent Nelson 4374d8dee4 token-cli: Fix transfer to multisig ATAs 2021-04-14 12:13:52 -06:00
Trent Nelson 6a52ba7d92 token-cli: sign_only gates for `create-account` 2021-04-14 12:13:52 -06:00
Trent Nelson 84f2f33f49 spl-token-cli: Use CLI config wallet for nonce authority fallback 2021-04-01 01:41:24 -06:00
Trent Nelson 25a6a6e923 spl-token-cli: Sort multisigners 2021-04-01 01:41:13 -06:00
Trent Nelson 8b989d562b spl-token-cli: Simplify owner resolution 2021-03-31 23:52:16 -06:00
Tyera Eulberg f2de73da8e
spl-token-cli: support ATA in close, balance, and account-info (#1537)
* 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
2021-03-30 22:31:54 +00:00
Ryo Onodera 0500f5fb02
Add spl-token transfer --no-wait (#1525) 2021-03-30 16:25:21 +09:00
Tyera Eulberg 75e122061e
Accounts: check mint if provided, use helper (#1503) 2021-03-24 00:06:39 +00:00
Tyera Eulberg a3e8af2068
spl-token-cli: use ATA by default in wrap/unwrap commands (#1492)
* Wrap to ATA by default

* Unwrap ATA by default

* Review comments
2021-03-23 15:48:27 -06:00
Tyera Eulberg 80819fa05a
Transfer from ATA by default (#1487)
* Transfer from ATA by default

* Update token/cli/src/main.rs
2021-03-23 04:12:29 +00:00
Tyera Eulberg 603a94327f
Add spl-token address command (#1484) 2021-03-22 23:58:09 +00:00
Tyera Eulberg 04fc247b2e
Reorder App subcommands (#1485) 2021-03-22 22:47:25 +00:00
Michael Vines bb05462d59 Rename --allow-empty-recipient to --allow-unfunded-recipient 2021-03-22 13:45:18 -07:00
Michael Vines 58807c5f8b Back out clippy::manual_map for now 2021-03-16 22:22:59 -07:00
Michael Vines af5fdb3146 Bump Rust version to 1.50.0 2021-03-16 22:22:59 -07:00
Tyera Eulberg d65d2eac41
Token cli: Improve authorize command (#1445)
* 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>
2021-03-16 13:59:21 -06:00
Justin Starry 5aa60dd892
token-cli: Don't sign with owner when creating an associated token account (#1449) 2021-03-16 15:59:38 +08:00
Tyera Eulberg 5aa0341478
Token cli: spl-token accounts improvements (#1440)
* 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
2021-03-12 19:34:14 -07:00
Tyera Eulberg 123f0daffe
Allow pubkey owner for accounts subcommand (#1439) 2021-03-11 15:40:47 -07:00
Tyera Eulberg 7a2d17b57f
Enable short arg, monikers (#1433) 2021-03-11 06:44:00 +00:00
Tyera Eulberg f0b70989c0
Use forward-compatible apis (#1353) 2021-03-02 09:56:34 -07:00
Michael Vines a782f3e52f Add --allow-empty-recipient to `transfer` command 2021-02-22 11:50:34 -08:00
Trent Nelson 188c03e9a1 chore: bump solana crates to 1.5.6 2021-02-11 16:30:03 -07:00
Michael Vines 7e3115fb25 Avoid RpcClient::get_account() in some cases 2020-11-19 10:28:18 -08:00
Michael Vines 222ec663df Use RpcClient::new_with_commitment() 2020-11-18 04:37:30 +00:00
Michael Vines 0bafe9891d spl-token transfer now supports ALL keyword 2020-11-18 02:06:46 +00:00
Michael Vines 43d808c5fd Clean up `spl-token accounts <MINT>` output 2020-11-18 02:05:52 +00:00
Tyera Eulberg 6ee1f09311
Use config commitment for balance checks (#842) 2020-11-14 01:24:13 -07:00
Michael Vines 645a9874d3 Output tweaks 2020-11-05 13:42:48 -08:00
Michael Vines 8ea9b28edf Add associated token account support 2020-11-04 09:13:21 -08:00
Tyera Eulberg c312a0576a
Clippy suggestions (#765) 2020-10-31 19:10:33 -06:00
Trent Nelson de23dbc8a0 token-cli: Don't panic on signing errors 2020-10-30 15:57:20 -06:00
Trent Nelson d02975bb0b token-cli: Plumb multisig support for supporting subcommands 2020-10-30 15:57:20 -06:00
Trent Nelson 23e2b0bed3 token-cli: Add `multisig-info` subcommand 2020-10-30 15:57:20 -06:00
Trent Nelson f40236928d token-cli: Add `create-multisig` subcommand 2020-10-30 15:57:20 -06:00
Michael Vines 9c7c12c361 Correct help text 2020-10-28 17:43:57 -07:00
Trent Nelson b775896c8c token-cli: Support offline signing 2020-10-27 01:24:03 +00:00
Trent Nelson 3deb46f35a token-cli: Support durable nonces 2020-10-27 01:24:03 +00:00
Trent Nelson 5193078568 token-cli: Use subcommand arg matches for config 2020-10-27 01:24:03 +00:00
Trent Nelson dcc28d311d token-cli: Send transactions with config 2020-10-27 01:24:03 +00:00
Trent Nelson 6096e7b554 token-cli: Use clap-utils fee payer arg 2020-10-27 01:24:03 +00:00
Trent Nelson 748ff6c7d8 spl-token-cli: Consolidate TX construction/signing 2020-09-30 20:17:53 +00:00
Trent Nelson e0fb75d134 spl-token-cli: Use signer-based arg validators/parsers 2020-09-30 20:17:53 +00:00
Trent Nelson c4cf9ffef4 token: Bump solana crates to 1.3.14 2020-09-30 20:17:53 +00:00
Tyera Eulberg be9b88d546
Add close subcommand (#542) 2020-09-26 00:48:08 +00:00
Tyera Eulberg 94861a39e8
Add approve, revoke subcommands (#540)
* Add approve, revoke subcommands

* Use get_token_account api to reduce rpc calls
2020-09-25 21:51:47 +00:00