Commit Graph

284 Commits

Author SHA1 Message Date
hanako mumei a5a565b56c token-client: move decimals from Token methods to struct 2022-10-07 12:24:36 -07:00
hanako mumei 4842217611 token-cli: final accounts command cleanups 2022-10-07 10:18:55 -07:00
hanako mumei 7583907f10 token-cli: display delegate and close for accounts 2022-10-07 10:18:55 -07:00
hanako mumei 61bee36db6 token-cli: fliter accounts display by delegate or close
also add ability to print only account addresses
2022-10-07 10:18:55 -07:00
hanako mumei 4b4bbb3959 token-cli: improve accounts header display 2022-10-07 10:18:55 -07:00
hanako mumei b0903340b9 token-cli: support multiple programs for `spl-token accounts`
also remove decimals from CliTokenAccount, which turns out to be extraneous
2022-10-07 10:18:55 -07:00
hanako mumei 200b2acab4 token-cli: final fixes for client conversion 2022-10-06 17:33:34 -07:00
hanako mumei 2c6fbf7c67 token-cli: make gc transfer tokens from uncloseable
also change client transfer to use idempotent associated account instruction
2022-10-06 17:33:34 -07:00
hanako mumei f8d82e5dbd token-cli: safer behavior for transfer decimals 2022-10-06 17:33:34 -07:00
hanako mumei 7b86fc9038 token-cli: remove handle_tx 2022-10-06 17:33:34 -07:00
hanako mumei 7847f35f1e token-cli: convert transfer to client 2022-10-06 17:33:34 -07:00
hanako mumei e6739b5bae token-cli: convert gc to client
add new client function empty_and_close_auxiliary_account which does what it says
also remove sign-only mode from command_close to permit client close behave more sensibly
2022-10-06 17:33:34 -07:00
hanako mumei 186303a9d2 token-cli: convert create_multisig to client 2022-10-06 17:33:34 -07:00
hanako mumei 37168db058 token-cli: convert required memos and interest rate to client 2022-10-06 17:33:34 -07:00
Jon Cinque 96ce922727
token-cli: Add directions for building and running tests (#3673) 2022-10-06 19:37:22 +02:00
hanako mumei 065e62922a token-cli: load config if exists without -C 2022-09-29 14:34:05 -07:00
hanako mumei e988b163bb token-cli: constrain program id input 2022-09-21 10:37:53 -07:00
hanako mumei 2ae2a6bdf3 token-cli: test --immutable, final cleanups 2022-09-21 10:37:53 -07:00
hanako mumei 304e1bd0f7 token-cli: implement --immutable for wrap 2022-09-21 10:37:53 -07:00
hanako mumei 5756e7f9b7 token-cli: convert unwrap and sync_native to client
also allow client to control its own nativeness (nativity?)
2022-09-21 10:37:53 -07:00
hanako mumei 953e06b3a2 token-client: support wrap
also convert cli to use client for wrap
2022-09-21 10:37:53 -07:00
hanako mumei 6b05f02be7 token-cli: implement --immutable for create-account 2022-09-21 10:37:53 -07:00
hanako mumei 697a9e3d5e token-cli: convert create-account to use client 2022-09-21 10:37:53 -07:00
hanako mumei e5d4b824b7 token-cli: remove unnecessary fetch for memo transfers 2022-09-16 13:24:16 -07:00
Andrii Tretyakov feeda6a61e
token-cli: Memo transfer extension (#3525)
token-cli: Add support for required transfer memos
2022-09-16 11:17:42 -07:00
Jon Cinque f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed (#3606) 2022-09-15 13:16:53 +02:00
hanako mumei 2acc42fd96 token-cli: display all extensions except confidential 2022-09-14 11:36:40 -07:00
hanako mumei f3f9995484 token-cli: impl display for interest and transfer fee 2022-09-14 11:36:40 -07:00
hanako mumei bdd0d4938a token-cli: impl display for half of extensions 2022-09-14 11:36:40 -07:00
hanako mumei b90903c990 token-cli: impl two extensions for display
also indent all the displys cutely
2022-09-14 11:36:40 -07:00
hanako mumei 6d61b8e3e4 token-cli: impl `spl-token display` for mint
also show decimals for accounts, because we can
2022-09-14 11:36:40 -07:00
hanako mumei 00b8e7a8b1 token-cli: modernize account-info, impl display 2022-09-14 11:36:40 -07:00
hanako mumei f8d1503acf token-cli: convert multisig display to UiMultisig 2022-09-14 11:36:40 -07:00
hanako mumei bdc3087533 token-cli: modernize multisig display 2022-09-14 11:36:40 -07:00
hanako mumei 065a04788d token-cli: remove unnecessary program_id logic 2022-09-09 09:56:19 -07:00
hanako mumei 4dfd23e0b6 token-client: memo now explicitly declares signers 2022-09-07 18:17:54 -07:00
hanako mumei 8e6caf45ac token-cli: new config function get_account_checked
this replaces all instances of rpc_client.get_account -> check_owner
also we convert from rpc_client to program_client to further enforce offlineness
2022-09-07 14:36:39 -07:00
hanako mumei d2c33e26a4 token-cli: infer program_id based on cli args 2022-09-07 14:36:39 -07:00
hanako mumei 191977e2c6 token-cli: normalize argument names/descriptions
we now strictly adhere to the pattern:
* positional arg named `token`: a mint, described `TOKEN_MINT_ADDRESS`
* positional arg named `account`: an account, described `TOKEN_ACCOUNT_ADDRESS`
* positional arg named `address`: a mint or account, described `TOKEN_ADDRESS`, or a multisig, described `MULTISIG_ACCOUNT_ADDRESS`
* `--address` flag, named `address`: an account, described `TOKEN_ACCOUNT_ADDRESS`

normalize burn, unwrap, and supply to follow this convention
2022-09-07 14:36:39 -07:00
hanako mumei b9cab85d81 token-cli: final cleanups on client refactor
use mint for Token objects whenever possible, rework multisig_signers to be prettier
2022-08-31 13:57:41 -07:00
hanako mumei 5e494c63e0 token-cli: promote fee_payer to Arc<dyn Signer> 2022-08-31 13:57:41 -07:00
hanako mumei cf25381108 token-cli: use token client for approve 2022-08-31 13:57:41 -07:00
hanako mumei b91972debb token-cli: use token client for freeze/thaw/revoke 2022-08-31 13:57:41 -07:00
hanako mumei 46206fe64c token-cli: support memo on command_mint 2022-08-31 13:57:41 -07:00
hanako mumei 8e196e5e77 token-cli: use token client for command_burn 2022-08-31 13:57:41 -07:00
hanako mumei e540b172db token-cli: use token client for command_mint
* client: change mint_to to accept decimals and prefer mint_checked
* client: move multisig key winnowing into utility function
2022-08-31 13:57:41 -07:00
hanako mumei 8d1e57018a token-cli: finish interest bearing mint
minor cleanups, guards on set-interest-rate, impl set-authority for interest-bearing mints
2022-08-30 21:12:59 -07:00
Udbhav Muthakana fbae99fe2c token-cli: Support the InterestBearingMint extension 2022-08-30 21:12:59 -07:00
Andrii Tretyakov d65ab18fbd
token-cli: Removed usage of Account::LEN as a verificaton for token account (#3527)
replaced with Account::valid_account_data to support token2022
2022-08-29 12:42:33 -07:00
hanako mumei 84c566b13e bump token-cli to 2.0.17
release has already been made and lives in the `token-cli-v2.0.17-branch` branch
2022-08-25 17:54:38 -07:00