feat: run custom contract with CairoVM
bonustrack opened this issue · comments
We need to find a way to run with a custom smart contract with CairoVM, the solution should allow us to run a function of the contract with parameters and it should output emitted event(s) and state mutation.
Here is the CairoVM code (Rust):
https://crates.io/crates/cairo-vm
Here is the simplest contract I can think about to start with, the contract is stateless but emit an event:
https://github.com/snapshot-labs/starknet-poster/blob/master/contracts/Poster.cairo
If it's easier to do it with Cairo 1 it's preferable, we don't need to support Cairo 0.
Closing this issue, not relevant anymore