Add sdk native_loader.rs

This commit is contained in:
Michael Vines
2018-12-03 13:31:11 -08:00
parent bf2658cee0
commit 63a758508a
5 changed files with 13 additions and 10 deletions

View File

@ -1,6 +1,7 @@
pub mod account;
pub mod hash;
pub mod loader_instruction;
pub mod native_loader;
pub mod native_program;
pub mod packet;
pub mod pubkey;

9
sdk/src/native_loader.rs Normal file
View File

@ -0,0 +1,9 @@
use pubkey::Pubkey;
pub const NATIVE_LOADER_PROGRAM_ID: [u8; 32] = [
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
];
pub fn id() -> Pubkey {
Pubkey::new(&NATIVE_LOADER_PROGRAM_ID)
}