Initial integration of dynamic contracts and native module loading (#1256)

* Integration of native dynamic programs
This commit is contained in:
jackcmay
2018-09-23 22:13:44 -07:00
committed by GitHub
parent a1f01fb8f8
commit 26b1466ef6
12 changed files with 604 additions and 15 deletions

22
programs/noop/Cargo.toml Normal file
View File

@@ -0,0 +1,22 @@
[package]
name = "noop"
version = "0.1.0"
authors = [
"Anatoly Yakovenko <anatoly@solana.com>",
"Greg Fitzgerald <greg@solana.com>",
"Stephen Akridge <stephen@solana.com>",
"Michael Vines <mvines@solana.com>",
"Rob Walker <rob@solana.com>",
"Pankaj Garg <pankaj@solana.com>",
"Tyera Eulberg <tyera@solana.com>",
"Jack May <jack@solana.com>",
]
[dependencies]
libloading = "0.5.0"
solana = { path = "../.." }
[lib]
name = "noop"
crate-type = ["dylib"]

6
programs/noop/src/lib.rs Normal file
View File

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