The create_associated_token_account was linked with the previous deprecated function. I have attached the newly updated instruction create_associated_token_account instruction.
* 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>
https://github.com/solana-labs/solana/pull/26606
prevents crediting a rent paying account if the account stays rent
paying. As a result, test_lamport_transfer fails.
The commit updates destination account lamports so that after transfer
it is no longer rent paying.
* Used full out spelling to resolve confusion - related to #3330
Based on @CriesofCarrots comment. Made a new PR, because I couldn't change #3330 anymore.
Used full out spelling of the word `AToken` to resolve confusion.
* Update docs/src/associated-token-account.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Add decentralized Fund protocol to Farms
* Add Fund stats tracking
* Add build script for dynamic ids support
* Add multisig support to Farms
* Client to reload data only if changed
* Add Orca AQ Vaults and Funds, metadata updates
* Update metadata and docs
* 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
* fix: Do not allow relinquishing votes in Finalising state
* chore: rename voting to finalising state
* chore: update comments
* chore: revert Anchor version