Allow Onchain Query Order Status And Order related Proposal on Market Actor #371
Replies: 4 comments
-
Hey @FroghubMan! Thanks for opening up this discussion! I'd love to see some early specs or design ideas for this proposal! Is this something you plan on putting together, or would you need others to assist with this? |
Beta Was this translation helpful? Give feedback.
-
We participated in the FVM early builder,The goal is to build a unified pricing cloud storage market for users based on Filecoin,We are currently encountering the problem of not being able to query order related state. There may be two approachs to implement market actor state query:
2.The user actor can query the current state cid of market actor in some way.After querying the state cid, use it to query the raw data, and then deserialize it into market actor state.Although this approach is more general and more flexible,it destroys the private internal state. And after the actor is upgraded, it may affect the query of the actor state by other actors. |
Beta Was this translation helpful? Give feedback.
-
We currently do not know which approach of market actor state query will be implemented. And we are happy to contribute if needed. |
Beta Was this translation helpful? Give feedback.
-
Agree we will need this, unfortunately other higher priority things are preventing me from getting to it. We don't just want APIs for the built-in market actor, but a standard API that alternative storage markets can also implement, so that programs like yours can work with deals from any market. To that end, I will recommend we don't expose the DealProposal and related structs directly, but a collection of methods to return the same information, abstracting the internal storage details. I made some sketches some months ago here, and hope to get back to it soon. There are some other more basic programmability things to address first. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Market actor provides methods for querying order-related information
Motivation
The built-in storage market actor does not currently support other actors to query its order status and the proposal corresponding to the order. When the FVM makes user actors possible,Basically al storage-related use cases require on-chain querying of order status.
Use Cases
Beta Was this translation helpful? Give feedback.
All reactions