pub async fn mint( config: Arc<SugarConfig>, candy_machine_id: Pubkey, candy_machine_state: Arc<CandyMachine>, collection_pda_info: Arc<Option<PdaInfo<CollectionPDA>>>, receiver: Pubkey) -> Result<Signature>