v0.16.0 (#746)
This commit is contained in:
parent
c004b0f99c
commit
780094a648
|
@ -11,10 +11,13 @@ incremented for features.
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.16.0] - 2021-09-16
|
||||
|
||||
### Features
|
||||
|
||||
* lang: `Program` type introduced for executable accounts ([#705](https://github.com/project-serum/anchor/pull/705)).
|
||||
* lang: `Signer` type introduced for signing accounts where data is not used ([#705](https://github.com/project-serum/anchor/pull/705)).
|
||||
* lang: `UncheckedAccount` type introduced as a preferred alias for `AccountInfo` ([#745](https://github.com/project-serum/anchor/pull/745)).
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
|
@ -25,6 +28,7 @@ incremented for features.
|
|||
### Features
|
||||
|
||||
* lang: Add new `Account` type to replace `ProgramAccount` and `CpiAccount`, both of which are deprecated ([#686](https://github.com/project-serum/anchor/pull/686)).
|
||||
* lang: `Box` can be used with `Account` types to reduce stack usage ([#686](https://github.com/project-serum/anchor/pull/686)).
|
||||
* lang: Add `Owner` trait, which is automatically implemented by all `#[account]` structs ([#686](https://github.com/project-serum/anchor/pull/686)).
|
||||
* lang: Check that ProgramAccount writable before mut borrow (`anchor-debug` only) ([#681](https://github.com/project-serum/anchor/pull/681)).
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483"
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-access-control"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -68,7 +68,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-account"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -81,7 +81,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-error"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"proc-macro2 1.0.29",
|
||||
|
@ -91,7 +91,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-event"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -102,7 +102,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-interface"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -114,7 +114,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-program"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -125,7 +125,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-state"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -136,7 +136,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-cli"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-client",
|
||||
"anchor-lang",
|
||||
|
@ -166,7 +166,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-client"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-lang",
|
||||
"anyhow",
|
||||
|
@ -180,7 +180,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-derive-accounts"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -191,7 +191,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-lang"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-attribute-access-control",
|
||||
"anchor-attribute-account",
|
||||
|
@ -210,7 +210,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-spl"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anchor-lang",
|
||||
"lazy_static",
|
||||
|
@ -221,7 +221,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-syn"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bs58 0.3.1",
|
||||
|
@ -2746,7 +2746,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "serum_dex"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/project-serum/serum-dex#d82f6cd7a0b8d966a79c8e60e6139129b01256da"
|
||||
source = "git+https://github.com/project-serum/serum-dex?rev=1be91f2#1be91f2863d8ecede32daaae7e768034e24bbc79"
|
||||
dependencies = [
|
||||
"arrayref",
|
||||
"bincode",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-cli"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
authors = ["armaniferrante <armaniferrante@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@project-serum/anchor-cli",
|
||||
"version": "0.15.0",
|
||||
"version": "0.16.0",
|
||||
"description": "Anchor CLI tool",
|
||||
"homepage": "https://github.com/project-serum/anchor#readme",
|
||||
"bugs": {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
[package]
|
||||
name = "anchor-client"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-lang = { path = "../lang", version = "0.16.0" }
|
||||
anyhow = "1.0.32"
|
||||
regex = "1.4.5"
|
||||
serde = { version = "1.0.122", features = ["derive"] }
|
||||
|
|
|
@ -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.15.0 anchor-cli --locked
|
||||
cargo install --git https://github.com/project-serum/anchor --tag v0.16.0 anchor-cli --locked
|
||||
```
|
||||
|
||||
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,
|
||||
|
|
|
@ -30,7 +30,7 @@ have an `Anchor.toml` to define the build.
|
|||
An example `Anchor.toml` config looks as follows,
|
||||
|
||||
```toml
|
||||
anchor_version = "0.15.0"
|
||||
anchor_version = "0.16.0"
|
||||
|
||||
[workspace]
|
||||
members = ["programs/multisig"]
|
||||
|
|
|
@ -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:<version>`. For example, to get the image for Anchor `v0.15.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.16.0` one can run
|
||||
|
||||
```
|
||||
docker pull projectserum/build:v0.15.0
|
||||
docker pull projectserum/build:v0.16.0
|
||||
```
|
||||
|
||||
## Removing an Image
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-lang"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-attribute-account = { path = "./attribute/account", version = "0.15.0" }
|
||||
anchor-attribute-error = { path = "./attribute/error", version = "0.15.0" }
|
||||
anchor-attribute-program = { path = "./attribute/program", version = "0.15.0" }
|
||||
anchor-attribute-state = { path = "./attribute/state", version = "0.15.0" }
|
||||
anchor-attribute-interface = { path = "./attribute/interface", version = "0.15.0" }
|
||||
anchor-attribute-event = { path = "./attribute/event", version = "0.15.0" }
|
||||
anchor-derive-accounts = { path = "./derive/accounts", version = "0.15.0" }
|
||||
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.16.0" }
|
||||
anchor-attribute-account = { path = "./attribute/account", version = "0.16.0" }
|
||||
anchor-attribute-error = { path = "./attribute/error", version = "0.16.0" }
|
||||
anchor-attribute-program = { path = "./attribute/program", version = "0.16.0" }
|
||||
anchor-attribute-state = { path = "./attribute/state", version = "0.16.0" }
|
||||
anchor-attribute-interface = { path = "./attribute/interface", version = "0.16.0" }
|
||||
anchor-attribute-event = { path = "./attribute/event", version = "0.16.0" }
|
||||
anchor-derive-accounts = { path = "./derive/accounts", version = "0.16.0" }
|
||||
base64 = "0.13.0"
|
||||
borsh = "0.9"
|
||||
bytemuck = "1.4.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-access-control"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
||||
regex = "1.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-account"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
authors = ["Serum Foundation <foundation@projectserum.com>"]
|
||||
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.15.0", features = ["hash"] }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0", features = ["hash"] }
|
||||
rustversion = "1.0.3"
|
||||
bs58 = "0.4.0"
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-error"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-event"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0", features = ["hash"] }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0", features = ["hash"] }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-interface"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
||||
heck = "0.3.2"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-program"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-attribute-state"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-derive-accounts"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.16.0" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-syn"
|
||||
version = "0.15.0"
|
||||
version = "0.16.0"
|
||||
authors = ["Serum Foundation <foundation@projectserum.com>"]
|
||||
repository = "https://github.com/project-serum/anchor"
|
||||
license = "Apache-2.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-spl"
|
||||
version = "0.15.0"
|
||||
version = "0.16.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.15.0", features = ["derive"] }
|
||||
anchor-lang = { path = "../lang", version = "0.16.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.7.11"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@project-serum/anchor",
|
||||
"version": "0.15.0",
|
||||
"version": "0.16.0",
|
||||
"description": "Anchor client",
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
Loading…
Reference in New Issue