You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Beginning from the release of an epoch and submission of a snapshot against it, to its finalization on Powerloom protocol, it goes through a sequence of state transitions as detailed below. Its status, at the moment, is non-trivial to diagnose from the available APIs exposed by the snapshotter implementations.
EPOCH_RELEASED – epoch is released from the protocol state smart contract for snapshotters to detect and begin work
PRELOAD – preloaders are executed for snapshot building workers to extract data according to the snapshotter specific modeuls (uniswapv2 in case of Pooler)
SNAPSHOT_SUBMIT_PAYLOAD_COMMIT - once a snapshot is built, it is propagated to the payload commit service in Audit Protocol for further submission to the protocol state contract.
RELAYER_SEND - Payload commit service has sent the snapshot to a transaction relayer to submit to THE protocol state contract
* SNAPSHOT_SUBMIT_PROTOCOL_CONTRACT - The snapshot submission transaction from the relayer to the protocol state smart contract was successful and a SnapshotSubmitted event was generated
At the moment, SnapshotSubmitted event delivered to processor distributor is a locally mocked event from payload commit service in Audit Protocol. This makes SNAPSHOT_SUBMIT_PROTOCOL_CONTRACT actually not be connected to a state transition corresponding to a protocol state contract event emission, and hence is omitted for this release. A separate state transition may be tracked in the future for such purpose.
SNAPSHOT_FINALIZE - Upon reaching consensus, the finalized snapshot accepted against an epoch is published via a SnapshotFinalized event.
Describe the solution you'd like
Expose an API endpoint on the lines of /internal/snapshotter/epochProcessingStatus which will return the status of processing of snasphots against configured project types at every state transition. The response set should be paginated.
Describe alternatives you've considered
The other alternatives to an aggregated API are cumbersome and deal with parsing and connecting several transient datapoints maintained in the Redis cache.
Additional context
NA
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Beginning from the release of an epoch and submission of a snapshot against it, to its finalization on Powerloom protocol, it goes through a sequence of state transitions as detailed below. Its status, at the moment, is non-trivial to diagnose from the available APIs exposed by the snapshotter implementations.
EPOCH_RELEASED
– epoch is released from the protocol state smart contract for snapshotters to detect and begin workPRELOAD
– preloaders are executed for snapshot building workers to extract data according to the snapshotter specific modeuls (uniswapv2
in case of Pooler)SNAPSHOT_BUILD
– the snapshot builders as configured inprojects.json
are executed. Also refer to the case study of the current implementation of Pooler for a detailed look at snapshot building for base as well as aggregates.SNAPSHOT_SUBMIT_PAYLOAD_COMMIT
- once a snapshot is built, it is propagated to the payload commit service in Audit Protocol for further submission to the protocol state contract.RELAYER_SEND
- Payload commit service has sent the snapshot to a transaction relayer to submit to THE protocol state contract*SNAPSHOT_SUBMIT_PROTOCOL_CONTRACT
- The snapshot submission transaction from the relayer to the protocol state smart contract was successful and aSnapshotSubmitted
event was generatedAt the moment,
SnapshotSubmitted
event delivered to processor distributor is a locally mocked event from payload commit service in Audit Protocol. This makesSNAPSHOT_SUBMIT_PROTOCOL_CONTRACT
actually not be connected to a state transition corresponding to a protocol state contract event emission, and hence is omitted for this release. A separate state transition may be tracked in the future for such purpose.SNAPSHOT_FINALIZE
- Upon reaching consensus, the finalized snapshot accepted against an epoch is published via aSnapshotFinalized
event.Describe the solution you'd like
Expose an API endpoint on the lines of
/internal/snapshotter/epochProcessingStatus
which will return the status of processing of snasphots against configured project types at every state transition. The response set should be paginated.Describe alternatives you've considered
The other alternatives to an aggregated API are cumbersome and deal with parsing and connecting several transient datapoints maintained in the Redis cache.
Additional context
NA
The text was updated successfully, but these errors were encountered: