This PR updates the documentation for solvers to index and use CoW AMM.
For practicality the emitted events have been changed so that a solver can get all information it needs by subscribing to the events of the factory, without having to query the AMM. The changes are:
Every time a new AMM is deployed, a new event Deployed is fired, containing all useful immutable parameters.
The event TradingEnabled has been removed, since it duplicates the event ConditionalOrderCreated.
The event TradingDisabled has only the AMM address as its parameter.
This PR updates the documentation for solvers to index and use CoW AMM. For practicality the emitted events have been changed so that a solver can get all information it needs by subscribing to the events of the factory, without having to query the AMM. The changes are:
Deployed
is fired, containing all useful immutable parameters.TradingEnabled
has been removed, since it duplicates the eventConditionalOrderCreated
.TradingDisabled
has only the AMM address as its parameter.How to test
Updated unit tests.