The dYdX crypto exchange published the open-source code for its upcoming Cosmos-based network.