break dependency of programs on solana core (#1371)

* break dependency of programs on Solana core
This commit is contained in:
jackcmay
2018-09-27 07:49:26 -07:00
committed by GitHub
parent 874addc51a
commit 9c47e022dc
44 changed files with 95 additions and 66 deletions

View File

@ -15,8 +15,7 @@ authors = [
[dependencies]
bincode = "1.0.0"
generic-array = { version = "0.12.0", default-features = false, features = ["serde"] }
libloading = "0.5.0"
solana = { path = "../.." }
solana_program_interface = { path = "../../common" }
[lib]
name = "move_funds"

View File

@ -1,8 +1,8 @@
extern crate bincode;
extern crate solana;
extern crate solana_program_interface;
use bincode::deserialize;
use solana::account::KeyedAccount;
use solana_program_interface::account::KeyedAccount;
#[no_mangle]
pub extern "C" fn process(infos: &mut Vec<KeyedAccount>, data: &[u8]) {
@ -22,8 +22,8 @@ pub extern "C" fn process(infos: &mut Vec<KeyedAccount>, data: &[u8]) {
mod tests {
use super::*;
use bincode::serialize;
use solana::account::Account;
use solana::pubkey::Pubkey;
use solana_program_interface::account::Account;
use solana_program_interface::pubkey::Pubkey;
#[test]
fn test_move_funds() {

View File

@ -13,8 +13,7 @@ authors = [
]
[dependencies]
libloading = "0.5.0"
solana = { path = "../.." }
solana_program_interface = { path = "../../common" }
[lib]
name = "noop"

View File

@ -1,6 +1,6 @@
extern crate solana;
extern crate solana_program_interface;
use solana::account::KeyedAccount;
use solana_program_interface::account::KeyedAccount;
#[no_mangle]
pub extern "C" fn process(_infos: &mut Vec<KeyedAccount>, _data: &[u8]) {}

View File

@ -13,8 +13,7 @@ authors = [
]
[dependencies]
libloading = "0.5.0"
solana = { path = "../.." }
solana_program_interface = { path = "../../common" }
[lib]
name = "print"

View File

@ -1,6 +1,6 @@
extern crate solana;
extern crate solana_program_interface;
use solana::account::KeyedAccount;
use solana_program_interface::account::KeyedAccount;
#[no_mangle]
pub extern "C" fn process(infos: &mut Vec<KeyedAccount>, _data: &[u8]) {