process_update_light_config

Function process_update_light_config 

Source
pub fn process_update_light_config<'info>(
    config_account: &AccountInfo<'info>,
    authority: &AccountInfo<'info>,
    new_update_authority: Option<&Pubkey>,
    new_rent_sponsor: Option<&Pubkey>,
    new_compression_authority: Option<&Pubkey>,
    new_rent_config: Option<RentConfig>,
    new_write_top_up: Option<u32>,
    new_address_space: Option<Vec<Pubkey>>,
    owner_program_id: &Pubkey,
) -> Result<(), ProgramError>
Expand description

Updates an existing compressible config

§Arguments

  • config_account - The config PDA account to update
  • authority - Current update authority (must match config)
  • new_update_authority - Optional new update authority
  • new_rent_sponsor - Optional new rent recipient
  • new_compression_authority - Optional new compression authority
  • new_rent_config - Optional new rent function parameters
  • new_write_top_up - Optional new write top-up amount
  • new_address_space - Optional new address space (currently 1 address_tree allowed)
  • owner_program_id - The program that owns the config

§Returns

  • Ok(()) if config was updated successfully
  • Err(ProgramError) if there was an error