Skip to content

Commit

Permalink
remove solana-program from zk-token-sdk (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Oct 31, 2024
1 parent 3b175b7 commit d9c24ed
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

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

3 changes: 2 additions & 1 deletion programs/sbf/Cargo.lock

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

3 changes: 2 additions & 1 deletion zk-token-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ bytemuck_derive = { workspace = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
solana-curve25519 = { workspace = true }
solana-program = { workspace = true }
solana-instruction = { workspace = true, features = ["std"] }
solana-pubkey = { workspace = true }
thiserror = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion zk-token-sdk/src/zk_token_elgamal/pod/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod sigma_proofs;
use {
crate::zk_token_proof_instruction::ProofType,
num_traits::{FromPrimitive, ToPrimitive},
solana_program::instruction::InstructionError,
solana_instruction::error::InstructionError,
thiserror::Error,
};
pub use {
Expand Down
6 changes: 2 additions & 4 deletions zk-token-sdk/src/zk_token_proof_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ use {
bytemuck::bytes_of,
num_derive::{FromPrimitive, ToPrimitive},
num_traits::{FromPrimitive, ToPrimitive},
solana_program::{
instruction::{AccountMeta, Instruction},
pubkey::Pubkey,
},
solana_instruction::{AccountMeta, Instruction},
solana_pubkey::Pubkey,
};

#[derive(Clone, Copy, Debug, FromPrimitive, ToPrimitive, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion zk-token-sdk/src/zk_token_proof_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
//! [`ZK Token proof`]: https://docs.solanalabs.com/runtime/zk-token-proof
// Program Id of the ZkToken Proof program
solana_program::declare_id!("ZkTokenProof1111111111111111111111111111111");
solana_pubkey::declare_id!("ZkTokenProof1111111111111111111111111111111");
6 changes: 2 additions & 4 deletions zk-token-sdk/src/zk_token_proof_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ use {
crate::{zk_token_elgamal::pod::PodProofType, zk_token_proof_instruction::ProofType},
bytemuck::{bytes_of, Pod, Zeroable},
num_traits::ToPrimitive,
solana_program::{
instruction::{InstructionError, InstructionError::InvalidAccountData},
pubkey::Pubkey,
},
solana_instruction::error::{InstructionError, InstructionError::InvalidAccountData},
solana_pubkey::Pubkey,
std::mem::size_of,
};

Expand Down

0 comments on commit d9c24ed

Please sign in to comment.