Publish expected native program entrypoint in sdk/
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
pub mod account;
|
||||
pub mod loader_instruction;
|
||||
pub mod native_program;
|
||||
pub mod pubkey;
|
||||
|
||||
extern crate bincode;
|
||||
|
8
sdk/src/native_program.rs
Normal file
8
sdk/src/native_program.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use account::KeyedAccount;
|
||||
|
||||
// All native programs export a symbol named process()
|
||||
pub const ENTRYPOINT: &str = "process";
|
||||
|
||||
// Native program ENTRYPOINT prototype
|
||||
pub type Entrypoint =
|
||||
unsafe extern "C" fn(keyed_accounts: &mut [KeyedAccount], data: &[u8]) -> bool;
|
Reference in New Issue
Block a user