How to change this WP logo and posts url in block editor?

You can change the logo in the block editor or site editor using the SlotFill system.

Have a look at the this example code taken from

import { registerPlugin } from '@wordpress/plugins';
import { __experimentalMainDashboardButton as MainDashboardButton } from '@wordpress/edit-post';
const MainDashboardButtonTest = () => (
        Custom main dashboard button content
registerPlugin( 'main-dashboard-button-test', {
    render: MainDashboardButtonTest,
} );