* token: Reassign and reallocate accounts on close
* Revert "Refactor unpack and make test more robust (#3417)"
This reverts commit c618de374e.
* Revert "check that unpack is tolerant of small sizes (#3416)"
This reverts commit 22faa05f18.
* Also revert d7f352bd78
* 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
* ci: Separate twoxtx build step, match Rust version
* Make a change to trigger CI
* Really trigger CI this time
* Fixup yaml issue
* Also set RUST_STABLE_VERSION
* Define env variable earlier
* 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>
* Add serde to token-2022
* Add tests
* Fix feature syntax
* Formatting, enabling features
* Make CI work, and some naming nit cleanup
* Un-async tests
Co-authored-by: jon wong <j@jnwng.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* token-2022: limit incoming transfers for confidential transfer extension
* token-2022: add maximum pending counter for confidential extension in client
* token-2022: update tests for ct configure account
* token-2022: cargo fmt
* divide pending balance into lo and hi
* token-2022: update ct processor for lo and hi pending balances
* token-2022: limit confidential transfer deposit and transfer amount in token client
* token_2022: rename TokenError::IllegalAmount
* token-2022: compare max pending credit as u64
* token-2022: fmt
* token-2022: minor fix error from rebase
* Update token/program-2022/src/extension/confidential_transfer/processor.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* token-2022: update configure account initialization comments
* token-2022: use strict comparison for max pending balance credit counter check
* token-2022: update deposit tests to check `pending_balance_hi` populated
* token-2022: update deposit tests to check that deposit and transfer fails when max pending exceeded
* token-2022: reset pending balance counter on `ApplyPendingBalance`
* token-2022: fix cargo test cases for credit counter
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* token-2022: prevent an already configured confidential account to be configured again
* token-2022: add overwrite flag to init extension
* token-2022: clippy
* token-2022: update initialize mint for interest bearing mint
* token-2022: confidential transfer mint init allow overwrite