pub type Ctx<'a, 'info, T> = Context<'a, 'a, 'a, 'info, T>;

Aliased Type§

struct Ctx<'a, 'info, T> {
    pub program_id: &'a Pubkey,
    pub accounts: &'a mut T,
    pub remaining_accounts: &'a [AccountInfo<'info>],
    pub bumps: <T as Bumps>::Bumps,
}

Fields§

§program_id: &'a Pubkey

Currently executing program id.

§accounts: &'a mut T

Deserialized accounts.

§remaining_accounts: &'a [AccountInfo<'info>]

Remaining accounts given but not deserialized or validated. Be very careful when using this directly.

§bumps: <T as Bumps>::Bumps

Bump seeds found during constraint validation. This is provided as a convenience so that handlers don’t have to recalculate bump seeds or pass them in as arguments. Type is the bumps struct generated by #[derive(Accounts)]