PaimaStudios / paima-engine

Novel trustless web3/blockchain gaming engine.
MIT License
55 stars 18 forks source link

wrap all the funnels in config order across networks #397

Closed ecioppettini closed 1 month ago

ecioppettini commented 1 month ago

This PR makes the events (funnel) order more consistent with what I documented in https://github.com/PaimaStudios/paima-engine-docs/pull/54

Currently the funnels are wrapped by the order of the configuration file, but there is a hardcoded order for the each funnel type. So if you set the funnels in the configuration like this:


network1:
  type: mina
  ...

network2:
  type: other
  ...

The events from network2 will happen before network2. I think it's better to change things this way instead of trying to document that.

NOTE: we may want to merge #385 before this, since there will be a conflict and it may be easier to rebase this short branch.