Skip to content

Commit

Permalink
sdk: Rename ed25519-instructions -> ed25519-program (#3632)
Browse files Browse the repository at this point in the history
* sdk: Rename ed25519-instructions -> ed25519-program

#### Problem

The precompiles behave more like programs than instructions, as was
decided with the new secp256r1 precompile in #3152, but the ed25519
precompile was split as `ed25519-instructions`.

#### Summary of changes

Rename the crate from `solana-ed25519-instructions` to
`solana-ed25519-program`, which is a previous crate that used to be used
until solana-labs#19930.

* Run cargo fmt
  • Loading branch information
joncinque authored Nov 14, 2024
1 parent 938bd86 commit 8652ecc
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ members = [
"sdk/decode-error",
"sdk/define-syscall",
"sdk/derivation-path",
"sdk/ed25519-instructions",
"sdk/ed25519-program",
"sdk/epoch-rewards",
"sdk/epoch-schedule",
"sdk/feature-set",
Expand Down Expand Up @@ -440,7 +440,7 @@ solana-decode-error = { path = "sdk/decode-error", version = "=2.2.0" }
solana-define-syscall = { path = "sdk/define-syscall", version = "=2.2.0" }
solana-derivation-path = { path = "sdk/derivation-path", version = "=2.2.0" }
solana-download-utils = { path = "download-utils", version = "=2.2.0" }
solana-ed25519-instructions = { path = "sdk/ed25519-instructions", version = "=2.2.0" }
solana-ed25519-program = { path = "sdk/ed25519-program", version = "=2.2.0" }
solana-entry = { path = "entry", version = "=2.2.0" }
solana-program-entrypoint = { path = "sdk/program-entrypoint", version = "=2.2.0" }
solana-epoch-rewards = { path = "sdk/epoch-rewards", version = "=2.2.0" }
Expand Down
4 changes: 2 additions & 2 deletions programs/sbf/Cargo.lock

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

4 changes: 2 additions & 2 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ full = [
"digest",
"solana-pubkey/rand",
"dep:solana-cluster-type",
"dep:solana-ed25519-instructions",
"dep:solana-ed25519-program",
"dep:solana-keypair",
"dep:solana-precompile-error",
"dep:solana-presigner",
Expand Down Expand Up @@ -105,7 +105,7 @@ solana-cluster-type = { workspace = true, features = [
solana-commitment-config = { workspace = true, optional = true, features = ["serde"] }
solana-decode-error = { workspace = true }
solana-derivation-path = { workspace = true }
solana-ed25519-instructions = { workspace = true, optional = true }
solana-ed25519-program = { workspace = true, optional = true }
solana-feature-set = { workspace = true }
solana-fee-structure = { workspace = true, features = ["serde"] }
solana-frozen-abi = { workspace = true, optional = true, features = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "solana-ed25519-instructions"
name = "solana-ed25519-program"
description = "Instructions for the Solana ed25519 native program"
documentation = "https://docs.rs/solana-ed25519-instructions"
documentation = "https://docs.rs/solana-ed25519-program"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
Expand Down
File renamed without changes.
7 changes: 2 additions & 5 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,8 @@ pub use solana_decode_error as decode_error;
#[deprecated(since = "2.1.0", note = "Use `solana-derivation-path` crate instead")]
pub use solana_derivation_path as derivation_path;
#[cfg(feature = "full")]
#[deprecated(
since = "2.2.0",
note = "Use `solana-ed25519-instructions` crate instead"
)]
pub use solana_ed25519_instructions as ed25519_instruction;
#[deprecated(since = "2.2.0", note = "Use `solana-ed25519-program` crate instead")]
pub use solana_ed25519_program as ed25519_instruction;
#[deprecated(since = "2.1.0", note = "Use `solana-feature-set` crate instead")]
pub use solana_feature_set as feature_set;
#[deprecated(since = "2.2.0", note = "Use `solana-fee-structure` crate instead")]
Expand Down

0 comments on commit 8652ecc

Please sign in to comment.