From 6da6ae22f8e225b275d9b6827e90e9a50313d4ad Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Sun, 23 May 2021 14:45:34 -0700 Subject: [PATCH] v0.6.0 (#309) --- .travis.yml | 2 +- CHANGELOG.md | 5 ++++- Cargo.lock | 26 ++++++++++++------------ cli/Cargo.toml | 2 +- client/Cargo.toml | 4 ++-- docker/Makefile | 2 +- docs/src/getting-started/installation.md | 4 ++-- lang/Cargo.toml | 18 ++++++++-------- lang/attribute/access-control/Cargo.toml | 4 ++-- lang/attribute/account/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 ++-- ts/package.json | 2 +- 19 files changed, 53 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index 835838384..aacafce0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ _examples: &examples - npm install -g @project-serum/common - npm install -g @solana/spl-token - sudo apt-get install -y pkg-config build-essential libudev-dev - - sh -c "$(curl -sSfL https://release.solana.com/v1.6.3/install)" + - sh -c "$(curl -sSfL https://release.solana.com/v1.6.9/install)" - export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH" - export NODE_PATH="/home/travis/.nvm/versions/node/v$NODE_VERSION/lib/node_modules/:$NODE_PATH" - yes | solana-keygen new diff --git a/CHANGELOG.md b/CHANGELOG.md index 833396bee..565e35dc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,14 +11,17 @@ incremented for features. ## [Unreleased] +## [0.6.0] - 2021-05-23 + ## Features * ts: Add `program.simulate` namespace ([#266](https://github.com/project-serum/anchor/pull/266)). * ts: Introduce `Address` type, allowing one to use Base 58 encoded strings in public APIs ([#304](https://github.com/project-serum/anchor/pull/304)). +* ts: Replace deprecated `web3.Account` with `web3.Signer` in public APIs ([#296](https://github.com/project-serum/anchor/pull/296)). +* ts: Generated `anchor.workspace` clients can now be customized per network with `[cluster.]` in the Anchor.toml ([#308](https://github.com/project-serum/anchor/pull/308)). * cli: Add yarn flag to test command ([#267](https://github.com/project-serum/anchor/pull/267)). * cli: Add `--skip-build` flag to test command ([301](https://github.com/project-serum/anchor/pull/301)). * cli: Add `anchor shell` command to spawn a node shell populated with an Anchor.toml based environment ([#303](https://github.com/project-serum/anchor/pull/303)). -* ts: Replace deprecated `web3.Account` with `web3.Signer` in public APIs ([#296](https://github.com/project-serum/anchor/pull/296)). ## Breaking Changes diff --git a/Cargo.lock b/Cargo.lock index 735b72ecd..e18a74344 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,7 +50,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483" [[package]] name = "anchor-attribute-access-control" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -62,7 +62,7 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -73,7 +73,7 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "proc-macro2 1.0.24", @@ -83,7 +83,7 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -94,7 +94,7 @@ dependencies = [ [[package]] name = "anchor-attribute-interface" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -117,7 +117,7 @@ dependencies = [ [[package]] name = "anchor-attribute-state" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -128,7 +128,7 @@ dependencies = [ [[package]] name = "anchor-cli" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-client", "anchor-lang", @@ -154,7 +154,7 @@ dependencies = [ [[package]] name = "anchor-client" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-lang", "anyhow", @@ -167,7 +167,7 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-syn", "anyhow", @@ -178,7 +178,7 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -197,7 +197,7 @@ dependencies = [ [[package]] name = "anchor-spl" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anchor-lang", "lazy_static", @@ -208,7 +208,7 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "bs58", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 38b2bf1d7..75e09cad2 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-cli" -version = "0.5.0" +version = "0.6.0" authors = ["armaniferrante "] edition = "2018" diff --git a/client/Cargo.toml b/client/Cargo.toml index 13f3b32aa..25eb01e2a 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "anchor-client" -version = "0.5.0" +version = "0.6.0" authors = ["Serum Foundation "] edition = "2018" license = "Apache-2.0" description = "Rust client for Anchor programs" [dependencies] -anchor-lang = { path = "../lang", version = "0.5.0" } +anchor-lang = { path = "../lang", version = "0.6.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 b4c08a13e..3fbd0f782 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.6.6 +SOLANA_CLI=v1.6.9 # # Build version should match the Anchor cli version. # diff --git a/docs/src/getting-started/installation.md b/docs/src/getting-started/installation.md index 85dbc45ec..015e1376d 100644 --- a/docs/src/getting-started/installation.md +++ b/docs/src/getting-started/installation.md @@ -18,7 +18,7 @@ rustup component add rustfmt See the solana [docs](https://docs.solana.com/cli/install-solana-cli-tools) for installation instructions. On macOS and Linux, ```bash -sh -c "$(curl -sSfL https://release.solana.com/v1.6.6/install)" +sh -c "$(curl -sSfL https://release.solana.com/v1.6.9/install)" ``` ## Install Mocha @@ -34,7 +34,7 @@ npm install -g mocha For now, we can use Cargo to install the CLI. ```bash -cargo install --git https://github.com/project-serum/anchor --tag v0.5.0 anchor-cli --locked +cargo install --git https://github.com/project-serum/anchor --tag v0.6.0 anchor-cli --locked ``` On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu, diff --git a/lang/Cargo.toml b/lang/Cargo.toml index ba68a902c..bedc78b27 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-lang" -version = "0.5.0" +version = "0.6.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.5.0" } -anchor-attribute-account = { path = "./attribute/account", version = "0.5.0" } -anchor-attribute-error = { path = "./attribute/error", version = "0.5.0" } -anchor-attribute-program = { path = "./attribute/program", version = "0.5.0" } -anchor-attribute-state = { path = "./attribute/state", version = "0.5.0" } -anchor-attribute-interface = { path = "./attribute/interface", version = "0.5.0" } -anchor-attribute-event = { path = "./attribute/event", version = "0.5.0" } -anchor-derive-accounts = { path = "./derive/accounts", version = "0.5.0" } +anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.6.0" } +anchor-attribute-account = { path = "./attribute/account", version = "0.6.0" } +anchor-attribute-error = { path = "./attribute/error", version = "0.6.0" } +anchor-attribute-program = { path = "./attribute/program", version = "0.6.0" } +anchor-attribute-state = { path = "./attribute/state", version = "0.6.0" } +anchor-attribute-interface = { path = "./attribute/interface", version = "0.6.0" } +anchor-attribute-event = { path = "./attribute/event", version = "0.6.0" } +anchor-derive-accounts = { path = "./derive/accounts", version = "0.6.0" } base64 = "0.13.0" borsh = "0.8.2" bytemuck = "1.4.0" diff --git a/lang/attribute/access-control/Cargo.toml b/lang/attribute/access-control/Cargo.toml index 74f124313..32d3b0698 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.5.0" +version = "0.6.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.5.0" } +anchor-syn = { path = "../../syn", version = "0.6.0" } regex = "1.0" diff --git a/lang/attribute/account/Cargo.toml b/lang/attribute/account/Cargo.toml index b4c4b023e..cd1def273 100644 --- a/lang/attribute/account/Cargo.toml +++ b/lang/attribute/account/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-account" -version = "0.5.0" +version = "0.6.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.5.0", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.6.0", features = ["hash"] } diff --git a/lang/attribute/error/Cargo.toml b/lang/attribute/error/Cargo.toml index 070d1758e..dcbfb9f42 100644 --- a/lang/attribute/error/Cargo.toml +++ b/lang/attribute/error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-error" -version = "0.5.0" +version = "0.6.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.5.0" } \ No newline at end of file +anchor-syn = { path = "../../syn", version = "0.6.0" } \ No newline at end of file diff --git a/lang/attribute/event/Cargo.toml b/lang/attribute/event/Cargo.toml index 57ac6299c..ac60f249d 100644 --- a/lang/attribute/event/Cargo.toml +++ b/lang/attribute/event/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-event" -version = "0.5.0" +version = "0.6.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.5.0", features = ["hash"] } +anchor-syn = { path = "../../syn", version = "0.6.0", features = ["hash"] } diff --git a/lang/attribute/interface/Cargo.toml b/lang/attribute/interface/Cargo.toml index 457a29f60..1c43b06d3 100644 --- a/lang/attribute/interface/Cargo.toml +++ b/lang/attribute/interface/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-interface" -version = "0.5.0" +version = "0.6.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.5.0" } +anchor-syn = { path = "../../syn", version = "0.6.0" } heck = "0.3.2" diff --git a/lang/attribute/program/Cargo.toml b/lang/attribute/program/Cargo.toml index 0228070e9..54d147fad 100644 --- a/lang/attribute/program/Cargo.toml +++ b/lang/attribute/program/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-program" -version = "0.5.0" +version = "0.6.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.5.0" } +anchor-syn = { path = "../../syn", version = "0.6.0" } diff --git a/lang/attribute/state/Cargo.toml b/lang/attribute/state/Cargo.toml index 74b78cc35..665825f62 100644 --- a/lang/attribute/state/Cargo.toml +++ b/lang/attribute/state/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-attribute-state" -version = "0.5.0" +version = "0.6.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.5.0" } +anchor-syn = { path = "../../syn", version = "0.6.0" } diff --git a/lang/derive/accounts/Cargo.toml b/lang/derive/accounts/Cargo.toml index 6176cda85..3c8d46e94 100644 --- a/lang/derive/accounts/Cargo.toml +++ b/lang/derive/accounts/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-derive-accounts" -version = "0.5.0" +version = "0.6.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.5.0" } +anchor-syn = { path = "../../syn", version = "0.6.0" } diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index b8cf182a5..a24177311 100644 --- a/lang/syn/Cargo.toml +++ b/lang/syn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-syn" -version = "0.5.0" +version = "0.6.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 0a4ee5b57..90cc359fa 100644 --- a/spl/Cargo.toml +++ b/spl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anchor-spl" -version = "0.5.0" +version = "0.6.0" authors = ["Serum Foundation "] edition = "2018" license = "Apache-2.0" @@ -10,7 +10,7 @@ description = "CPI clients for SPL programs" devnet = [] [dependencies] -anchor-lang = { path = "../lang", version = "0.5.0", features = ["derive"] } +anchor-lang = { path = "../lang", version = "0.6.0", features = ["derive"] } lazy_static = "1.4.0" serum_dex = { git = "https://github.com/project-serum/serum-dex", version = "0.3.0", features = ["no-entrypoint"] } solana-program = "1.6.6" diff --git a/ts/package.json b/ts/package.json index 23eb3f61d..a3a810463 100644 --- a/ts/package.json +++ b/ts/package.json @@ -1,6 +1,6 @@ { "name": "@project-serum/anchor", - "version": "0.6.0-beta.3", + "version": "0.6.0", "description": "Anchor client", "main": "dist/cjs/index.js", "module": "dist/esm/index.js",