In order to display all the outstanding bids to auction users (#7159), we'll have to start by publishing them.
Description of the Design
Write all the bids to vstorage, indexed by their sequence number.
The Product Spec wants a timestamp, unique identifier, the price or discount bid, the amount of IST available, and the maximum collateral desired. The auction doesn't currently store a timestamp for each bid, this would have to be added. It's apparently okay that this won't be unique.
If we use the unique ID as an identifier in the tree; we only have to update bids as they change.
Security Considerations
This will be public data.
Scaling Considerations
The expectation is that we'll see dozens or hundreds of bids per auction for the near future. We may have to revisit aspects of the design if it gets to 10s of thousands or more.
Test Plan
unit tests for the writing. Plan to have a reader (probably CLI-based) in process to consume the data to validate the info is usable.
What is the Problem Being Solved?
In order to display all the outstanding bids to auction users (#7159), we'll have to start by publishing them.
Description of the Design
Write all the bids to vstorage, indexed by their sequence number.
The Product Spec wants a timestamp, unique identifier, the price or discount bid, the amount of IST available, and the maximum collateral desired. The auction doesn't currently store a timestamp for each bid, this would have to be added. It's apparently okay that this won't be unique.
If we use the unique ID as an identifier in the tree; we only have to update bids as they change.
Security Considerations
This will be public data.
Scaling Considerations
The expectation is that we'll see dozens or hundreds of bids per auction for the near future. We may have to revisit aspects of the design if it gets to 10s of thousands or more.
Test Plan
unit tests for the writing. Plan to have a reader (probably CLI-based) in process to consume the data to validate the info is usable.