2019-03-02 14:23:22 -07:00
|
|
|
pub mod budget_expr;
|
|
|
|
pub mod budget_instruction;
|
2019-03-21 16:24:54 -06:00
|
|
|
pub mod budget_processor;
|
2019-03-03 15:43:51 -07:00
|
|
|
pub mod budget_state;
|
2019-03-02 14:23:22 -07:00
|
|
|
|
|
|
|
use solana_sdk::pubkey::Pubkey;
|
2018-12-04 14:38:19 -08:00
|
|
|
|
2019-03-02 18:17:17 -07:00
|
|
|
const BUDGET_PROGRAM_ID: [u8; 32] = [
|
2019-04-25 17:58:49 -07:00
|
|
|
2, 203, 81, 223, 225, 24, 34, 35, 203, 214, 138, 130, 144, 208, 35, 77, 63, 16, 87, 51, 47,
|
|
|
|
198, 115, 123, 98, 188, 19, 160, 0, 0, 0, 0,
|
2018-12-04 14:38:19 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
pub fn id() -> Pubkey {
|
|
|
|
Pubkey::new(&BUDGET_PROGRAM_ID)
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn check_id(program_id: &Pubkey) -> bool {
|
|
|
|
program_id.as_ref() == BUDGET_PROGRAM_ID
|
|
|
|
}
|