Skip to content

Commit 0e5285a

Browse files
1 parent a3ec04e commit 0e5285a

File tree

106 files changed

+4242
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+4242
-153
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ The minor version will be incremented upon a breaking change and the patch versi
1212

1313
### Features
1414

15+
### Fixes
16+
17+
### Breaking
18+
19+
## [0.31.0] - 2025-03-08
20+
21+
### Features
22+
1523
- client: Make `solana_account_decoder` dep public in anchor client ([#3455](https://github.com/coral-xyz/anchor/pull/3455)).
1624
- ts: Add optional `options.blockhash` to `Provider.sendAndConfirm` ([#3070](https://github.com/coral-xyz/anchor/pull/3070)).
1725
- ts: Add optional `commitment` parameter to `Program.addEventListener` ([#3052](https://github.com/coral-xyz/anchor/pull/3052)).
@@ -27,7 +35,7 @@ The minor version will be incremented upon a breaking change and the patch versi
2735
- lang: Remove the fallback function shortcut in `try_entry` function ([#3109](https://github.com/coral-xyz/anchor/pull/3109)).
2836
- ts: Get discriminator lengths dynamically ([#3120](https://github.com/coral-xyz/anchor/pull/3120)).
2937
- client: Support non-8-byte discriminators ([#3125](https://github.com/coral-xyz/anchor/pull/3125)).
30-
- spl: Add `withdraw_withheld_tokens_from_accounts` instruction ([#3128]([https://github.com/coral-xyz/anchor/pull/3128)).
38+
- spl: Add `withdraw_withheld_tokens_from_accounts` instruction ([#3128](https://github.com/coral-xyz/anchor/pull/3128)).
3139
- ts: Add optional `wallet` property to the `Provider` interface ([#3130](https://github.com/coral-xyz/anchor/pull/3130)).
3240
- cli: Warn if `anchor-spl/idl-build` is missing ([#3133](https://github.com/coral-xyz/anchor/pull/3133)).
3341
- client: Add `internal_rpc` method for `mock` feature ([#3135](https://github.com/coral-xyz/anchor/pull/3135)).
@@ -40,7 +48,7 @@ The minor version will be incremented upon a breaking change and the patch versi
4048
- cli: Support non-8-byte discriminators ([#3165](https://github.com/coral-xyz/anchor/pull/3165)).
4149
- idl: Disallow empty discriminators ([#3166](https://github.com/coral-xyz/anchor/pull/3166)).
4250
- cli: Add `--no-idl` option to the `test` command ([#3175](https://github.com/coral-xyz/anchor/pull/3175)).
43-
- spl: Add `burn_checked`, `mint_to_checked` and `approve_checked` instructions ([#3186]([https://github.com/coral-xyz/anchor/pull/3186)).
51+
- spl: Add `burn_checked`, `mint_to_checked` and `approve_checked` instructions ([#3186](https://github.com/coral-xyz/anchor/pull/3186)).
4452
- cli: Migrate to `agave-install` when `solana_version` is `>= 1.18.19` ([#3185](https://github.com/coral-xyz/anchor/pull/3185)).
4553
- idl: Add `IdlBuilder` ([#3188](https://github.com/coral-xyz/anchor/pull/3188)).
4654
- cli: Make `clean` command also remove the `.anchor` directory ([#3192](https://github.com/coral-xyz/anchor/pull/3192)).

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.30.1
1+
0.31.0

avm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "avm"
3-
version = "0.30.1"
3+
version = "0.31.0"
44
edition = "2021"
55

66
[[bin]]

bench/BINARY_SIZE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1616

1717
Solana version: 2.1.0
1818

19+
| Program | Binary Size | - |
20+
| ------- | ----------- | --- |
21+
| bench | 1,041,928 | - |
22+
23+
### Notable changes
24+
25+
---
26+
27+
## [0.31.0]
28+
29+
Solana version: 2.1.0
30+
1931
| Program | Binary Size | - |
2032
| ------- | ----------- | ------------------------ |
2133
| bench | 1,041,928 | 🔴 **+250,920 (31.72%)** |

bench/COMPUTE_UNITS.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,104 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1616

1717
Solana version: 2.1.0
1818

19+
| Instruction | Compute Units | - |
20+
| --------------------------- | ------------- | --- |
21+
| accountInfo1 | 571 | - |
22+
| accountInfo2 | 895 | - |
23+
| accountInfo4 | 1,553 | - |
24+
| accountInfo8 | 2,923 | - |
25+
| accountEmptyInit1 | 5,083 | - |
26+
| accountEmpty1 | 645 | - |
27+
| accountEmptyInit2 | 9,301 | - |
28+
| accountEmpty2 | 1,007 | - |
29+
| accountEmptyInit4 | 17,764 | - |
30+
| accountEmpty4 | 1,724 | - |
31+
| accountEmptyInit8 | 34,723 | - |
32+
| accountEmpty8 | 3,163 | - |
33+
| accountSizedInit1 | 5,192 | - |
34+
| accountSized1 | 693 | - |
35+
| accountSizedInit2 | 9,489 | - |
36+
| accountSized2 | 1,075 | - |
37+
| accountSizedInit4 | 18,170 | - |
38+
| accountSized4 | 1,848 | - |
39+
| accountSizedInit8 | 35,433 | - |
40+
| accountSized8 | 3,387 | - |
41+
| accountUnsizedInit1 | 5,305 | - |
42+
| accountUnsized1 | 746 | - |
43+
| accountUnsizedInit2 | 9,759 | - |
44+
| accountUnsized2 | 1,163 | - |
45+
| accountUnsizedInit4 | 18,603 | - |
46+
| accountUnsized4 | 2,002 | - |
47+
| accountUnsizedInit8 | 35,993 | - |
48+
| accountUnsized8 | 3,673 | - |
49+
| boxedAccountEmptyInit1 | 5,175 | - |
50+
| boxedAccountEmpty1 | 734 | - |
51+
| boxedAccountEmptyInit2 | 9,414 | - |
52+
| boxedAccountEmpty2 | 1,116 | - |
53+
| boxedAccountEmptyInit4 | 17,918 | - |
54+
| boxedAccountEmpty4 | 1,872 | - |
55+
| boxedAccountEmptyInit8 | 34,953 | - |
56+
| boxedAccountEmpty8 | 3,401 | - |
57+
| boxedAccountSizedInit1 | 5,271 | - |
58+
| boxedAccountSized1 | 783 | - |
59+
| boxedAccountSizedInit2 | 9,583 | - |
60+
| boxedAccountSized2 | 1,190 | - |
61+
| boxedAccountSizedInit4 | 18,230 | - |
62+
| boxedAccountSized4 | 1,996 | - |
63+
| boxedAccountSizedInit8 | 35,553 | - |
64+
| boxedAccountSized8 | 3,628 | - |
65+
| boxedAccountUnsizedInit1 | 5,371 | - |
66+
| boxedAccountUnsized1 | 836 | - |
67+
| boxedAccountUnsizedInit2 | 9,759 | - |
68+
| boxedAccountUnsized2 | 1,270 | - |
69+
| boxedAccountUnsizedInit4 | 18,558 | - |
70+
| boxedAccountUnsized4 | 2,132 | - |
71+
| boxedAccountUnsizedInit8 | 36,185 | - |
72+
| boxedAccountUnsized8 | 3,881 | - |
73+
| boxedInterfaceAccountMint1 | 1,351 | - |
74+
| boxedInterfaceAccountMint2 | 2,123 | - |
75+
| boxedInterfaceAccountMint4 | 3,656 | - |
76+
| boxedInterfaceAccountMint8 | 6,738 | - |
77+
| boxedInterfaceAccountToken1 | 2,011 | - |
78+
| boxedInterfaceAccountToken2 | 3,431 | - |
79+
| boxedInterfaceAccountToken4 | 6,260 | - |
80+
| boxedInterfaceAccountToken8 | 11,934 | - |
81+
| interfaceAccountMint1 | 1,476 | - |
82+
| interfaceAccountMint2 | 2,489 | - |
83+
| interfaceAccountMint4 | 4,511 | - |
84+
| interfaceAccountMint8 | 8,550 | - |
85+
| interfaceAccountToken1 | 2,111 | - |
86+
| interfaceAccountToken2 | 3,729 | - |
87+
| interfaceAccountToken4 | 6,955 | - |
88+
| interface1 | 769 | - |
89+
| interface2 | 912 | - |
90+
| interface4 | 1,189 | - |
91+
| interface8 | 1,748 | - |
92+
| program1 | 779 | - |
93+
| program2 | 920 | - |
94+
| program4 | 1,193 | - |
95+
| program8 | 1,744 | - |
96+
| signer1 | 774 | - |
97+
| signer2 | 1,064 | - |
98+
| signer4 | 1,637 | - |
99+
| signer8 | 2,788 | - |
100+
| systemAccount1 | 796 | - |
101+
| systemAccount2 | 1,096 | - |
102+
| systemAccount4 | 1,689 | - |
103+
| systemAccount8 | 2,880 | - |
104+
| uncheckedAccount1 | 783 | - |
105+
| uncheckedAccount2 | 1,056 | - |
106+
| uncheckedAccount4 | 1,594 | - |
107+
| uncheckedAccount8 | 2,679 | - |
108+
109+
### Notable changes
110+
111+
---
112+
113+
## [0.31.0]
114+
115+
Solana version: 2.1.0
116+
19117
| Instruction | Compute Units | - |
20118
| --------------------------- | ------------- | ---------------------- |
21119
| accountInfo1 | 571 | 🟢 **-30 (4.99%)** |

0 commit comments

Comments
 (0)