* check that unpack is tolerant of small sizes (#3416)
* Refactor unpack and make test more robust (#3417)
* Refactor hasty fix to match token-2022
* Make test exhaustive
* cargo fmt
Co-authored-by: Michael Vines <mvines@gmail.com>
* Readd proptests without losing unit test, #3421
Co-authored-by: anatoly yakovenko <anatoly@solana.com>
Co-authored-by: Michael Vines <mvines@gmail.com>
* 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
* Allow anyone to burn and close token Accounts owned by the system program and the incinerator
* Require rent from incinerator/system-owned token accounts be burnt when accounts closed
* Add support to OG program
* token: Support both token programs in associated-token-account
* Rename spl-token -> spl-token-2022, spl-token-legacy -> spl-token
* Use spl-token by default
* Check mint in get_account_data_len
* Add checks for either token program
* Rebase fix
* Update version comments in tests
I was confused when reading this comment and had to read the code to realize that the comment isn't a typo.
(Btw, let me know if this kind of small changes are helpful or not 👍.)
* Update all dependencies to 1.7.3, fix issues
* Remove esm from mocha
* Fix missed token test
* Also update rust version
* token-swap: update tolerance on sim test
* Run `cargo clippy --fix` for needless_borrow errors
* Rerun cargo fmt
* Add spl-token program id check helper function. Add program id to instruction bindings.
* Run cargo fmt
* Fixup tests
* Skip ATA tests when custom token program-id
Co-authored-by: Tyera Eulberg <tyera@solana.com>
Passes the owner as instruction data rather than on the accounts list,
improving CPI ergonomics where the owner's `AccountInfo` isn't otherwise
required