This commit is contained in:
Armani Ferrante 2021-10-24 21:18:32 -05:00 committed by GitHub
parent 6ab714a5a5
commit 229e335da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 57 additions and 105 deletions

View File

@ -11,6 +11,8 @@ incremented for features.
## [Unreleased] ## [Unreleased]
## [0.18.0] - 2021-10-24
### Features ### Features
* cli: Add support for configuration options for `solana-test-validator` in Anchor.toml ([#834](https://github.com/project-serum/anchor/pull/834)). * cli: Add support for configuration options for `solana-test-validator` in Anchor.toml ([#834](https://github.com/project-serum/anchor/pull/834)).

85
Cargo.lock generated
View File

@ -56,7 +56,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483"
[[package]] [[package]]
name = "anchor-attribute-access-control" name = "anchor-attribute-access-control"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -68,7 +68,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-account" name = "anchor-attribute-account"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -81,7 +81,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-error" name = "anchor-attribute-error"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"proc-macro2 1.0.29", "proc-macro2 1.0.29",
@ -91,7 +91,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-event" name = "anchor-attribute-event"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -102,7 +102,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-interface" name = "anchor-attribute-interface"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -114,7 +114,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-program" name = "anchor-attribute-program"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -125,7 +125,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-attribute-state" name = "anchor-attribute-state"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -136,7 +136,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-cli" name = "anchor-cli"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-client", "anchor-client",
"anchor-lang", "anchor-lang",
@ -166,7 +166,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-client" name = "anchor-client"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-lang", "anchor-lang",
"anyhow", "anyhow",
@ -180,7 +180,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-derive-accounts" name = "anchor-derive-accounts"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-syn", "anchor-syn",
"anyhow", "anyhow",
@ -191,7 +191,7 @@ dependencies = [
[[package]] [[package]]
name = "anchor-lang" name = "anchor-lang"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-attribute-access-control", "anchor-attribute-access-control",
"anchor-attribute-account", "anchor-attribute-account",
@ -210,20 +210,19 @@ dependencies = [
[[package]] [[package]]
name = "anchor-spl" name = "anchor-spl"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anchor-lang", "anchor-lang",
"lazy_static", "lazy_static",
"serum_dex", "serum_dex",
"solana-program", "solana-program",
"spl-associated-token-account", "spl-associated-token-account",
"spl-governance", "spl-token 3.2.0",
"spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
name = "anchor-syn" name = "anchor-syn"
version = "0.17.0" version = "0.18.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bs58 0.3.1", "bs58 0.3.1",
@ -2761,7 +2760,7 @@ dependencies = [
"safe-transmute", "safe-transmute",
"serde", "serde",
"solana-program", "solana-program",
"spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "spl-token 3.2.0",
"static_assertions", "static_assertions",
"thiserror", "thiserror",
"without-alloc", "without-alloc",
@ -2879,7 +2878,7 @@ dependencies = [
"solana-config-program", "solana-config-program",
"solana-sdk", "solana-sdk",
"solana-vote-program", "solana-vote-program",
"spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "spl-token 3.2.0",
"thiserror", "thiserror",
"zstd", "zstd",
] ]
@ -3343,7 +3342,7 @@ dependencies = [
"solana-vote-program", "solana-vote-program",
"spl-associated-token-account", "spl-associated-token-account",
"spl-memo", "spl-memo",
"spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "spl-token 3.2.0",
"thiserror", "thiserror",
] ]
@ -3397,42 +3396,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "393e2240d521c3dd770806bff25c2c00d761ac962be106e14e22dd912007f428" checksum = "393e2240d521c3dd770806bff25c2c00d761ac962be106e14e22dd912007f428"
dependencies = [ dependencies = [
"solana-program", "solana-program",
"spl-token 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "spl-token 3.2.0",
]
[[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",
] ]
[[package]] [[package]]
@ -3473,19 +3437,6 @@ dependencies = [
"thiserror", "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]] [[package]]
name = "stable_deref_trait" name = "stable_deref_trait"
version = "1.2.0" version = "1.2.0"

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-cli" name = "anchor-cli"
version = "0.17.0" version = "0.18.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"] authors = ["armaniferrante <armaniferrante@gmail.com>"]
edition = "2018" edition = "2018"

View File

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

View File

@ -1,13 +1,13 @@
[package] [package]
name = "anchor-client" name = "anchor-client"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
description = "Rust client for Anchor programs" description = "Rust client for Anchor programs"
[dependencies] [dependencies]
anchor-lang = { path = "../lang", version = "0.17.0" } anchor-lang = { path = "../lang", version = "0.18.0" }
anyhow = "1.0.32" anyhow = "1.0.32"
regex = "1.4.5" regex = "1.4.5"
serde = { version = "1.0.122", features = ["derive"] } 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. For now, we can use Cargo to install the CLI.
```bash ```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, 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, An example `Anchor.toml` config looks as follows,
```toml ```toml
anchor_version = "0.17.0" anchor_version = "0.18.0"
[workspace] [workspace]
members = ["programs/multisig"] 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 ## 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.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:<version>`. 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 ## Removing an Image

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-lang" name = "anchor-lang"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor" repository = "https://github.com/project-serum/anchor"
edition = "2018" edition = "2018"
@ -23,14 +23,14 @@ anchor-debug = [
] ]
[dependencies] [dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.17.0" } anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.18.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.17.0" } anchor-attribute-account = { path = "./attribute/account", version = "0.18.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.17.0" } anchor-attribute-error = { path = "./attribute/error", version = "0.18.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.17.0" } anchor-attribute-program = { path = "./attribute/program", version = "0.18.0" }
anchor-attribute-state = { path = "./attribute/state", version = "0.17.0" } anchor-attribute-state = { path = "./attribute/state", version = "0.18.0" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.17.0" } anchor-attribute-interface = { path = "./attribute/interface", version = "0.18.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.17.0" } anchor-attribute-event = { path = "./attribute/event", version = "0.18.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.17.0" } anchor-derive-accounts = { path = "./derive/accounts", version = "0.18.0" }
base64 = "0.13.0" base64 = "0.13.0"
borsh = "0.9" borsh = "0.9"
bytemuck = "1.4.0" bytemuck = "1.4.0"

View File

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

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-attribute-account" name = "anchor-attribute-account"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor" repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0" license = "Apache-2.0"
@ -18,6 +18,6 @@ proc-macro2 = "1.0"
quote = "1.0" quote = "1.0"
syn = { version = "1.0.60", features = ["full"] } syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32" 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" rustversion = "1.0.3"
bs58 = "0.4.0" bs58 = "0.4.0"

View File

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

View File

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

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-attribute-interface" name = "anchor-attribute-interface"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor" repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0" license = "Apache-2.0"
@ -18,5 +18,5 @@ proc-macro2 = "1.0"
quote = "1.0" quote = "1.0"
syn = { version = "1.0.60", features = ["full"] } syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32" anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.17.0" } anchor-syn = { path = "../../syn", version = "0.18.0" }
heck = "0.3.2" heck = "0.3.2"

View File

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

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-attribute-state" name = "anchor-attribute-state"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor" repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0" license = "Apache-2.0"
@ -18,4 +18,4 @@ proc-macro2 = "1.0"
quote = "1.0" quote = "1.0"
syn = { version = "1.0.60", features = ["full"] } syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32" anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.17.0" } anchor-syn = { path = "../../syn", version = "0.18.0" }

View File

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

View File

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

View File

@ -1,6 +1,6 @@
[package] [package]
name = "anchor-spl" name = "anchor-spl"
version = "0.17.0" version = "0.18.0"
authors = ["Serum Foundation <foundation@projectserum.com>"] authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
@ -10,10 +10,9 @@ description = "CPI clients for SPL programs"
devnet = [] devnet = []
[dependencies] [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" lazy_static = "1.4.0"
serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"] } serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"] }
solana-program = "1.8.0" solana-program = "1.8.0"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] } spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "1.0.3", 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"] }

View File

@ -1,6 +1,6 @@
{ {
"name": "@project-serum/anchor", "name": "@project-serum/anchor",
"version": "0.17.0", "version": "0.18.0",
"description": "Anchor client", "description": "Anchor client",
"main": "dist/cjs/index.js", "main": "dist/cjs/index.js",
"module": "dist/esm/index.js", "module": "dist/esm/index.js",