[proposal] fetch ERC1056 events till a specific block
See original GitHub issueIs your feature request related to a problem? Please describe. No
Describe the solution you’d like
Reading / Caching of ERC1056
events should be possible from the latest
block to some older
block. For a cache
based use-case, the solution would already store the events from the ERC1056 contracts. Whenever a user requests a DID-Doc, the resolver should sync / fetch events
from the last synced block to latest
block.
This makes the changeLog
to have a property something like stopBlockNumber
. While executing wrapDidDocument
the changeLog
could then possibly pull events
between the latest
block and specified stopBlockNumber
. Thus if there is no specified stopBlockNumber
, then it pull all the events from the blockchain.
Describe alternatives you’ve considered NA
Additional context NA
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top GitHub Comments
Yes, that’s the idea. The resolver would not care that the provider is caching events or not.
The two main reason for having “external” cache are :
You understood the proposal right, we are just brainstorming for an optimal approach.