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

22 lines
486 B
Rust
Raw Normal View History

2019-03-02 14:23:22 -07:00
pub mod budget_expr;
pub mod budget_instruction;
pub mod budget_processor;
2019-03-03 15:43:51 -07:00
pub mod budget_state;
2019-03-02 14:23:22 -07:00
pub mod budget_transaction;
pub mod payment_plan;
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] = [
2018-12-04 14:38:19 -08:00
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
}