provenance-io / provenance

A distributed, proof of stake blockchain designed for the financial services industry.
https://provenance.io
Apache License 2.0
88 stars 39 forks source link

Add a bulk scope/NAV update endpoint #2029

Closed iramiller closed 1 month ago

iramiller commented 5 months ago

Summary

Create an endpoint that efficiently updates the NAV of many Scopes at one time

Problem Definition

Unlike workflows for Marker/token NAVs which typically update a single instance the process for updating asset (Metadata/Scope) NAVs involves updating many values at one time. This process could be more efficient if there was a command that could accept many different scope addresses/NAVs in a single request.

Proposal

Create a new Msg/RPC endpoint which accepts a list of scope addresses and associated values for each. This endpoint will support bulk update of many assets at one time. This command should have reasonable limits and recommended sizes of the batch to include which keep the request size under the 4M gas limit on a single transaction. A focus on the most efficient use of gas/resources possible in order to support workflows that need to update 1,000s of asset values in a single session.


For Admin Use

iramiller commented 1 month ago

This doesn't seem like an important enhancement anymore. We added the 300k values during the last software upgrade... and through testing a solid 100+ assets can be priced at one time which combined with daily updates as needed means that the number required at any one time are still pretty small..

iramiller commented 1 month ago

Not planning to implement this since the current supported volume (over 100 per request) is sufficient for now.