estuary
estuary copied to clipboard
Verify deal id
Similar to https://estuary.tech/verify-cid, we should have an endpoint and a page to query a deal id to check deal state according to lotus.
cc @jlogelin @en0ma @jcace
picking this up
SPECS
- this will be new page located at https://estuary.tech/deal-status
- frontend design consistent with https://estuary.tech/verify-cid
- user is prompted: "Enter a deal ID. If your deal was initiated by this Estuary Node, you will be able to find its status here"
- input/outputs
- Request error -> "there was an error verifying this deal"
- dealID is not found -> "this deal ID is not found. it might have been made from a different ipfs node. you can search for your deal on https://filfox.info"
- dealID is found -> a. this deal failed at
status information will come from func dealStatusByID function in apiv1
SPECS
this will be new page located at https://estuary.tech/deal-status
frontend design consistent with https://estuary.tech/verify-cid
user is prompted: "Enter a deal ID. If your deal was initiated by this Estuary Node, you will be able to find its status here"
input/outputs
- Request error -> "there was an error verifying this deal"
- dealID is not found -> "this deal ID is not found. it might have been made from a different ipfs node. you can search for your deal on https://filfox.info"
- dealID is found -> a. this deal failed at b. this deal was slashed at c. this deal has been recorded on chain at but has not been sealed yet d. this deal was recorded on chain at and sealed at
status information will come from func dealStatusByID function in apiv1
Great spec @franklovefrank, the only thing I think we should adjust is this deal ID is not found. it might have been made from a different ipfs node ==> this deal ID is not found. it might have been made by a different storage client