This commit is contained in:
Henry-E 2023-03-08 13:28:23 +00:00 committed by GitHub
parent 30083bd83c
commit 3b45144787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
84 changed files with 203 additions and 136 deletions

View File

@ -12,6 +12,14 @@ The minor version will be incremented upon a breaking change and the patch versi
### Features
### Fixes
### Breaking
## [0.27.0] - 2023-03-08
### Features
- spl: Add `MasterEditionAccount` account deserialization to spl metadata ([#2393](https://github.com/coral-xyz/anchor/pull/2393)).
- lang: Add the `InitSpace` derive macro to automatically calculate the space at the initialization of an account ([#2346](https://github.com/coral-xyz/anchor/pull/2346)).
- cli: Add `env` option to verifiable builds ([#2325](https://github.com/coral-xyz/anchor/pull/2325)).
@ -21,9 +29,9 @@ The minor version will be incremented upon a breaking change and the patch versi
- spl: Add `approve_checked` function ([#2401](https://github.com/coral-xyz/anchor/pull/2401)).
- cli: Add `--skip-build` option to the verify command ([#2387](https://github.com/coral-xyz/anchor/pull/2387)).
- client: Add support for multithreading to the rust client: use flag `--multithreaded` ([#2321](https://github.com/coral-xyz/anchor/pull/2321)).
- client: Add `async_rpc` a method which returns a nonblocking solana rpc client ([2322](https://github.com/coral-xyz/anchor/pull/2322)).
- client: Add `async_rpc` a method which returns a nonblocking solana rpc client ([#2322](https://github.com/coral-xyz/anchor/pull/2322)).
- avm, cli: Use the `rustls-tls` feature of `reqwest` so that users don't need OpenSSL installed ([#2385](https://github.com/coral-xyz/anchor/pull/2385)).
- ts: Add `VersionedTransaction` support. Methods in the `Provider` class and `Wallet` interface now use the argument `tx: Transaction | VersionedTransaction` ([2427](https://github.com/coral-xyz/anchor/pull/2427)).
- ts: Add `VersionedTransaction` support. Methods in the `Provider` class and `Wallet` interface now use the argument `tx: Transaction | VersionedTransaction` ([#2427](https://github.com/coral-xyz/anchor/pull/2427)).
- cli: Add `--arch sbf` option to compile programs using `cargo build-sbf` ([#2398](https://github.com/coral-xyz/anchor/pull/2398)).
### Fixes

26
Cargo.lock generated
View File

@ -97,7 +97,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483"
[[package]]
name = "anchor-attribute-access-control"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -109,7 +109,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-account"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -122,7 +122,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-constant"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.47",
@ -131,7 +131,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-error"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.47",
@ -141,7 +141,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-event"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -152,7 +152,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-program"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -163,7 +163,7 @@ dependencies = [
[[package]]
name = "anchor-cli"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-client",
"anchor-lang",
@ -196,7 +196,7 @@ dependencies = [
[[package]]
name = "anchor-client"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-lang",
"anyhow",
@ -211,7 +211,7 @@ dependencies = [
[[package]]
name = "anchor-derive-accounts"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -222,7 +222,7 @@ dependencies = [
[[package]]
name = "anchor-derive-space"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"proc-macro2 1.0.47",
"quote 1.0.21",
@ -231,7 +231,7 @@ dependencies = [
[[package]]
name = "anchor-lang"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
@ -252,7 +252,7 @@ dependencies = [
[[package]]
name = "anchor-spl"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anchor-lang",
"borsh",
@ -266,7 +266,7 @@ dependencies = [
[[package]]
name = "anchor-syn"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anyhow",
"bs58 0.3.1",

View File

@ -15,6 +15,8 @@ publish:
sleep 25
cd lang/derive/accounts/ && cargo publish && cd ../../../
sleep 25
cd lang/derive/space/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/access-control/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/account/ && cargo publish && cd ../../../

View File

@ -1 +1 @@
0.26.0
0.27.0

2
avm/Cargo.lock generated
View File

@ -27,7 +27,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "avm"
version = "0.26.0"
version = "0.27.0"
dependencies = [
"anyhow",
"cfg-if",

View File

@ -1,6 +1,6 @@
[package]
name = "avm"
version = "0.26.0"
version = "0.27.0"
rust-version = "1.60"
edition = "2021"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-cli"
version = "0.26.0"
version = "0.27.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
rust-version = "1.60"
edition = "2021"
@ -20,9 +20,9 @@ default = []
clap = { version = "4.0.26", features = ["derive"] }
anyhow = "1.0.32"
syn = { version = "1.0.60", features = ["full", "extra-traits"] }
anchor-lang = { path = "../lang", version = "0.26.0" }
anchor-client = { path = "../client", version = "0.26.0" }
anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.26.0" }
anchor-lang = { path = "../lang", version = "0.27.0" }
anchor-client = { path = "../client", version = "0.27.0" }
anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.27.0" }
serde_json = "1.0"
shellexpand = "2.1.0"
toml = "0.5.8"

View File

@ -1,6 +1,6 @@
{
"name": "@coral-xyz/anchor-cli",
"version": "0.26.0",
"version": "0.27.0",
"description": "Anchor CLI tool",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-client"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.60"
edition = "2021"
@ -11,7 +11,7 @@ description = "Rust client for Anchor programs"
debug = []
[dependencies]
anchor-lang = { path = "../lang", version = "0.26.0" }
anchor-lang = { path = "../lang", version = "0.27.0" }
anyhow = "1.0.32"
regex = "1.4.5"
serde = { version = "1.0.122", features = ["derive"] }

View File

@ -1,8 +1,8 @@
WORKDIR=$(PWD)
#
# Extract anchor version from the Cargo.toml.
# Anchor version.
#
ANCHOR_CLI=v0.26.0
ANCHOR_CLI=v0.27.0
#
# Solana toolchain.
#

View File

@ -20,7 +20,7 @@
"autoprefixer": "^10.4.7",
"clsx": "^1.2.1",
"focus-visible": "^5.2.0",
"gh-pages": "^4.0.0",
"gh-pages": "^5.0.0",
"next": "12.2.1",
"next-plausible": "^3.2.0",
"postcss-focus-visible": "^6.0.4",

View File

@ -24,7 +24,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-access-control"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf7d535e1381be3de2c0716c0a1c1e32ad9df1042cddcf7bc18d743569e53319"
dependencies = [
@ -38,7 +38,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-account"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3bcd731f21048a032be27c7791701120e44f3f6371358fc4261a7f716283d29"
dependencies = [
@ -53,7 +53,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-constant"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1be64a48e395fe00b8217287f226078be2cf32dae42fdf8a885b997945c3d28"
dependencies = [
@ -64,7 +64,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-error"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38ea6713d1938c0da03656ff8a693b17dc0396da66d1ba320557f07e86eca0d4"
dependencies = [
@ -76,7 +76,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-event"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d401f11efb3644285685f8339829a9786d43ed7490bb1699f33c478d04d5a582"
dependencies = [
@ -89,7 +89,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-interface"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6700a6f5c888a9c33fe8afc0c64fd8575fa28d05446037306d0f96102ae4480"
dependencies = [
@ -103,7 +103,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-program"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ad769993b5266714e8939e47fbdede90e5c030333c7522d99a4d4748cf26712"
dependencies = [
@ -116,7 +116,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-state"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e677fae4a016a554acdd0e3b7f178d3acafaa7e7ffac6b8690cf4e171f1c116"
dependencies = [
@ -129,7 +129,7 @@ dependencies = [
[[package]]
name = "anchor-derive-accounts"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "340beef6809d1c3fcc7ae219153d981e95a8a277ff31985bd7050e32645dc9a8"
dependencies = [
@ -142,7 +142,7 @@ dependencies = [
[[package]]
name = "anchor-lang"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "662ceafe667448ee4199a4be2ee83b6bb76da28566eee5cea05f96ab38255af8"
dependencies = [
@ -166,7 +166,7 @@ dependencies = [
[[package]]
name = "anchor-syn"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0418bcb5daac3b8cb1b60d8fdb1d468ca36f5509f31fb51179326fae1028fdcc"
dependencies = [

View File

@ -16,6 +16,6 @@ cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = "=0.26.0"
anchor-lang = "=0.27.0"
num-traits = "0.2"
num-derive = "0.3"

View File

@ -63,7 +63,7 @@ Anchor binaries are available via an NPM package [`@coral-xyz/anchor-cli`](https
We can also use Cargo to install the CLI directly. Make sure that the `--tag` argument uses the version you want (the version here is just an example).
```shell
cargo install --git https://github.com/coral-xyz/anchor --tag v0.26.0 anchor-cli --locked
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
```
On Linux systems you may need to install additional dependencies if cargo install fails. On Ubuntu,

View File

@ -34,7 +34,7 @@ have an `Anchor.toml` to define the build.
An example `Anchor.toml` config looks as follows,
```toml
anchor_version = "0.26.0"
anchor_version = "0.27.0"
[workspace]
members = ["programs/multisig"]

View File

@ -8,6 +8,42 @@ The minor version will be incremented upon a breaking change and the patch versi
---
## [0.27.0] - 2023-03-08
### Features
- spl: Add `MasterEditionAccount` account deserialization to spl metadata ([#2393](https://github.com/coral-xyz/anchor/pull/2393)).
- lang: Add the `InitSpace` derive macro to automatically calculate the space at the initialization of an account ([#2346](https://github.com/coral-xyz/anchor/pull/2346)).
- cli: Add `env` option to verifiable builds ([#2325](https://github.com/coral-xyz/anchor/pull/2325)).
- cli: Add `idl close` command to close a program's IDL account ([#2329](https://github.com/coral-xyz/anchor/pull/2329)).
- cli: `idl init` now supports very large IDL files ([#2329](https://github.com/coral-xyz/anchor/pull/2329)).
- spl: Add `transfer_checked` function ([#2353](https://github.com/coral-xyz/anchor/pull/2353)).
- spl: Add `approve_checked` function ([#2401](https://github.com/coral-xyz/anchor/pull/2401)).
- cli: Add `--skip-build` option to the verify command ([#2387](https://github.com/coral-xyz/anchor/pull/2387)).
- client: Add support for multithreading to the rust client: use flag `--multithreaded` ([#2321](https://github.com/coral-xyz/anchor/pull/2321)).
- client: Add `async_rpc` a method which returns a nonblocking solana rpc client ([2322](https://github.com/coral-xyz/anchor/pull/2322)).
- avm, cli: Use the `rustls-tls` feature of `reqwest` so that users don't need OpenSSL installed ([#2385](https://github.com/coral-xyz/anchor/pull/2385)).
- ts: Add `VersionedTransaction` support. Methods in the `Provider` class and `Wallet` interface now use the argument `tx: Transaction | VersionedTransaction` ([2427](https://github.com/coral-xyz/anchor/pull/2427)).
- cli: Add `--arch sbf` option to compile programs using `cargo build-sbf` ([#2398](https://github.com/coral-xyz/anchor/pull/2398)).
### Fixes
- ts: Make the return type of `AccountClient.fetchMultiple` match the account type being fetched ([#2390](https://github.com/coral-xyz/anchor/pull/2390))
- cli: Don't regenerate idl in read_all_programs(). ([#2332](https://github.com/coral-xyz/anchor/pull/2332)).
- ts: `provider.simulate` will send the transaction with `sigVerify: false` if no `signers` are present ([#2331](https://github.com/coral-xyz/anchor/pull/2331)).
- cli: Failing commands will return the correct exit status. ([#2370](https://github.com/coral-xyz/anchor/pull/2370)).
- idl: Update the IDL program to use non-deprecated account types ([#2365](https://github.com/coral-xyz/anchor/pull/2365)).
- ts: Enum fields weren't being converted from snake_case to camelCase ([#2378](https://github.com/coral-xyz/anchor/pull/2378)).
- lang/cli: Update to solana-program version 1.14.16 and rust version 1.60, appears to still be incompatible with 1.15 CLI ([#2420](https://github.com/coral-xyz/anchor/pull/2420)).
### Breaking
- lang: Remove deprecated account types: `CpiAccount`, `Loader` and `ProgramAccount` ([#2375](https://github.com/coral-xyz/anchor/pull/2375)).
- lang: Remove `state` and `interface` attributes ([#2285](https://github.com/coral-xyz/anchor/pull/2285)).
- lang: Remove deprecated literal constraint which has been replaced by `#[account(constraint = {})]` ([#2379](https://github.com/coral-xyz/anchor/pull/2379)).
- lang: `account(zero_copy)` and `zero_copy` attributes now derive the `bytemuck::Pod` and `bytemuck::Zeroable` traits instead of using `unsafe impl` ([#2330](https://github.com/coral-xyz/anchor/pull/2330)). This imposes useful restrictions on the type, like not having padding bytes and all fields being `Pod` themselves. See [bytemuck::Pod](https://docs.rs/bytemuck/latest/bytemuck/trait.Pod.html) for details. This change requires adding `bytemuck = { version = "1.4.0", features = ["derive", "min_const_generics"]}` to your `cargo.toml`. Legacy applications can still use `#[account(zero_copy(unsafe))]` and `#[zero_copy(unsafe)]` for the old behavior.
- ts: Remove `createProgramAddressSync`, `findProgramAddressSync` (now available in `@solana/web3.js`) and update `associatedAddress` to be synchronous ([#2357](https://github.com/coral-xyz/anchor/pull/2357)).
## [0.26.0] - 2022-12-15
### Features

View File

@ -37,10 +37,10 @@ If the program has an IDL, it will also check the IDL deployed on chain matches.
## Images
A docker image for each version of Anchor is published on [Docker Hub](https://hub.docker.com/r/projectserum/build). They are tagged in the form `projectserum/build:<version>`. For example, to get the image for Anchor `v0.26.0` one can run
A docker image for each version of Anchor is published on [Docker Hub](https://hub.docker.com/r/projectserum/build). They are tagged in the form `projectserum/build:<version>`. For example, to get the image for Anchor `v0.27.0` one can run
```shell
docker pull projectserum/build:v0.26.0
docker pull projectserum/build:v0.27.0
```
## Removing an Image

View File

@ -1,6 +1,6 @@
{
"name": "basic-0",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-1",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-2",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-3",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-4",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -17,9 +17,9 @@
regenerator-runtime "^0.13.11"
"@coral-xyz/anchor@file:../../ts/packages/anchor":
version "0.26.0"
version "0.27.0"
dependencies:
"@coral-xyz/borsh" "^0.26.0"
"@coral-xyz/borsh" "^0.27.0"
"@solana/web3.js" "^1.68.0"
base64-js "^1.5.1"
bn.js "^5.1.2"
@ -35,7 +35,7 @@
superstruct "^0.15.4"
toml "^3.0.0"
"@coral-xyz/borsh@^0.26.0":
"@coral-xyz/borsh@^0.27.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.26.0.tgz#d054f64536d824634969e74138f9f7c52bbbc0d5"
integrity sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-lang"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.60"
@ -25,14 +25,14 @@ anchor-debug = [
]
[dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.26.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.26.0" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.26.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.26.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.26.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.26.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.26.0" }
anchor-derive-space = { path = "./derive/space", version = "0.26.0" }
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.27.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.27.0" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.27.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.27.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.27.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.27.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.27.0" }
anchor-derive-space = { path = "./derive/space", version = "0.27.0" }
arrayref = "0.3.6"
base64 = "0.13.0"
borsh = "0.9"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-access-control"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -19,5 +19,5 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.26.0" }
anchor-syn = { path = "../../syn", version = "0.27.0" }
regex = "1.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-account"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -19,6 +19,6 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.26.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.27.0", features = ["hash"] }
rustversion = "1.0.3"
bs58 = "0.4.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-constant"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -17,4 +17,4 @@ anchor-debug = ["anchor-syn/anchor-debug"]
[dependencies]
proc-macro2 = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anchor-syn = { path = "../../syn", version = "0.26.0" }
anchor-syn = { path = "../../syn", version = "0.27.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-error"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -18,4 +18,4 @@ anchor-debug = ["anchor-syn/anchor-debug"]
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anchor-syn = { path = "../../syn", version = "0.26.0" }
anchor-syn = { path = "../../syn", version = "0.27.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-event"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -19,4 +19,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.26.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.27.0", features = ["hash"] }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-program"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -19,4 +19,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.26.0" }
anchor-syn = { path = "../../syn", version = "0.27.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-derive-accounts"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -22,4 +22,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.26.0" }
anchor-syn = { path = "../../syn", version = "0.27.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-derive-space"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
@ -14,4 +14,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = "1.0"
syn = { version = "1.0", features = ["extra-traits"]}

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-syn"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-spl"
version = "0.26.0"
version = "0.27.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.60"
edition = "2021"
@ -21,7 +21,7 @@ metadata = ["mpl-token-metadata"]
dex = ["serum_dex"]
[dependencies]
anchor-lang = { path = "../lang", version = "0.26.0", features = ["derive"] }
anchor-lang = { path = "../lang", version = "0.27.0", features = ["derive"] }
borsh = { version = "^0.9", optional = true }
serum_dex = { git = "https://github.com/openbook-dex/program/", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
solana-program = "1.14.16"

View File

@ -1,6 +1,6 @@
{
"name": "anchor-cli-account",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -16,4 +16,4 @@ cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = "0.26.0"
anchor-lang = "0.27.0"

View File

@ -1,6 +1,6 @@
{
"name": "anchor-cli-idl",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "cashiers-check",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "cfo",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -195,7 +195,7 @@ pub mod cfo {
let expiry_ts = 1853942400; // 9/30/2028.
let expiry_receiver = *ctx.accounts.officer.to_account_info().key;
let locked_kind = {
let start_ts = 1633017600; // 9/30.26.0.
let start_ts = 1633017600; // 9/30.27.0.
let end_ts = 1822320000; // 9/30/2027.
let period_count = 2191;
RewardVendorKind::Locked {

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "composite",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "cpi-returns",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "custom-coder",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "declare-id",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "errors",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "errors",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "escrow",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "events",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "floats",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "ido-pool",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "lockup",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "misc",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "multiple-suites",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "multisig",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "optional",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "pda-derivation",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "pyth",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "realloc",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "relations-derivation",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "token-proxy",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "swap",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "system-accounts",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "sysvars",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "tictactoe",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "typescript-example",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "validator-clone",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -16,8 +16,10 @@
dependencies:
regenerator-runtime "^0.13.4"
"@coral-xyz/anchor@=0.26.0", "@coral-xyz/anchor@file:../ts/packages/anchor":
"@coral-xyz/anchor@=0.27.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.26.0.tgz#c8e4f7177e93441afd030f22d777d54d0194d7d1"
integrity sha512-PxRl+wu5YyptWiR9F2MBHOLLibm87Z4IMUBPreX+DYBtPM+xggvcPi0KAN7+kIL4IrIhXI8ma5V0MCXxSN1pHg==
dependencies:
"@coral-xyz/borsh" "^0.26.0"
"@solana/web3.js" "^1.68.0"
@ -35,7 +37,26 @@
superstruct "^0.15.4"
toml "^3.0.0"
"@coral-xyz/borsh@^0.26.0":
"@coral-xyz/anchor@file:../ts/packages/anchor":
version "0.27.0"
dependencies:
"@coral-xyz/borsh" "^0.27.0"
"@solana/web3.js" "^1.68.0"
base64-js "^1.5.1"
bn.js "^5.1.2"
bs58 "^4.0.1"
buffer-layout "^1.2.2"
camelcase "^6.3.0"
cross-fetch "^3.1.5"
crypto-hash "^1.3.0"
eventemitter3 "^4.0.7"
js-sha256 "^0.9.0"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"
"@coral-xyz/borsh@^0.26.0", "@coral-xyz/borsh@^0.27.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.26.0.tgz#d054f64536d824634969e74138f9f7c52bbbc0d5"
integrity sha512-uCZ0xus0CszQPHYfWAqKS5swS1UxvePu83oOF+TWpUkedsNlg6p2p4azxZNSSqwXb9uXMFgxhuMBX9r3Xoi0vQ==
@ -46,13 +67,13 @@
"@coral-xyz/spl-associated-token-account@file:../ts/packages/spl-associated-token-account":
version "1.1.1"
dependencies:
"@coral-xyz/anchor" "=0.26.0"
"@coral-xyz/anchor" "=0.27.0"
"@native-to-anchor/buffer-layout" "=0.1.0"
"@coral-xyz/spl-token@file:../ts/packages/spl-token":
version "0.26.0"
version "0.27.0"
dependencies:
"@coral-xyz/anchor" "=0.26.0"
"@coral-xyz/anchor" "=0.27.0"
"@native-to-anchor/buffer-layout" "=0.1.0"
"@native-to-anchor/buffer-layout@=0.1.0":

View File

@ -1,6 +1,6 @@
{
"name": "zero-copy",
"version": "0.26.0",
"version": "0.27.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "@coral-xyz/anchor",
"version": "0.26.0",
"version": "0.27.0",
"description": "Anchor client",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
@ -33,7 +33,7 @@
"test": "jest tests --detectOpenHandles"
},
"dependencies": {
"@coral-xyz/borsh": "^0.26.0",
"@coral-xyz/borsh": "^0.27.0",
"@solana/web3.js": "^1.68.0",
"base64-js": "^1.5.1",
"bn.js": "^5.1.2",

View File

@ -1,6 +1,6 @@
{
"name": "@coral-xyz/borsh",
"version": "0.26.0",
"version": "0.27.0",
"description": "Anchor Borsh",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0"
"@coral-xyz/anchor": "=0.27.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "=21.0.2",

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "@coral-xyz/spl-token",
"description": "Anchor client for Solana Program Library Token",
"version": "0.26.0",
"version": "0.27.0",
"author": "acheron <acheroncrypto@gmail.com>",
"license": "Apache-2.0",
"repository": {
@ -27,7 +27,7 @@
"watch": "tsc -p tsconfig.cjs.json --watch"
},
"dependencies": {
"@coral-xyz/anchor": "=0.26.0",
"@coral-xyz/anchor": "=0.27.0",
"@native-to-anchor/buffer-layout": "=0.1.0"
},
"devDependencies": {