pub fn process_initialize_light_config_checked<'info>(
config_account: &AccountInfo<'info>,
update_authority: &AccountInfo<'info>,
program_data_account: &AccountInfo<'info>,
rent_sponsor: &Pubkey,
compression_authority: &Pubkey,
rent_config: RentConfig,
write_top_up: u32,
address_space: Vec<Pubkey>,
config_bump: u8,
payer: &AccountInfo<'info>,
system_program: &AccountInfo<'info>,
program_id: &Pubkey,
) -> Result<(), ProgramError>Expand description
Creates a new compressible config PDA.
§Arguments
config_account- The config PDA account to initializeupdate_authority- Must be the program’s upgrade authorityprogram_data_account- The program’s data account for validationrent_sponsor- Account that receives rent from compressed PDAscompression_authority- Authority that can compress/close PDAsrent_config- Rent function parameterswrite_top_up- Lamports to top up on each writeaddress_space- Address spaces for compressed accounts (exactly 1 allowed)config_bump- Config bump seed (must be 0 for now)payer- Account paying for the PDA creationsystem_program- System programprogram_id- The program that owns the config
§Returns
Ok(())if config was created successfullyErr(ProgramError)if there was an error or authority validation fails