MS Instances (Project: ms_instances)¶
The micro service listens to the Celery topic contract and starts processing when a new message arrives. The message contains the block_height.
Steps¶
- Retrieve all transactions for the given block.
- If the transaction effect is
contract_initialized, then process a new contract. Onmainnetwe will try to see if the module is linked to a recognized project and add the new contract to theprojectscollection. - If the transaction effect is
contract_update_issuedwith additional effectupgraded, then process a contract upgrade. This moves a contract to a new module.