Skip to content

Commit

Permalink
move inner_instruction.rs to solana-message
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Dec 17, 2024
1 parent e27e2be commit 632f9b2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions programs/sbf/Cargo.lock

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

1 change: 1 addition & 0 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ solana-instruction = { workspace = true }
solana-keypair = { workspace = true, optional = true, features = [
"seed-derivable",
] }
solana-message = { workspace = true, features = ["inner-instruction", "serde"] }
solana-native-token = { workspace = true }
solana-nonce-account = { workspace = true }
solana-offchain-message = { workspace = true, optional = true, features = ["verify"] }
Expand Down
1 change: 1 addition & 0 deletions sdk/message/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ frozen-abi = [
"solana-hash/frozen-abi",
"solana-pubkey/frozen-abi",
]
inner-instruction = []
serde = [
"dep:serde",
"dep:serde_derive",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use {
crate::instruction::CompiledInstruction,
serde::{Deserialize, Serialize},
};
use crate::compiled_instruction::CompiledInstruction;

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
derive(serde_derive::Deserialize, serde_derive::Serialize),
serde(rename_all = "camelCase")
)]
pub struct InnerInstruction {
pub instruction: CompiledInstruction,
/// Invocation stack height of this instruction. Instruction stack height
Expand Down
2 changes: 2 additions & 0 deletions sdk/message/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
pub mod compiled_instruction;
mod compiled_keys;
#[cfg(feature = "inner-instruction")]
pub mod inner_instruction;
pub mod legacy;
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ pub mod genesis_config;
#[deprecated(since = "2.2.0", note = "Use `solana-hard-forks` crate instead")]
pub use solana_hard_forks as hard_forks;
pub mod hash;
pub mod inner_instruction;
pub mod log;
pub mod native_loader;
pub mod net;
Expand Down Expand Up @@ -134,6 +133,8 @@ pub use solana_feature_set as feature_set;
pub use solana_fee_structure as fee;
#[deprecated(since = "2.1.0", note = "Use `solana-inflation` crate instead")]
pub use solana_inflation as inflation;
#[deprecated(since = "2.2.0", note = "Use `solana-inner-instruction` crate instead")]
pub use solana_message::inner_instruction;
#[deprecated(since = "2.2.0", note = "Use `solana-nonce-account` crate instead")]
pub use solana_nonce_account as nonce_account;
#[cfg(feature = "full")]
Expand Down
1 change: 1 addition & 0 deletions svm/examples/Cargo.lock

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

0 comments on commit 632f9b2

Please sign in to comment.