2019-03-02 14:51:26 -07:00
|
|
|
pub mod vote_instruction;
|
|
|
|
|
pub mod vote_state;
|
|
|
|
|
|
|
|
|
|
use solana_sdk::pubkey::Pubkey;
|
|
|
|
|
|
2019-03-02 18:17:17 -07:00
|
|
|
const VOTE_PROGRAM_ID: [u8; 32] = [
|
2019-04-25 17:58:49 -07:00
|
|
|
7, 97, 72, 29, 53, 116, 116, 187, 124, 77, 118, 36, 235, 211, 189, 179, 216, 53, 94, 115, 209,
|
|
|
|
|
16, 67, 252, 13, 163, 83, 128, 0, 0, 0, 0,
|
2019-03-02 14:51:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
pub fn check_id(program_id: &Pubkey) -> bool {
|
|
|
|
|
program_id.as_ref() == VOTE_PROGRAM_ID
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn id() -> Pubkey {
|
|
|
|
|
Pubkey::new(&VOTE_PROGRAM_ID)
|
|
|
|
|
}
|