sablier-labs / flow

🍃 Smart contracts of the Sablier Flow protocol.
Other
10 stars 2 forks source link

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

Open PaulRBerg opened 2 months ago

PaulRBerg commented 2 months 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 1 month ago

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