diff --git a/CHANGELOG.md b/CHANGELOG.md index 39383687..7ddad89b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ incremented for features. ## [Unreleased] +## [0.18.0] - 2021-10-24 + ### Features * cli: Add support for configuration options for `solana-test-validator` in Anchor.toml ([#834](https://github.com/project-serum/anchor/pull/834)). diff --git a/Cargo.lock b/Cargo.lock index e4e552e5..798866bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,7 +56,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483" [[package]] name = "anchor-attribute-access-control" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -68,7 +68,7 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "proc-macro2 1.0.29", @@ -91,7 +91,7 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -102,7 +102,7 @@ dependencies = [ [[package]] name = "anchor-attribute-interface" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -114,7 +114,7 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -125,7 +125,7 @@ dependencies = [ [[package]] name = "anchor-attribute-state" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -136,7 +136,7 @@ dependencies = [ [[package]] name = "anchor-cli" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-client", "anchor-lang", @@ -166,7 +166,7 @@ dependencies = [ [[package]] name = "anchor-client" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-lang", "anyhow", @@ -180,7 +180,7 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-syn", "anyhow", @@ -191,7 +191,7 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -210,20 +210,19 @@ dependencies = [ [[package]] name = "anchor-spl" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anchor-lang", "lazy_static", "serum_dex", "solana-program", "spl-associated-token-account", - "spl-governance", - "spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-token 3.2.0", ] [[package]] name = "anchor-syn" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anyhow", "bs58 0.3.1", @@ -2761,7 +2760,7 @@ dependencies = [ "safe-transmute", "serde", "solana-program", - "spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-token 3.2.0", "static_assertions", "thiserror", "without-alloc", @@ -2879,7 +2878,7 @@ dependencies = [ "solana-config-program", "solana-sdk", "solana-vote-program", - "spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-token 3.2.0", "thiserror", "zstd", ] @@ -3343,7 +3342,7 @@ dependencies = [ "solana-vote-program", "spl-associated-token-account", "spl-memo", - "spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "spl-token 3.2.0", "thiserror", ] @@ -3397,42 +3396,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "393e2240d521c3dd770806bff25c2c00d761ac962be106e14e22dd912007f428" dependencies = [ "solana-program", - "spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "spl-governance" -version = "2.1.2" -source = "git+https://github.com/solana-labs/solana-program-library#203db7bc3f19c49be485ab195d5d6b3a30483d70" -dependencies = [ - "arrayref", - "bincode", - "borsh", - "num-derive", - "num-traits", - "serde", - "serde_derive", - "solana-program", - "spl-governance-tools", - "spl-token 3.2.0 (git+https://github.com/solana-labs/solana-program-library)", - "thiserror", -] - -[[package]] -name = "spl-governance-tools" -version = "0.1.0" -source = "git+https://github.com/solana-labs/solana-program-library#203db7bc3f19c49be485ab195d5d6b3a30483d70" -dependencies = [ - "arrayref", - "bincode", - "borsh", - "num-derive", - "num-traits", - "serde", - "serde_derive", - "solana-program", - "spl-token 3.2.0 (git+https://github.com/solana-labs/solana-program-library)", - "thiserror", + "spl-token 3.2.0", ] [[package]] @@ -3473,19 +3437,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "spl-token" -version = "3.2.0" -source = "git+https://github.com/solana-labs/solana-program-library#203db7bc3f19c49be485ab195d5d6b3a30483d70" -dependencies = [ - "arrayref", - "num-derive", - "num-traits", - "num_enum", - "solana-program", - "thiserror", -] - [[package]] name = "stable_deref_trait" version = "1.2.0" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index dba77140..535b9acc 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-cli" -version = "0.17.0" +version = "0.18.0" authors = ["armaniferrante "] edition = "2018" diff --git a/cli/npm-package/package.json b/cli/npm-package/package.json index 6b68a2cc..2e494470 100644 --- a/cli/npm-package/package.json +++ b/cli/npm-package/package.json @@ -1,6 +1,6 @@ { "name": "@project-serum/anchor-cli", - "version": "0.17.0", + "version": "0.18.0", "description": "Anchor CLI tool", "homepage": "https://github.com/project-serum/anchor#readme", "bugs": { diff --git a/client/Cargo.toml b/client/Cargo.toml index 74b93f57..3d3360b7 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "anchor-client" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] edition = "2018" license = "Apache-2.0" description = "Rust client for Anchor programs" [dependencies] -anchor-lang = { path = "../lang", version = "0.17.0" } +anchor-lang = { path = "../lang", version = "0.18.0" } anyhow = "1.0.32" regex = "1.4.5" serde = { version = "1.0.122", features = ["derive"] } diff --git a/docs/src/getting-started/installation.md b/docs/src/getting-started/installation.md index 2d2f5a64..f411d933 100644 --- a/docs/src/getting-started/installation.md +++ b/docs/src/getting-started/installation.md @@ -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.17.0 anchor-cli --locked +cargo install --git https://github.com/project-serum/anchor --tag v0.18.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/getting-started/publishing.md b/docs/src/getting-started/publishing.md index 6849290b..d71f7081 100644 --- a/docs/src/getting-started/publishing.md +++ b/docs/src/getting-started/publishing.md @@ -30,7 +30,7 @@ have an `Anchor.toml` to define the build. An example `Anchor.toml` config looks as follows, ```toml -anchor_version = "0.17.0" +anchor_version = "0.18.0" [workspace] members = ["programs/multisig"] diff --git a/docs/src/getting-started/verification.md b/docs/src/getting-started/verification.md index dece3ab2..c9057934 100644 --- a/docs/src/getting-started/verification.md +++ b/docs/src/getting-started/verification.md @@ -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:`. For example, to get the image for Anchor `v0.17.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.18.0` one can run ``` -docker pull projectserum/build:v0.17.0 +docker pull projectserum/build:v0.18.0 ``` ## Removing an Image diff --git a/lang/Cargo.toml b/lang/Cargo.toml index 405b165a..666a97ed 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-lang" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" edition = "2018" @@ -23,14 +23,14 @@ anchor-debug = [ ] [dependencies] -anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.17.0" } -anchor-attribute-account = { path = "./attribute/account", version = "0.17.0" } -anchor-attribute-error = { path = "./attribute/error", version = "0.17.0" } -anchor-attribute-program = { path = "./attribute/program", version = "0.17.0" } -anchor-attribute-state = { path = "./attribute/state", version = "0.17.0" } -anchor-attribute-interface = { path = "./attribute/interface", version = "0.17.0" } -anchor-attribute-event = { path = "./attribute/event", version = "0.17.0" } -anchor-derive-accounts = { path = "./derive/accounts", version = "0.17.0" } +anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.18.0" } +anchor-attribute-account = { path = "./attribute/account", version = "0.18.0" } +anchor-attribute-error = { path = "./attribute/error", version = "0.18.0" } +anchor-attribute-program = { path = "./attribute/program", version = "0.18.0" } +anchor-attribute-state = { path = "./attribute/state", version = "0.18.0" } +anchor-attribute-interface = { path = "./attribute/interface", version = "0.18.0" } +anchor-attribute-event = { path = "./attribute/event", version = "0.18.0" } +anchor-derive-accounts = { path = "./derive/accounts", version = "0.18.0" } base64 = "0.13.0" borsh = "0.9" bytemuck = "1.4.0" diff --git a/lang/attribute/access-control/Cargo.toml b/lang/attribute/access-control/Cargo.toml index b7c5c77c..ae21878e 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.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,5 +18,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.17.0" } +anchor-syn = { path = "../../syn", version = "0.18.0" } regex = "1.0" diff --git a/lang/attribute/account/Cargo.toml b/lang/attribute/account/Cargo.toml index 9e21fa26..a31ec687 100644 --- a/lang/attribute/account/Cargo.toml +++ b/lang/attribute/account/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-account" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,6 +18,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.17.0", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.18.0", features = ["hash"] } rustversion = "1.0.3" bs58 = "0.4.0" \ No newline at end of file diff --git a/lang/attribute/error/Cargo.toml b/lang/attribute/error/Cargo.toml index 0b572294..829bd3a9 100644 --- a/lang/attribute/error/Cargo.toml +++ b/lang/attribute/error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-error" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -17,4 +17,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.17.0" } \ No newline at end of file +anchor-syn = { path = "../../syn", version = "0.18.0" } \ No newline at end of file diff --git a/lang/attribute/event/Cargo.toml b/lang/attribute/event/Cargo.toml index 02c98ca6..34513db9 100644 --- a/lang/attribute/event/Cargo.toml +++ b/lang/attribute/event/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-event" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,4 +18,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.17.0", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.18.0", features = ["hash"] } diff --git a/lang/attribute/interface/Cargo.toml b/lang/attribute/interface/Cargo.toml index e685d221..460f1c2a 100644 --- a/lang/attribute/interface/Cargo.toml +++ b/lang/attribute/interface/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-interface" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,5 +18,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.17.0" } +anchor-syn = { path = "../../syn", version = "0.18.0" } heck = "0.3.2" diff --git a/lang/attribute/program/Cargo.toml b/lang/attribute/program/Cargo.toml index ec2f86ae..60120f46 100644 --- a/lang/attribute/program/Cargo.toml +++ b/lang/attribute/program/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-program" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,4 +18,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.17.0" } +anchor-syn = { path = "../../syn", version = "0.18.0" } diff --git a/lang/attribute/state/Cargo.toml b/lang/attribute/state/Cargo.toml index 7bee3538..0b66e3ae 100644 --- a/lang/attribute/state/Cargo.toml +++ b/lang/attribute/state/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-state" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" @@ -18,4 +18,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.17.0" } +anchor-syn = { path = "../../syn", version = "0.18.0" } diff --git a/lang/derive/accounts/Cargo.toml b/lang/derive/accounts/Cargo.toml index 5f6b89c8..e7e96716 100644 --- a/lang/derive/accounts/Cargo.toml +++ b/lang/derive/accounts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-derive-accounts" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] 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.17.0" } +anchor-syn = { path = "../../syn", version = "0.18.0" } diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index e528f539..d136384e 100644 --- a/lang/syn/Cargo.toml +++ b/lang/syn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-syn" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] repository = "https://github.com/project-serum/anchor" license = "Apache-2.0" diff --git a/spl/Cargo.toml b/spl/Cargo.toml index bee87365..d3a2e49b 100644 --- a/spl/Cargo.toml +++ b/spl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-spl" -version = "0.17.0" +version = "0.18.0" authors = ["Serum Foundation "] edition = "2018" license = "Apache-2.0" @@ -10,10 +10,9 @@ description = "CPI clients for SPL programs" devnet = [] [dependencies] -anchor-lang = { path = "../lang", version = "0.17.0", features = ["derive"] } +anchor-lang = { path = "../lang", version = "0.18.0", features = ["derive"] } lazy_static = "1.4.0" serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"] } solana-program = "1.8.0" spl-token = { version = "3.1.1", features = ["no-entrypoint"] } spl-associated-token-account = { version = "1.0.3", features = ["no-entrypoint"] } -spl-governance = { git = "https://github.com/solana-labs/solana-program-library", features = ["no-entrypoint"] } \ No newline at end of file diff --git a/ts/package.json b/ts/package.json index 4bac6c5e..721b63dd 100644 --- a/ts/package.json +++ b/ts/package.json @@ -1,6 +1,6 @@ { "name": "@project-serum/anchor", - "version": "0.17.0", + "version": "0.18.0", "description": "Anchor client", "main": "dist/cjs/index.js", "module": "dist/esm/index.js",