macro_rules! const_pda {
( $program_id:expr, [ $( $seed:expr ),* $(,)? ], $bump:expr ) => { ... };
}Expand description
A program-derived address evaluated at compile time:
const_pda!(PROGRAM_ID, [seed, ...], bump) is
pda::const_program_address with the seed list spelled inline (each
seed anything that casts to &[u8]: a byte-string literal, an
Address::as_array(), a &[u8; N]). See that function for the bump
contract and the soundness note.
ⓘ
hopper::declare_id!("F4Um7PWsnZfN7y8WFzu1aPYJwqGduJTa4zuCGY9EUqMy");
pub const VAULT: hopper::Address = hopper::const_pda!(ID, [b"vault", ID.as_array()], 255);