Skip to content

Commit

Permalink
v0.31.0 (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Mar 8, 2025
1 parent a3ec04e commit 0e5285a
Show file tree
Hide file tree
Showing 106 changed files with 4,242 additions and 153 deletions.
12 changes: 10 additions & 2 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] - 2025-03-08

### Features

- client: Make `solana_account_decoder` dep public in anchor client ([#3455](https://github.com/coral-xyz/anchor/pull/3455)).
- 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)).
Expand All @@ -27,7 +35,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 @@ -40,7 +48,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 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.1.0

| Program | Binary Size | - |
| ------- | ----------- | --- |
| bench | 1,041,928 | - |

### Notable changes

---

## [0.31.0]

Solana version: 2.1.0

| Program | Binary Size | - |
| ------- | ----------- | ------------------------ |
| bench | 1,041,928 | 🔴 **+250,920 (31.72%)** |
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.1.0

| Instruction | Compute Units | - |
| --------------------------- | ------------- | --- |
| accountInfo1 | 571 | - |
| accountInfo2 | 895 | - |
| accountInfo4 | 1,553 | - |
| accountInfo8 | 2,923 | - |
| accountEmptyInit1 | 5,083 | - |
| accountEmpty1 | 645 | - |
| accountEmptyInit2 | 9,301 | - |
| accountEmpty2 | 1,007 | - |
| accountEmptyInit4 | 17,764 | - |
| accountEmpty4 | 1,724 | - |
| accountEmptyInit8 | 34,723 | - |
| accountEmpty8 | 3,163 | - |
| accountSizedInit1 | 5,192 | - |
| accountSized1 | 693 | - |
| accountSizedInit2 | 9,489 | - |
| accountSized2 | 1,075 | - |
| accountSizedInit4 | 18,170 | - |
| accountSized4 | 1,848 | - |
| accountSizedInit8 | 35,433 | - |
| accountSized8 | 3,387 | - |
| accountUnsizedInit1 | 5,305 | - |
| accountUnsized1 | 746 | - |
| accountUnsizedInit2 | 9,759 | - |
| accountUnsized2 | 1,163 | - |
| accountUnsizedInit4 | 18,603 | - |
| accountUnsized4 | 2,002 | - |
| accountUnsizedInit8 | 35,993 | - |
| accountUnsized8 | 3,673 | - |
| boxedAccountEmptyInit1 | 5,175 | - |
| boxedAccountEmpty1 | 734 | - |
| boxedAccountEmptyInit2 | 9,414 | - |
| boxedAccountEmpty2 | 1,116 | - |
| boxedAccountEmptyInit4 | 17,918 | - |
| boxedAccountEmpty4 | 1,872 | - |
| boxedAccountEmptyInit8 | 34,953 | - |
| boxedAccountEmpty8 | 3,401 | - |
| boxedAccountSizedInit1 | 5,271 | - |
| boxedAccountSized1 | 783 | - |
| boxedAccountSizedInit2 | 9,583 | - |
| boxedAccountSized2 | 1,190 | - |
| boxedAccountSizedInit4 | 18,230 | - |
| boxedAccountSized4 | 1,996 | - |
| boxedAccountSizedInit8 | 35,553 | - |
| boxedAccountSized8 | 3,628 | - |
| boxedAccountUnsizedInit1 | 5,371 | - |
| boxedAccountUnsized1 | 836 | - |
| boxedAccountUnsizedInit2 | 9,759 | - |
| boxedAccountUnsized2 | 1,270 | - |
| boxedAccountUnsizedInit4 | 18,558 | - |
| boxedAccountUnsized4 | 2,132 | - |
| boxedAccountUnsizedInit8 | 36,185 | - |
| boxedAccountUnsized8 | 3,881 | - |
| boxedInterfaceAccountMint1 | 1,351 | - |
| boxedInterfaceAccountMint2 | 2,123 | - |
| boxedInterfaceAccountMint4 | 3,656 | - |
| boxedInterfaceAccountMint8 | 6,738 | - |
| boxedInterfaceAccountToken1 | 2,011 | - |
| boxedInterfaceAccountToken2 | 3,431 | - |
| boxedInterfaceAccountToken4 | 6,260 | - |
| boxedInterfaceAccountToken8 | 11,934 | - |
| interfaceAccountMint1 | 1,476 | - |
| interfaceAccountMint2 | 2,489 | - |
| interfaceAccountMint4 | 4,511 | - |
| interfaceAccountMint8 | 8,550 | - |
| interfaceAccountToken1 | 2,111 | - |
| interfaceAccountToken2 | 3,729 | - |
| interfaceAccountToken4 | 6,955 | - |
| interface1 | 769 | - |
| interface2 | 912 | - |
| interface4 | 1,189 | - |
| interface8 | 1,748 | - |
| program1 | 779 | - |
| program2 | 920 | - |
| program4 | 1,193 | - |
| program8 | 1,744 | - |
| signer1 | 774 | - |
| signer2 | 1,064 | - |
| signer4 | 1,637 | - |
| signer8 | 2,788 | - |
| systemAccount1 | 796 | - |
| systemAccount2 | 1,096 | - |
| systemAccount4 | 1,689 | - |
| systemAccount8 | 2,880 | - |
| uncheckedAccount1 | 783 | - |
| uncheckedAccount2 | 1,056 | - |
| uncheckedAccount4 | 1,594 | - |
| uncheckedAccount8 | 2,679 | - |

### Notable changes

---

## [0.31.0]

Solana version: 2.1.0

| Instruction | Compute Units | - |
| --------------------------- | ------------- | ---------------------- |
| accountInfo1 | 571 | 🟢 **-30 (4.99%)** |
Expand Down
Loading

0 comments on commit 0e5285a

Please sign in to comment.