subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Is it correct to use the same types for Substrate chain mainnet and testnet? #330

Open khssnv opened 3 months ago

khssnv commented 3 months ago

In my case each network has its own runtime, but runtime spec versioning scheme is the same and pallets versions are the same under the same runtime spec version. Also mainnet skips some runtime upgrades applied to testnet (release candidates). I've generated types using testnet spec versions *.jsonl file and mainnet indexing seems working. But I'm wondering if it is a correct approach since squid-substrate-typegen does not produce the same output to src/types for each runtime. I can imagine the same question arises for all the Polkadot parachains which have a canary or testnet in Kusama, Rococo, or Paseo.