Skip to content

Commit

Permalink
v0.6.0 (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed May 23, 2021
1 parent 78d773a commit 6da6ae2
Show file tree
Hide file tree
Showing 19 changed files with 53 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<slug>]` 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

Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-cli"
version = "0.5.0"
version = "0.6.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
edition = "2018"

Expand Down
4 changes: 2 additions & 2 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "anchor-client"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
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"] }
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
4 changes: 2 additions & 2 deletions docs/src/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions lang/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-lang"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
edition = "2018"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions lang/attribute/access-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-access-control"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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"
4 changes: 2 additions & 2 deletions lang/attribute/account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-account"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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"] }
4 changes: 2 additions & 2 deletions lang/attribute/error/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-error"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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" }
anchor-syn = { path = "../../syn", version = "0.6.0" }
4 changes: 2 additions & 2 deletions lang/attribute/event/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-event"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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"] }
4 changes: 2 additions & 2 deletions lang/attribute/interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-interface"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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"
4 changes: 2 additions & 2 deletions lang/attribute/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-program"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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" }
4 changes: 2 additions & 2 deletions lang/attribute/state/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-state"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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" }
4 changes: 2 additions & 2 deletions lang/derive/accounts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-derive-accounts"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion lang/syn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-syn"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions spl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-spl"
version = "0.5.0"
version = "0.6.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ts/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 6da6ae2

Please sign in to comment.