Add token_program.rs to sdk/
This commit is contained in:
@ -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
11
sdk/src/token_program.rs
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user