estuary icon indicating copy to clipboard operation
estuary copied to clipboard

Verify deal id

Open neelvirdy opened this issue 2 years ago • 3 comments

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

neelvirdy avatar Dec 12 '22 18:12 neelvirdy

picking this up

franklovefrank avatar Dec 13 '22 00:12 franklovefrank

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
    1. Request error -> "there was an error verifying this deal"
    2. 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"
    3. dealID is found -> a. this deal failed at

status information will come from func dealStatusByID function in apiv1

franklovefrank avatar Dec 14 '22 22:12 franklovefrank

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

    1. Request error -> "there was an error verifying this deal"
    2. 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"
    3. 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

en0ma avatar Dec 15 '22 05:12 en0ma