From 3b45144787a0493caa8fc07de35e8cfd5fe98543 Mon Sep 17 00:00:00 2001 From: Henry-E Date: Wed, 8 Mar 2023 13:28:23 +0000 Subject: [PATCH] v0.27.0 (#2428) --- CHANGELOG.md | 12 +++++-- Cargo.lock | 26 +++++++------- Makefile | 2 ++ VERSION | 2 +- avm/Cargo.lock | 2 +- avm/Cargo.toml | 2 +- cli/Cargo.toml | 8 ++--- cli/npm-package/package.json | 2 +- client/Cargo.toml | 4 +-- docker/Makefile | 4 +-- docs/package.json | 2 +- docs/programs/tic-tac-toe/Cargo.lock | 22 ++++++------ .../programs/tic-tac-toe/Cargo.toml | 2 +- docs/src/pages/docs/installation.md | 2 +- docs/src/pages/docs/publishing-source.md | 2 +- docs/src/pages/docs/release-notes.md | 36 +++++++++++++++++++ docs/src/pages/docs/verifiable-builds.md | 4 +-- examples/tutorial/basic-0/package.json | 2 +- examples/tutorial/basic-1/package.json | 2 +- examples/tutorial/basic-2/package.json | 2 +- examples/tutorial/basic-3/package.json | 2 +- examples/tutorial/basic-4/package.json | 2 +- examples/tutorial/yarn.lock | 6 ++-- lang/Cargo.toml | 18 +++++----- lang/attribute/access-control/Cargo.toml | 4 +-- lang/attribute/account/Cargo.toml | 4 +-- lang/attribute/constant/Cargo.toml | 4 +-- lang/attribute/error/Cargo.toml | 4 +-- lang/attribute/event/Cargo.toml | 4 +-- lang/attribute/program/Cargo.toml | 4 +-- lang/derive/accounts/Cargo.toml | 4 +-- lang/derive/space/Cargo.toml | 4 +-- lang/syn/Cargo.toml | 2 +- spl/Cargo.toml | 4 +-- tests/anchor-cli-account/package.json | 2 +- .../programs/account-command/Cargo.toml | 2 +- tests/anchor-cli-idl/package.json | 2 +- tests/cashiers-check/package.json | 2 +- tests/cfo/package.json | 2 +- tests/cfo/programs/cfo/src/lib.rs | 2 +- tests/chat/package.json | 2 +- tests/composite/package.json | 2 +- tests/cpi-returns/package.json | 2 +- tests/custom-coder/package.json | 2 +- tests/declare-id/package.json | 2 +- tests/docs/package.json | 2 +- tests/errors/package.json | 2 +- tests/escrow/package.json | 2 +- tests/events/package.json | 2 +- tests/floats/package.json | 2 +- tests/ido-pool/package.json | 2 +- tests/lockup/package.json | 2 +- tests/misc/package.json | 2 +- tests/multiple-suites/package.json | 2 +- tests/multisig/package.json | 2 +- tests/optional/package.json | 2 +- tests/pda-derivation/package.json | 2 +- tests/pyth/package.json | 2 +- tests/realloc/package.json | 2 +- tests/relations-derivation/package.json | 2 +- tests/spl/token-proxy/package.json | 2 +- tests/swap/package.json | 2 +- tests/system-accounts/package.json | 2 +- tests/sysvars/package.json | 2 +- tests/tictactoe/package.json | 2 +- tests/typescript/package.json | 2 +- tests/validator-clone/package.json | 2 +- tests/yarn.lock | 31 +++++++++++++--- tests/zero-copy/package.json | 2 +- ts/packages/anchor/package.json | 4 +-- ts/packages/borsh/package.json | 2 +- .../spl-associated-token-account/package.json | 2 +- ts/packages/spl-binary-option/package.json | 2 +- .../spl-binary-oracle-pair/package.json | 2 +- ts/packages/spl-feature-proposal/package.json | 2 +- ts/packages/spl-governance/package.json | 2 +- ts/packages/spl-memo/package.json | 2 +- ts/packages/spl-name-service/package.json | 2 +- ts/packages/spl-record/package.json | 2 +- ts/packages/spl-stake-pool/package.json | 2 +- ts/packages/spl-stateless-asks/package.json | 2 +- ts/packages/spl-token-lending/package.json | 2 +- ts/packages/spl-token-swap/package.json | 2 +- ts/packages/spl-token/package.json | 4 +-- 84 files changed, 203 insertions(+), 136 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c66610b5e9..761214e519 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index e38fd89730..85e21ba04e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Makefile b/Makefile index b844878af2..8d3c6d4e5f 100644 --- a/Makefile +++ b/Makefile @@ -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 ../../../ diff --git a/VERSION b/VERSION index 4e8f395fa5..1b58cc1018 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.26.0 +0.27.0 diff --git a/avm/Cargo.lock b/avm/Cargo.lock index a7cb2cf413..6ec821b121 100644 --- a/avm/Cargo.lock +++ b/avm/Cargo.lock @@ -27,7 +27,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "avm" -version = "0.26.0" +version = "0.27.0" dependencies = [ "anyhow", "cfg-if", diff --git a/avm/Cargo.toml b/avm/Cargo.toml index 91b7a6a56f..40ddf76067 100644 --- a/avm/Cargo.toml +++ b/avm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "avm" -version = "0.26.0" +version = "0.27.0" rust-version = "1.60" edition = "2021" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 266282f2ba..ff0942fd01 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-cli" -version = "0.26.0" +version = "0.27.0" authors = ["armaniferrante "] 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" diff --git a/cli/npm-package/package.json b/cli/npm-package/package.json index 8738215fd0..f01dffe6fe 100644 --- a/cli/npm-package/package.json +++ b/cli/npm-package/package.json @@ -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": { diff --git a/client/Cargo.toml b/client/Cargo.toml index c77212c7cc..2f950e0afb 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-client" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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"] } diff --git a/docker/Makefile b/docker/Makefile index f68672b0ac..ecd508ba8f 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -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. # diff --git a/docs/package.json b/docs/package.json index 57d14a2422..7c04fa7067 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/docs/programs/tic-tac-toe/Cargo.lock b/docs/programs/tic-tac-toe/Cargo.lock index 0d9859146f..72585804b3 100644 --- a/docs/programs/tic-tac-toe/Cargo.lock +++ b/docs/programs/tic-tac-toe/Cargo.lock @@ -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 = [ diff --git a/docs/programs/tic-tac-toe/programs/tic-tac-toe/Cargo.toml b/docs/programs/tic-tac-toe/programs/tic-tac-toe/Cargo.toml index 813cdcb913..9415d1337e 100644 --- a/docs/programs/tic-tac-toe/programs/tic-tac-toe/Cargo.toml +++ b/docs/programs/tic-tac-toe/programs/tic-tac-toe/Cargo.toml @@ -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" diff --git a/docs/src/pages/docs/installation.md b/docs/src/pages/docs/installation.md index 3ed83f779f..9241846fde 100644 --- a/docs/src/pages/docs/installation.md +++ b/docs/src/pages/docs/installation.md @@ -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, diff --git a/docs/src/pages/docs/publishing-source.md b/docs/src/pages/docs/publishing-source.md index 860556e322..1d3324f1bc 100644 --- a/docs/src/pages/docs/publishing-source.md +++ b/docs/src/pages/docs/publishing-source.md @@ -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"] diff --git a/docs/src/pages/docs/release-notes.md b/docs/src/pages/docs/release-notes.md index d6b357a789..b402f102c9 100644 --- a/docs/src/pages/docs/release-notes.md +++ b/docs/src/pages/docs/release-notes.md @@ -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 diff --git a/docs/src/pages/docs/verifiable-builds.md b/docs/src/pages/docs/verifiable-builds.md index ec7b0225ef..fd0ae383a3 100644 --- a/docs/src/pages/docs/verifiable-builds.md +++ b/docs/src/pages/docs/verifiable-builds.md @@ -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:`. 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:`. 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 diff --git a/examples/tutorial/basic-0/package.json b/examples/tutorial/basic-0/package.json index 332bcdb014..e5a07fa02e 100644 --- a/examples/tutorial/basic-0/package.json +++ b/examples/tutorial/basic-0/package.json @@ -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": { diff --git a/examples/tutorial/basic-1/package.json b/examples/tutorial/basic-1/package.json index d60166c027..81a4d01c16 100644 --- a/examples/tutorial/basic-1/package.json +++ b/examples/tutorial/basic-1/package.json @@ -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": { diff --git a/examples/tutorial/basic-2/package.json b/examples/tutorial/basic-2/package.json index b6b29bf829..8af52deb2a 100644 --- a/examples/tutorial/basic-2/package.json +++ b/examples/tutorial/basic-2/package.json @@ -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": { diff --git a/examples/tutorial/basic-3/package.json b/examples/tutorial/basic-3/package.json index be3a085758..713808a27e 100644 --- a/examples/tutorial/basic-3/package.json +++ b/examples/tutorial/basic-3/package.json @@ -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": { diff --git a/examples/tutorial/basic-4/package.json b/examples/tutorial/basic-4/package.json index 3ece938c86..1360fff2ed 100644 --- a/examples/tutorial/basic-4/package.json +++ b/examples/tutorial/basic-4/package.json @@ -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": { diff --git a/examples/tutorial/yarn.lock b/examples/tutorial/yarn.lock index a9064947d0..e83796f9a8 100644 --- a/examples/tutorial/yarn.lock +++ b/examples/tutorial/yarn.lock @@ -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== diff --git a/lang/Cargo.toml b/lang/Cargo.toml index da175c9961..af8b0529ce 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-lang" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" diff --git a/lang/attribute/access-control/Cargo.toml b/lang/attribute/access-control/Cargo.toml index 60e591d354..945b24842a 100644 --- a/lang/attribute/access-control/Cargo.toml +++ b/lang/attribute/access-control/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-access-control" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" diff --git a/lang/attribute/account/Cargo.toml b/lang/attribute/account/Cargo.toml index cecaa9f57a..908cd402cd 100644 --- a/lang/attribute/account/Cargo.toml +++ b/lang/attribute/account/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-account" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" \ No newline at end of file diff --git a/lang/attribute/constant/Cargo.toml b/lang/attribute/constant/Cargo.toml index 34b981079d..c2684470a6 100644 --- a/lang/attribute/constant/Cargo.toml +++ b/lang/attribute/constant/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-constant" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" } diff --git a/lang/attribute/error/Cargo.toml b/lang/attribute/error/Cargo.toml index 87ce72f5ba..2822c222f8 100644 --- a/lang/attribute/error/Cargo.toml +++ b/lang/attribute/error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-error" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" } diff --git a/lang/attribute/event/Cargo.toml b/lang/attribute/event/Cargo.toml index a105938c04..59857fe929 100644 --- a/lang/attribute/event/Cargo.toml +++ b/lang/attribute/event/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-event" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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"] } diff --git a/lang/attribute/program/Cargo.toml b/lang/attribute/program/Cargo.toml index 6e9b5af111..85946bc34d 100644 --- a/lang/attribute/program/Cargo.toml +++ b/lang/attribute/program/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-program" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" } diff --git a/lang/derive/accounts/Cargo.toml b/lang/derive/accounts/Cargo.toml index 8bc0715efc..0a9e67ff54 100644 --- a/lang/derive/accounts/Cargo.toml +++ b/lang/derive/accounts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-derive-accounts" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" } diff --git a/lang/derive/space/Cargo.toml b/lang/derive/space/Cargo.toml index cc289eca81..87bd62212e 100644 --- a/lang/derive/space/Cargo.toml +++ b/lang/derive/space/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-derive-space" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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"]} diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index bcffb3a376..f1e7b85f0e 100644 --- a/lang/syn/Cargo.toml +++ b/lang/syn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-syn" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] repository = "https://github.com/coral-xyz/anchor" license = "Apache-2.0" diff --git a/spl/Cargo.toml b/spl/Cargo.toml index 92f0ec9112..fb3dc088de 100644 --- a/spl/Cargo.toml +++ b/spl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-spl" -version = "0.26.0" +version = "0.27.0" authors = ["Serum Foundation "] 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" diff --git a/tests/anchor-cli-account/package.json b/tests/anchor-cli-account/package.json index 895f869dca..e57b7a612c 100644 --- a/tests/anchor-cli-account/package.json +++ b/tests/anchor-cli-account/package.json @@ -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": { diff --git a/tests/anchor-cli-account/programs/account-command/Cargo.toml b/tests/anchor-cli-account/programs/account-command/Cargo.toml index 71e4f02383..db2136edc4 100644 --- a/tests/anchor-cli-account/programs/account-command/Cargo.toml +++ b/tests/anchor-cli-account/programs/account-command/Cargo.toml @@ -16,4 +16,4 @@ cpi = ["no-entrypoint"] default = [] [dependencies] -anchor-lang = "0.26.0" +anchor-lang = "0.27.0" diff --git a/tests/anchor-cli-idl/package.json b/tests/anchor-cli-idl/package.json index 45dc99d251..c75d16b8bf 100644 --- a/tests/anchor-cli-idl/package.json +++ b/tests/anchor-cli-idl/package.json @@ -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": { diff --git a/tests/cashiers-check/package.json b/tests/cashiers-check/package.json index 3492ce6dfc..1f56283e14 100644 --- a/tests/cashiers-check/package.json +++ b/tests/cashiers-check/package.json @@ -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": { diff --git a/tests/cfo/package.json b/tests/cfo/package.json index 8462f801ee..1dd9b105ae 100644 --- a/tests/cfo/package.json +++ b/tests/cfo/package.json @@ -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": { diff --git a/tests/cfo/programs/cfo/src/lib.rs b/tests/cfo/programs/cfo/src/lib.rs index d59607571a..963987d399 100644 --- a/tests/cfo/programs/cfo/src/lib.rs +++ b/tests/cfo/programs/cfo/src/lib.rs @@ -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 { diff --git a/tests/chat/package.json b/tests/chat/package.json index 853018393e..d179276e37 100644 --- a/tests/chat/package.json +++ b/tests/chat/package.json @@ -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": { diff --git a/tests/composite/package.json b/tests/composite/package.json index d9e0db44b3..56a8839caa 100644 --- a/tests/composite/package.json +++ b/tests/composite/package.json @@ -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": { diff --git a/tests/cpi-returns/package.json b/tests/cpi-returns/package.json index 298c279ff6..bf2b7d573f 100644 --- a/tests/cpi-returns/package.json +++ b/tests/cpi-returns/package.json @@ -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": { diff --git a/tests/custom-coder/package.json b/tests/custom-coder/package.json index 7524c6b4df..a8d53528f4 100644 --- a/tests/custom-coder/package.json +++ b/tests/custom-coder/package.json @@ -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": { diff --git a/tests/declare-id/package.json b/tests/declare-id/package.json index 6e8b6708ed..b3563c35da 100644 --- a/tests/declare-id/package.json +++ b/tests/declare-id/package.json @@ -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": { diff --git a/tests/docs/package.json b/tests/docs/package.json index 64843e01d1..84a393ac8e 100644 --- a/tests/docs/package.json +++ b/tests/docs/package.json @@ -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": { diff --git a/tests/errors/package.json b/tests/errors/package.json index 64843e01d1..84a393ac8e 100644 --- a/tests/errors/package.json +++ b/tests/errors/package.json @@ -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": { diff --git a/tests/escrow/package.json b/tests/escrow/package.json index 9ad67ccf78..5a3d57f022 100644 --- a/tests/escrow/package.json +++ b/tests/escrow/package.json @@ -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": { diff --git a/tests/events/package.json b/tests/events/package.json index 1cda4559ce..e2a35186c0 100644 --- a/tests/events/package.json +++ b/tests/events/package.json @@ -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": { diff --git a/tests/floats/package.json b/tests/floats/package.json index ca30267ae3..2e43c27e20 100644 --- a/tests/floats/package.json +++ b/tests/floats/package.json @@ -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": { diff --git a/tests/ido-pool/package.json b/tests/ido-pool/package.json index 9e5511998a..cfbe968034 100644 --- a/tests/ido-pool/package.json +++ b/tests/ido-pool/package.json @@ -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": { diff --git a/tests/lockup/package.json b/tests/lockup/package.json index 5ac293cc1d..5abe0765a9 100644 --- a/tests/lockup/package.json +++ b/tests/lockup/package.json @@ -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": { diff --git a/tests/misc/package.json b/tests/misc/package.json index f4682075d3..b21d0b88e8 100644 --- a/tests/misc/package.json +++ b/tests/misc/package.json @@ -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": { diff --git a/tests/multiple-suites/package.json b/tests/multiple-suites/package.json index bab6c728b0..c4e0bd2055 100644 --- a/tests/multiple-suites/package.json +++ b/tests/multiple-suites/package.json @@ -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": { diff --git a/tests/multisig/package.json b/tests/multisig/package.json index 1e216e67ab..930af15a71 100644 --- a/tests/multisig/package.json +++ b/tests/multisig/package.json @@ -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": { diff --git a/tests/optional/package.json b/tests/optional/package.json index c6f6514c7b..64771f1cfd 100644 --- a/tests/optional/package.json +++ b/tests/optional/package.json @@ -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": { diff --git a/tests/pda-derivation/package.json b/tests/pda-derivation/package.json index acd2792f2d..579e989a19 100644 --- a/tests/pda-derivation/package.json +++ b/tests/pda-derivation/package.json @@ -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": { diff --git a/tests/pyth/package.json b/tests/pyth/package.json index 5d27615409..784cadfd72 100644 --- a/tests/pyth/package.json +++ b/tests/pyth/package.json @@ -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": { diff --git a/tests/realloc/package.json b/tests/realloc/package.json index a48fb22e36..64e20159b1 100644 --- a/tests/realloc/package.json +++ b/tests/realloc/package.json @@ -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": { diff --git a/tests/relations-derivation/package.json b/tests/relations-derivation/package.json index 59cea9a0c0..9f5e389b8b 100644 --- a/tests/relations-derivation/package.json +++ b/tests/relations-derivation/package.json @@ -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": { diff --git a/tests/spl/token-proxy/package.json b/tests/spl/token-proxy/package.json index c4a9384f90..d1a1f4c5ad 100644 --- a/tests/spl/token-proxy/package.json +++ b/tests/spl/token-proxy/package.json @@ -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": { diff --git a/tests/swap/package.json b/tests/swap/package.json index 68c745aed9..565e73cd29 100644 --- a/tests/swap/package.json +++ b/tests/swap/package.json @@ -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": { diff --git a/tests/system-accounts/package.json b/tests/system-accounts/package.json index 03aa73c3bd..8807339651 100644 --- a/tests/system-accounts/package.json +++ b/tests/system-accounts/package.json @@ -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": { diff --git a/tests/sysvars/package.json b/tests/sysvars/package.json index 6ed1dbc69f..522a118da4 100644 --- a/tests/sysvars/package.json +++ b/tests/sysvars/package.json @@ -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": { diff --git a/tests/tictactoe/package.json b/tests/tictactoe/package.json index 48bd02c64a..920858231a 100644 --- a/tests/tictactoe/package.json +++ b/tests/tictactoe/package.json @@ -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": { diff --git a/tests/typescript/package.json b/tests/typescript/package.json index b7511f625d..dc7056a422 100644 --- a/tests/typescript/package.json +++ b/tests/typescript/package.json @@ -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": { diff --git a/tests/validator-clone/package.json b/tests/validator-clone/package.json index e6969d3e0e..f339f4e4af 100644 --- a/tests/validator-clone/package.json +++ b/tests/validator-clone/package.json @@ -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": { diff --git a/tests/yarn.lock b/tests/yarn.lock index 394f8a4990..f0a8cc1209 100644 --- a/tests/yarn.lock +++ b/tests/yarn.lock @@ -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": diff --git a/tests/zero-copy/package.json b/tests/zero-copy/package.json index 17b2b101e6..9856302aa4 100644 --- a/tests/zero-copy/package.json +++ b/tests/zero-copy/package.json @@ -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": { diff --git a/ts/packages/anchor/package.json b/ts/packages/anchor/package.json index e67f357477..efe6a380e8 100644 --- a/ts/packages/anchor/package.json +++ b/ts/packages/anchor/package.json @@ -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", diff --git a/ts/packages/borsh/package.json b/ts/packages/borsh/package.json index 5c574b52d2..5f3e16edd3 100644 --- a/ts/packages/borsh/package.json +++ b/ts/packages/borsh/package.json @@ -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", diff --git a/ts/packages/spl-associated-token-account/package.json b/ts/packages/spl-associated-token-account/package.json index 6dd93dd6f1..f6dab33097 100644 --- a/ts/packages/spl-associated-token-account/package.json +++ b/ts/packages/spl-associated-token-account/package.json @@ -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": { diff --git a/ts/packages/spl-binary-option/package.json b/ts/packages/spl-binary-option/package.json index 9539354619..c402c9f850 100644 --- a/ts/packages/spl-binary-option/package.json +++ b/ts/packages/spl-binary-option/package.json @@ -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": { diff --git a/ts/packages/spl-binary-oracle-pair/package.json b/ts/packages/spl-binary-oracle-pair/package.json index 1afb73087a..043f4d2f66 100644 --- a/ts/packages/spl-binary-oracle-pair/package.json +++ b/ts/packages/spl-binary-oracle-pair/package.json @@ -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": { diff --git a/ts/packages/spl-feature-proposal/package.json b/ts/packages/spl-feature-proposal/package.json index 3d1f87b28f..0acadf8b54 100644 --- a/ts/packages/spl-feature-proposal/package.json +++ b/ts/packages/spl-feature-proposal/package.json @@ -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": { diff --git a/ts/packages/spl-governance/package.json b/ts/packages/spl-governance/package.json index 3064ca13c5..816abad737 100644 --- a/ts/packages/spl-governance/package.json +++ b/ts/packages/spl-governance/package.json @@ -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": { diff --git a/ts/packages/spl-memo/package.json b/ts/packages/spl-memo/package.json index 9d01b82601..884e008636 100644 --- a/ts/packages/spl-memo/package.json +++ b/ts/packages/spl-memo/package.json @@ -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", diff --git a/ts/packages/spl-name-service/package.json b/ts/packages/spl-name-service/package.json index ebbdd55269..85f6d78b8e 100644 --- a/ts/packages/spl-name-service/package.json +++ b/ts/packages/spl-name-service/package.json @@ -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": { diff --git a/ts/packages/spl-record/package.json b/ts/packages/spl-record/package.json index d5b27b37aa..992b2af28e 100644 --- a/ts/packages/spl-record/package.json +++ b/ts/packages/spl-record/package.json @@ -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": { diff --git a/ts/packages/spl-stake-pool/package.json b/ts/packages/spl-stake-pool/package.json index a8ce5e3e8a..778cb28fb3 100644 --- a/ts/packages/spl-stake-pool/package.json +++ b/ts/packages/spl-stake-pool/package.json @@ -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": { diff --git a/ts/packages/spl-stateless-asks/package.json b/ts/packages/spl-stateless-asks/package.json index 7618fabb87..65cf26ff4d 100644 --- a/ts/packages/spl-stateless-asks/package.json +++ b/ts/packages/spl-stateless-asks/package.json @@ -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": { diff --git a/ts/packages/spl-token-lending/package.json b/ts/packages/spl-token-lending/package.json index 20160d4726..90e039abe6 100644 --- a/ts/packages/spl-token-lending/package.json +++ b/ts/packages/spl-token-lending/package.json @@ -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": { diff --git a/ts/packages/spl-token-swap/package.json b/ts/packages/spl-token-swap/package.json index 9f0bf58148..e419e1b8fb 100644 --- a/ts/packages/spl-token-swap/package.json +++ b/ts/packages/spl-token-swap/package.json @@ -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": { diff --git a/ts/packages/spl-token/package.json b/ts/packages/spl-token/package.json index bfa53a57d4..c943aaa810 100644 --- a/ts/packages/spl-token/package.json +++ b/ts/packages/spl-token/package.json @@ -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 ", "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": {