Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
s/solana_program_interface/solana[_-]sdk/g
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 25, 2018
1 parent 850d703 commit 5efc262
Show file tree
Hide file tree
Showing 48 changed files with 106 additions and 91 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ serde_cbor = "0.9.0"
serde_derive = "1.0.27"
serde_json = "1.0.10"
socket2 = "0.3.8"
solana_program_interface = { path = "common", version = "0.10.0" }
solana-sdk = { path = "common", version = "0.10.0" }
sys-info = "0.5.6"
tokio = "0.1"
tokio-codec = "0.1"
untrusted = "0.6.2"
noop = { path = "programs/native/noop" }
bpf_loader = { path = "programs/native/bpf_loader" }
lua_loader = { path = "programs/native/lua_loader" }
solana-noop = { path = "programs/native/noop" }
solana-bpfloader = { path = "programs/native/bpf_loader" }
solana-lualoader = { path = "programs/native/lua_loader" }

[[bench]]
name = "bank"
Expand Down
4 changes: 2 additions & 2 deletions benches/banking_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern crate bincode;
extern crate rand;
extern crate rayon;
extern crate solana;
extern crate solana_program_interface;
extern crate solana_sdk;
extern crate test;

use rand::{thread_rng, Rng};
Expand All @@ -17,7 +17,7 @@ use solana::packet::to_packets_chunked;
use solana::signature::{KeypairUtil, Signature};
use solana::system_transaction::SystemTransaction;
use solana::transaction::Transaction;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::iter;
use std::sync::mpsc::{channel, Receiver};
use std::sync::Arc;
Expand Down
5 changes: 4 additions & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "solana_program_interface"
name = "solana-sdk"
version = "0.10.0"
description = "Solana SDK"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"

[dependencies]
bincode = "1.0.0"
Expand Down
5 changes: 4 additions & 1 deletion programs/bpf/noop_rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "noop_rust"
name = "solana-bpf-noop"
version = "0.10.0"
description = "Solana BPF noop program"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"

[dependencies]
rbpf = { git = "https://github.com/qmonnet/rbpf", rev="bc41ec47d9b51751585f6ddcde1d1eb1afe2be69" }
Expand Down
7 changes: 5 additions & 2 deletions programs/native/bpf_loader/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "bpf_loader"
name = "solana-bpfloader"
version = "0.10.0"
description = "Solana BPF Loader"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"

[dependencies]
bincode = "1.0.0"
Expand All @@ -13,7 +16,7 @@ log = "0.4.2"
rbpf = "0.1.0"
serde = "1.0.27"
serde_derive = "1.0.27"
solana_program_interface = { path = "../../../common", version = "0.10.0" }
solana-sdk = { path = "../../../common", version = "0.10.0" }

[lib]
name = "bpf_loader"
Expand Down
8 changes: 4 additions & 4 deletions programs/native/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ extern crate env_logger;
#[macro_use]
extern crate log;
extern crate rbpf;
extern crate solana_program_interface;
extern crate solana_sdk;

use bincode::deserialize;
use byteorder::{ByteOrder, LittleEndian, WriteBytesExt};
use solana_program_interface::account::KeyedAccount;
use solana_program_interface::loader_instruction::LoaderInstruction;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::KeyedAccount;
use solana_sdk::loader_instruction::LoaderInstruction;
use solana_sdk::pubkey::Pubkey;
use std::io::prelude::*;
use std::io::Error;
use std::mem;
Expand Down
7 changes: 5 additions & 2 deletions programs/native/lua_loader/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "lua_loader"
name = "solana-lualoader"
version = "0.10.0"
description = "Solana Lua Loader"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"

[dependencies]
bincode = "1.0.0"
Expand All @@ -10,7 +13,7 @@ log = "0.4.2"
rlua = "0.15.2"
serde = "1.0.27"
serde_derive = "1.0.27"
solana_program_interface = { path = "../../../common", version = "0.10.0" }
solana-sdk = { path = "../../../common", version = "0.10.0" }

[dev-dependencies]
bincode = "1.0.0"
Expand Down
10 changes: 5 additions & 5 deletions programs/native/lua_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ extern crate env_logger;
#[macro_use]
extern crate log;
extern crate rlua;
extern crate solana_program_interface;
extern crate solana_sdk;

use bincode::deserialize;
use rlua::{Lua, Result, Table};
use solana_program_interface::account::KeyedAccount;
use solana_program_interface::loader_instruction::LoaderInstruction;
use solana_sdk::account::KeyedAccount;
use solana_sdk::loader_instruction::LoaderInstruction;
use std::str;
use std::sync::{Once, ONCE_INIT};

