Indexing Storage Change
Last updated
Was this helpful?
Last updated
Was this helpful?
The decorator can be used to mark an indexer method that will be listening for storage changes on a contract.
When a storage change is detected on an indexed contract, the method will be invoked with detailed information about the change.
The following parameters will be passed to the indexing method:
newStorage
The new storage value. The exact type will depend on the code of the contract.
dbContext
indexingContext
The following code will print the value of the property foo
every time the contract has new storage:
The to store data to.
The with additional information about the change.