This commit is contained in:
Armani Ferrante 2022-01-09 16:50:10 -05:00 committed by GitHub
parent d7e72b33d1
commit a81ff88d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
52 changed files with 116 additions and 85 deletions

View File

@ -11,10 +11,16 @@ incremented for features.
## [Unreleased]
#### Fixes
## [0.20.1] - 2022-01-09
### Fixes
*lang: Improved error msgs when required programs are missing when using the `init` constraint([#1257](https://github.com/project-serum/anchor/pull/1257))
### Features
* lang: Allow repr overrides for zero copy accounts ([#1273](https://github.com/project-serum/anchor/pull/1273)).
## [0.20.0] - 2022-01-06
### Fixes

28
Cargo.lock generated
View File

@ -56,7 +56,7 @@ checksum = "6b2d54853319fd101b8dd81de382bcbf3e03410a64d8928bbee85a3e7dcde483"
[[package]]
name = "anchor-attribute-access-control"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -68,7 +68,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-account"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -81,7 +81,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-constant"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.32",
@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-error"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.32",
@ -100,7 +100,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-event"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -111,7 +111,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-interface"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -123,7 +123,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-program"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -134,7 +134,7 @@ dependencies = [
[[package]]
name = "anchor-attribute-state"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -145,7 +145,7 @@ dependencies = [
[[package]]
name = "anchor-cli"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-client",
"anchor-lang",
@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "anchor-client"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-lang",
"anyhow",
@ -191,7 +191,7 @@ dependencies = [
[[package]]
name = "anchor-derive-accounts"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-syn",
"anyhow",
@ -202,7 +202,7 @@ dependencies = [
[[package]]
name = "anchor-lang"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
@ -224,7 +224,7 @@ dependencies = [
[[package]]
name = "anchor-spl"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anchor-lang",
"serum_dex",
@ -235,7 +235,7 @@ dependencies = [
[[package]]
name = "anchor-syn"
version = "0.20.0"
version = "0.20.1"
dependencies = [
"anyhow",
"bs58 0.3.1",

View File

@ -49,3 +49,28 @@ build-example-bpf-all: build-example-bpf-zero-copy
clean:
find . -type d -name .anchor -print0 | xargs -0 rm -rf
find . -type d -name target -print0 | xargs -0 rm -rf
.PHONY: publish
publish:
cd lang/syn/ && cargo publish && cd ../../
sleep 5
cd lang/derive/accounts/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/access-control/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/account/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/constant/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/error/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/interface/ && cargo publish && cd ../../../
sleep 5
cd lang/attribute/program/ && cargo publish && cd ../../..
sleep 5
cd lang/attribute/state/ && cargo publish && cd ../../../
sleep 5
cd lang/ && cargo publish && cd../
sleep 5
cd spl/ && cargo publish && cd ../
cd client/ && cargo publish && cd ../

View File

@ -1 +1 @@
0.20.0
0.20.1

View File

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

View File

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

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-client"
version = "0.20.0"
version = "0.20.1"
authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018"
license = "Apache-2.0"
@ -10,7 +10,7 @@ description = "Rust client for Anchor programs"
debug = []
[dependencies]
anchor-lang = { path = "../lang", version = "0.20.0" }
anchor-lang = { path = "../lang", version = "0.20.1" }
anyhow = "1.0.32"
regex = "1.4.5"
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.
```bash
cargo install --git https://github.com/project-serum/anchor --tag v0.20.0 anchor-cli --locked
cargo install --git https://github.com/project-serum/anchor --tag v0.20.1 anchor-cli --locked
```
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,
```toml
anchor_version = "0.20.0"
anchor_version = "0.20.1"
[workspace]
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
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.20.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.20.1` one can run
```
docker pull projectserum/build:v0.20.0
docker pull projectserum/build:v0.20.1
```
## Removing an Image

View File

@ -1,6 +1,6 @@
{
"name": "basic-0",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-1",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-2",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-3",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "basic-4",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -13,7 +13,7 @@
"basic-4"
],
"dependencies": {
"@project-serum/anchor": "^0.20.0"
"@project-serum/anchor": "^0.20.1"
},
"devDependencies": {
"mocha": "^9.1.3",

View File

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

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-access-control"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }
regex = "1.0"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-account"
version = "0.20.0"
version = "0.20.1"
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.20.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.20.1", features = ["hash"] }
rustversion = "1.0.3"
bs58 = "0.4.0"

View File

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

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-error"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-event"
version = "0.20.0"
version = "0.20.1"
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.20.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.20.1", features = ["hash"] }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-interface"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }
heck = "0.3.2"

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-program"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-state"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-derive-accounts"
version = "0.20.0"
version = "0.20.1"
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.20.0" }
anchor-syn = { path = "../../syn", version = "0.20.1" }

View File

@ -1,6 +1,6 @@
[package]
name = "anchor-syn"
version = "0.20.0"
version = "0.20.1"
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.20.0"
version = "0.20.1"
authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018"
license = "Apache-2.0"
@ -17,7 +17,7 @@ devnet = []
dex = ["serum_dex"]
[dependencies]
anchor-lang = { path = "../lang", version = "0.20.0", features = ["derive"] }
anchor-lang = { path = "../lang", version = "0.20.1", features = ["derive"] }
serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
solana-program = "1.8.5"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }

View File

@ -1,6 +1,6 @@
{
"dependencies": {
"@project-serum/anchor": "^0.20.0"
"@project-serum/anchor": "^0.20.1"
},
"devDependencies": {
"chai": "^4.3.4",

View File

@ -1,6 +1,6 @@
{
"name": "cashiers-check",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

@ -1 +1 @@
Subproject commit bc73b510285050f5a21da13c5bc3b8b4c959948f
Subproject commit 2f3e7e7975e8072ebf588cfddf9f8d25c1295cd5

View File

@ -1,6 +1,6 @@
{
"name": "cfo",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "composite",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "errors",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "escrow",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "events",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "ido-pool",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "interface",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "lockup",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "misc",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "multisig",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -29,7 +29,7 @@
"zero-copy"
],
"dependencies": {
"@project-serum/anchor": "^0.20.0",
"@project-serum/anchor": "^0.20.1",
"@project-serum/common": "^0.0.1-beta.3",
"@project-serum/serum": "^0.13.60",
"@solana/spl-token": "^0.1.8"

View File

@ -1,6 +1,6 @@
{
"name": "pyth",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "token-proxy",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "swap",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "system-accounts",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "sysvars",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "tictactoe",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "typescript-example",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

@ -1,6 +1,6 @@
{
"name": "zero-copy",
"version": "0.20.0",
"version": "0.20.1",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/project-serum/anchor#readme",
"bugs": {

View File

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