Shared schema for all Compound forks.
Standard Compound abis.
Shared logic among the forks.
Useful queries to run against a Compound fork subgraph.
Protocol-specific subgraph definition, abis and implementations.
Notice: Some forks have different abis from Compound. For example, Moonwell:
- renames cToken to mToken
- rename supplyRatePerBlock to supplyRatePerTimestamp because it accrues interest every second, not block
- add supplyRewardSpeeds and borrowRewardSpeeds
Therefore we need to use Moonwell-specific abis, see moonwell/subgraph.yaml (note the dots!):
- name: CToken
file: ./abis/CToken.json
- name: Comptroller
file: ./abis/Comptroller.json
- name: ERC20
file: ../abis/ERC20.json
- name: PriceOracle
file: ../abis/PriceOracle.json
- name: SolarBeamLPToken
file: ./abis/SolarBeamLPToken.json