sablier-labs / flow

🍃 Smart contracts of the Sablier Flow protocol.
Other
8 stars 0 forks source link

Input JSON file for test ranges + weekly CI workflow #272

Open PaulRBerg opened 3 weeks ago

PaulRBerg commented 3 weeks ago

After #263 gets merged, let's add an input JSON file for defining test ranges, and modify the relevant tests like so:

  1. If the JSON file is not present, apply the default ranges, i.e., the realistic ones that stream ~$100 per month.
  2. Otherwise, load the ranges from the JSON file.

Then, add a new CI workflow that is scheduled to run on a weekly basis, which creates a JSON file with unrealistic test ranges.

This approach achieves the best of both worlds — focusing on realistic scenarios for the most part, but also proving that the protocol doesn't break when the payment rates are extreme.

smol-ninja commented 5 days ago

A relevant discussion: https://github.com/sablier-labs/flow/pull/296#discussion_r1798394052