Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.31.0 #3259

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

v0.31.0 #3259

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ The minor version will be incremented upon a breaking change and the patch versi

### Features

### Fixes

### Breaking

## [0.31.0] - 2024-09-19

### Features

- ts: Add optional `options.blockhash` to `Provider.sendAndConfirm` ([#3070](https://github.com/coral-xyz/anchor/pull/3070)).
- ts: Add optional `commitment` parameter to `Program.addEventListener` ([#3052](https://github.com/coral-xyz/anchor/pull/3052)).
- cli, idl: Pass `cargo` args to IDL generation when building program or IDL ([#3059](https://github.com/coral-xyz/anchor/pull/3059)).
Expand All @@ -26,7 +34,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- lang: Remove the fallback function shortcut in `try_entry` function ([#3109](https://github.com/coral-xyz/anchor/pull/3109)).
- ts: Get discriminator lengths dynamically ([#3120](https://github.com/coral-xyz/anchor/pull/3120)).
- client: Support non-8-byte discriminators ([#3125](https://github.com/coral-xyz/anchor/pull/3125)).
- spl: Add `withdraw_withheld_tokens_from_accounts` instruction ([#3128]([https://github.com/coral-xyz/anchor/pull/3128)).
- spl: Add `withdraw_withheld_tokens_from_accounts` instruction ([#3128](https://github.com/coral-xyz/anchor/pull/3128)).
- ts: Add optional `wallet` property to the `Provider` interface ([#3130](https://github.com/coral-xyz/anchor/pull/3130)).
- cli: Warn if `anchor-spl/idl-build` is missing ([#3133](https://github.com/coral-xyz/anchor/pull/3133)).
- client: Add `internal_rpc` method for `mock` feature ([#3135](https://github.com/coral-xyz/anchor/pull/3135)).
Expand All @@ -39,7 +47,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- cli: Support non-8-byte discriminators ([#3165](https://github.com/coral-xyz/anchor/pull/3165)).
- idl: Disallow empty discriminators ([#3166](https://github.com/coral-xyz/anchor/pull/3166)).
- cli: Add `--no-idl` option to the `test` command ([#3175](https://github.com/coral-xyz/anchor/pull/3175)).
- spl: Add `burn_checked`, `mint_to_checked` and `approve_checked` instructions ([#3186]([https://github.com/coral-xyz/anchor/pull/3186)).
- spl: Add `burn_checked`, `mint_to_checked` and `approve_checked` instructions ([#3186](https://github.com/coral-xyz/anchor/pull/3186)).
- cli: Migrate to `agave-install` when `solana_version` is `>= 1.18.19` ([#3185](https://github.com/coral-xyz/anchor/pull/3185)).
- idl: Add `IdlBuilder` ([#3188](https://github.com/coral-xyz/anchor/pull/3188)).
- cli: Make `clean` command also remove the `.anchor` directory ([#3192](https://github.com/coral-xyz/anchor/pull/3192)).
Expand All @@ -48,7 +56,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- lang: Add `LazyAccount` ([#3194](https://github.com/coral-xyz/anchor/pull/3194)).
- avm: Ask whether to install if the version is not installed with the `use` command ([#3230](https://github.com/coral-xyz/anchor/pull/3230)).
- cli: Warn if a manifest has `solana-program` dependency ([#3250](https://github.com/coral-xyz/anchor/pull/3250)).
- cli: Add completions command to generate shell completions via the clap_complete crate ([#3251](https://github.com/coral-xyz/anchor/pull/3251)).
- cli: Add completions command to generate shell completions via the `clap_complete` crate ([#3251](https://github.com/coral-xyz/anchor/pull/3251)).

### Fixes

Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.30.1
0.31.0
2 changes: 1 addition & 1 deletion avm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "avm"
version = "0.30.1"
version = "0.31.0"
edition = "2021"

[[bin]]
Expand Down
12 changes: 12 additions & 0 deletions bench/BINARY_SIZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ The programs and their tests are located in [/tests/bench](https://github.com/co

Solana version: 2.0.8

| Program | Binary Size | - |
| ------- | ----------- | --- |
| bench | 1,097,424 | - |

### Notable changes

---

## [0.31.0]

Solana version: 2.0.8

| Program | Binary Size | - |
| ------- | ----------- | ------------------------ |
| bench | 1,097,424 | 🔴 **+306,416 (38.74%)** |
Expand Down
98 changes: 98 additions & 0 deletions bench/COMPUTE_UNITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,104 @@ The programs and their tests are located in [/tests/bench](https://github.com/co

Solana version: 2.0.8

| Instruction | Compute Units | - |
| --------------------------- | ------------- | --- |
| accountInfo1 | 573 | - |
| accountInfo2 | 899 | - |
| accountInfo4 | 1,561 | - |
| accountInfo8 | 2,957 | - |
| accountEmptyInit1 | 5,014 | - |
| accountEmpty1 | 649 | - |
| accountEmptyInit2 | 9,155 | - |
| accountEmpty2 | 1,015 | - |
| accountEmptyInit4 | 17,465 | - |
| accountEmpty4 | 1,740 | - |
| accountEmptyInit8 | 34,115 | - |
| accountEmpty8 | 3,193 | - |
| accountSizedInit1 | 5,107 | - |
| accountSized1 | 690 | - |
| accountSizedInit2 | 9,313 | - |
| accountSized2 | 1,069 | - |
| accountSizedInit4 | 17,812 | - |
| accountSized4 | 1,834 | - |
| accountSizedInit8 | 34,706 | - |
| accountSized8 | 3,357 | - |
| accountUnsizedInit1 | 5,227 | - |
| accountUnsized1 | 746 | - |
| accountUnsizedInit2 | 9,599 | - |
| accountUnsized2 | 1,163 | - |
| accountUnsizedInit4 | 18,276 | - |
| accountUnsized4 | 2,000 | - |
| accountUnsizedInit8 | 35,328 | - |
| accountUnsized8 | 3,671 | - |
| boxedAccountEmptyInit1 | 5,106 | - |
| boxedAccountEmpty1 | 740 | - |
| boxedAccountEmptyInit2 | 9,268 | - |
| boxedAccountEmpty2 | 1,125 | - |
| boxedAccountEmptyInit4 | 17,619 | - |
| boxedAccountEmpty4 | 1,886 | - |
| boxedAccountEmptyInit8 | 34,346 | - |
| boxedAccountEmpty8 | 3,435 | - |
| boxedAccountSizedInit1 | 5,189 | - |
| boxedAccountSized1 | 780 | - |
| boxedAccountSizedInit2 | 9,411 | - |
| boxedAccountSized2 | 1,180 | - |
| boxedAccountSizedInit4 | 17,879 | - |
| boxedAccountSized4 | 1,974 | - |
| boxedAccountSizedInit8 | 34,842 | - |
| boxedAccountSized8 | 3,593 | - |
| boxedAccountUnsizedInit1 | 5,300 | - |
| boxedAccountUnsized1 | 838 | - |
| boxedAccountUnsizedInit2 | 9,609 | - |
| boxedAccountUnsized2 | 1,275 | - |
| boxedAccountUnsizedInit4 | 18,251 | - |
| boxedAccountUnsized4 | 2,138 | - |
| boxedAccountUnsizedInit8 | 35,562 | - |
| boxedAccountUnsized8 | 3,895 | - |
| boxedInterfaceAccountMint1 | 1,502 | - |
| boxedInterfaceAccountMint2 | 2,423 | - |
| boxedInterfaceAccountMint4 | 4,256 | - |
| boxedInterfaceAccountMint8 | 7,950 | - |
| boxedInterfaceAccountToken1 | 2,198 | - |
| boxedInterfaceAccountToken2 | 3,803 | - |
| boxedInterfaceAccountToken4 | 7,004 | - |
| boxedInterfaceAccountToken8 | 13,434 | - |
| interfaceAccountMint1 | 1,626 | - |
| interfaceAccountMint2 | 2,788 | - |
| interfaceAccountMint4 | 5,110 | - |
| interfaceAccountMint8 | 9,749 | - |
| interfaceAccountToken1 | 2,296 | - |
| interfaceAccountToken2 | 4,096 | - |
| interfaceAccountToken4 | 7,692 | - |
| interface1 | 774 | - |
| interface2 | 923 | - |
| interface4 | 1,214 | - |
| interface8 | 1,799 | - |
| program1 | 782 | - |
| program2 | 927 | - |
| program4 | 1,210 | - |
| program8 | 1,779 | - |
| signer1 | 779 | - |
| signer2 | 1,074 | - |
| signer4 | 1,657 | - |
| signer8 | 2,826 | - |
| systemAccount1 | 802 | - |
| systemAccount2 | 1,108 | - |
| systemAccount4 | 1,713 | - |
| systemAccount8 | 2,926 | - |
| uncheckedAccount1 | 785 | - |
| uncheckedAccount2 | 1,061 | - |
| uncheckedAccount4 | 1,604 | - |
| uncheckedAccount8 | 2,699 | - |

### Notable changes

---

## [0.31.0]

Solana version: 2.0.8

| Instruction | Compute Units | - |
| --------------------------- | ------------- | --------------------- |
| accountInfo1 | 573 | 🟢 **-28 (4.66%)** |
Expand Down
Loading
Loading