Moses wrote, to wit, in a book, Heb_9:19. And the ten commandments God himself wrote also in tables of stone, Exo_31:18.
Builded an altar; representing God in Christ, as one party in the covenant.
Twelve pillars; representing the people of Israel, the other party. So here are the outward signs and symbols of a covenant made between God and the Israelites.