Add token_program.rs to sdk/

This commit is contained in:
Michael Vines
2018-12-03 22:30:52 -08:00
parent e6fa74fe69
commit a594f56c02
4 changed files with 18 additions and 15 deletions

View File

@ -10,6 +10,7 @@ pub mod signature;
pub mod system_instruction;
pub mod system_program;
pub mod timing;
pub mod token_program;
pub mod transaction;
extern crate bincode;

11
sdk/src/token_program.rs Normal file
View File

@ -0,0 +1,11 @@
//! An ERC20-like Token
use pubkey::Pubkey;
const TOKEN_PROGRAM_ID: [u8; 32] = [
131, 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(&TOKEN_PROGRAM_ID)
}