Skip to content

Commit e1afcbf

Browse files
v0.28.0 (#2527)
1 parent c7c7319 commit e1afcbf

93 files changed

Lines changed: 382 additions & 719 deletions

File tree

Some content is hidden

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

.github/actions/setup-ts/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ runs:
2020
path: |
2121
./ts/dist/
2222
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/*.ts') }}
23-
- run: cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && cd ../../../
23+
- run: cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && yarn link && cd ../../../
2424
shell: bash
2525
- run: cd ts/packages/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
2626
shell: bash
2727
- run: cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
2828
shell: bash
2929
- run: cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
3030
shell: bash
31-
- run: cd examples/tutorial && yarn link @coral-xyz/anchor && yarn --frozen-lockfile && cd ../../
31+
- run: cd examples/tutorial && yarn link @coral-xyz/anchor @coral-xyz/borsh && yarn --frozen-lockfile && cd ../../
3232
shell: bash
33-
- run: cd tests && yarn link @coral-xyz/anchor && yarn link @coral-xyz/spl-associated-token-account && yarn link @coral-xyz/spl-token && yarn --frozen-lockfile && cd ..
33+
- run: cd tests && yarn link @coral-xyz/anchor @coral-xyz/borsh @coral-xyz/spl-associated-token-account @coral-xyz/spl-token && yarn --frozen-lockfile && cd ..
3434
shell: bash

CHANGELOG.md

Lines changed: 8 additions & 0 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.28.0] - 2023-06-09
20+
21+
### Features
22+
1523
- client: Add `async` feature flag to use an asynchronous anchor-client ([#2488](https://github.com/coral-xyz/anchor/pull/2488)).
1624
- spl: Add metadata wrappers `approve_collection_authority`, `bubblegum_set_collection_size`, `burn_edition_nft`, `burn_nft`, `revoke_collection_authority`, `set_token_standard`, `utilize`, `unverify_sized_collection_item`, `unverify_collection` ([#2430](https://github.com/coral-xyz/anchor/pull/2430))
1725
- spl: Add `token_program` constraint to `Token`, `Mint`, and `AssociatedToken` accounts in order to override required `token_program` fields and use different token interface implementations in the same instruction ([#2460](https://github.com/coral-xyz/anchor/pull/2460))

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.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2020 Serum Foundation
190+
Copyright 2020 Anchor Maintainers
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.27.0
1+
0.28.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.27.0"
3+
version = "0.28.0"
44
rust-version = "1.60"
55
edition = "2021"
66

bench/COMPUTE_UNITS.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,102 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1111
1212
## [Unreleased]
1313

14+
| Instruction | Compute Units | +/- |
15+
| --------------------------- | ------------- | --- |
16+
| accountInfo1 | 1015 | - |
17+
| accountInfo2 | 1475 | - |
18+
| accountInfo4 | 1964 | - |
19+
| accountInfo8 | 3856 | - |
20+
| accountEmptyInit1 | 5817 | - |
21+
| accountEmpty1 | 1149 | - |
22+
| accountEmptyInit2 | 10402 | - |
23+
| accountEmpty2 | 1754 | - |
24+
| accountEmptyInit4 | 19557 | - |
25+
| accountEmpty4 | 2540 | - |
26+
| accountEmptyInit8 | 37541 | - |
27+
| accountEmpty8 | 5043 | - |
28+
| accountSizedInit1 | 5924 | - |
29+
| accountSized1 | 1214 | - |
30+
| accountSizedInit2 | 10783 | - |
31+
| accountSized2 | 1873 | - |
32+
| accountSizedInit4 | 19975 | - |
33+
| accountSized4 | 2787 | - |
34+
| accountSizedInit8 | 38381 | - |
35+
| accountSized8 | 5359 | - |
36+
| accountUnsizedInit1 | 6052 | - |
37+
| accountUnsized1 | 1338 | - |
38+
| accountUnsizedInit2 | 10929 | - |
39+
| accountUnsized2 | 1778 | - |
40+
| accountUnsizedInit4 | 20495 | - |
41+
| accountUnsized4 | 3136 | - |
42+
| accountUnsizedInit8 | 39419 | - |
43+
| accountUnsized8 | 5952 | - |
44+
| boxedAccountEmptyInit1 | 6034 | - |
45+
| boxedAccountEmpty1 | 888 | - |
46+
| boxedAccountEmptyInit2 | 10633 | - |
47+
| boxedAccountEmpty2 | 1401 | - |
48+
| boxedAccountEmptyInit4 | 19500 | - |
49+
| boxedAccountEmpty4 | 2424 | - |
50+
| boxedAccountEmptyInit8 | 37415 | - |
51+
| boxedAccountEmpty8 | 4659 | - |
52+
| boxedAccountSizedInit1 | 6130 | - |
53+
| boxedAccountSized1 | 917 | - |
54+
| boxedAccountSizedInit2 | 10828 | - |
55+
| boxedAccountSized2 | 1463 | - |
56+
| boxedAccountSizedInit4 | 19884 | - |
57+
| boxedAccountSized4 | 2543 | - |
58+
| boxedAccountSizedInit8 | 38182 | - |
59+
| boxedAccountSized8 | 4898 | - |
60+
| boxedAccountUnsizedInit1 | 6240 | - |
61+
| boxedAccountUnsized1 | 972 | - |
62+
| boxedAccountUnsizedInit2 | 11048 | - |
63+
| boxedAccountUnsized2 | 1570 | - |
64+
| boxedAccountUnsizedInit4 | 20138 | - |
65+
| boxedAccountUnsized4 | 2768 | - |
66+
| boxedAccountUnsizedInit8 | 39118 | - |
67+
| boxedAccountUnsized8 | 5347 | - |
68+
| boxedInterfaceAccountMint1 | 2299 | - |
69+
| boxedInterfaceAccountMint2 | 4129 | - |
70+
| boxedInterfaceAccountMint4 | 7783 | - |
71+
| boxedInterfaceAccountMint8 | 15281 | - |
72+
| boxedInterfaceAccountToken1 | 2023 | - |
73+
| boxedInterfaceAccountToken2 | 3582 | - |
74+
| boxedInterfaceAccountToken4 | 6692 | - |
75+
| boxedInterfaceAccountToken8 | 13098 | - |
76+
| interfaceAccountMint1 | 2364 | - |
77+
| interfaceAccountMint2 | 5030 | - |
78+
| interfaceAccountMint4 | 9803 | - |
79+
| interfaceAccountMint8 | 18400 | - |
80+
| interfaceAccountToken1 | 2091 | - |
81+
| interfaceAccountToken2 | 3948 | - |
82+
| interfaceAccountToken4 | 7547 | - |
83+
| interface1 | 1059 | - |
84+
| interface2 | 1479 | - |
85+
| interface4 | 1900 | - |
86+
| interface8 | 3651 | - |
87+
| program1 | 1053 | - |
88+
| program2 | 1467 | - |
89+
| program4 | 1878 | - |
90+
| program8 | 3598 | - |
91+
| signer1 | 1018 | - |
92+
| signer2 | 1484 | - |
93+
| signer4 | 1984 | - |
94+
| signer8 | 3895 | - |
95+
| systemAccount1 | 1072 | - |
96+
| systemAccount2 | 1590 | - |
97+
| systemAccount4 | 2195 | - |
98+
| systemAccount8 | 4336 | - |
99+
| uncheckedAccount1 | 1014 | - |
100+
| uncheckedAccount2 | 1475 | - |
101+
| uncheckedAccount4 | 1965 | - |
102+
| uncheckedAccount8 | 3855 | - |
103+
104+
### Notable changes
105+
106+
---
107+
108+
## [0.28.0]
109+
14110
| Instruction | Compute Units | +/- |
15111
| --------------------------- | ------------- | -------------- |
16112
| accountInfo1 | 1015 | 🔴 **+6.39%** |

cli/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "anchor-cli"
3-
version = "0.27.0"
3+
version = "0.28.0"
44
authors = ["Anchor Maintainers <[email protected]>"]
55
rust-version = "1.60"
66
edition = "2021"
@@ -17,9 +17,9 @@ dev = []
1717
default = []
1818

1919
[dependencies]
20-
anchor-client = { path = "../client", version = "0.27.0" }
21-
anchor-lang = { path = "../lang", version = "0.27.0" }
22-
anchor-syn = { path = "../lang/syn", features = ["event-cpi", "idl", "init-if-needed"], version = "0.27.0" }
20+
anchor-client = { path = "../client", version = "0.28.0" }
21+
anchor-lang = { path = "../lang", version = "0.28.0" }
22+
anchor-syn = { path = "../lang/syn", features = ["event-cpi", "idl", "init-if-needed"], version = "0.28.0" }
2323
anyhow = "1.0.32"
2424
base64 = "0.13.1"
2525
bincode = "1.3.3"
@@ -37,11 +37,11 @@ semver = "1.0.4"
3737
serde = { version = "1.0.122", features = ["derive"] }
3838
serde_json = "1.0"
3939
shellexpand = "2.1.0"
40-
solana-client = ">=1.13, <1.17"
41-
solana-cli-config = ">=1.13, <1.17"
42-
solana-faucet = ">=1.13, <1.17"
43-
solana-program = ">=1.13, <1.17"
44-
solana-sdk = ">=1.13, <1.17"
40+
solana-client = ">=1.14, <1.17"
41+
solana-cli-config = ">=1.14, <1.17"
42+
solana-faucet = ">=1.14, <1.17"
43+
solana-program = ">=1.14, <1.17"
44+
solana-sdk = ">=1.14, <1.17"
4545
solang-parser = "=0.2.3"
4646
syn = { version = "1.0.60", features = ["full", "extra-traits"] }
4747
tar = "0.4.35"

cli/npm-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coral-xyz/anchor-cli",
3-
"version": "0.27.0",
3+
"version": "0.28.0",
44
"description": "Anchor CLI tool",
55
"homepage": "https://github.com/coral-xyz/anchor#readme",
66
"bugs": {

client/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "anchor-client"
3-
version = "0.27.0"
3+
version = "0.28.0"
44
authors = ["Anchor Maintainers <[email protected]>"]
55
rust-version = "1.60"
66
edition = "2021"
@@ -12,14 +12,14 @@ debug = []
1212
async = []
1313

1414
[dependencies]
15-
anchor-lang = { path = "../lang", version = "0.27.0" }
15+
anchor-lang = { path = "../lang", version = "0.28.0" }
1616
anyhow = "1"
1717
futures = { version = "0.3" }
1818
regex = "1"
1919
serde = { version = "1", features = ["derive"] }
20-
solana-client = ">=1.13, <1.17"
21-
solana-sdk = ">=1.13, <1.17"
22-
solana-account-decoder = ">=1.13, <1.17"
20+
solana-client = ">=1.14, <1.17"
21+
solana-sdk = ">=1.14, <1.17"
22+
solana-account-decoder = ">=1.14, <1.17"
2323
thiserror = "1"
2424
tokio = { version = "1", features = ["rt", "sync"] }
2525
url = "2"

0 commit comments

Comments
 (0)