holic / chirp-city

a lil birb told me
https://chirp.city
3 stars 0 forks source link

Consider going multi-chain #2

Open holic opened 2 years ago

holic commented 2 years ago

Since the contract is so small, we could theoretically deploy to ~all EVM chains (or at least all that are supported by subgraphs) and let folks post messages from their favorite chain/currency. But we could still aggregate into one subgraph/client!

Need to check if the subgraph can operate on the same model across chains or each model is tied to a chain.

holic commented 2 years ago

From Discord:

A single subgraph can index data from multiple smart contracts on the same blockchain. For multiple blockchains, you need to create multiple subgraphs. 😭

If we go multi-chain, we'd need one subgraph for each chain. Maybe there's some aggregating + caching we can do in our own API?

holic commented 2 years ago

Added chain ID to the chirp ID schema anyway: https://github.com/holic/chirp-city/commit/cee2c04d4d98b8ad19d9b0854c94e689d5b9f1d3