warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.1k stars 107 forks source link

Intent simulator #311

Closed Pitasi closed 4 months ago

Pitasi commented 4 months ago

It would be a great addition to have the ability to simulate an intent execution.

It can be implemented as a query in the x/intent module.

The payload of the query should contain the environment under which the intent would be executed and the node should not do anything else than parsing and executing the shield code without calling expanders or other code (i.e. other modules, smart contracts, etc.) to guarantee that the query will be cheap to execute.