Open mculp opened 2 years ago
Another option is that we could store the board temporarily in Mongo until it's time to submit and then make it immutable after submission.
Edit: I think that's the best option. ☝️
We need to make the process of storing a board a gas-less operation. At the very least, use < $10 gas. Maybe if we just store the board ID on chain it wouldn't cost that much gas.
If it's on Solana, it'll be cheap anyway. But writing contracts in Rust looks intimidating. Solidity looks way easier. We could put it on Polygon (Ethereum Layer 2) and gas would be less than a dollar.
I think we should go with decentralized document-based storage.
Storage Options
JSON Schema
We don't need to add row/column values to the grid hashes, but probably makes the implementation of the app less complex.
Misc
Since we only have two weeks, if this is starts to become a time-sink, we just go with Mongo as a first iteration.