vocdoni / census3

Golang library and a HTTP/API service that can be used to fetch an updated list of token holders for a Ethereum ERC20, ERC721, ERC777, or other external providers (ex. POAPs or GitcoinPassport).
GNU Affero General Public License v3.0
9 stars 2 forks source link

feature: transparent queue IDs #168

Closed lucasmenendez closed 8 months ago

lucasmenendez commented 9 months ago

Some Census3 actions take too much time to complete. The endpoints that perform these actions implement a a queue, the status of which can be queried using a queueID. This queueID is an internal identifier for the queue process and is a randomly generated string.

This queueID must be transparent to the API, using the same identifier inputs as the endpoint that launches the heavy action. Internally, Census3 must hash these inputs that generate the queueID. This allows the queueID to be removed from the API.

The input encoding process must be deterministic.