This commit is contained in:
Armani Ferrante 2021-05-23 14:45:34 -07:00 committed by GitHub
parent 78d773a6de
commit 6da6ae22f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 53 additions and 50 deletions

View File

@ -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

View File

@ -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

26
Cargo.lock generated
View File

@ -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",

View File

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

View File

@ -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"] }

View File

@ -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.
#

View File

@ -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,

View File

@ -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"
@ -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"

View File

@ -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"
@ -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"

View File

@ -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"
@ -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"] }

View File

@ -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"
@ -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" }

View File

@ -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"
@ -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"] }

View File

@ -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"
@ -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"

View File

@ -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"
@ -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" }

View File

@ -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"
@ -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" }

View File

@ -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"
@ -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" }

View File

@ -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"

View File

@ -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"
@ -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"

View File

@ -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",