Create APIs for block discovery

Description

Post deploy a user has a deploy id of their contract.

It is required to be able to query a node to see if the deploy made it to blocks (which ones) and if it’s finalised.

AC:

  • an endpoint (opt-in by a flag “reporting“) that serves the current state of a given deploy

    • a deploy might be on the list of “to be executed” and in no blocks

    • it may be in not finalised blocks

    • it may be in one* finalised block

    • it may be in orphaned blocks

  • all the above cases need to be addressed and handled appropriately (e.g. ability to query only for finalised blocks)

  • the responses need to be readable (no stack overflows, no incomplete responses)

  • it seems that json is a preferred way of dealing with formatting

 

* - this depends on fault tolerance but in general we want only one finalised dag

Assignee

Tomislav Grospić

Reporter

Dominik Zajkowski

Priority

Medium

Components

None

Story Points

None

Fix versions

None

Labels

None
Configure