desmos-labs / desmos

Improving the well-being of users on social networks through the blockchain technology.
https://desmos.network
Apache License 2.0
105 stars 48 forks source link

Integrate CosmWasm #115

Closed RiccardoM closed 2 years ago

RiccardoM commented 4 years ago

In order to allow custom applications to implement their features the best way possible without having to fork the Desmos chain, I think we should start taking a look at CosmWasm.

This Cosmos module, developed by Ethan Frey, allows anyone to write smart contracts that can later run on the chain itself.

This could be particularly useful for example when integrating custom posts reporting logics as described inside #50.

kwunyeung commented 4 years ago

I was in their community call today. The current design of CosmWASM is to have its own state for each smart contract. I think this is very good when we have different dapps running on Desmos. Even for the flagging issue, different dapps can keep their states whether a post should be visible or not. I have also asked the upgradability of the contracts and they are tracking this feature here.

RiccardoM commented 4 years ago

different dapps can keep their states

This is great!

leobragaz commented 3 years ago

This should be doable now, I can follow the wasmd example which is already compatible with stargate.