This commit is contained in:
Armani Ferrante 2022-03-20 23:30:55 -04:00 committed by GitHub
parent 9afdb17ac2
commit 77b1afcf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
56 changed files with 93 additions and 91 deletions

View File

@ -11,6 +11,8 @@ incremented for features.
## [Unreleased]
## [0.23.0] - 2022-03-20
### Features
* cli: Add `anchor clean` command that's the same as `cargo clean` but preserves keypairs inside `target/deploy` ([#1470](https://github.com/project-serum/anchor/issues/1470)).

30
Cargo.lock generated
View File

@ -67,7 +67,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483"
[[package]]
name = "anchor-attribute-access-control"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-account"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -92,7 +92,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-constant"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.36",
@ -101,7 +101,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-error"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.36",
@ -111,7 +111,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-event"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -122,7 +122,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-interface"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -134,7 +134,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-program"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -145,7 +145,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-state"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -156,7 +156,7 @@ dependencies = [
[[package]]
name = "anchor-cli"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-client",
"anchor-lang",
@ -189,7 +189,7 @@ dependencies = [
[[package]]
name = "anchor-client"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-lang",
"anyhow",
@ -204,7 +204,7 @@ dependencies = [
[[package]]
name = "anchor-derive-accounts"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-syn",
"anyhow",
@ -215,7 +215,7 @@ dependencies = [
[[package]]
name = "anchor-lang"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
@ -237,7 +237,7 @@ dependencies = [
[[package]]
name = "anchor-spl"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anchor-lang",
"serum_dex",
@ -248,7 +248,7 @@ dependencies = [
[[package]]
name = "anchor-syn"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anyhow",
"bs58 0.3.1",
@ -315,7 +315,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "avm"
version = "0.22.1"
version = "0.23.0"
dependencies = [
"anyhow",
"cfg-if 1.0.0",

View File

@ -1 +1 @@
0.22.1
0.23.0

View File

@ -1,6 +1,6 @@
[package]
name = "avm"
version = "0.22.1"
version = "0.23.0"
rust-version = "1.56"
edition = "2021"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-cli"
version = "0.22.1"
version = "0.23.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
rust-version = "1.56"
edition = "2021"

View File

@ -1,6 +1,6 @@
{
"name": "@project-serum/anchor-cli",
"version": "0.22.1",
"version": "0.23.0",
"description": "Anchor CLI tool",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

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

View File

@ -44,7 +44,7 @@ npm i -g @project-serum/anchor-cli
For now, we can use Cargo to install the CLI.
```bash
cargo install --git https://github.com/project-serum/anchor --tag v0.22.1 anchor-cli --locked
cargo install --git https://github.com/project-serum/anchor --tag v0.23.0 anchor-cli --locked
```
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,

View File

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

View File

@ -32,10 +32,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.22.1` 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.23.0` one can run
```
docker pull projectserum/build:v0.22.1
docker pull projectserum/build:v0.23.0
```
## Removing an Image

View File

@ -1,6 +1,6 @@
{
"name": "basic-0",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-1",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-2",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-3",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-4",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -13,7 +13,7 @@
"basic-4"
],
"dependencies": {
"@project-serum/anchor": "^0.22.1"
"@project-serum/anchor": "^0.23.0"
},
"devDependencies": {
"mocha": "^9.1.3",

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-lang"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
rust-version = "1.56"
@ -26,15 +26,15 @@ anchor-debug = [
]
[dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.22.1" }
anchor-attribute-account = { path = "./attribute/account", version = "0.22.1" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.22.1" }
anchor-attribute-error = { path = "./attribute/error", version = "0.22.1" }
anchor-attribute-program = { path = "./attribute/program", version = "0.22.1" }
anchor-attribute-state = { path = "./attribute/state", version = "0.22.1" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.22.1" }
anchor-attribute-event = { path = "./attribute/event", version = "0.22.1" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.22.1" }
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.23.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.23.0" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.23.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.23.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.23.0" }
anchor-attribute-state = { path = "./attribute/state", version = "0.23.0" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.23.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.23.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.23.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.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }
regex = "1.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-account"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.23.0", features = ["hash"] }
rustversion = "1.0.3"
bs58 = "0.4.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-constant"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-error"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-event"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.23.0", features = ["hash"] }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-interface"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }
heck = "0.3.2"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-program"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-state"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-derive-accounts"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/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.22.1" }
anchor-syn = { path = "../../syn", version = "0.23.0" }

View File

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

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-spl"
version = "0.22.1"
version = "0.23.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.56"
edition = "2021"
@ -18,7 +18,7 @@ devnet = []
dex = ["serum_dex"]
[dependencies]
anchor-lang = { path = "../lang", version = "0.22.1", features = ["derive"] }
anchor-lang = { path = "../lang", version = "0.23.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.8.14"
spl-token = { version = "3.1.1", features = ["no-entrypoint"], optional = true }

View File

@ -1,6 +1,6 @@
{
"dependencies": {
"@project-serum/anchor": "^0.22.1"
"@project-serum/anchor": "^0.23.0"
},
"devDependencies": {
"chai": "^4.3.4",

View File

@ -1,6 +1,6 @@
{
"name": "cashiers-check",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "cfo",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/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.22.1.
let start_ts = 1633017600; // 9/30.23.0.
let end_ts = 1822320000; // 9/30/2027.
let period_count = 2191;
RewardVendorKind::Locked {

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "composite",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "declare-id",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "errors",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "errors",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "escrow",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "events",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "floats",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "ido-pool",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "interface",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "lockup",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "misc",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "multisig",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -34,7 +34,7 @@
"declare-id"
],
"dependencies": {
"@project-serum/anchor": "^0.22.1",
"@project-serum/anchor": "^0.23.0",
"@project-serum/common": "^0.0.1-beta.3",
"@project-serum/serum": "^0.13.60",
"@solana/spl-token": "^0.1.8"

View File

@ -1,6 +1,6 @@
{
"name": "pda-derivation",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "pyth",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "token-proxy",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "swap",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "system-accounts",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "sysvars",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "tictactoe",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "typescript-example",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "zero-copy",
"version": "0.22.1",
"version": "0.23.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "@project-serum/anchor",
"version": "0.22.1",
"version": "0.23.0",
"description": "Anchor client",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
@ -77,7 +77,7 @@
"ts-jest-resolver": "^2.0.0",
"ts-node": "^9.0.0",
"tslib": "^2.3.1",
"typedoc": "^0.22.10",
"typedoc": "^0.23.00",
"typescript": "^4.5.2"
}
}