Set tx state as "waiting" when spooling a transaction
Currently, when spooling a smart contract call, the transaction state is set to done
. This can cause some problems with signals that catch this state and need on-chain data that was generated by the smart contract call. Indeed, in such case, the signal is entered when the transaction is still in the mempool, such that the on-chain generated data is not yet available, causing the signal to throw.
The idea is to have the spooler set the state of a transaction as waiting
and let the indexer set it as done
when it encounters it.