sablier-labs / v2-subgraphs

Subgraphs for Sablier V2 token streaming protocol
6 stars 4 forks source link

feat: v2.1 #17

Closed razgraf closed 6 months ago

razgraf commented 7 months ago

This PR adds support for Sablier v2.1 (Core v1.1 and Periphery v1.1). It does this in a backwards compatible way, such that v2.0 will continue working side by side.

The trick (thanks to this issue) was to aggregate the two ABIs. While Solidity contracts cannot contain, in the same file, two Events with similar name but different parameters, ABIs can. This will cause the graph-tooling to assign a numeric naming scheme to the events.