Skip to main content

LightProgramPinocchio

Derive Macro LightProgramPinocchio 

Source
#[derive(LightProgramPinocchio)]
{
    // Attributes available to this derive:
    #[light_account]
}
Expand description

Pinocchio variant of #[derive(LightProgram)].

Generates pinocchio-compatible code instead of Anchor:

  • BorshSerialize/BorshDeserialize instead of AnchorSerialize/AnchorDeserialize
  • light_account_pinocchio:: paths instead of light_account::
  • Config/compress/decompress as enum associated functions
  • [u8; 32] instead of Pubkey in generated params

See #[derive(LightProgram)] for usage syntax (identical attribute syntax).