AlphaWallet / AlphaWallet/alpha-wallet-android
Find the construction event for contracts
- Lenguaje dominante
- Java
- Estrellas
- 646
- Forks
- 579
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
This is required to put a lower bound on how far down to pickup log events.
The most obvious approach is to use the Etherscan (etc) Transaction fetch API in reverse, so you'd search ascending from block 1 to block 9999999999 and limit the search to only 1 transaction.
This sometimes would find a bad result, where people have accidentally written to the contract before it was created, but this edge condition is harmless - it would just result in a longer sync.
You would store this block number in realm, possibly in the same RealmAuxData as the log scanning uses, see ```updateEventReads``` in class Token.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.