token-2022-v3.0.2
版本发布时间: 2024-03-28 21:00:46
solana-labs/solana-program-library最新发布版本:transfer-hook-interface-v0.8.2(2024-09-03 22:35:52)
What's new
The main highlights are updating the program to use Pod-style unpacking for instructions and base structs, resulting in a CU reduction of around 60% for base instructions.
Changes
- Initialize an account on a non-transferable mint without immutable ownership (#6206) by @quminghaonanya
- Add instruction count test for
transfer_checked
(#6327) by @joncinque - Refactor
StateWithExtensionsMut
functionality into trait (#6329) by @joncinque - Introduce
PackedSizeOf
and relaxBaseState
trait (#6332) by @joncinque - Add
Pod
-compatible versions ofStateWithExtensions
(#6336) by @joncinque - Add pod-compatible mint / account / multisig types (#6337) by @joncinque
- Convert extension tests to use pod types (#6344) by @joncinque
- Update transfer to use Pod types (uses half the CUs!) (#6370) by @joncinque
- Update initialize_immutable_owner to use Pod types (#6409) by @joncinque
- Update initialize_mint_close_authority to use Pod type (#6411) by @joncinque
- Update amount_to_ui_amount to use Pod types (#6412) by @joncinque
- Update ui_amount_to_amount to use Pod types (#6413) by @joncinque
- Finish updating base processors to Pod types (#6414) by @joncinque
- Prepare processors for Pod instructions by taking references and pod types (#6464) by @joncinque
- Deserialize transfer fee instruction in its processor (#6465) by @joncinque
- Deserialize instructions as
Pod
types (#6472) by @joncinque - Bump patch version (#6330) by @buffalojoec
- Update compute unit numbers to get baseline CU usage (#6326) by @joncinque
- Update alloc_and_serialize to use Pod types (#6343) by @joncinque
- Update initialize_mint to use Pod types (#6368) by @joncinque
- Update initialize_account to use Pod types (#6369) by @joncinque
- Update revoke to use Pod types (#6390) by @joncinque
- Update approve to use Pod types (#6391) by @joncinque
- Update mint_to to use Pod types (#6392) by @joncinque
- Update close_account to use Pod types (#6405) by @joncinque
- Update toggle_freeze to use Pod types (#6407) by @joncinque
- Update sync_native to use Pod types (#6408) by @joncinque
- Update burn to use Pod types (#6406) by @joncinque
- Update default_account_state to Pod types (#6422) by @joncinque
- Update memo_transfer to Pod types (#6426) by @joncinque
- Update cpi guard to Pod (#6421) by @joncinque
- Update transfer_fee to Pod types (#6430) by @joncinque
- Update transfer_hook to use Pod types (#6431) by @joncinque
- Update confidential_transfer_fee to Pod types (#6420) by @joncinque
- Update confidential transfers to Pod types (#6419) by @joncinque
- Update interest_bearing_mint to Pod types (#6425) by @joncinque
- Update group_pointer to Pod types (#6424) by @joncinque
- Update group_member_pointer to Pod types (#6423) by @joncinque
- Update token_group to Pod types (#6428) by @joncinque
- Update metadata_pointer to use Pod types (#6427) by @joncinque
- Update token_metadata to use Pod types (#6429) by @joncinque
- Update multisig usage to PodMultisig (#6432) by @joncinque
- Remove the "development and testing purposes" (#6433) by @joncinque
- Update SetAuthority to use Pod types (#6449) by @joncinque
- Split up instruction pack tests (#6467) by @joncinque
- Fix some comments (#6318) by @cuishuang
Solana
- Bump to 1.18.2
Token-group-interface
- Bump to 0.2.3 by @joncinque
Token-metadata-interface
- Bump to 0.3.3 by @joncinque
Transfer-hook-interface
- Bump to 0.6.3 by @joncinque
Pod
- Bump to 0.2.2 by @joncinque
Tlv
- Bump to 0.4.3 by @joncinque
Tlv-account-resolution
- Bump to 0.6.3 by @joncinque