Commit Graph

308 Commits

Author SHA1 Message Date
Jon Cinque ae994afa3e
Update repo to `edition = "2021"` (#3900) 2022-12-13 23:46:26 +01:00
dependabot[bot] 3372eb6c0d
build(deps): bump console from 0.14.1 to 0.15.0 (#2676)
Bumps [console](https://github.com/mitsuhiko/console) from 0.14.1 to 0.15.0.
- [Release notes](https://github.com/mitsuhiko/console/releases)
- [Changelog](https://github.com/mitsuhiko/console/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/console/compare/0.14.1...v0.15.0)

---
updated-dependencies:
- dependency-name: console
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 22:54:55 +01:00
samkim-crypto bb404a6af5
update solana to 1.14.10 (#3872) 2022-12-06 12:59:00 +09:00
Athar Mohammad c7c12f987c
token-cli: support for permanent delegate (#3841)
* token-cli: support for permanent delegate

* using associated account helper
2022-11-30 17:19:22 +01:00
hanako mumei 1a0e7742dc token-cli: temp add wildcard to account output 2022-11-23 10:39:28 -08:00
hanako mumei 0de5f7339a bump token-cli to 2.2 and token-client to 0.3 2022-11-21 12:41:53 -08:00
hanako mumei 3c4267be06 token-2022: bump version to 0.5 2022-11-21 09:29:18 -08:00
hanako mumei 7f851bd75a token-cli: add --recipient-owner flag to mint 2022-11-15 18:40:25 -08:00
hanako mumei bc02c1139c token-cli: owner-related cleanups 2022-11-15 18:40:25 -08:00
Jon Cinque 8d0a2e1000
token-2022: Add PermanentDelegate extension (#3725)
* token-2022: Add PermanentDelegate extension

* Address feedback

* Refactor getting permanent delegate

* Rename function

* More cleanup

* Fix ATA
2022-11-15 14:10:59 +01:00
hanako mumei 0ddbd71302 token-cli: test close account 2022-11-14 12:57:08 -08:00
Jon Cinque d50f2745f8
token-cli: Support transfer fee extension (#3792)
* token-cli: Add transfer fee to create-token

* Add `expected-fee` arg to transfer

* Add withdraw-withheld-tokens implementation

* Add optional `Harvest` call while closing account

* Add `set-transfer-fee` command

* Fix rebase issues
2022-11-11 19:16:51 +01:00
Jon Cinque 374f5283ec
token-cli: Specify that `default-account-state` takes a value (#3800) 2022-11-04 17:06:40 +00:00
Jon Cinque 25817cbf08
token-cli: Support DefaultAccountState extension (#3785)
* token-cli: Support DefaultAccountState extension

* Switch to `default-account-state` flag

* Change error to assert

* Rebase fix
2022-11-03 00:50:51 +00:00
Jon Cinque 8e98905a8c
token-cli: Add non-transferable mint creation (#3795)
* token-cli: Add non-transferable mint creation

* Add alias
2022-11-03 00:35:30 +01:00
hanako mumei 0bc2a02f00 token-cli: support cpi guard enable/disable 2022-10-29 00:07:33 -07:00
hanako mumei fcb44af0f9 token-cli: more better errors in command_transfer
* check if the user needs to provide a memo
* dont let the user create ata accounts belonging to other token-owned accounts
* also, define valid program ids in one place and use for all tests
2022-10-27 11:18:54 -07:00
samkim-crypto 0c8fb24d47
upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
J e69c7706fb
`spl-token` cli - use default config file (#3738)
* add missing load from CONFIG_FILE default path
2022-10-25 14:41:37 -07:00
bji a7f6f8811e
token-cli: Only require default signer for commands which use it (#3293) 2022-10-14 17:50:33 +02:00
hanako mumei 88b147506d bump token-cli to 2.1.1 and token-client to 0.2.1 2022-10-12 10:48:23 -07:00
hanako mumei 3a87c8fc0a update solana to 1.14.4 2022-10-12 10:48:23 -07:00
hanako mumei 5f189d1fc0 bump token-client to 0.2.0 and token-cli to 2.1.0 2022-10-10 17:36:34 -07:00
hanako mumei c5a6d0ae31 token-cli: dont push fee_payer to bulk_signers 2022-10-08 21:41:21 -07:00
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