use hopper_runtime::error::ProgramError;
use hopper_runtime::{AccountView, Address};
#[inline]
pub fn require_signer(account: &AccountView) -> Result<(), ProgramError> {
crate::check::check_signer(account)
}
#[inline]
pub fn require_writable(account: &AccountView) -> Result<(), ProgramError> {
crate::check::check_writable(account)
}
#[inline]
pub fn require_owner(account: &AccountView, owner: &Address) -> Result<(), ProgramError> {
crate::check::check_owner(account, owner)
}
#[inline]
pub fn require_executable(account: &AccountView) -> Result<(), ProgramError> {
crate::check::check_executable(account)
}
#[inline]
pub fn require_pda(
account: &AccountView,
seeds: &[&[u8]],
bump: u8,
program_id: &Address,
) -> Result<(), ProgramError> {
crate::check::verify_pda(account, seeds, bump, program_id)
}