solana/programs/native/budget_api/src/lib.rs

20 lines
442 B
Rust
Raw Normal View History

2019-03-02 13:23:22 -08:00
pub mod budget_expr;
pub mod budget_instruction;
pub mod budget_transaction;
pub mod payment_plan;
use solana_sdk::pubkey::Pubkey;
2018-12-04 14:38:19 -08:00
pub const BUDGET_PROGRAM_ID: [u8; 32] = [
129, 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(&BUDGET_PROGRAM_ID)
}
pub fn check_id(program_id: &Pubkey) -> bool {
program_id.as_ref() == BUDGET_PROGRAM_ID
}