Open holic opened 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?
Added chain ID to the chirp ID schema anyway: https://github.com/holic/chirp-city/commit/cee2c04d4d98b8ad19d9b0854c94e689d5b9f1d3
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.