Update Solana-program and rust-version (#2420)

This commit is contained in:
Henry-E 2023-03-02 17:23:16 +00:00 committed by GitHub
parent a48562754b
commit 45fa9bd3ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
57 changed files with 695 additions and 240 deletions

View File

@ -11,7 +11,7 @@ jobs:
uses: ./.github/workflows/reusable-tests.yaml
with:
cache: false
solana_cli_version: 1.14.11
solana_cli_version: 1.14.16
node_version: 17.0.1
cargo_profile: release
anchor_binary_name: anchor-binary-no-caching
anchor_binary_name: anchor-binary-no-caching

View File

@ -14,7 +14,7 @@ jobs:
uses: ./.github/workflows/reusable-tests.yaml
with:
cache: true
solana_cli_version: 1.14.11
solana_cli_version: 1.14.16
node_version: 17.0.1
cargo_profile: debug
anchor_binary_name: anchor-binary

View File

@ -32,6 +32,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- cli: Failing commands will return the correct exit status. ([#2370](https://github.com/coral-xyz/anchor/pull/2370)).
- idl: Update the IDL program to use non-deprecated account types ([#2365](https://github.com/coral-xyz/anchor/pull/2365)).
- ts: Enum fields weren't being converted from snake_case to camelCase ([#2378](https://github.com/coral-xyz/anchor/pull/2378)).
- lang/cli: Update to solana-program version 1.14.16 and rust version 1.60, appears to still be incompatible with 1.15 CLI ([#2420](https://github.com/coral-xyz/anchor/pull/2420)).
### Breaking

800
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
[package]
name = "avm"
version = "0.26.0"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[[bin]]

View File

@ -2,7 +2,7 @@
name = "anchor-cli"
version = "0.26.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
repository = "https://github.com/coral-xyz/anchor"
description = "Anchor CLI"
@ -28,11 +28,11 @@ shellexpand = "2.1.0"
toml = "0.5.8"
semver = "1.0.4"
serde = { version = "1.0.122", features = ["derive"] }
solana-sdk = "1.13.5"
solana-program = "1.13.5"
solana-client = "1.13.5"
solana-cli-config = "1.13.5"
solana-faucet = "1.13.5"
solana-sdk = "1.14.16"
solana-program = "1.14.16"
solana-client = "1.14.16"
solana-cli-config = "1.14.16"
solana-faucet = "1.14.16"
dirs = "4.0"
heck = "0.4.0"
flate2 = "1.0.19"

View File

@ -2,7 +2,7 @@
name = "anchor-client"
version = "0.26.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "Rust client for Anchor programs"
@ -16,7 +16,7 @@ anyhow = "1.0.32"
regex = "1.4.5"
serde = { version = "1.0.122", features = ["derive"] }
solana-client = "1.14.7"
solana-sdk = "1.13.5"
solana-account-decoder = "1.13.5"
solana-sdk = "1.14.16"
solana-account-decoder = "1.14.16"
thiserror = "1.0.20"
url = "2.2.2"

View File

@ -2,7 +2,7 @@
name = "example"
version = "0.1.0"
authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[workspace]
@ -17,4 +17,4 @@ events = { path = "../../tests/events/programs/events", features = ["no-entrypoi
shellexpand = "2.1.0"
anyhow = "1.0.32"
clap = { version = "4.0.26", features = ["derive"] }
solana-sdk = "1.13.5"
solana-sdk = "1.14.16"

View File

@ -6,7 +6,7 @@ ANCHOR_CLI=v0.26.0
#
# Solana toolchain.
#
SOLANA_CLI=v1.13.5
SOLANA_CLI=v1.14.16
#
# Build version should match the Anchor cli version.
#

View File

@ -2,7 +2,7 @@
name = "basic-0"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "basic-1"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "basic-2"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "puppet-master"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "puppet"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "basic-4"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -3,7 +3,7 @@ name = "anchor-lang"
version = "0.26.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "Solana Sealevel eDSL"
@ -37,6 +37,6 @@ arrayref = "0.3.6"
base64 = "0.13.0"
borsh = "0.9"
bytemuck = "1.4.0"
solana-program = "1.13.5"
solana-program = "1.14.16"
thiserror = "1.0.20"
bincode = "1.3.3"

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for instruction access control"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for defining an account"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for creating constant types"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for creating error types"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for defining an event"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for defining a program"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor Derive macro for accounts"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor Derive macro to automatically calculate the size of a structure or an enum"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -352,7 +352,7 @@ pub mod __private {
#[doc(hidden)]
impl ZeroCopyAccessor<Pubkey> for [u8; 32] {
fn get(&self) -> Pubkey {
Pubkey::new(self)
Pubkey::from(*self)
}
fn set(input: &Pubkey) -> [u8; 32] {
input.to_bytes()

View File

@ -5,7 +5,7 @@ authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor syntax parsing and code generation tools"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[features]

View File

@ -2,7 +2,7 @@
name = "anchor-spl"
version = "0.26.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "CPI clients for SPL programs"
@ -24,7 +24,7 @@ dex = ["serum_dex"]
anchor-lang = { path = "../lang", version = "0.26.0", features = ["derive"] }
borsh = { version = "^0.9", optional = true }
serum_dex = { git = "https://github.com/openbook-dex/program/", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"], optional = true }
solana-program = "1.13.5"
solana-program = "1.14.16"
spl-token = { version = "3.5.0", features = ["no-entrypoint"], optional = true }
spl-token-2022 = { version = "0.5.0", features = ["no-entrypoint"], optional = true }
spl-associated-token-account = { version = "1.1.1", features = ["no-entrypoint"], optional = true }

View File

@ -2,7 +2,7 @@
name = "bpf-upgradeable-state"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "cashiers-check"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "cfo"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "chat"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "composite"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "native-system"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "spl-token"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "errors"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "escrow"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "events"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "ido-pool"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "lockup"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "registry"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "idl_doc"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "misc"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -1,7 +1,7 @@
[package]
name = "shared"
version = "0.1.0"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "multisig"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "pda-derivation"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "pyth"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "relations-derivation"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "token-proxy"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "swap"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "system-accounts"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "sysvars"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -2,7 +2,7 @@
name = "tictactoe"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -1,7 +1,7 @@
[package]
name = "shared"
version = "0.1.0"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "typescript"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]

View File

@ -1,7 +1,7 @@
[package]
name = "shared"
version = "0.1.0"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "zero-copy"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]
@ -22,4 +22,4 @@ bytemuck = {version = "1.4.0", features = ["derive", "min_const_generics"]}
[dev-dependencies]
anchor-client = { path = "../../../../client", features = ["debug"] }
solana-program-test = "1.13.5"
solana-program-test = "1.14.16"

View File

@ -2,7 +2,7 @@
name = "zero-cpi"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.59"
rust-version = "1.60"
edition = "2021"
[lib]