Merge api/program into single units (#7061)
This commit is contained in:
@@ -11,9 +11,9 @@ solana_sdk::solana_name_id!(
|
||||
pub mod librapay_instruction;
|
||||
pub mod librapay_transaction;
|
||||
|
||||
extern crate solana_move_loader_api;
|
||||
extern crate solana_move_loader_program;
|
||||
|
||||
use solana_move_loader_api::account_state::LibraAccountState;
|
||||
use solana_move_loader_program::account_state::LibraAccountState;
|
||||
use solana_runtime::loader_utils::load_program;
|
||||
use solana_sdk::account::KeyedAccount;
|
||||
use solana_sdk::client::Client;
|
||||
@@ -92,5 +92,5 @@ pub fn process_instruction(
|
||||
keyed_accounts: &mut [KeyedAccount],
|
||||
data: &[u8],
|
||||
) -> Result<(), InstructionError> {
|
||||
solana_move_loader_api::processor::process_instruction(program_id, keyed_accounts, data)
|
||||
solana_move_loader_program::processor::process_instruction(program_id, keyed_accounts, data)
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
use bincode;
|
||||
use solana_move_loader_api::account_state::pubkey_to_address;
|
||||
use solana_move_loader_api::processor::InvokeCommand;
|
||||
use solana_move_loader_program::account_state::pubkey_to_address;
|
||||
use solana_move_loader_program::processor::InvokeCommand;
|
||||
use solana_sdk::instruction::{AccountMeta, Instruction};
|
||||
use solana_sdk::loader_instruction::LoaderInstruction;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
use crate::librapay_instruction;
|
||||
use log::*;
|
||||
use solana_move_loader_api::account_state::{pubkey_to_address, LibraAccountState};
|
||||
use solana_move_loader_api::data_store::DataStore;
|
||||
use solana_move_loader_program::account_state::{pubkey_to_address, LibraAccountState};
|
||||
use solana_move_loader_program::data_store::DataStore;
|
||||
use solana_sdk::client::Client;
|
||||
use solana_sdk::commitment_config::CommitmentConfig;
|
||||
use solana_sdk::hash::Hash;
|
||||
@@ -160,7 +160,7 @@ mod tests {
|
||||
let mut bank = Bank::new(&genesis_config);
|
||||
bank.add_instruction_processor(
|
||||
solana_sdk::move_loader::id(),
|
||||
solana_move_loader_api::processor::process_instruction,
|
||||
solana_move_loader_program::processor::process_instruction,
|
||||
);
|
||||
let shared_bank = Arc::new(bank);
|
||||
let bank_client = BankClient::new_shared(&shared_bank);
|
||||
|
Reference in New Issue
Block a user