From 6baed77eb57d41455a5f3c1e026d86da756d1c8e Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Tue, 5 Jul 2022 16:32:55 -0400 Subject: [PATCH] v0.25.0 (#2031) --- CHANGELOG.md | 2 ++ Cargo.lock | 28 +++++++++---------- 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 | 2 +- docs/src/pages/docs/publishing-source.md | 2 +- docs/src/pages/docs/release-notes.md | 35 ++++++++++++++++++++++++ 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 | 8 +++++- lang/Cargo.toml | 20 +++++++------- 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/interface/Cargo.toml | 4 +-- lang/attribute/program/Cargo.toml | 4 +-- lang/attribute/state/Cargo.toml | 4 +-- lang/derive/accounts/Cargo.toml | 4 +-- lang/syn/Cargo.toml | 2 +- spl/Cargo.toml | 4 +-- 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/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/interface/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/pda-derivation/package.json | 2 +- tests/pyth/package.json | 2 +- tests/realloc/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/zero-copy/package.json | 2 +- ts/package.json | 2 +- 61 files changed, 139 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07a6d5b0..e3219254 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ The minor version will be incremented upon a breaking change and the patch versi ## [Unreleased] +## [0.25.0] - 2022-07-05 + ### Features * lang: Add `realloc`, `realloc::payer`, and `realloc::zero` as a new constraint group for program accounts ([#1986](https://github.com/coral-xyz/anchor/pull/1986)). diff --git a/Cargo.lock b/Cargo.lock index 59931b15..c7835a17 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,7 +103,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483" [[package]] name = "anchor-attribute-access-control" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -115,7 +115,7 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -128,7 +128,7 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "proc-macro2 1.0.40", @@ -137,7 +137,7 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "proc-macro2 1.0.40", @@ -147,7 +147,7 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -158,7 +158,7 @@ dependencies = [ [[package]] name = "anchor-attribute-interface" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -170,7 +170,7 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -181,7 +181,7 @@ dependencies = [ [[package]] name = "anchor-attribute-state" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -192,7 +192,7 @@ dependencies = [ [[package]] name = "anchor-cli" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-client", "anchor-lang", @@ -226,7 +226,7 @@ dependencies = [ [[package]] name = "anchor-client" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-lang", "anyhow", @@ -241,7 +241,7 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-syn", "anyhow", @@ -252,7 +252,7 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -274,7 +274,7 @@ dependencies = [ [[package]] name = "anchor-spl" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anchor-lang", "mpl-token-metadata", @@ -286,7 +286,7 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anyhow", "bs58 0.3.1", diff --git a/VERSION b/VERSION index 8b95abd9..d21d277b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.24.2 +0.25.0 diff --git a/avm/Cargo.lock b/avm/Cargo.lock index f2c68108..1a09fa4f 100644 --- a/avm/Cargo.lock +++ b/avm/Cargo.lock @@ -39,7 +39,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "avm" -version = "0.24.2" +version = "0.25.0" dependencies = [ "anyhow", "cfg-if", diff --git a/avm/Cargo.toml b/avm/Cargo.toml index 137e8212..0947fb8a 100644 --- a/avm/Cargo.toml +++ b/avm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "avm" -version = "0.24.2" +version = "0.25.0" rust-version = "1.56" edition = "2021" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index f408006d..df992372 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-cli" -version = "0.24.2" +version = "0.25.0" authors = ["armaniferrante "] rust-version = "1.56" edition = "2021" @@ -20,9 +20,9 @@ default = [] clap = { version = "3.0.13", features = ["derive"] } anyhow = "1.0.32" syn = { version = "1.0.60", features = ["full", "extra-traits"] } -anchor-lang = { path = "../lang", version = "0.24.2" } -anchor-client = { path = "../client", version = "0.24.2" } -anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.24.2" } +anchor-lang = { path = "../lang", version = "0.25.0" } +anchor-client = { path = "../client", version = "0.25.0" } +anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.25.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 f11d177b..30f5498e 100644 --- a/cli/npm-package/package.json +++ b/cli/npm-package/package.json @@ -1,6 +1,6 @@ { "name": "@project-serum/anchor-cli", - "version": "0.24.2", + "version": "0.25.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 ebb3115e..5664a50c 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-client" -version = "0.24.2" +version = "0.25.0" authors = ["Serum Foundation "] rust-version = "1.56" edition = "2021" @@ -11,7 +11,7 @@ description = "Rust client for Anchor programs" debug = [] [dependencies] -anchor-lang = { path = "../lang", version = "0.24.2" } +anchor-lang = { path = "../lang", version = "0.25.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 4374dc1f..7c0d362c 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -6,7 +6,7 @@ ANCHOR_CLI=v$(shell awk -F ' = ' '$$1 ~ /version/ { gsub(/[\"]/, "", $$2); print # # Solana toolchain. # -SOLANA_CLI=v1.9.13 +SOLANA_CLI=v1.10.29 # # Build version should match the Anchor cli version. # diff --git a/docs/src/pages/docs/publishing-source.md b/docs/src/pages/docs/publishing-source.md index 2ef17fe4..d1059c5c 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.24.2" +anchor_version = "0.25.0" [workspace] members = ["programs/multisig"] diff --git a/docs/src/pages/docs/release-notes.md b/docs/src/pages/docs/release-notes.md index 4520a705..ab437802 100644 --- a/docs/src/pages/docs/release-notes.md +++ b/docs/src/pages/docs/release-notes.md @@ -8,6 +8,41 @@ The minor version will be incremented upon a breaking change and the patch versi --- +## [0.25.0] - 2022-07-05 + +### Features + +* lang: Add `realloc`, `realloc::payer`, and `realloc::zero` as a new constraint group for program accounts ([#1986](https://github.com/coral-xyz/anchor/pull/1986)). +* lang: Add `PartialEq` and `Eq` for `anchor_lang::Error` ([#1544](https://github.com/coral-xyz/anchor/pull/1544)). +* cli: Add `--skip-build` to `anchor publish` ([#1786](https://github.com/coral-xyz/anchor/pull/1841)). +* cli: Add `--program-keypair` to `anchor deploy` ([#1786](https://github.com/coral-xyz/anchor/pull/1786)). +* cli: Add compilation optimizations to cli template ([#1807](https://github.com/coral-xyz/anchor/pull/1807)). +* cli: `build` now adds docs to idl. This can be turned off with `--no-docs` ([#1561](https://github.com/coral-xyz/anchor/pull/1561)). +* cli: Add `b` and `t` aliases for `build` and `test` respectively ([#1823](https://github.com/coral-xyz/anchor/pull/1823)). +* spl: Add more derived traits to `TokenAccount` to `Mint` ([#1818](https://github.com/coral-xyz/anchor/pull/1818)). +* spl: Add `sync_native` token program CPI wrapper function ([#1833](https://github.com/coral-xyz/anchor/pull/1833)). +* cli: Allow passing arguments to an underlying script with `anchor run` ([#1914](https://github.com/coral-xyz/anchor/pull/1914)). +* ts: Implement a coder for system program ([#1920](https://github.com/coral-xyz/anchor/pull/1920)). +* ts: Add `program.coder.types` for encoding/decoding user-defined types ([#1931](https://github.com/coral-xyz/anchor/pull/1931)). +* client: Add send_with_spinner_and_config function to RequestBuilder ([#1926](https://github.com/coral-xyz/anchor/pull/1926)). +* ts: Implement a coder for SPL associated token program ([#1939](https://github.com/coral-xyz/anchor/pull/1939)). +* ts: verbose error for missing `ANCHOR_WALLET` variable when using `NodeWallet.local()` ([#1958](https://github.com/coral-xyz/anchor/pull/1958)). +* ts: Add `MethodsBuilder#accountsStrict` for strict typing on ix account input ([#2019](https://github.com/coral-xyz/anchor/pull/2019)). +* Update solana dependencies to 1.10.29 ([#2027](https://github.com/coral-xyz/anchor/pull/2027)). + +### Fixes + +* cli: Move `overflow-checks` into workspace `Cargo.toml` so that it will not be ignored by compiler ([#1806](https://github.com/coral-xyz/anchor/pull/1806)). +* lang: Fix missing account name information when deserialization fails when using `init` or `zero` ([#1800](https://github.com/coral-xyz/anchor/pull/1800)). +* ts: Expose the wallet's publickey on the Provider ([#1845](https://github.com/coral-xyz/anchor/pull/1845)). + +### Breaking + +* ts: Change `BROWSER` env variable to `ANCHOR_BROWSER` ([#1233](https://github.com/coral-xyz/anchor/pull/1233)). +* ts: Add transaction signature to `EventCallback` parameters ([#1851](https://github.com/coral-xyz/anchor/pull/1851)). +* ts: Change `EventParser#parseLogs` implementation to be a generator instead of callback function ([#2018](https://github.com/coral-xyz/anchor/pull/2018)). +* lang: Adds a new `&mut reallocs: BTreeSet` argument to `Accounts::try_accounts` ([#1986](https://github.com/coral-xyz/anchor/pull/1986)). + ## [0.24.2] - 2022-04-13 ### Fixes diff --git a/docs/src/pages/docs/verifiable-builds.md b/docs/src/pages/docs/verifiable-builds.md index a6599554..12109861 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.24.2` 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.25.0` one can run ```shell -docker pull projectserum/build:v0.24.2 +docker pull projectserum/build:v0.25.0 ``` ## Removing an Image diff --git a/examples/tutorial/basic-0/package.json b/examples/tutorial/basic-0/package.json index 423a8065..b7f16711 100644 --- a/examples/tutorial/basic-0/package.json +++ b/examples/tutorial/basic-0/package.json @@ -1,6 +1,6 @@ { "name": "basic-0", - "version": "0.24.2", + "version": "0.25.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 0c3e120e..5514e42e 100644 --- a/examples/tutorial/basic-1/package.json +++ b/examples/tutorial/basic-1/package.json @@ -1,6 +1,6 @@ { "name": "basic-1", - "version": "0.24.2", + "version": "0.25.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 abddb25c..dde7e797 100644 --- a/examples/tutorial/basic-2/package.json +++ b/examples/tutorial/basic-2/package.json @@ -1,6 +1,6 @@ { "name": "basic-2", - "version": "0.24.2", + "version": "0.25.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 0e1ba7e1..289843b0 100644 --- a/examples/tutorial/basic-3/package.json +++ b/examples/tutorial/basic-3/package.json @@ -1,6 +1,6 @@ { "name": "basic-3", - "version": "0.24.2", + "version": "0.25.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 018e43b9..0044bb3f 100644 --- a/examples/tutorial/basic-4/package.json +++ b/examples/tutorial/basic-4/package.json @@ -1,6 +1,6 @@ { "name": "basic-4", - "version": "0.24.2", + "version": "0.25.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 478e9d95..61b4f39f 100644 --- a/examples/tutorial/yarn.lock +++ b/examples/tutorial/yarn.lock @@ -31,7 +31,7 @@ hash.js "1.1.7" "@project-serum/anchor@file:../../ts": - version "0.24.0" + version "0.25.0" dependencies: "@project-serum/borsh" "^0.2.5" "@solana/web3.js" "^1.36.0" @@ -46,6 +46,7 @@ js-sha256 "^0.9.0" pako "^2.0.3" snake-case "^3.0.4" + superstruct "^0.15.4" toml "^3.0.0" "@project-serum/borsh@^0.2.5": @@ -915,6 +916,11 @@ superstruct@^0.14.2: resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.14.2.tgz#0dbcdf3d83676588828f1cf5ed35cda02f59025b" integrity sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ== +superstruct@^0.15.4: + version "0.15.5" + resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.15.5.tgz#0f0a8d3ce31313f0d84c6096cd4fa1bfdedc9dab" + integrity sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ== + supports-color@8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" diff --git a/lang/Cargo.toml b/lang/Cargo.toml index 0a0d65ac..a0a18360 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-lang" -version = "0.24.2" +version = "0.25.0" authors = ["Serum Foundation "] repository = "https://github.com/coral-xyz/anchor" rust-version = "1.56" @@ -26,15 +26,15 @@ anchor-debug = [ ] [dependencies] -anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.24.2" } -anchor-attribute-account = { path = "./attribute/account", version = "0.24.2" } -anchor-attribute-constant = { path = "./attribute/constant", version = "0.24.2" } -anchor-attribute-error = { path = "./attribute/error", version = "0.24.2" } -anchor-attribute-program = { path = "./attribute/program", version = "0.24.2" } -anchor-attribute-state = { path = "./attribute/state", version = "0.24.2" } -anchor-attribute-interface = { path = "./attribute/interface", version = "0.24.2" } -anchor-attribute-event = { path = "./attribute/event", version = "0.24.2" } -anchor-derive-accounts = { path = "./derive/accounts", version = "0.24.2" } +anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.25.0" } +anchor-attribute-account = { path = "./attribute/account", version = "0.25.0" } +anchor-attribute-constant = { path = "./attribute/constant", version = "0.25.0" } +anchor-attribute-error = { path = "./attribute/error", version = "0.25.0" } +anchor-attribute-program = { path = "./attribute/program", version = "0.25.0" } +anchor-attribute-state = { path = "./attribute/state", version = "0.25.0" } +anchor-attribute-interface = { path = "./attribute/interface", version = "0.25.0" } +anchor-attribute-event = { path = "./attribute/event", version = "0.25.0" } +anchor-derive-accounts = { path = "./derive/accounts", version = "0.25.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 8e829697..4dc80d2f 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.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } regex = "1.0" diff --git a/lang/attribute/account/Cargo.toml b/lang/attribute/account/Cargo.toml index 215812bd..91ed572e 100644 --- a/lang/attribute/account/Cargo.toml +++ b/lang/attribute/account/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-account" -version = "0.24.2" +version = "0.25.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.24.2", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.25.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 4a80407c..120a989e 100644 --- a/lang/attribute/constant/Cargo.toml +++ b/lang/attribute/constant/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-constant" -version = "0.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } diff --git a/lang/attribute/error/Cargo.toml b/lang/attribute/error/Cargo.toml index 5d8d6244..bb345086 100644 --- a/lang/attribute/error/Cargo.toml +++ b/lang/attribute/error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-error" -version = "0.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } diff --git a/lang/attribute/event/Cargo.toml b/lang/attribute/event/Cargo.toml index e668b3c4..72c277d4 100644 --- a/lang/attribute/event/Cargo.toml +++ b/lang/attribute/event/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-event" -version = "0.24.2" +version = "0.25.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.24.2", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.25.0", features = ["hash"] } diff --git a/lang/attribute/interface/Cargo.toml b/lang/attribute/interface/Cargo.toml index 448c0526..4ec85bfb 100644 --- a/lang/attribute/interface/Cargo.toml +++ b/lang/attribute/interface/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-interface" -version = "0.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } heck = "0.3.2" diff --git a/lang/attribute/program/Cargo.toml b/lang/attribute/program/Cargo.toml index ee35d288..6e549976 100644 --- a/lang/attribute/program/Cargo.toml +++ b/lang/attribute/program/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-program" -version = "0.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } diff --git a/lang/attribute/state/Cargo.toml b/lang/attribute/state/Cargo.toml index 0dda5ca9..48fc3bf6 100644 --- a/lang/attribute/state/Cargo.toml +++ b/lang/attribute/state/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-state" -version = "0.24.2" +version = "0.25.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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } diff --git a/lang/derive/accounts/Cargo.toml b/lang/derive/accounts/Cargo.toml index a629d41b..4e07d49a 100644 --- a/lang/derive/accounts/Cargo.toml +++ b/lang/derive/accounts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-derive-accounts" -version = "0.24.2" +version = "0.25.0" authors = ["Serum Foundation "] repository = "https://github.com/coral-xyz/anchor" license = "Apache-2.0" @@ -21,4 +21,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.24.2" } +anchor-syn = { path = "../../syn", version = "0.25.0" } diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index de4594e4..26d034f8 100644 --- a/lang/syn/Cargo.toml +++ b/lang/syn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-syn" -version = "0.24.2" +version = "0.25.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 152ee0b1..426301f5 100644 --- a/spl/Cargo.toml +++ b/spl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-spl" -version = "0.24.2" +version = "0.25.0" authors = ["Serum Foundation "] rust-version = "1.56" edition = "2021" @@ -19,7 +19,7 @@ metadata = ["mpl-token-metadata"] dex = ["serum_dex"] [dependencies] -anchor-lang = { path = "../lang", version = "0.24.2", features = ["derive"] } +anchor-lang = { path = "../lang", version = "0.25.0", features = ["derive"] } serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true } solana-program = "~1.10.29" spl-token = { version = "~3.3.0", features = ["no-entrypoint"], optional = true } diff --git a/tests/anchor-cli-idl/package.json b/tests/anchor-cli-idl/package.json index cdcc395e..d374fa17 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.24.2", + "version": "0.25.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 75340382..f05ec41d 100644 --- a/tests/cashiers-check/package.json +++ b/tests/cashiers-check/package.json @@ -1,6 +1,6 @@ { "name": "cashiers-check", - "version": "0.24.2", + "version": "0.25.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 13125d96..4cb36f63 100644 --- a/tests/cfo/package.json +++ b/tests/cfo/package.json @@ -1,6 +1,6 @@ { "name": "cfo", - "version": "0.24.2", + "version": "0.25.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 f9232eef..04f323bc 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.24.2. + let start_ts = 1633017600; // 9/30.25.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 0538bf7d..6be0b32e 100644 --- a/tests/chat/package.json +++ b/tests/chat/package.json @@ -1,6 +1,6 @@ { "name": "chat", - "version": "0.24.2", + "version": "0.25.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 7f595a6e..172f43b8 100644 --- a/tests/composite/package.json +++ b/tests/composite/package.json @@ -1,6 +1,6 @@ { "name": "composite", - "version": "0.24.2", + "version": "0.25.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 ab81e8f8..599abd6c 100644 --- a/tests/cpi-returns/package.json +++ b/tests/cpi-returns/package.json @@ -1,6 +1,6 @@ { "name": "cpi-returns", - "version": "0.24.2", + "version": "0.25.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 a3fb9fe2..457e7872 100644 --- a/tests/declare-id/package.json +++ b/tests/declare-id/package.json @@ -1,6 +1,6 @@ { "name": "declare-id", - "version": "0.24.2", + "version": "0.25.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 ebf04213..88818d99 100644 --- a/tests/docs/package.json +++ b/tests/docs/package.json @@ -1,6 +1,6 @@ { "name": "errors", - "version": "0.24.2", + "version": "0.25.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 ebf04213..88818d99 100644 --- a/tests/errors/package.json +++ b/tests/errors/package.json @@ -1,6 +1,6 @@ { "name": "errors", - "version": "0.24.2", + "version": "0.25.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 073baf1d..40cf79c1 100644 --- a/tests/escrow/package.json +++ b/tests/escrow/package.json @@ -1,6 +1,6 @@ { "name": "escrow", - "version": "0.24.2", + "version": "0.25.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 447a678f..a1559608 100644 --- a/tests/events/package.json +++ b/tests/events/package.json @@ -1,6 +1,6 @@ { "name": "events", - "version": "0.24.2", + "version": "0.25.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 14f7665a..27699d0f 100644 --- a/tests/floats/package.json +++ b/tests/floats/package.json @@ -1,6 +1,6 @@ { "name": "floats", - "version": "0.24.2", + "version": "0.25.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 7ac1ab5a..31360f79 100644 --- a/tests/ido-pool/package.json +++ b/tests/ido-pool/package.json @@ -1,6 +1,6 @@ { "name": "ido-pool", - "version": "0.24.2", + "version": "0.25.0", "license": "(MIT OR Apache-2.0)", "homepage": "https://github.com/coral-xyz/anchor#readme", "bugs": { diff --git a/tests/interface/package.json b/tests/interface/package.json index 11dc68ea..575edb11 100644 --- a/tests/interface/package.json +++ b/tests/interface/package.json @@ -1,6 +1,6 @@ { "name": "interface", - "version": "0.24.2", + "version": "0.25.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 91247114..7e1279f3 100644 --- a/tests/lockup/package.json +++ b/tests/lockup/package.json @@ -1,6 +1,6 @@ { "name": "lockup", - "version": "0.24.2", + "version": "0.25.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 0977b7d9..b11960af 100644 --- a/tests/misc/package.json +++ b/tests/misc/package.json @@ -1,6 +1,6 @@ { "name": "misc", - "version": "0.24.2", + "version": "0.25.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 9a2e2fba..b503092d 100644 --- a/tests/multiple-suites/package.json +++ b/tests/multiple-suites/package.json @@ -1,6 +1,6 @@ { "name": "multiple-suites", - "version": "0.24.2", + "version": "0.25.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 f0651d7b..d093d1df 100644 --- a/tests/multisig/package.json +++ b/tests/multisig/package.json @@ -1,6 +1,6 @@ { "name": "multisig", - "version": "0.24.2", + "version": "0.25.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 7c89f63a..1ba478bb 100644 --- a/tests/pda-derivation/package.json +++ b/tests/pda-derivation/package.json @@ -1,6 +1,6 @@ { "name": "pda-derivation", - "version": "0.24.2", + "version": "0.25.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 e11f5d15..b00b801b 100644 --- a/tests/pyth/package.json +++ b/tests/pyth/package.json @@ -1,6 +1,6 @@ { "name": "pyth", - "version": "0.24.2", + "version": "0.25.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 8ed4255a..f5314fe4 100644 --- a/tests/realloc/package.json +++ b/tests/realloc/package.json @@ -1,6 +1,6 @@ { "name": "realloc", - "version": "0.24.2", + "version": "0.25.0", "license": "(MIT OR Apache-2.0)", "homepage": "https://github.com/project-serum/anchor#readme", "bugs": { diff --git a/tests/spl/token-proxy/package.json b/tests/spl/token-proxy/package.json index dd6aa9e3..d4506a5f 100644 --- a/tests/spl/token-proxy/package.json +++ b/tests/spl/token-proxy/package.json @@ -1,6 +1,6 @@ { "name": "token-proxy", - "version": "0.24.2", + "version": "0.25.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 7b97c995..f048bc10 100644 --- a/tests/swap/package.json +++ b/tests/swap/package.json @@ -1,6 +1,6 @@ { "name": "swap", - "version": "0.24.2", + "version": "0.25.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 8a42cc70..93354493 100644 --- a/tests/system-accounts/package.json +++ b/tests/system-accounts/package.json @@ -1,6 +1,6 @@ { "name": "system-accounts", - "version": "0.24.2", + "version": "0.25.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 323cb002..9d3acc23 100644 --- a/tests/sysvars/package.json +++ b/tests/sysvars/package.json @@ -1,6 +1,6 @@ { "name": "sysvars", - "version": "0.24.2", + "version": "0.25.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 80f44a4a..a1f88a91 100644 --- a/tests/tictactoe/package.json +++ b/tests/tictactoe/package.json @@ -1,6 +1,6 @@ { "name": "tictactoe", - "version": "0.24.2", + "version": "0.25.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 d535421c..96ae6872 100644 --- a/tests/typescript/package.json +++ b/tests/typescript/package.json @@ -1,6 +1,6 @@ { "name": "typescript-example", - "version": "0.24.2", + "version": "0.25.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 c3d327e7..2f2f4b9c 100644 --- a/tests/validator-clone/package.json +++ b/tests/validator-clone/package.json @@ -1,6 +1,6 @@ { "name": "validator-clone", - "version": "0.24.2", + "version": "0.25.0", "license": "(MIT OR Apache-2.0)", "homepage": "https://github.com/coral-xyz/anchor#readme", "bugs": { diff --git a/tests/zero-copy/package.json b/tests/zero-copy/package.json index b0a60dac..4135bd8e 100644 --- a/tests/zero-copy/package.json +++ b/tests/zero-copy/package.json @@ -1,6 +1,6 @@ { "name": "zero-copy", - "version": "0.24.2", + "version": "0.25.0", "license": "(MIT OR Apache-2.0)", "homepage": "https://github.com/coral-xyz/anchor#readme", "bugs": { diff --git a/ts/package.json b/ts/package.json index e44f3c20..726d7801 100644 --- a/ts/package.json +++ b/ts/package.json @@ -1,6 +1,6 @@ { "name": "@project-serum/anchor", - "version": "0.24.2", + "version": "0.25.0", "description": "Anchor client", "module": "./dist/esm/index.js", "main": "./dist/cjs/index.js",