Commit Graph

52 Commits

Author SHA1 Message Date
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
Tyera Eulberg 72ec14a190
Flesh out SetAuthority capabilities (#531) 2020-09-25 12:27:45 -06:00
Trent Nelson ec9961cd7f spl-token-cli: Add 'account-info' subcommand 2020-09-24 20:38:28 -06:00
Tyera Eulberg 7903e62a08
Owner doesn't need to sign init transactions (#530) 2020-09-24 21:18:36 +00:00
Tyera Eulberg 5bf19b62f7
Clean up freeze/thaw querying for mint (#529) 2020-09-24 21:06:34 +00:00
Tyera Eulberg 9a7d5949c6
Bump spl-token-cli, and solana versions (#523)
* Bump spl-token-cli, incl solana versions

* Pin exact solana versions
2020-09-24 08:35:58 +00:00
Tyera Eulberg 4c93e07ec9
Add freeze and thaw functionality to spl-token cli (#511)
* Add arg to enable token mint to freeze

* Add freeze/thaw subcommands

* Add frozen marker to spl-token accounts

* Add todos to simplify args
2020-09-22 10:54:51 -06:00
Jack May e78e26597e Rename x2 instructions to xChecked 2020-09-22 02:51:27 -07:00
Tyera Eulberg bc91372f6f
Enable spl-token-cli args (#510) 2020-09-22 03:11:24 +00:00
Jack May 759fe1487e Switch to solana_sdk Pack and COption 2020-09-21 17:08:37 -07:00
Michael Vines 7acae7af7d Use SingleGossip commitment 2020-09-18 13:49:28 -07:00
Michael Vines cf50a55586 create-token/create-account now accept an optional keypair 2020-09-14 19:11:05 +00:00
Jack May 72c59056e5
Fix spelling (#430) 2020-09-11 09:32:49 -07:00
Trent Nelson 5f425e5a3e
Token CLI: Use Token2 instructions (#375) 2020-09-01 14:29:12 -06:00
Trent Nelson b011698251 Token CLI: Support arbitrary signers
eg. Ledger
2020-09-01 17:47:55 +00:00
Michael Vines eb1f41c4b6 Adapt to LEN 2020-08-29 14:37:10 -07:00
Tyera Eulberg b4a3674437
s/AccountHolder/AccountOwner (#356) 2020-08-28 12:11:57 -06:00
Jack May 2a5acff2d8
Safer pack/unpack (#349)
* Safer pack/unpack

* fix cli

* clippy

* fix swap

* nit

* clippy

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-08-27 21:19:15 -07:00
Tyera Eulberg 49e6e4a589
Reinstate Mint supply (#342)
* Reinstate Mint supply, and adjust with Minto & Burn

* C headers

* Patch token-cli

* Patch token-swap
2020-08-27 13:06:23 -06:00
Michael Vines 68db5f77a0 Port cli to token2 2020-08-26 23:10:18 -07:00