Update crate references
This commit is contained in:
committed by
Tyera Eulberg
parent
3fc96c4a18
commit
12fde77ecd
@ -18,6 +18,7 @@ log = "0.4.2"
|
||||
serde_json = "1.0.39"
|
||||
solana = { path = "../core", version = "0.13.0" }
|
||||
solana-budget-api = { path = "../programs/budget_api", version = "0.13.0" }
|
||||
solana-client = { path = "../client", version = "0.13.0" }
|
||||
solana-drone = { path = "../drone", version = "0.13.0" }
|
||||
solana-logger = { path = "../logger", version = "0.13.0" }
|
||||
solana-sdk = { path = "../sdk", version = "0.13.0" }
|
||||
|
@ -5,15 +5,15 @@ use clap::ArgMatches;
|
||||
use log::*;
|
||||
use serde_json;
|
||||
use serde_json::json;
|
||||
#[cfg(test)]
|
||||
use solana::rpc_mock::{request_airdrop_transaction, MockRpcClient as RpcClient};
|
||||
#[cfg(not(test))]
|
||||
use solana::rpc_request::RpcClient;
|
||||
use solana::rpc_request::{get_rpc_request_str, RpcRequest};
|
||||
use solana::rpc_service::RPC_PORT;
|
||||
use solana::rpc_status::RpcSignatureStatus;
|
||||
use solana_budget_api;
|
||||
use solana_budget_api::budget_transaction::BudgetTransaction;
|
||||
#[cfg(test)]
|
||||
use solana_client::rpc_mock::{request_airdrop_transaction, MockRpcClient as RpcClient};
|
||||
#[cfg(not(test))]
|
||||
use solana_client::rpc_request::RpcClient;
|
||||
use solana_client::rpc_request::{get_rpc_request_str, RpcRequest};
|
||||
#[cfg(not(test))]
|
||||
use solana_drone::drone::request_airdrop_transaction;
|
||||
use solana_drone::drone::DRONE_PORT;
|
||||
@ -996,8 +996,8 @@ mod tests {
|
||||
use super::*;
|
||||
use clap::{App, Arg, ArgGroup, SubCommand};
|
||||
use serde_json::Value;
|
||||
use solana::rpc_mock::{PUBKEY, SIGNATURE};
|
||||
use solana::socketaddr;
|
||||
use solana_client::rpc_mock::{PUBKEY, SIGNATURE};
|
||||
use solana_sdk::signature::{gen_keypair_file, read_keypair, read_pkcs8, Keypair, KeypairUtil};
|
||||
use std::fs;
|
||||
use std::net::{Ipv4Addr, SocketAddr};
|
||||
|
@ -1,6 +1,6 @@
|
||||
use serde_json::{json, Value};
|
||||
use solana::rpc_request::{RpcClient, RpcRequest, RpcRequestHandler};
|
||||
use solana::thin_client::new_fullnode;
|
||||
use solana::fullnode::new_fullnode_for_tests;
|
||||
use solana_client::rpc_request::{RpcClient, RpcRequest, RpcRequestHandler};
|
||||
use solana_drone::drone::run_local_drone;
|
||||
use solana_sdk::bpf_loader;
|
||||
use solana_wallet::wallet::{process_command, WalletCommand, WalletConfig};
|
||||
@ -19,7 +19,7 @@ fn test_wallet_deploy_program() {
|
||||
pathbuf.push("noop");
|
||||
pathbuf.set_extension("so");
|
||||
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode();
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode_for_tests();
|
||||
|
||||
let (sender, receiver) = channel();
|
||||
run_local_drone(alice, sender);
|
||||
|
@ -1,6 +1,6 @@
|
||||
use chrono::prelude::*;
|
||||
use serde_json::Value;
|
||||
use solana::rpc_request::RpcClient;
|
||||
use solana_client::rpc_request::RpcClient;
|
||||
use solana_drone::drone::run_local_drone;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||
@ -11,7 +11,7 @@ use std::fs::remove_dir_all;
|
||||
use std::sync::mpsc::channel;
|
||||
|
||||
#[cfg(test)]
|
||||
use solana::thin_client::new_fullnode;
|
||||
use solana::fullnode::new_fullnode_for_tests;
|
||||
|
||||
fn check_balance(expected_balance: u64, client: &RpcClient, pubkey: &Pubkey) {
|
||||
let balance = client.retry_get_balance(1, pubkey, 1).unwrap().unwrap();
|
||||
@ -20,7 +20,7 @@ fn check_balance(expected_balance: u64, client: &RpcClient, pubkey: &Pubkey) {
|
||||
|
||||
#[test]
|
||||
fn test_wallet_timestamp_tx() {
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode();
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode_for_tests();
|
||||
let bob_pubkey = Keypair::new().pubkey();
|
||||
|
||||
let (sender, receiver) = channel();
|
||||
@ -80,7 +80,7 @@ fn test_wallet_timestamp_tx() {
|
||||
|
||||
#[test]
|
||||
fn test_wallet_witness_tx() {
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode();
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode_for_tests();
|
||||
let bob_pubkey = Keypair::new().pubkey();
|
||||
|
||||
let (sender, receiver) = channel();
|
||||
@ -137,7 +137,7 @@ fn test_wallet_witness_tx() {
|
||||
|
||||
#[test]
|
||||
fn test_wallet_cancel_tx() {
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode();
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode_for_tests();
|
||||
let bob_pubkey = Keypair::new().pubkey();
|
||||
|
||||
let (sender, receiver) = channel();
|
||||
|
@ -1,5 +1,5 @@
|
||||
use solana::rpc_request::RpcClient;
|
||||
use solana::thin_client::new_fullnode;
|
||||
use solana::fullnode::new_fullnode_for_tests;
|
||||
use solana_client::rpc_request::RpcClient;
|
||||
use solana_drone::drone::run_local_drone;
|
||||
use solana_sdk::signature::KeypairUtil;
|
||||
use solana_wallet::wallet::{process_command, WalletCommand, WalletConfig};
|
||||
@ -8,7 +8,7 @@ use std::sync::mpsc::channel;
|
||||
|
||||
#[test]
|
||||
fn test_wallet_request_airdrop() {
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode();
|
||||
let (server, leader_data, alice, ledger_path) = new_fullnode_for_tests();
|
||||
let (sender, receiver) = channel();
|
||||
run_local_drone(alice, sender);
|
||||
let drone_addr = receiver.recv().unwrap();
|
||||
|
Reference in New Issue
Block a user