Expand Down Expand Up @@ -107,8 +107,8 @@ mod tests {

use self::bincode::serialize;
use super::*;
use solana_program_interface::account::{create_keyed_accounts, Account};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::{create_keyed_accounts, Account};
use solana_sdk::pubkey::Pubkey;
use std::fs::File;
use std::io::prelude::*;
use std::path::PathBuf;
Expand Down
7 changes: 5 additions & 2 deletions programs/native/noop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[package]
name = "noop"
name = "solana-noop"
version = "0.10.0"
description = "Solana noop program"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"

[dependencies]
solana_program_interface = { path = "../../../common", version = "0.10.0" }
solana-sdk = { path = "../../../common", version = "0.10.0" }

[lib]
name = "noop"
Expand Down
4 changes: 2 additions & 2 deletions programs/native/noop/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate solana_program_interface;
extern crate solana_sdk;

use solana_program_interface::account::KeyedAccount;
use solana_sdk::account::KeyedAccount;

#[no_mangle]
pub extern "C" fn process(keyed_accounts: &mut [KeyedAccount], data: &[u8]) -> bool {
Expand Down
4 changes: 2 additions & 2 deletions scripts/increment-cargo-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ for Cargo_toml in $(find . -name Cargo.toml); do
sed -i "$Cargo_toml" -e "s/^version = \"[^\"]*\"$/version = \"$newVersion\"/"
)

# Fix up the internal references to the solana_program_interface crate
# Fix up the internal references to the solana_sdk crate
(
set -x
sed -i "$Cargo_toml" -e "
s/^solana_program_interface.*\(\"[^\"]*common\"\).*\$/solana_program_interface = \{ path = \1, version = \"$newVersion\" \}/
s/^solana-sdk.*\(\"[^\"]*common\"\).*\$/solana-sdk = \{ path = \1, version = \"$newVersion\" \}/
"
)
done
Expand Down
4 changes: 2 additions & 2 deletions src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use rayon::prelude::*;
use rpc::RpcSignatureStatus;
use signature::Keypair;
use signature::Signature;
use solana_program_interface::account::{Account, KeyedAccount};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::{Account, KeyedAccount};
use solana_sdk::pubkey::Pubkey;
use std;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::result;
Expand Down
4 changes: 2 additions & 2 deletions src/bpf_loader.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! BPF loader
use native_loader;
use solana_program_interface::account::Account;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;

pub const BPF_LOADER_PROGRAM_ID: [u8; 32] = [6u8; 32];
pub const BPF_LOADER_NAME: &str = "bpf_loader";
Expand Down
2 changes: 1 addition & 1 deletion src/budget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use chrono::prelude::*;
use payment_plan::{Payment, Witness};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::mem;

/// A data type representing a `Witness` that the payment plan is waiting on.
Expand Down
8 changes: 4 additions & 4 deletions src/budget_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use budget::Budget;
use budget_instruction::Instruction;
use chrono::prelude::{DateTime, Utc};
use payment_plan::Witness;
use solana_program_interface::account::Account;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use std::io;
use transaction::Transaction;

Expand Down Expand Up @@ -259,8 +259,8 @@ mod test {
use chrono::prelude::{DateTime, NaiveDate, Utc};
use hash::Hash;
use signature::{GenKeys, Keypair, KeypairUtil};
use solana_program_interface::account::Account;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use transaction::Transaction;

fn process_transaction(tx: &Transaction, accounts: &mut [Account]) -> Result<(), BudgetError> {
Expand Down
2 changes: 1 addition & 1 deletion src/budget_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use chrono::prelude::*;
use hash::Hash;
use payment_plan::Payment;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use system_program::SystemProgram;
use transaction::{self, Transaction};

Expand Down
4 changes: 2 additions & 2 deletions src/choose_gossip_peer_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use cluster_info::{ClusterInfoError, NodeInfo};
use rand::distributions::{Distribution, Weighted, WeightedChoice};
use rand::thread_rng;
use result::Result;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std;
use std::collections::HashMap;

Expand Down Expand Up @@ -193,7 +193,7 @@ mod tests {
use choose_gossip_peer_strategy::{ChooseWeightedPeerStrategy, DEFAULT_WEIGHT};
use logger;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std;
use std::collections::HashMap;

Expand Down
4 changes: 2 additions & 2 deletions src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use rand::{thread_rng, Rng};
use rayon::prelude::*;
use result::{Error, Result};
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std;
use std::collections::HashMap;
use std::net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket};
Expand Down Expand Up @@ -1400,7 +1400,7 @@ mod tests {
use packet::SharedBlob;
use result::Error;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::fs::remove_dir_all;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::atomic::{AtomicBool, Ordering};
Expand Down
2 changes: 1 addition & 1 deletion src/drone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use bytes::Bytes;
use influx_db_client as influxdb;
use metrics;
use signature::{Keypair, Signature};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::io;
use std::io::{Error, ErrorKind};
use std::net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket};
Expand Down
2 changes: 1 addition & 1 deletion src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bincode::{serialize_into, serialized_size};
use hash::Hash;
use packet::{SharedBlob, BLOB_DATA_SIZE};
use poh::Poh;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::io::Cursor;
use std::mem::size_of;
use std::net::SocketAddr;
Expand Down
4 changes: 2 additions & 2 deletions src/erasure.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Support erasure coding
use packet::{SharedBlob, BLOB_DATA_SIZE, BLOB_HEADER_SIZE};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::cmp;
use std::mem;
use std::result;
Expand Down Expand Up @@ -597,7 +597,7 @@ mod test {
use packet::{SharedBlob, BLOB_DATA_SIZE, BLOB_HEADER_SIZE, BLOB_SIZE};
use rand::{thread_rng, Rng};
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
// use std::sync::{Arc, RwLock};
use window::{index_blobs, WindowSlot};

Expand Down
6 changes: 3 additions & 3 deletions src/leader_scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use hash::{hash, Hash};
use ledger::create_ticks;
use signature::{Keypair, KeypairUtil};
#[cfg(test)]
use solana_program_interface::account::Account;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey;
use std::collections::HashMap;
use std::io::Cursor;
use system_transaction::SystemTransaction;
Expand Down Expand Up @@ -538,7 +538,7 @@ mod tests {
};
use mint::Mint;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::collections::HashSet;
use std::hash::Hash;
use std::iter::FromIterator;
Expand Down
2 changes: 1 addition & 1 deletion src/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use packet::{SharedBlob, BLOB_DATA_SIZE};
use rayon::prelude::*;
use result::{Error, Result};
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::fs::{create_dir_all, remove_dir_all, File, OpenOptions};
use std::io::prelude::*;
use std::io::{self, BufReader, BufWriter, Seek, SeekFrom};
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ extern crate solana_jsonrpc_http_server as jsonrpc_http_server;
extern crate solana_jsonrpc_macros as jsonrpc_macros;
extern crate solana_jsonrpc_pubsub as jsonrpc_pubsub;
extern crate solana_jsonrpc_ws_server as jsonrpc_ws_server;
extern crate solana_program_interface;
extern crate solana_sdk;
extern crate sys_info;
extern crate tokio;
extern crate tokio_codec;
Expand Down
4 changes: 2 additions & 2 deletions src/loader_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use bincode::serialize;
use hash::Hash;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::loader_instruction::LoaderInstruction;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::loader_instruction::LoaderInstruction;
use solana_sdk::pubkey::Pubkey;
use transaction::Transaction;

pub trait LoaderTransaction {
Expand Down
2 changes: 1 addition & 1 deletion src/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use entry::Entry;
use hash::{hash, Hash};
use ring::rand::SystemRandom;
use signature::{Keypair, KeypairUtil};
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use system_transaction::SystemTransaction;
use transaction::Transaction;
use untrusted::Input;
Expand Down
6 changes: 3 additions & 3 deletions src/native_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use libc;
use libloading::os::unix::*;
#[cfg(windows)]
use libloading::os::windows::*;
use solana_program_interface::account::KeyedAccount;
use solana_program_interface::loader_instruction::LoaderInstruction;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::account::KeyedAccount;
use solana_sdk::loader_instruction::LoaderInstruction;
use solana_sdk::pubkey::Pubkey;
use std::env;
use std::path::PathBuf;
use std::str;
Expand Down
2 changes: 1 addition & 1 deletion src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use log::Level;
use recvmmsg::{recv_mmsg, NUM_RCVMMSGS};
use result::{Error, Result};
use serde::Serialize;
use solana_program_interface::pubkey::Pubkey;
use solana_sdk::pubkey::Pubkey;
use std::fmt;
use std::io;
use std::mem::size_of;
Expand Down
Loading

0 comments on commit 5efc262

Please sign in to comment.